/* ═══════════════════════════════════════════════
   MEMORIAL BÁRBARA LIS — Design System v3
   Fonts: DM Serif Display · Jost · Cormorant
   Palette: Warm ivory, rosé, charcoal
   ═══════════════════════════════════════════════ */

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

:root {
    --ivory: #faf6f0;
    --cream: #f2ece3;
    --sand: #e0d6ca;
    --rose: #b89a7e;
    --rose-deep: #9e7e62;
    --rose-glow: #d4b99a;
    --charcoal: #1e1e1e;
    --charcoal-warm: #3a3530;
    --stone: #6b6560;
    --mist: #9c958e;
    --white: #ffffff;
    --gold: #c9a96e;

    --font-display: 'DM Serif Display', serif;
    --font-body: 'Jost', sans-serif;
    --font-accent: 'Cormorant', serif;

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--ivory);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--rose-glow);
    color: var(--charcoal);
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 4%;
    transition: all 0.5s var(--ease);
}

.nav.scrolled {
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    padding: 1rem 4%;
}

.nav-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.4s;
}

.nav.scrolled .nav-name {
    color: var(--charcoal);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--white);
}

.nav.scrolled .nav-links a {
    color: var(--mist);
}

.nav.scrolled .nav-links a:hover {
    color: var(--charcoal);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.3s;
}

.nav.scrolled .nav-hamburger span {
    background: var(--charcoal);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--ivory);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--charcoal);
    text-decoration: none;
}


/* ═══════════════════════════════════════════════
   HERO — Desktop: split layout | Mobile: full-bleed
   ═══════════════════════════════════════════════ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    background: var(--charcoal);
}

/* ── Left panel: text + filmstrip ── */
.hero-content {
    position: relative;
    z-index: 3;
    width: 48%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 5% 100px;
    background: var(--charcoal-warm);
}

.hero-text {
    animation: fadeUp 1s var(--ease-out) both;
    animation-delay: 0.2s;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--rose);
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 1.2rem;
}

.hero-divider {
    width: 50px;
    height: 1px;
    background: var(--rose);
    margin-bottom: 1.2rem;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2rem;
}

.hero-text blockquote {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
    line-height: 2;
    border-left: 1px solid var(--rose);
    padding-left: 1.5rem;
    max-width: 380px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--rose);
    text-decoration: none;
    transition: color 0.3s;
}

.hero-cta:hover {
    color: var(--rose-glow);
}

.hero-cta i {
    font-size: 1rem;
    animation: gentleBounce 2.5s infinite;
}

/* Filmstrip */
.hero-filmstrip {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.hero-filmstrip::-webkit-scrollbar {
    display: none;
}

.hero-filmstrip .thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.35;
    transition: all 0.3s var(--ease);
    border: 2px solid transparent;
}

.hero-filmstrip .thumb:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.hero-filmstrip .thumb.active {
    opacity: 1;
    border-color: var(--rose);
}

.hero-filmstrip .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Right panel: photo viewer ── */
.hero-photo {
    position: relative;
    z-index: 2;
    width: 52%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0e0e0e;
    padding: 2rem;
}

.hero-photo-frame {
    position: relative;
    width: 100%;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#heroImg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.6s var(--ease);
    border-radius: 2px;
}

/* Mobile overlay (visible only on mobile) */
.hero-overlay {
    display: none;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentleBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}


/* ═══════════════════════════════════════════════
   SECTION SYSTEM
   ═══════════════════════════════════════════════ */

.section {
    padding: 7rem 0;
}

.section--historia {
    background: var(--ivory);
}

.section--galeria {
    background: var(--cream);
}

.section--conquistas {
    background: var(--ivory);
}

.section--mensagens {
    background: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--rose);
    margin-bottom: 0.8rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.15;
    margin-bottom: 0.8rem;
}

.section-intro {
    font-family: var(--font-accent);
    font-size: 1.15rem;
    font-weight: 300;
    font-style: italic;
    color: var(--stone);
    max-width: 480px;
    margin: 0 auto;
}

/* Ornamental divider between sections */
.section-ornament {
    text-align: center;
    font-size: 1.8rem;
    color: var(--rose);
    padding: 58px;
    line-height: 1;
    letter-spacing: 0.4em;
    background: var(--ivory);
}


/* ═══════════════════════════════════════════════
   BIO CARDS — Premium editorial style
   ═══════════════════════════════════════════════ */

.bio-content {
    max-width: 950px;
    margin: 0 auto;
}

.bio-lead {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--charcoal-warm);
    line-height: 2;
    text-align: center;
    margin-bottom: 3.5rem;
}

.bio-lead strong {
    font-weight: 600;
    color: var(--charcoal);
}

.bio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.bio-card {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem;
    overflow: hidden;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.bio-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(184, 154, 126, 0.12);
}

/* Decorative number */
.bio-card-num {
    position: absolute;
    top: -8px;
    right: 16px;
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 400;
    color: rgba(184, 154, 126, 0.07);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

/* Top accent gradient line */
.bio-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rose), var(--gold), var(--rose-glow));
    border-radius: 16px 16px 0 0;
}

.bio-card-body {
    position: relative;
    z-index: 1;
}

.bio-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cream), var(--sand));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose-deep);
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.bio-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.bio-card ul {
    list-style: none;
}

.bio-card ul li {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--stone);
    padding: 0.35rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.bio-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 1px;
    background: var(--rose);
}

.bio-closing-quote {
    text-align: center;
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--stone);
    line-height: 2;
    padding-top: 2.5rem;
    border-top: 1px solid var(--sand);
    position: relative;
}

.bio-closing-quote::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--rose-glow);
    opacity: 0.3;
    line-height: 1;
}


/* ═══════════════════════════════════════════════
   SLIDER
   ═══════════════════════════════════════════════ */

.slider {
    max-width: 700px;
    margin: 0 auto;
}

.slider-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    max-height: 550px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--charcoal);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.55s var(--ease-out);
}

.slider-track img {
    min-width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--charcoal);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.6rem;
}

.slider-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--sand);
    background: var(--white);
    color: var(--charcoal);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
}

.slider-arrow:hover {
    background: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
}

.slider-label {
    text-align: center;
    min-width: 90px;
}

.slider-label span:first-child {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--charcoal);
}

.slider-year {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--mist);
}


/* ═══════════════════════════════════════════════
   MOSAIC
   ═══════════════════════════════════════════════ */

.mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.mosaic-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
    background: var(--sand);
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.mosaic-item:hover img {
    transform: scale(1.04);
}

.mosaic-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 30, 30, 0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.mosaic-item:hover::after {
    opacity: 1;
}

.mosaic-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem 1rem;
    z-index: 2;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.4s var(--ease);
}

.mosaic-item:hover .mosaic-label {
    opacity: 1;
    transform: translateY(0);
}


/* ═══════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 30, 30, 0.92);
    backdrop-filter: blur(12px);
}

.modal-panel {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 92%;
    max-height: 90vh;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    transform: translateY(10px);
    transition: transform 0.5s var(--ease-out);
}

.modal.active .modal-panel {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 20;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    color: var(--charcoal);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.15);
}

.modal-inner {
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.modal-inner img {
    max-width: 100%;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 6px;
}

.modal-text {
    font-family: var(--font-accent);
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--stone);
    line-height: 2;
    text-align: center;
    max-width: 600px;
}

@media (min-width: 768px) {
    .modal-inner.has-text {
        flex-direction: row;
        align-items: flex-start;
    }

    .modal-inner.has-text img {
        width: 48%;
        max-height: 65vh;
    }

    .modal-inner.has-text .modal-text {
        width: 48%;
        text-align: left;
    }
}


/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

.footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.55);
    padding: 5rem 0 3rem;
    text-align: center;
}

.footer-ornament {
    font-size: 1.2rem;
    color: var(--rose);
    margin-bottom: 1.5rem;
    letter-spacing: 0.3em;
}

.footer h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer p {
    font-weight: 300;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.footer-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}

.footer-links a:hover {
    background: var(--rose);
    border-color: var(--rose);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 2rem;
    letter-spacing: 0.15em;
}


/* ═══════════════════════════════════════════════
   REVEAL ANIMATION
   ═══════════════════════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ═══════════════════════════════════════════════
   RESPONSIVE — Mobile layout
   ═══════════════════════════════════════════════ */

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    /* Hero becomes full-bleed photo with overlay */
    .hero {
        flex-direction: column-reverse;
        min-height: 100vh;
    }

    .hero-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        min-height: auto;
        background: transparent;
        padding: 0 5% 15px;
        z-index: 3;
        justify-content: flex-end;
    }

    .hero-photo {
        position: absolute;
        inset: 0;
        width: 100%;
        min-height: 100vh;
        padding: 0;
        z-index: 1;
    }

    .hero-photo-frame {
        width: 100%;
        height: 100%;
    }

    #heroImg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 20%;
    }

    .hero-overlay {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 2;
        background: linear-gradient(to top,
                rgba(30, 30, 30, 0.95) 0%,
                rgba(30, 30, 30, 0.6) 35%,
                rgba(30, 30, 30, 0.1) 65%,
                transparent 100%);
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-filmstrip {
        padding-top: 1rem;
    }

    .hero-filmstrip .thumb {
        width: 40px;
        height: 40px;
    }

    .hero-cta {
        display: none;
    }

    .section {
        padding: 4.5rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .bio-cards {
        grid-template-columns: 1fr;
    }

    .slider-stage {
        aspect-ratio: auto;
        height: 400px;
    }

    .mosaic {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-filmstrip .thumb {
        width: 34px;
        height: 34px;
    }

    .slider-stage {
        height: 320px;
    }
}