/* ------------------------------------------------------------------ */
/* RESET & GLOBALS                                                    */
/* ------------------------------------------------------------------ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    background: #fff;
    color: #111;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* HEADER & NAV                                                       */
/* ------------------------------------------------------------------ */
.ma-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    position: relative;
    z-index: 1100;
    /* > side‑nav (1000) */
}

.home-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.ma-left,
.ma-center,
.ma-right {
    display: flex;
    align-items: center;
}

.ma-center a {
    display: flex;
    justify-content: center;
}

/* Logo */
.ma-logo-img {
    max-width: 50%;
}

/* Icon buttons (search / back) */
.ma-icon-btn {
    font-size: 1.25rem;
    line-height: 1;
    color: #000;
}

/* Hamburger / X */
.ma-burger {
    width: 24px;
    height: 18px;
    position: relative;
    color: #000;
    z-index: 1001;
    /* sempre acima de side‑nav e overlay */
}

.home-header .ma-burger {
    color: #fff;
}

.ma-burger.active {
    color: #000;
}

.home-header .ma-burger.active {
    color: #000;
}

/* Quando aberto: fixa no topo‑direita sobre o menu */
.ma-burger.active {
    position: fixed;
    right: 1rem;
}

/* três linhas */
.ma-burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform .3s, opacity .3s;
}

.ma-burger span:nth-child(1) {
    top: 0;
}

.ma-burger span:nth-child(2) {
    top: 8px;
}

.ma-burger span:nth-child(3) {
    top: 16px;
}

.ma-burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.ma-burger.active span:nth-child(2) {
    opacity: 0;
}

.ma-burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Side nav */
.ma-side-nav {
    position: fixed;
    top: 0;
    right: -260px;
    ;
    width: 260px;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    transition: right .4s;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: end;
}

.ma-side-nav.open {
    right: 0;
}

.ma-nav-list {
    list-style: none;
    margin: 0;
    padding: 2rem;
    display: flex;
    align-items: end;
    flex-direction: column;
    gap: 1rem;
}

.ma-nav-list li {
    text-align: end;
    font-family: Roboto, sans-serif;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
}

.ma-nav-list li:hover {
    text-decoration: underline;
}


@media(max-width:768px) {
    .ma-side-nav {
        width: 100%;
        right: -100%;
    }
}

/* Overlay */
.ma-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s;
    z-index: 900;
}

.ma-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Search bar (category pages) */
.ma-search-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: #fff;
    display: none;
    align-items: center;
    gap: .5rem;
    z-index: 950;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.ma-search-bar.show {
    display: flex;
}

.ma-search-bar .search-form {
    flex: 1;
}

.ma-search-bar input[type="search"] {
    width: 100%;
    padding: .5rem;
    border: 1px solid #ccc;
}

.ma-search-close {
    font-size: 1.5rem;
    line-height: 1;
    color: #000;
}

/* ------------------------------------------------------------------ */
/* HOMEPAGE HERO                                                      */
/* ------------------------------------------------------------------ */
.ma-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.ma-hero-video {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: -3;
}

.ma-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ma-hero-grid {
    display: flex;
    width: 100%;
    padding: 0 5vw;
    justify-content: space-evenly;
    align-items: center;
}

.ma-hero-col {
    flex: 1;
    text-align: center;
}

.ma-hero-col h1 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw+1rem, 3.5rem);
    color: #fff;
}

.ma-hero-col h2 {
    color: #fff;
    font-weight: 100;
    font-size: 2.5rem;
    letter-spacing: .15em;
}

.ma-hero-center {
    font-weight: 400;
}

@media(max-width:768px) {
    .ma-hero-grid {
        flex-direction: column;
        gap: 2rem;
    }
}


/* ------------------------------------------------------------------ */
/* TOP‑LEVEL GENDER BOXES                                             */
/* ------------------------------------------------------------------ */
/* Atualização do estilo dos boxes de categoria (semelhante à página de landing da Way Model) */
.ma-gender-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 4rem 1rem;
    text-align: center;
}

.ma-gender-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    height: 300px;
    aspect-ratio: 3/2;
    border: 2px solid #000;
    background: #000;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.ma-gender-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
    z-index: 0;
}

.ma-gender-box:hover {
    transform: translateY(-4px);
}

.ma-gender-box:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

.ma-gender-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.ma-gender-label {
    position: relative;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    z-index: 1;
}

@media (min-width: 768px) {
    .ma-gender-container {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .ma-gender-box {
        max-width: 650px;
        height: 600px;
    }

    .ma-gender-label {
        font-size: 5rem;
    }
}


/* ------------------------------------------------------------------ */
/* CHILD CATEGORY – FILTERS & GRID                                    */
/* ------------------------------------------------------------------ */

.ma-container {
    padding: 0 20px;
}


.ma-model-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
    .ma-model-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.quadro-modelo {
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.quadro-modelo-photo {
    width: 100%;
    aspect-ratio: 243 / 370;
    overflow: hidden;
    transition: filter 0.3s;
}

.quadro-modelo-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quadro-modelo:hover .quadro-modelo-photo {
    filter: grayscale(100%);
}

.quadro-modelo-first {
    font-style: italic;
    font-weight: 700;
    margin-top: 0.5rem;
}

.quadro-modelo-last {
    font-weight: 200;
    margin-top: 0.25rem;
}


/* ------------------------------------------------------------------ */
/* SINGLE MODEL PAGE                                                 */
/* ------------------------------------------------------------------ */

.ma-model-hero {
    position: relative;
}

.ma-model-cover {
    width: 100%;
    height: 90vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.ma-model-hero-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.75);
    text-align: center;
    padding: 1rem 0;
}

.ma-model-name {
    margin-bottom: 1rem;
}

.ma-model-name .first-name {
    display: block;
    font-style: italic;
    font-weight: 700;
    font-size: 4rem;
}

.ma-model-name .last-name {
    display: block;
    font-weight: 200;
    font-size: 2.5rem;
}

.ma-model-selectors {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.ma-selector,
.ma-instagram-link {
    cursor: pointer;
    font-weight: 600;
    letter-spacing: .05em;
    text-decoration: none;
    color: #000;
    transition: color .25s;
}

.ma-selector:hover,
.ma-instagram-link:hover {
    text-decoration: underline;
}

.ma-selector.active {
    text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* CAROUSELS                                                         */
/* ------------------------------------------------------------------ */

.ma-carousels {
    padding: 2rem 0;
}

.carousel-book,
.carousel-polaroids,
.carousel-composite {
    display: none !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease;
}

.carousel-book.active,
.carousel-polaroids.active,
.carousel-composite.active {
    display: block !important;
    opacity: 1 !important;
}


/* Common carousel container styling */
.ma-carousel {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

/* Slide track */
.ma-carousel-track {
    display: flex;
    transition: transform .5s;
}

/* Two slides per view on desktop */
.ma-slide {
    flex: 0 0 50%;
    padding: .5rem;
}

@media (max-width: 767px) {

    /* One slide per view on mobile */
    .ma-slide {
        flex: 0 0 100%;
    }
}

.ma-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Navigation arrows */
.ma-carousel-prev,
.ma-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #000;
    cursor: pointer;
    transition: color .25s;
}

.ma-carousel-prev:hover,
.ma-carousel-next:hover {
    color: #555;
}

.ma-carousel-prev {
    left: 1rem;
}

.ma-carousel-next {
    right: 1rem;
}

@media (max-width: 767px) {

    /* Reduz a altura do banner para não ocupar tanto espaço */
    .ma-model-cover {
        height: 60vh;
    }

    /* Ajusta o padding do conteúdo */
    .ma-model-hero-content {
        padding: 0.5rem 0;
    }

    /* Diminui fontes dos nomes */
    .ma-model-name .first-name {
        font-size: 3rem;
    }

    .ma-model-name .last-name {
        font-size: 1.5rem;
    }

    /* Torna os seletores flexíveis e com gap menor */
    .ma-model-selectors {
        gap: 1rem;
        flex-wrap: wrap;
        padding: 0 0.5rem;
    }

    .ma-selector,
    .ma-instagram-link {
        font-size: 0.875rem;
    }

    /* Diminui o padding lateral dos carrosséis */
    .ma-carousels {
        padding: 1rem 0;
    }


    .ma-carousel-prev,
    .ma-carousel-next {
        position: absolute;
        /* já está relativo ao .ma-carousel */
        top: 50%;
        /* mantém o alinhamento vertical */
        transform: translateY(-50%);
        padding: 0.5rem;
        /* aumenta a área clicável */
        background: rgba(255, 255, 255, 0.7);
        border-radius: 50%;
        /* opcional, deixa um fundo circular */
        z-index: 10;
    }

    .ma-carousel-prev {
        left: 0;
        /* cola na borda esquerda */
    }

    .ma-carousel-next {
        right: 0;
        /* cola na borda direita */
    }

}

/* ------------------------------------------------------------------ */
/* FOOTER                                                            */
/* ------------------------------------------------------------------ */

.ma-footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: .875rem;
}