/* ═══════════════════════════════════════════════
   1. STACKED CARD SECTIONS
   Sections rise from below, covering the previous one
   GSAP v2 controls: yPercent, scale, borderRadius
   ═══════════════════════════════════════════════ */

.expo-stacked-section {
    position: relative;
    overflow: hidden;
    will-change: transform, filter, border-radius;
    /* GSAP sets z-index dynamically */
}

.expo-stacked-section:first-child {
    border-radius: 0;
}

/* Shadow overlay on previous section as next one covers it */
.expo-stacked-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
    z-index: 100;
    transition: background 0.5s;
}

/* Parallax background image container */
.expo-parallax-bg {
    position: absolute;
    inset: -15% 0;
    z-index: 0;
    will-change: transform;
}

.expo-parallax-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expo-stacked-section>.e-con-inner,
.expo-stacked-section>.elementor-widget-wrap {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════
   2. TEXT MASK REVEAL
   Text slides up from behind a mask on scroll
   ═══════════════════════════════════════════════ */

.expo-text-reveal {
    overflow: hidden;
}

.expo-text-reveal>* {
    transform: translateY(100%);
    opacity: 0;
    transition: none;
    /* GSAP handles this */
}

.expo-text-reveal.revealed>* {
    transform: translateY(0);
    opacity: 1;
}

/* Line-by-line reveal (split into .expo-reveal-line) */
.expo-reveal-line {
    display: block;
    overflow: hidden;
}

.expo-reveal-line>span {
    display: inline-block;
    transform: translateY(110%);
}

/* Word reveal animation class */
.expo-word-reveal {
    opacity: 0;
    transform: translateY(40px);
}

.expo-word-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   3. DISPLAY TYPOGRAPHY — Giant Serif Titles
   ═══════════════════════════════════════════════ */

.expo-display {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: var(--fw-regular);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0;
}

.expo-display-sm {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: var(--fw-regular);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}

.expo-display .expo-highlight {
    color: var(--expo-bege);
    font-style: italic;
}

.expo-display-dark .expo-highlight {
    color: var(--expo-vermelho);
}

/* Subtitle / Overline */
.expo-overline {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 24px;
    opacity: 0.7;
}

/* Body text — elegant */
.expo-body-lg {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    max-width: 560px;
    color: inherit;
    opacity: 0.85;
}

/* ═══════════════════════════════════════════════
   4. PARALLAX FLOATING ELEMENTS
   ═══════════════════════════════════════════════ */

.expo-parallax-container {
    position: relative;
    overflow: visible;
}

.expo-parallax-float {
    position: absolute;
    will-change: transform;
    z-index: 2;
    pointer-events: none;
}

.expo-parallax-float img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* Floating badge / stamp */
.expo-floating-badge {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.3;
    will-change: transform;
    animation: expo-spin 30s linear infinite;
}

@keyframes expo-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════════════
   5. SECTION COLOR THEMES
   ═══════════════════════════════════════════════ */

.expo-section-dark {
    background: var(--expo-preto);
    color: var(--expo-branco);
}

.expo-section-cream {
    background: #F5F0E8;
    color: var(--expo-preto);
}

.expo-section-terracotta {
    background: #C4A882;
    color: var(--expo-preto);
}

.expo-section-gold {
    background: #D4A844;
    color: var(--expo-preto);
}

.expo-section-blue {
    background: var(--expo-azul);
    color: var(--expo-branco);
}

.expo-section-red {
    background: var(--expo-vermelho);
    color: var(--expo-branco);
}

.expo-section-white {
    background: var(--expo-branco);
    color: var(--expo-preto);
}

/* ═══════════════════════════════════════════════
   6. HERO — Fullscreen Dark
   ═══════════════════════════════════════════════ */

.expo-hero-fullscreen {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 40px 80px;
    overflow: hidden;
}

.expo-hero-fullscreen .expo-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.expo-hero-fullscreen .expo-hero-media {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    max-width: 70%;
}

.expo-hero-fullscreen .expo-hero-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Scroll indicator */
.expo-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: inherit;
    opacity: 0.6;
    animation: expo-bounce 2s ease infinite;
}

.expo-scroll-indicator svg {
    width: 24px;
    height: 24px;
}

.expo-scroll-indicator .expo-scroll-circle {
    width: 40px;
    height: 40px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes expo-bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ═══════════════════════════════════════════════
   7. PILL BUTTONS (CTA)
   ═══════════════════════════════════════════════ */

.expo-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none;
}

.expo-pill-primary {
    background: var(--expo-bege);
    color: var(--expo-preto);
}

.expo-pill-primary:hover {
    background: var(--expo-vermelho);
    color: var(--expo-branco);
    transform: scale(1.03);
}

.expo-pill-outline {
    background: transparent;
    color: inherit;
    border: 1.5px solid currentColor;
}

.expo-pill-outline:hover {
    background: var(--expo-branco);
    color: var(--expo-preto);
    border-color: var(--expo-branco);
}

/* Arrow in pill — slides right on hover */
.expo-pill .expo-pill-arrow {
    display: inline-flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.expo-pill:hover .expo-pill-arrow {
    transform: translateX(6px);
}

/* ═══════════════════════════════════════════════
   8. SECTION LAYOUT HELPERS
   ═══════════════════════════════════════════════ */

.expo-section-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 100px 40px;
}

.expo-section-inner-lg {
    padding: 140px 40px;
}

.expo-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.expo-split-reverse {
    direction: rtl;
}

.expo-split-reverse>* {
    direction: ltr;
}

/* ═══════════════════════════════════════════════
   9. IMAGE REVEAL (clip-path)
   ═══════════════════════════════════════════════ */

.expo-img-reveal {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.expo-img-reveal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.expo-img-reveal.revealed img {
    transform: scale(1);
}

/* ═══════════════════════════════════════════════
   10. SCATTERED PHOTOS — Hennart Gallery Montage
   Floating images at various positions with slight
   rotations and unique parallax speeds
   ═══════════════════════════════════════════════ */

.expo-scattered-photos {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expo-scatter-item {
    position: absolute;
    will-change: transform;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.expo-scatter-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Predefined positions for scattered photos */
.expo-scatter-item:nth-child(1) {
    width: clamp(180px, 22vw, 320px);
    height: clamp(240px, 28vw, 420px);
    top: 5%;
    left: 5%;
    transform: rotate(-4deg);
}

.expo-scatter-item:nth-child(2) {
    width: clamp(160px, 18vw, 260px);
    height: clamp(160px, 18vw, 260px);
    top: 8%;
    right: 8%;
    transform: rotate(3deg);
}

.expo-scatter-item:nth-child(3) {
    width: clamp(200px, 25vw, 380px);
    height: clamp(140px, 16vw, 240px);
    bottom: 15%;
    left: 15%;
    transform: rotate(2deg);
}

.expo-scatter-item:nth-child(4) {
    width: clamp(140px, 15vw, 220px);
    height: clamp(200px, 22vw, 330px);
    bottom: 10%;
    right: 12%;
    transform: rotate(-3deg);
}

.expo-scatter-item:nth-child(5) {
    width: clamp(170px, 20vw, 300px);
    height: clamp(120px, 14vw, 200px);
    top: 45%;
    left: 35%;
    transform: rotate(1deg);
    z-index: 3;
}

.expo-scatter-item:nth-child(6) {
    width: clamp(130px, 14vw, 200px);
    height: clamp(130px, 14vw, 200px);
    top: 35%;
    right: 25%;
    transform: rotate(-2deg);
    border-radius: 50%;
}

/* Center text overlay for scattered section */
.expo-scattered-title {
    position: relative;
    z-index: 10;
    text-align: center;
    pointer-events: none;
}

.expo-scattered-title h2 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: var(--fw-regular);
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Reduce Animations on Mobile
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .expo-display {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .expo-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .expo-section-inner {
        padding: 60px 24px;
    }

    .expo-stacked-section {
        border-radius: 24px 24px 0 0;
    }

    .expo-floating-badge {
        width: 100px;
        height: 100px;
        font-size: 0.6rem;
    }
}

@media (max-width: 767px) {
    .expo-display {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .expo-display-sm {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }

    /* Hero fullscreen: 1 tela no mobile, sem scroll inicial */
    .expo-hero-fullscreen {
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        min-height: 0;
        padding: max(72px, calc(56px + env(safe-area-inset-top))) 20px 24px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .expo-hero-fullscreen .expo-scroll-indicator {
        bottom: 16px;
    }

    .expo-section-inner {
        padding: 48px 16px;
    }

    .expo-stacked-section {
        border-radius: 20px 20px 0 0;
    }

    .expo-parallax-float {
        display: none;
    }

    .expo-pill {
        padding: 14px 28px;
        font-size: 13px;
    }

    /* Scattered photos: stack on mobile */
    .expo-scattered-photos {
        min-height: auto;
        padding: 60px 16px;
    }

    .expo-scatter-item {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin-bottom: 16px;
        border-radius: 12px !important;
    }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

    .expo-text-reveal>*,
    .expo-reveal-line>span,
    .expo-word-reveal,
    .expo-img-reveal img {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }

    .expo-floating-badge {
        animation: none;
    }

    .expo-scroll-indicator {
        animation: none;
    }
}