:root {
    --color-primary: #4e161b; /* Dark Burgundy */
    --color-light: #fff9f9; /* Off White */
    --color-accent: #7a232b; /* Lighter Burgundy for hover */
    --color-gold: #bd9250; /* Golden accent */
    
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --container-width: 1200px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-primary);
    color: var(--color-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Setup */
.global-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.03"/></svg>');
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: normal;
}
@media (max-width: 768px) {
    .global-noise {
        opacity: 0.5;
    }
}

.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-light);
    z-index: -2;
}

/* Glowing Orbs for the Hero - REMOVED to prevent dark gradient bleeding into other sections */

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 6vw;
}

.gallery-section,
.testimonials-section,
.site-footer {
    content-visibility: auto;
    contain-intrinsic-size: 900px;
}

.client-card,
.marquee-card,
.testimonial-card,
.gallery-item,
.founder-polaroid {
    contain: layout paint;
}

/* Header */
.main-header {
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 110;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Glassmorphism base for the fixed header */
    background: rgba(42, 8, 10, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    will-change: transform;
    border-bottom: none;
    box-shadow: none;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    opacity: 0; /* Handled by JS fade-in */
    display: inline-block;
    text-decoration: none;
}

.logo img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.social-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 2.5rem;
    margin-left: 0.5rem;
}

.social-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--color-light);
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
}

.social-nav a:hover {
    color: var(--color-primary);
    background: var(--color-gold);
    border-color: var(--color-gold);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 20px rgba(189, 146, 80, 0.25);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--color-light);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hover Animation - Underline */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--color-light);
    transition: width 0.3s ease;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--color-gold);
}

.nav-icon,
.nav-sub,
.nav-arrow,
.mobile-nav-cta,
.mobile-nav-social,
.mobile-nav-logo {
    display: none;
}

/* Hamburger Menu Default (Hidden on Desktop) */
.hamburger-menu {
    display: none;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem; /* Space for header */
    padding-bottom: clamp(6rem, 12vh, 9rem);
    position: relative;
    z-index: 1; /* Below the next section */
    overflow: hidden;
    background-color: var(--color-light);
}

.hero-bg-video,
.hero-final-frame {
    position: absolute;
    top: clamp(3rem, 5vh, 5rem);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100% - clamp(3rem, 5vh, 5rem));
    object-fit: cover;
    object-position: center top;
    z-index: 0;
}

.hero-final-frame {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.006);
    transition: opacity 0.16s ease-out;
    will-change: opacity;
}

.hero-final-frame.is-visible {
    opacity: 1;
}

.hero-bg-video.is-frozen {
    opacity: 1;
    filter: none;
    transform: scale(1.006);
    image-rendering: auto;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 249, 249, 0.92) 0%, rgba(255, 249, 249, 0.68) 38%, rgba(255, 249, 249, 0.16) 64%, rgba(255, 249, 249, 0.02) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Watermark Bússola */
.bg-watermark {
    display: none;
    position: absolute;
    top: 50%;
    right: -5%; /* Positioned behind the hand */
    left: auto;
    transform: translateY(-50%) rotate(-15deg);
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    opacity: 0.04; /* Very subtle */
    pointer-events: none;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Typography & Animations setup */
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 700;
    line-height: 0.98;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    color: var(--color-primary);
}

.highlight {
    color: var(--color-light);
    font-style: italic;
    font-family: var(--font-serif);
    font-weight: 400;
}

/* Reveal Animation wrappers */
.line-wrapper {
    overflow: hidden; /* Hides text before it slides up */
    display: block;
    padding-bottom: 0.1em; /* Prevent descender clipping */
}

.line-text {
    display: block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s ease-out;
}

.line-text.reveal {
    transform: translateY(0);
    opacity: 1;
}

.hero-slogan {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.hero-description {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    color: rgba(78, 22, 27, 0.86);
    font-weight: 300;
}

/* Fade in classes - GTA VI Style with Blur */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.fade-in-up.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Blur reveal variant - only applied to specific elements */
.blur-reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(6px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1),
                filter 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.blur-reveal.reveal {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
    transition-delay: 0.8s;
}

.fade-in-right.reveal {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 { transition-delay: 0.4s; }
.delay-2 { transition-delay: 0.6s; }
.delay-3 { transition-delay: 0.8s; }

/* Navigation underline animation */
.nav-link {
    position: relative;
    overflow: visible;
}

.nav-link::before {
    content: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.45rem;
    width: 100%;
    height: 2px;
    background: var(--color-gold);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(189, 146, 80, 0.38);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Hero Depth Zoom on Scroll */
.hero-grid {
    will-change: transform, opacity;
}

/* Mouse Parallax Layer */
.parallax-mouse {
    will-change: transform;
    transition: transform 0.15s ease-out;
}

/* Button Styles */
.btn-primary,
.btn-services {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    text-decoration: none;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    will-change: transform;
}

.btn-primary:hover,
.btn-services:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(78, 22, 27, 0.15);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-hover-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    border-radius: 50px;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), background-color 0.4s ease;
    z-index: 1;
}

.btn-primary {
    color: var(--color-light);
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    border-color: var(--color-gold);
}

.btn-primary:hover .btn-text {
    color: var(--color-primary);
}

.btn-primary:hover .btn-hover-fill {
    background-color: var(--color-gold);
    transform: scale(1.5);
    border: 1px solid var(--color-gold);
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-section {
        align-items: flex-start;
        padding-top: 38vh;
        padding-bottom: 3rem;
    }

    .hero-bg-video,
    .hero-final-frame {
        top: 2.8rem; /* Raised slightly from 4.2rem to pull the image and video up */
        bottom: 0;
        height: calc(100% - 2.8rem);
        object-position: 85% top !important;
    }

    .hero-video-overlay {
        /* Adjusted gradient colors to smoothly highlight face starting at 2.8rem and provide a light canvas for centered text at the bottom */
        background: linear-gradient(180deg, 
            rgba(255, 249, 249, 0.05) 0%, 
            rgba(255, 249, 249, 0.2) 32%, 
            rgba(255, 249, 249, 0.82) 58%, 
            rgba(255, 249, 249, 0.95) 100%) !important;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.6rem);
        margin-bottom: 1rem;
        align-items: center; /* Centers each line of the title horizontally */
    }

    .hero-slogan {
        font-size: clamp(1rem, 4vw, 1.1rem);
        margin-bottom: 0.8rem;
    }
    
    .hero-description {
        font-size: 1.05rem;
        margin-bottom: 1.2rem; /* Raised the button by decreasing margin-bottom from 2rem to 1.2rem */
        text-align: justify;
    }
    
    .btn-primary {
        width: 100%;
        max-width: 360px; /* Keep it elegant and proportioned on larger mobile devices */
    }

    .transition-wave {
        z-index: 0;
        transform: translateY(-99%);
        top: 45px;
    }

    .transition-wave svg {
        height: 90px;
    }

    .about-section {
        margin-top: 0;
        padding-top: 0.5rem;
        padding-bottom: 10rem;
    }
}

/* Notebook adjustments (Dell, Acer, AOC e notebooks 14-15" comuns) */
@media (min-width: 1025px) and (max-width: 1600px) and (max-height: 950px) {
    .hero-section {
        padding-top: clamp(6.5rem, 11vh, 8.5rem);
        padding-bottom: clamp(4rem, 8vh, 6rem);
    }

    .hero-title {
        font-size: clamp(2.6rem, 4.2vw, 4rem);
        line-height: 1.08;
        margin-bottom: 1.4rem;
    }

    .hero-slogan {
        font-size: clamp(1.05rem, 1.5vw, 1.4rem);
        margin-bottom: 1.2rem;
    }

    .hero-description {
        font-size: clamp(0.9rem, 1.05vw, 1.05rem);
        margin-bottom: 1.8rem;
    }

    /* Services section - prevent cards from overflowing */
    .services-scroll-container {
        padding: 5rem 0 1rem 0;
        min-height: auto;
    }

    .services-main-layout {
        gap: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .services-polaroid {
        width: min(75%, 300px);
        padding: 0.8rem 0.8rem 3rem;
    }

    .services-lead {
        margin-top: 1rem;
        margin-bottom: 1.2rem;
    }

    .sustentation-list li {
        margin-bottom: 0.85rem;
    }

    .btn-services {
        margin-top: 1.2rem;
    }

    .services-marquee {
        margin-bottom: 1.5rem;
    }

    .marquee-card {
        width: 290px;
        height: 160px;
        padding: 1.3rem 1.5rem;
    }

    .marquee-track {
        gap: 1.5rem;
        padding: 1rem 0;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-bg-video,
    .hero-final-frame {
        left: 0;
        width: 100%;
        object-position: 80% 20%;
    }

    .hero-content {
        max-width: 55%;
    }

    .hero-description {
        font-size: 1.25rem;
        max-width: 100%;
    }

    .hero-cta-wrapper .btn-primary {
        padding: 1.1rem 2.2rem;
        font-size: 1.05rem;
    }

    .bussola-slogan {
        font-size: clamp(3rem, 6vw, 4rem);
        max-width: 900px;
    }

    #bussola-video .bussola-slogan {
        font-size: clamp(2rem, 3.8vw, 2.8rem) !important;
        max-width: 820px !important;
    }

    /* Fix white gap at bottom of video section on tablet */
    .video-scrub-section {
        background-color: #000000 !important;
    }
    
    .video-sticky-wrapper {
        height: 100vh !important;
        min-height: 100vh !important;
        background-color: #000000 !important;
    }
    
    .scroll-video {
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        object-fit: cover !important;
        object-position: center 60% !important;
        transform: translate(-50%, -50%) scale(1.3) !important;
    }

    /* Tablet: pull essence closer to badge */
    .contact-copy {
        gap: 0.8rem;
    }
    .contact-copy p {
        margin-bottom: 0;
    }
    .contact-essence {
        margin-top: 1.2rem;
    }
}

/* About Section */
.about-section {
    padding: 12rem 0 0 0;
    position: relative;
    background-color: var(--color-light);
    color: var(--color-primary);
    z-index: 4; /* Stack above services-section (z-index: 3) to allow cards to overlap */
    overflow: visible;
}

/* Subtle dot pattern background */
.about-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../images/grunge-grey-abstract-compass-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.25;
}

/* Elegant Transition Wave */
.transition-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(-99%);
    line-height: 0;
    z-index: 10;
    pointer-events: none;
}

.transition-wave svg {
    display: block;
    width: calc(100% + 2px);
    height: 120px; /* Controls wave height */
}

.transition-wave .wave-fill {
    fill: transparent;
}

.transition-wave .wave-stroke {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Animação disparada pelo JS (IntersectionObserver) */
.transition-wave .draw-path.reveal {
    stroke-dashoffset: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

/* Left Sticky Content */
.about-content {
    position: relative;
    height: 100%;
}

.sticky-wrapper {
    position: sticky;
    top: 15vh;
    padding-bottom: 2rem;
}

.about-content .badge {
    margin-bottom: 0.75rem;
}

.about-content .section-title {
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    background: rgba(122, 35, 43, 0.05);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 4.5vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
}

.section-title .highlight {
    color: var(--color-accent);
    font-style: italic;
    position: relative;
    display: inline-block;
}



.about-lead {
    font-size: clamp(1.15rem, 3.5vw, 1.4rem);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.about-text {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: rgba(78, 22, 27, 0.85);
    font-weight: 400;
}

@media (max-width: 768px) {
    .about-text,
    .about-lead {
        text-align: justify;
    }
}

.about-cta {
    margin-top: 2.5rem;
}

/* Typewriter Effect */
.typewriter-target {
    display: inline-block;
    min-width: 1ch;
}

.typewriter-target.typing::after {
    content: '|';
    animation: blink 0.7s step-end infinite;
    color: var(--color-accent);
    margin-left: 2px;
    font-weight: 400;
}

@keyframes blink {
    50% { opacity: 0; }
}



/* Right Scrolling Cards */
.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-image-img {
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(78, 22, 27, 0.3));
}

.detail-card {
    position: sticky;
    top: 15vh;
    background: #ffffff;
    border: 1px solid rgba(78, 22, 27, 0.08);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    transition: transform 0.1s ease-out, box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 30px rgba(78, 22, 27, 0.05); /* Shadow pointing up to show separation */
    overflow: hidden;
    --mouse-x: 50%;
    --mouse-y: 50%;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Borda dourada brilhante dinâmica */
.detail-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(189, 146, 80, 0.7),
        transparent 40%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.detail-card:hover::after {
    opacity: 1;
}

.detail-card:nth-child(1) { top: calc(15vh + 0px); z-index: 10; }
.detail-card:nth-child(2) { top: calc(15vh + 20px); z-index: 11; }
.detail-card:nth-child(3) { top: calc(15vh + 40px); z-index: 12; }
.detail-card:nth-child(4) { top: calc(15vh + 60px); z-index: 13; }

.detail-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(122, 35, 43, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.detail-card:hover {
    box-shadow: 0 20px 40px rgba(78, 22, 27, 0.08);
    border-color: rgba(189, 146, 80, 0.3);
}

.detail-card:hover::before {
    opacity: 1;
}

.card-watermark {
    position: absolute;
    right: -10px;
    bottom: -30px;
    font-size: 10rem;
    font-family: var(--font-serif);
    font-weight: 800;
    color: rgba(78, 22, 27, 0.02);
    line-height: 1;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), color 0.6s ease;
    z-index: 0;
}

.detail-card:hover .card-watermark {
    transform: translateY(-15px) scale(1.05);
    color: rgba(78, 22, 27, 0.05);
}

.card-icon-wrapper {
    position: relative;
    z-index: 1;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(122, 35, 43, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(122, 35, 43, 0.1);
    transition: all 0.4s ease;
}

.detail-card:hover .card-icon-wrapper {
    background: var(--color-primary);
    transform: scale(1.1) rotate(5deg);
}

.card-icon-svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    transition: color 0.4s ease;
}

.detail-card:hover .card-icon-svg {
    color: #ffffff;
}

.card-title {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.card-text {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(78, 22, 27, 0.8);
    font-weight: 400;
}

/* Media Queries */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .sticky-wrapper {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .about-grid {
        gap: 2.5rem;
    }

    .about-image {
        order: 1;
    }

    .about-content {
        order: 2;
    }

    .about-image-img {
        max-height: 54vh;
        width: min(92%, 400px);
    }

    .about-details {
        grid-template-columns: 1fr;
    }
}

/* Tablet: About section — image on top, content below centered */
@media (min-width: 769px) and (max-width: 992px) {
    .about-section {
        padding-top: 6rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: center;
    }

    /* Image on top */
    .about-image {
        order: -1;
        max-width: none;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    .about-image-img {
        max-height: 45vh;
        object-fit: contain;
    }

    /* Content below, centered */
    .about-content {
        order: 1;
        text-align: center;
    }

    .about-content .sticky-wrapper {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-content .badge {
        margin: 0 auto 0.5rem;
    }

    .about-content .section-title {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0.75rem;
    }

    .about-lead {
        text-align: justify;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .about-text {
        text-align: justify;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .about-cta {
        margin-top: 2rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Video Section */
.video-scrub-section {
    position: relative;
    height: 300vh;
    background-color: #000000;
    z-index: 2;
    overflow: hidden;
}

.video-sticky-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    opacity: 1;
    transition: opacity 0.75s ease;
    pointer-events: auto;
}

.video-scrub-section.is-active .video-sticky-wrapper {
    opacity: 1;
    pointer-events: auto;
}

/* Video always full screen behind everything */
.scroll-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    transform: translate(-50%, -50%) scale(1.02);
    object-fit: cover;
    object-position: center center;
    z-index: 1;
    opacity: 0;
    will-change: transform, opacity;
}

/* Cloud Overlay and Floating Layers */
.video-cloud-overlay {
    position: absolute;
    inset: 0;
    z-index: 2; /* Sits above the video but behind dark overlay and text */
    pointer-events: none;
    overflow: hidden;
    will-change: opacity, transform;
    opacity: 1;
    transform: scale(1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cloud-layer {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(255, 254, 252, 0.7) 40%, rgba(255, 254, 252, 0) 70%);
    opacity: 0.9;
    will-change: transform, opacity;
}

/* Cloud 1: Large center-left cloud with slow drift */
.cloud-1 {
    width: 130%;
    height: 130%;
    top: -15%;
    left: -25%;
    animation: cloudDriftSlow 32s ease-in-out infinite alternate;
}

/* Cloud 2: Top-right cloud with soft warm cream/gold tint */
.cloud-2 {
    width: 110%;
    height: 110%;
    top: -35%;
    right: -15%;
    background: radial-gradient(circle, rgba(255, 249, 240, 0.95) 0%, rgba(255, 246, 235, 0.6) 45%, rgba(255, 246, 235, 0) 75%);
    filter: blur(90px);
    animation: cloudDriftMedium 25s ease-in-out infinite alternate-reverse;
}
@media (max-width: 768px) {
    .cloud-2 {
        filter: blur(40px);
    }
}

/* Cloud 3: Bottom-center cloud with soft, weightless pink/burgundy touch */
.cloud-3 {
    width: 120%;
    height: 120%;
    bottom: -35%;
    left: 15%;
    background: radial-gradient(circle, rgba(255, 242, 244, 0.9) 0%, rgba(255, 232, 236, 0.5) 50%, rgba(255, 232, 236, 0) 75%);
    filter: blur(80px);
    animation: cloudDriftSlow2 36s ease-in-out infinite alternate;
}
@media (max-width: 768px) {
    .cloud-3 {
        filter: blur(35px);
    }
}

@keyframes cloudDriftSlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 4%) scale(1.08); }
}

@keyframes cloudDriftMedium {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-6%, -5%) scale(1.12); }
}

@keyframes cloudDriftSlow2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-4%, 5%) scale(1.08); }
}

.video-reveal-overlay {
    position: absolute;
    inset: 0;
    background: #000000;
    opacity: 1;
    z-index: 2;
    pointer-events: none;
    will-change: opacity;
}

/* Dark overlay that appears on scroll */
.video-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 8, 10, 1);
    opacity: 0.28;
    z-index: 3;
    pointer-events: none;
    will-change: opacity;
}

/* Big BÚSSOLA text - semi transparent so video shows through */
.bussola-text-layer {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    margin-bottom: 2rem;
    width: min(92vw, 980px);
    text-align: center;
}

/* Notebook / desktop: empurra as escritas para baixo, longe do topo */
@media (min-width: 1025px) {
    .bussola-text-layer {
        padding-top: 12vh;
        justify-content: flex-start;
    }
}

.bussola-zoom-text {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 13vw, 12rem);
    font-weight: 700;
    color: rgba(255, 249, 249, 0.88);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
    opacity: 0;
    transform: translateY(80px) scale(1);
    text-shadow: none;
    transform-origin: center;
    will-change: transform, opacity;
    
    /* Suavização de entrada e saída no scroll (Lerp Filter) */
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bussola-slogan {
    max-width: 760px;
    margin-top: clamp(0.9rem, 2vw, 1.4rem);
    color: rgba(255, 249, 249, 0.92);
    font-family: var(--font-sans);
    font-size: clamp(1.1rem, 2.2vw, 1.55rem);
    font-weight: 500;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(28px);
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
    will-change: opacity, transform;
    
    /* Suavização de entrada e saída no scroll (Lerp Filter) */
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bussola-divider {
    width: clamp(200px, 40vw, 360px);
    margin-top: clamp(0.8rem, 1.8vw, 1.5rem);
    margin-bottom: clamp(0.4rem, 1.2vw, 0.9rem);
    opacity: 0;
    transform: translateY(28px);
    will-change: opacity, transform;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Suavização de entrada e saída no scroll (Lerp Filter) */
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bussola-divider svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Caption below the text */
.video-caption {
    position: relative;
    z-index: 4;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(40px);
    width: 90%;
    max-width: 700px;
    will-change: opacity, transform;
}

.caption-text {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 249, 249, 0.9);
    line-height: 1.4;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.result-section {
    position: relative;
    z-index: 7;
    padding: 8rem 0 10rem;
    min-height: 430vh;
    background: var(--color-light);
    color: var(--color-primary);
}

.result-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
    position: sticky;
    top: 6rem;
    min-height: calc(100vh - 6rem);
}

.result-content {
    max-width: 760px;
    position: relative;
    top: auto;
}

.result-content .section-title {
    margin-bottom: 2rem;
}

.result-title-animate {
    letter-spacing: 0.02em;
    transition-property: opacity, transform, filter, letter-spacing;
}

.result-title-animate.reveal {
    letter-spacing: 0;
}

.result-content .highlight {
    color: var(--color-accent);
}

.result-section .result-lead {
    transition-delay: 0.12s;
}

.result-section .result-list li:nth-child(1) {
    transition-delay: 0.22s;
}

.result-section .result-list li:nth-child(2) {
    transition-delay: 0.30s;
}

.result-section .result-list li:nth-child(3) {
    transition-delay: 0.38s;
}

.result-section .result-list li:nth-child(4) {
    transition-delay: 0.46s;
}

.result-section .result-list li:nth-child(5) {
    transition-delay: 0.54s;
}

.result-section .result-outcome {
    transition-delay: 0.66s;
}

.result-section .result-cards {
    transition-delay: 0.24s;
}

.result-lead {
    color: var(--color-accent);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.result-list {
    list-style: none;
    display: grid;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.result-list li {
    color: rgba(78, 22, 27, 0.88);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.55;
    padding-left: 2.2rem;
    position: relative;
}

.result-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-gold);
    font-weight: 800;
}

.result-outcome {
    border-left: 4px solid var(--color-gold);
    padding: 1.4rem 0 1.4rem 1.6rem;
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.55);
}

.result-cards {
    display: block;
    position: relative;
    align-self: start;
    min-height: 720px;
    padding-top: 1rem;
}

.result-card {
    --card-rotation: -2deg;
    --active-z: var(--stack-index, 0);
    position: absolute;
    top: calc(var(--stack-index, 0) * 74px);
    left: 0;
    right: 0;
    padding: 1.55rem 1.7rem;
    border-radius: 12px; /* Smoother corner radius */
    border: 1px solid rgba(78, 22, 27, 0.08);
    background: #ffffff;
    box-shadow: 
        0 10px 30px -10px rgba(78, 22, 27, 0.03), 
        0 20px 40px -15px rgba(78, 22, 27, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.01);
    opacity: 0;
    pointer-events: none;
    transform: translateY(72px) rotate(0deg) scale(0.96);
    margin-bottom: 0;
    cursor: pointer;
    transition: 
        opacity 0.65s ease, 
        transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), 
        border-color 0.35s ease, 
        box-shadow 0.35s ease, 
        background-color 0.35s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.result-card.is-stacked {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) rotate(var(--card-rotation)) scale(1);
}

.result-card:hover {
    transform: translateY(-8px) rotate(var(--card-rotation)) scale(1.01); /* Elevated floating */
    border-color: rgba(189, 146, 80, 0.45);
    box-shadow: 
        0 15px 35px -10px rgba(78, 22, 27, 0.05), 
        0 30px 60px -15px rgba(78, 22, 27, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.02);
}

.result-card.is-expanded:hover {
    transform: translateY(-56px) rotate(0deg) scale(1.08);
}

.result-card.is-expanded {
    transform: translateY(-56px) rotate(0deg) scale(1.08);
    box-shadow: 
        0 20px 40px -15px rgba(78, 22, 27, 0.1), 
        0 40px 80px -20px rgba(78, 22, 27, 0.18),
        0 1px 10px rgba(0, 0, 0, 0.03);
    z-index: 100 !important;
}

.result-card h3 {
    color: var(--color-primary);
    font-size: clamp(1.15rem, 3vw, 1.28rem);
    line-height: 1.2;
    margin-bottom: 0.65rem;
}

.result-card p {
    color: rgba(78, 22, 27, 0.76);
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    line-height: 1.6;
}

.result-card:nth-child(1),
.result-card:nth-child(4) {
    background: rgba(78, 22, 27, 0.98);
    color: var(--color-light);
    border-color: rgba(255, 249, 249, 0.15);
}

.result-card:nth-child(2),
.result-card:nth-child(5) {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-primary);
}

.result-card:nth-child(3),
.result-card:nth-child(6) {
    background: rgba(190, 147, 83, 0.98);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.result-card:nth-child(1) { --stack-index: 0; --card-rotation: -2deg; z-index: 1; }
.result-card:nth-child(2) { --stack-index: 1; --card-rotation: 2deg; z-index: 2; }
.result-card:nth-child(3) { --stack-index: 2; --card-rotation: -1.7deg; z-index: 3; }
.result-card:nth-child(4) { --stack-index: 3; --card-rotation: 1.7deg; z-index: 4; }
.result-card:nth-child(5) { --stack-index: 4; --card-rotation: -1.4deg; z-index: 5; }
.result-card:nth-child(6) { --stack-index: 5; --card-rotation: 1.4deg; z-index: 6; }

.result-card:nth-child(1) h3,
.result-card:nth-child(1) p,
.result-card:nth-child(3) h3,
.result-card:nth-child(3) p,
.result-card:nth-child(4) h3,
.result-card:nth-child(4) p,
.result-card:nth-child(6) h3,
.result-card:nth-child(6) p {
    color: #ffffff;
}

.result-card:nth-child(2) h3,
.result-card:nth-child(2) p,
.result-card:nth-child(5) h3,
.result-card:nth-child(5) p {
    color: var(--color-primary);
}

.result-section-old[hidden] {
    display: none !important;
}

.testimonials-section {
    position: relative;
    min-height: auto;
    margin-top: clamp(60px, 7vw, 110px);
    padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(5rem, 9vw, 8rem);
    background: #4e161b;
    color: #ffffff;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    left: -8%;
    right: -8%;
    top: clamp(-110px, -7vw, -60px);
    height: clamp(120px, 11vw, 190px);
    background: #4e161b;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: -1;
}

.testimonials-bg-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122, 35, 43, 0.55) 0%, rgba(122, 35, 43, 0.2) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(2px);
}

.testimonials-bg-shape.shape-top {
    width: clamp(280px, 35vw, 520px);
    height: clamp(280px, 35vw, 520px);
    top: -8%;
    right: -6%;
}

.testimonials-bg-shape.shape-bottom {
    width: clamp(320px, 40vw, 600px);
    height: clamp(320px, 40vw, 600px);
    bottom: -10%;
    left: -8%;
}

.testimonials-bg-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
    background:
        radial-gradient(ellipse at 20% 85%, rgba(189, 146, 80, 0.15) 0%, transparent 50%);
}

.testimonials-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(2rem, 4vw, 3rem);
}

.testimonials-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    max-width: 640px;
}

.testimonials-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.testimonials-title {
    color: #ffffff;
    text-align: center;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin: 0;
}

.testimonials-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--color-gold);
    margin: 1rem auto 0;
}

.testimonials-lead {
    color: rgba(255, 249, 249, 0.75);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.6;
    max-width: 540px;
    text-align: center;
}

.testimonials-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.testimonials-track-wrapper {
    flex: 1;
    position: relative; /* WebKit clipping fix */
    overflow: hidden;
    border-radius: 24px;
    max-width: 680px;
}

.testimonials-track {
    display: flex;
    gap: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.testimonial-card {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 460px; /* Uniform height on desktop */
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: clamp(1.25rem, 2.2vw, 2rem);
    background: #fff9f9;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(42, 8, 10, 0.24);
    color: var(--color-primary);
    transition: transform 0.45s ease, opacity 0.45s ease;
    box-sizing: border-box;
}

/* Desktop: layout de 2 colunas: escritos na esquerda, depoimentos na direita */
@media (min-width: 1025px) {
    .testimonials-container {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        grid-template-areas: 
            "header carousel"
            "header dots";
        align-items: center;
        max-width: 1200px;
        gap: 2rem 4rem;
    }

    .testimonials-header {
        grid-area: header;
        text-align: left;
        align-items: flex-start;
        max-width: 100%;
    }

    .testimonials-title {
        text-align: left;
    }

    .testimonials-title::after {
        margin: 1rem 0 0;
    }

    .testimonials-lead {
        text-align: left;
        max-width: 100%;
    }

    .testimonials-carousel {
        grid-area: carousel;
        gap: 1.5rem;
    }

    .testimonials-track-wrapper {
        overflow: hidden;
        border-radius: 24px;
    }

    .testimonial-dots {
        grid-area: dots;
        margin-top: 1rem;
    }
}

.testimonial-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(78, 22, 27, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-logo img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.testimonial-company {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-client {
    color: var(--color-primary);
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.testimonial-category {
    color: rgba(78, 22, 27, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

.testimonial-category:empty {
    display: none;
}

.testimonial-stars {
    color: var(--color-gold);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.testimonial-body {
    position: relative;
    padding-top: 1rem;
    border-top: 1px solid rgba(78, 22, 27, 0.1);
}

.testimonial-body::before {
    content: '“';
    position: absolute;
    top: 0.25rem;
    right: 0;
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1;
    color: rgba(78, 22, 27, 0.08);
    pointer-events: none;
}

.testimonial-text {
    color: rgba(78, 22, 27, 0.9);
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-text p + p {
    margin-top: 0.8rem;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(78, 22, 27, 0.08);
}

.testimonial-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(78, 22, 27, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.testimonial-author {
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.testimonial-role {
    color: rgba(78, 22, 27, 0.65);
    font-size: 0.85rem;
    margin: 0;
}

.testimonial-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 249, 249, 0.25);
    background: rgba(255, 249, 249, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.testimonial-nav:hover,
.testimonial-nav:focus-visible {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-primary);
    outline: none;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 249, 249, 0.3);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.testimonial-dot.is-active {
    background: var(--color-gold);
    transform: scale(1.2);
}

.testimonial-dot:hover,
.testimonial-dot:focus-visible {
    background: rgba(255, 249, 249, 0.55);
    outline: none;
}

@media (max-width: 1024px) {
    .testimonials-container {
        gap: 2rem;
        width: 100%;
    }

    .testimonials-header {
        padding: 0 1rem;
    }

    .testimonials-title {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
        word-break: break-word;
    }

    .testimonials-title::after {
        width: 50px;
        margin-top: 0.75rem;
    }

    .testimonials-lead {
        max-width: 480px;
        font-size: 0.95rem;
    }

    .testimonials-carousel {
        width: 100%;
    }

    .testimonials-track-wrapper {
        width: 100%;
        max-width: min(520px, calc(100% - 100px));
    }

    .testimonials-track {
        gap: 0;
    }

    .testimonial-card {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 1.25rem;
        gap: 1rem;
    }

    .testimonial-body::before {
        font-size: 3rem;
        top: 0;
    }

    .testimonial-text {
        font-size: 0.95rem;
        -webkit-line-clamp: 5;
    }
}

@media (max-width: 640px) {
    .testimonials-section {
        padding-left: 0;
        padding-right: 0;
    }

    .testimonials-container {
        padding: 0 0.75rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .testimonials-header {
        padding: 0 0.25rem;
    }

    .testimonials-carousel {
        gap: 0.4rem;
    }

    .testimonial-nav {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .testimonials-track-wrapper {
        flex: 0 0 auto;
        width: calc(100% - 88px);
        max-width: calc(100% - 88px);
        position: relative; /* WebKit clipping fix */
        overflow: hidden;
        border-radius: 18px;
    }

    .testimonials-track {
        display: flex;
        gap: 0;
    }

    .testimonial-card {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        min-height: 380px; /* Uniform height on mobile */
        padding: 1rem;
        gap: 0.875rem;
        border-radius: 18px;
        text-align: center;
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .testimonial-card.is-active {
        opacity: 1;
        visibility: visible;
    }

    .testimonial-card-header {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .testimonial-logo {
        width: 52px;
        height: 52px;
    }

    .testimonial-client {
        font-size: 0.95rem;
        text-align: center;
    }

    .testimonial-stars {
        font-size: 0.75rem;
    }

    .testimonial-category:empty {
        display: none;
    }

    .testimonial-body {
        text-align: center;
    }

    .testimonial-body::before {
        font-size: 2.5rem;
        top: -0.1rem;
        right: 0.25rem;
    }

    .testimonial-text {
        font-size: 0.88rem;
        line-height: 1.55;
        -webkit-line-clamp: 4;
        text-align: center;
    }

    .btn-ver-mais {
        margin-top: 0.75rem;
        font-size: 0.8rem;
        padding: 0.4rem 0.85rem;
    }

    .testimonial-footer {
        justify-content: center;
    }

    .testimonial-author-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .testimonial-author-info {
        align-items: center;
    }

    .testimonial-author {
        font-size: 0.9rem;
    }

    .testimonial-role {
        font-size: 0.8rem;
    }
}

@keyframes testimonialDotProgress {
    to { transform: scaleX(1); }
}

/* ==========================================
   CLIENTS LOGO MARQUEE SECTION
   ========================================== */
.clients-section {
    padding: 4rem 0 0 0;
    margin-bottom: -10px; /* Overlap adjusted to give elegant breathing room between cards and 3rd section */
    position: relative;
    z-index: 10;
    overflow: visible; /* Ensure hover effects and overflow are visible */
}

.clients-title {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.clients-title::before,
.clients-title::after {
    content: '';
    height: 1px;
    width: 60px;
    background-color: rgba(122, 35, 43, 0.2);
}

.clients-marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1.5rem 0; /* Vertical padding to prevent hover cropping and add elegant vertical spacing */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-marquee-track {
    display: flex;
    width: max-content;
    animation: clientsMarqueeScroll 28s linear infinite;
    will-change: transform;
}

.client-card {
    width: 220px;
    height: 110px;
    margin-right: 2rem; /* Spacing handled per card for perfect 50% translation loop */
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(122, 35, 43, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    box-shadow: 
        0 4px 20px -6px rgba(78, 22, 27, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.01);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    will-change: transform, box-shadow;
}

.client-card img {
    max-width: 85%;
    max-height: 80%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.55);
    transition: all 0.4s ease;
}

.client-card:hover,
.client-card.center-active {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--color-gold);
    background: #ffffff;
    box-shadow: 
        0 12px 30px -8px rgba(78, 22, 27, 0.12),
        0 2px 6px rgba(189, 146, 80, 0.05);
}

.client-card:hover img,
.client-card.center-active img {
    filter: grayscale(0%) opacity(1);
}

@keyframes clientsMarqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments for clients */
@media (max-width: 768px) {
    .clients-section {
        padding: 2.5rem 0 0 0;
        margin-bottom: -5px; /* Overlap adjusted to give elegant breathing room on mobile */
    }
    .clients-marquee-container {
        padding: 1rem 0; /* Responsive vertical padding to prevent hover cropping */
    }
    .client-card {
        width: 180px;
        height: 90px;
        padding: 0.5rem 1rem;
        margin-right: 1.5rem;
        border-radius: 12px;
    }
    .clients-marquee-track {
        animation-duration: 22s;
    }
    .clients-title {
        margin-bottom: 2.5rem;
        font-size: 0.85rem;
        gap: 1rem;
    }
    .clients-title::before,
    .clients-title::after {
        width: 30px;
    }
}

/* Services / Atuação Section */
.services-section {
    position: relative;
    background: linear-gradient(-45deg, #4e161b, #5e2126, #4e161b, #70363c);
    background-size: 300% 300%;
    color: var(--color-light);
    z-index: 3;
    overflow: visible;
    animation: servicesGradientMove 12s ease infinite;
}

@keyframes servicesGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.services-scroll-container {
    position: sticky;
    top: 0;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: flex-start;
    padding: 7.5rem 0 2rem 0;
    background-color: transparent;
}

/* Notebook / desktop: reduz espaço em branco no final da seção de serviços */
@media (min-width: 1025px) {
    .services-scroll-container {
        padding-bottom: 0.5rem;
    }
}

.services-scroll-container > .container {
    position: relative;
    z-index: 1;
}

/* Scroll Reveal Elements - começam invisíveis */
[data-scroll-reveal] {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-scroll-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.services-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.services-image-area {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.services-polaroid {
    width: min(92%, 430px);
    margin: 0;
    padding: 1rem 1rem 4.2rem;
    background: #fff9f9;
    border-radius: 4px;
    transform: rotate(-7deg);
    box-shadow:
        0 28px 65px rgba(0, 0, 0, 0.34),
        0 8px 18px rgba(42, 8, 10, 0.24);
}

.services-polaroid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    border-radius: 2px;
    transform: scaleX(-1);
}

.services-content-area {
    display: flex;
    flex-direction: column;
}

.text-light {
    color: #ffffff !important;
}

.highlight-gold {
    color: var(--color-gold);
    font-style: italic;
    position: relative;
    display: inline-block;
}



.services-lead {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(1.1rem, 2.8vw, 1.3rem);
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.sustentation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sustentation-list li {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 2.5rem;
    font-weight: 300;
}

.sustentation-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0px;
    font-size: 1.2rem;
    color: var(--color-gold);
    font-weight: bold;
}

.btn-services {
    color: var(--color-primary);
    background-color: #ffffff;
    border: 1px solid #ffffff;
    margin-top: 2rem;
    align-self: flex-start;
}

.btn-services:hover {
    border-color: var(--color-gold);
}

.btn-services:hover .btn-text {
    color: var(--color-primary);
}

.btn-services:hover .btn-hover-fill {
    background-color: var(--color-gold);
    transform: scale(1.5);
    border: 1px solid var(--color-gold);
}

.services-marquee {
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-indicator-line {
    display: none;
}

.services-marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
    padding: 1rem 0; /* Espaço para a elevação e sombras */
}

.marquee-card {
    background: rgba(30, 8, 10, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 1.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
    width: 330px;
    height: 190px;
    max-width: 90vw;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    filter: grayscale(1) opacity(0.35);
    transition: filter 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 768px) {
    .marquee-card {
        background: rgba(30, 8, 10, 0.88);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* Efeito diagonal de varredura de luz (shining sweep) no hover */
.marquee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.04) 20%,
        rgba(255, 255, 255, 0.15) 60%,
        transparent 100%
    );
    transform: skewX(-20deg);
    transition: none;
    z-index: 1;
    pointer-events: none;
}

.marquee-card:hover::before {
    left: 150%;
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.marquee-card:hover {
    filter: grayscale(0) opacity(1);
    background: linear-gradient(135deg, rgba(122, 35, 43, 0.9) 0%, rgba(78, 22, 27, 0.95) 100%);
    border-color: var(--color-gold);
    transform: translateY(-12px) scale(1.04) rotate(1deg); /* Elevação e micro-rotação 3D interativa! */
    box-shadow: 0 20px 40px rgba(189, 146, 80, 0.35);
    z-index: 10;
}

.marquee-card.is-active {
    filter: grayscale(0) opacity(1);
    background: rgba(122, 35, 43, 0.95) !important;
    border-color: var(--color-gold) !important;
    transform: translateY(-8px) scale(1.02); /* Escala suave padrão ao passar no ponto ativo */
    box-shadow: 0 15px 35px rgba(189, 146, 80, 0.3);
    z-index: 4;
}

.marquee-card-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.6rem;
    width: 100%;
}

.marquee-card-icon {
    font-size: 1.75rem; /* Aumentado para maior destaque visual e profissionalismo */
    color: var(--color-gold);
    transition: color 0.4s ease, transform 0.4s ease;
    flex-shrink: 0;
}

.marquee-card.is-active .marquee-card-icon,
.marquee-card:hover .marquee-card-icon {
    color: #ffffff;
    transform: scale(1.1);
}

.marquee-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-gold);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.3px;
    margin-bottom: 0;
    transition: color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.marquee-card.is-active .marquee-card-title,
.marquee-card:hover .marquee-card-title {
    color: #ffffff;
    transform: translateY(-1px);
}

.marquee-card-desc {
    font-family: var(--font-sans);
    font-size: 0.9rem; /* Levemente menor para adequar ao espaço */
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.38; /* Mais juntos / menor entrelinha conforme solicitado */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limita a exatamente 3 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.4s ease;
}

.marquee-card.is-active .marquee-card-desc,
.marquee-card:hover .marquee-card-desc {
    color: rgba(255, 255, 255, 0.9);
}

.btn-card-ver-mais {
    margin-top: auto; /* Empurra o botão sempre para o rodapé do card */
    background: none;
    border: none;
    color: var(--color-gold);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.btn-card-ver-mais::after {
    content: '→';
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-card-ver-mais:hover {
    color: #ffffff;
}

.btn-card-ver-mais:hover::after {
    transform: translateX(3px);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Media Queries for Services Section */
@media (max-width: 992px) {
    .result-grid {
        grid-template-columns: 1fr;
    }

    .result-content {
        max-width: none;
        position: relative;
        top: auto;
    }

    .result-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        min-height: auto;
        gap: 1rem;
    }

    .result-card {
        position: relative;
        top: auto;
        margin-bottom: 0;
        opacity: 1;
        pointer-events: auto;
        transform: rotate(var(--card-rotation)) scale(1);
        padding: 1.35rem 1.45rem;
    }

    .services-main-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .services-image-area {
        order: 2;
    }
    .services-polaroid {
        width: min(82%, 330px);
        padding: 0.75rem 0.75rem 3rem;
        transform: rotate(-5deg);
    }
    .services-content-area {
        order: 1;
    }
}

@media (max-width: 768px) {
    .services-section {
        height: auto !important;
        min-height: auto;
        overflow: hidden;
        padding-bottom: 0;
    }

    .services-scroll-container {
        position: relative;
        top: auto;
        min-height: auto;
        align-items: stretch;
        overflow: hidden;
        padding: 5rem 0 1.5rem;
    }

    .services-main-layout {
        gap: 2rem;
        overflow: visible;
        margin-bottom: 2.25rem;
    }

    .services-image-area {
        order: 2;
        padding: 0 0.75rem 1.25rem;
        overflow: visible;
    }

    .services-polaroid {
        width: min(78vw, 320px);
        padding: 0.2rem;
        transform: rotate(-4deg);
    }

    .services-polaroid img {
        aspect-ratio: auto;
        height: auto;
        object-fit: cover;
        background: #ffffff;
        transform: scaleX(-1);
    }

    .services-marquee {
        width: calc(100% + 3rem);
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        margin-bottom: 0;
        padding: 0.3rem 0;
        overflow: hidden;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .marquee-track {
        gap: 1.2rem;
        padding: 1.2rem 0;
    }

    .marquee-card {
        padding: 1.3rem 1.4rem;
        width: 290px;
        height: 190px; /* Mantém a altura fixa uniforme e compacta */
        max-width: 85vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .marquee-card-header {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        justify-content: center;
        text-align: center;
    }

    .marquee-card-icon {
        font-size: 1.45rem;
    }

    .marquee-card-title {
        font-size: 1.1rem;
        margin-bottom: 0;
    }

    .marquee-card-desc {
        font-size: 0.82rem;
        line-height: 1.3;
    }

    .result-cards {
        display: grid;
        grid-template-columns: 1fr;
    }
    .btn-services {
        align-self: center;
        margin-top: 2rem;
    }
}

/* ==========================================
   FOUNDER SECTION (A FUNDADORA)
   ========================================== */
.founder-section {
    background: url('../images/founder-banner-desktop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(189, 146, 80, 0.12);
    height: auto; /* heights are calculated dynamically in JS */
    margin-top: -200vh;
}

.founder-sticky-container {
    position: relative;
    top: auto;
    height: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: visible;
    width: 100%;
}

.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
    width: 100%;
}

.founder-image-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 480px;
    width: 100%;
}

.founder-mobile-img {
    display: none;
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.founder-polaroid-deck {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.founder-polaroid {
    position: absolute;
    background: #ffffff;
    padding: 1.2rem 1.2rem 4rem; /* padded bottom slightly more for handwriting signature */
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    width: min(85vw, 360px);
    
    /* Initial 3D state before scroll-scrub */
    opacity: 0;
    transform: scale(1.5) rotate(15deg) translateZ(150px);
    will-change: transform, opacity;
    
    /* Smooth hover return transition */
    transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
    
    /* Disable mouse interactions by default for cards not stacked yet */
    pointer-events: none;
}

/* Enabled only for the top-most stacked card */
.founder-polaroid.is-active-hover {
    pointer-events: auto;
}

.founder-polaroid.is-active-hover:hover {
    transform: scale(1.04) rotate(0deg) translateY(-12px) !important;
    box-shadow: 0 28px 56px rgba(189, 146, 80, 0.35);
    z-index: 50 !important; /* brings hovered card to top layer visually */
}

.founder-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #eaeaea;
}

.founder-signature {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: #2a080a; /* elegant dark wine */
    text-align: center;
    margin-top: 1.2rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.5px;
}

.founder-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(78, 22, 27, 0.92);
    padding: 3rem;
    border-radius: 16px;
}

/* override default badge to be clean white on maroon sections */
.founder-section .badge,
.profile-hero .badge {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(189, 146, 80, 0.4);
    }
    50% {
        opacity: 0.85;
        box-shadow: 0 0 20px 4px rgba(189, 146, 80, 0.15);
    }
}

/* override button inside the founder section */
.founder-section .btn-primary {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

.founder-section .btn-primary .btn-text {
    color: #2a080a !important; /* wine font color */
    transition: color 0.3s ease;
}

.founder-section .btn-primary:hover {
    border-color: var(--color-gold) !important;
    box-shadow: 0 12px 30px rgba(189, 146, 80, 0.3) !important;
}

.founder-section .btn-primary:hover .btn-text {
    color: #2a080a !important; /* stays wine on hover */
}

.founder-section .btn-primary .btn-hover-fill {
    background-color: var(--color-gold) !important;
    border-color: var(--color-gold) !important;
}

@media (max-width: 900px) {
    .founder-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

/* Tablet: use fototablet.png as background for founder section */
@media (min-width: 769px) and (max-width: 1024px) {
    .founder-section {
        background: url('../images/fototablet.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .founder-content {
        align-items: center;
        text-align: center;
    }

    .founder-lead,
    .founder-content p {
        font-size: clamp(1.05rem, 2.4vw, 1.18rem) !important;
        line-height: 1.6 !important;
        text-align: justify;
        hyphens: none;
        word-break: normal;
        overflow-wrap: break-word;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .founder-section .btn-primary {
        white-space: nowrap;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .founder-section {
        height: auto !important;
        min-height: auto;
        padding: calc(68px + 1.4rem) 0 4.5rem;
        overflow: hidden;
        background: url('../images/founder-banner-mobile.png');
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
    }

    .founder-mobile-img {
        display: none;
    }

    .founder-sticky-container {
        position: relative;
        top: auto;
        height: auto;
        min-height: auto;
        align-items: flex-start;
        overflow: visible;
    }

    .founder-grid {
        gap: 1.6rem;
    }

    .founder-image-area {
        height: clamp(330px, 88vw, 430px);
        align-items: center;
        justify-content: center;
        padding-top: 0.2rem;
        margin-bottom: 0.6rem;
    }

    .founder-polaroid {
        width: min(84vw, 340px);
        padding: 0.8rem 0.8rem 3rem;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
        transition:
            opacity 0.58s ease,
            transform 0.78s cubic-bezier(0.16, 1, 0.3, 1),
            box-shadow 0.58s ease;
    }

    .founder-img {
        aspect-ratio: 4 / 3;
        object-position: center 24%;
        transition: opacity 0.28s ease, filter 0.28s ease, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .founder-polaroid.crop-top .founder-img {
        object-position: center top;
    }

    .founder-polaroid.crop-upper .founder-img {
        object-position: center 18%;
    }

    .founder-polaroid.crop-center .founder-img {
        object-position: center 34%;
    }

    .founder-polaroid.crop-low .founder-img {
        object-position: center 48%;
    }

    .founder-polaroid.is-photo-changing .founder-img {
        opacity: 0;
        transform: scale(0.98);
    }

    .founder-polaroid.is-photo-pop .founder-img {
        transform: scale(1.025);
    }

    .founder-polaroid.is-moving-to-back {
        opacity: 0.86 !important;
        transform: perspective(1200px) translate3d(18px, 28px, -80px) scale(0.94) rotate(4deg) !important;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    }

    .founder-polaroid.is-coming-front {
        transform: perspective(1200px) translate3d(0, -4px, 12px) scale(1.012) rotate(-0.5deg) !important;
        box-shadow: 0 20px 38px rgba(189, 146, 80, 0.18);
    }

    .founder-signature {
        font-size: 1.25rem;
        margin-top: 0.85rem;
    }

    .founder-content {
        width: 100%;
        max-width: calc(100% - 1.5rem);
        margin: 0 auto;
        padding: 2rem 1.5rem;
        opacity: 1;
        transform: translateY(0);
        align-items: center;
        text-align: center;
        box-sizing: border-box;
    }

    .founder-content .fade-in-up,
    .founder-content .fade-in-up.reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    .founder-content .section-title {
        font-size: clamp(2rem, 9vw, 2.7rem) !important;
        line-height: 1.13 !important;
        margin-bottom: 1.1rem !important;
        text-align: center;
        color: #ffffff !important;
    }

    .founder-name-gold {
        color: #be9251;
    }

    .founder-lead,
    .founder-content p {
        font-size: clamp(1.05rem, 4.3vw, 1.15rem) !important;
        line-height: 1.6 !important;
        margin-bottom: 1.4rem !important;
        text-align: justify;
        hyphens: none;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .founder-cta {
        width: 100%;
    }

    .founder-section .btn-primary {
        width: 100%;
        max-width: none;
        white-space: nowrap;
        padding: 1rem 1.8rem;
        font-size: clamp(0.95rem, 4vw, 1.05rem);
    }
}

/* ==========================================
   BIOGRAPHY & TIMELINE PAGE (SOBRE-FABIANA)
   ========================================== */
.profile-page {
    padding-top: 7rem;
    background: var(--color-primary);
}

.profile-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(3rem, 5vw, 5rem);
    align-items: center;
    padding: 3rem 0 clamp(4rem, 7vw, 6rem);
}

.profile-photo-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-photo-wrapper:hover .profile-photo {
    transform: scale(1.04);
}

.profile-details h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1.8rem;
}

.profile-details p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1.2rem;
    text-align: justify;
}

.profile-details p.lead-bio {
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--color-gold);
    line-height: 1.6;
    margin-bottom: 1.8rem;
}

@media (max-width: 900px) {
    .profile-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .profile-photo-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }
}

/* TIMELINE VERTICAL SECTION */
.timeline-section-vertical {
    position: relative;
    padding: 8rem 0;
    width: 100%;
    background-color: var(--color-light);
    color: var(--color-primary);
    border-top: 1px solid rgba(78, 22, 27, 0.12);
    overflow: visible;
    z-index: 4;
}

.timeline-section-vertical::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../images/grunge-grey-abstract-compass-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
}

.timeline-title-vertical {
    text-align: center;
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-primary);
    margin-bottom: 5rem;
    position: relative;
}

.timeline-title-vertical::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: var(--color-gold);
    margin: 1.5rem auto 0;
    box-shadow: 0 0 8px rgba(189, 146, 80, 0.6);
}

.timeline-vertical-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Vertical progress line */
.timeline-vertical-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(78, 22, 27, 0.1);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-vertical-line-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%; /* animated dynamically in JS */
    background: linear-gradient(to bottom, var(--color-gold), var(--color-primary));
    box-shadow: 0 0 10px var(--color-gold), 0 0 20px rgba(189, 146, 80, 0.5);
    z-index: 2;
    transition: height 0.1s ease-out;
}

.timeline-vertical-items {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
    gap: 3rem;
}

.timeline-vertical-item {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 50%;
    padding: 1rem 2rem;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    will-change: transform, opacity;
}

/* Alternating Layout */
.timeline-vertical-item:nth-child(odd) {
    align-self: flex-start;
    padding-right: 4.5rem;
    transform: translateX(-50px);
}

.timeline-vertical-item:nth-child(even) {
    align-self: flex-end;
    padding-left: 4.5rem;
    transform: translateX(50px);
}

/* When revealed */
.timeline-vertical-item.is-revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Pins on the central line */
.timeline-vertical-pin {
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--color-light);
    border: 3px solid rgba(78, 22, 27, 0.2);
    border-radius: 50%;
    z-index: 5;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.4s ease;
}

.timeline-vertical-item:nth-child(odd) .timeline-vertical-pin {
    right: 0;
    transform: translate(50%, 0);
}

.timeline-vertical-item:nth-child(even) .timeline-vertical-pin {
    left: 0;
    transform: translate(-50%, 0);
}

/* Active Pin States */
.timeline-vertical-item.is-active .timeline-vertical-pin {
    background: var(--color-gold);
    border-color: var(--color-gold);
    transform: translate(50%, 0) scale(1.25);
    box-shadow: 0 0 15px var(--color-gold), 0 0 25px rgba(189, 146, 80, 0.6);
}

.timeline-vertical-item:nth-child(even).is-active .timeline-vertical-pin {
    transform: translate(-50%, 0) scale(1.25);
}

/* Cards Design (Premium Wine Card with White Text and Gold Year) */
.timeline-vertical-card {
    background: var(--color-primary); /* Wine background */
    border: 1px solid rgba(255, 255, 255, 0.08); /* subtle white border */
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 12px 30px rgba(78, 22, 27, 0.15); /* strong drop shadow */
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.timeline-vertical-card:hover {
    border-color: rgba(189, 146, 80, 0.45); /* gold border on hover */
    box-shadow: 0 20px 45px rgba(189, 146, 80, 0.2);
    transform: translateY(-5px);
}

/* Active state for card */
.timeline-vertical-item.is-active .timeline-vertical-card {
    border-color: rgba(189, 146, 80, 0.35); /* gold border when active */
    box-shadow: 0 15px 35px rgba(189, 146, 80, 0.15);
}

.timeline-vertical-year {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-gold); /* Gold Year */
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(189, 146, 80, 0.4);
}

.timeline-vertical-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #ffffff; /* White Text */
    margin: 0;
}

.timeline-vertical-card p + p {
    margin-top: 1rem;
}

/* Responsive Mobile Layout (Single Column) */
@media (max-width: 768px) {
    .timeline-title-vertical {
        font-size: 2.2rem;
        margin-bottom: 3.5rem;
    }
    
    .timeline-vertical-line {
        left: 2rem;
    }
    
    .timeline-vertical-item {
        width: 100%;
        padding-left: 4.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .timeline-vertical-item:nth-child(odd) {
        align-self: flex-start;
        transform: translateX(30px);
    }
    
    .timeline-vertical-item:nth-child(even) {
        align-self: flex-start;
        transform: translateX(30px);
    }
    
    .timeline-vertical-item:nth-child(odd) .timeline-vertical-pin,
    .timeline-vertical-item:nth-child(even) .timeline-vertical-pin {
        left: 2rem;
        right: auto;
        transform: translate(-50%, 0);
    }
    
    .timeline-vertical-item.is-revealed {
        transform: translateX(0);
    }
    
    .timeline-vertical-item.is-active .timeline-vertical-pin,
    .timeline-vertical-item:nth-child(even).is-active .timeline-vertical-pin {
        transform: translate(-50%, 0) scale(1.2);
    }
    
    .timeline-vertical-card {
        padding: 1.5rem;
    }
    
    .timeline-vertical-year {
        font-size: 1.5rem;
    }
    
    .timeline-vertical-card p {
        font-size: 0.95rem;
    }
}

/* ==========================================
   GALLERY SECTION
   ========================================== */

.gallery-section {
    background: var(--color-light);
    padding: 6rem 0 clamp(10rem, 14vw, 15rem);
    margin-bottom: clamp(-110px, -7vw, -60px);
    position: relative;
    z-index: 6;
    overflow: hidden;
}

.gallery-section .container {
    position: relative;
    z-index: 2;
}

.gallery-bg-rotator {
    position: absolute;
    inset: 0;
    min-height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(6, minmax(110px, 1fr));
    grid-auto-rows: minmax(160px, 1fr);
    gap: 0.8rem;
    padding: 1.2rem;
    opacity: 0.22;
}

.gallery-bg-frame {
    display: none;
}

.gallery-bg-tile {
    background-size: cover;
    background-position: center;
    opacity: 0.85;
    transform: scale(1);
    border-radius: 8px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-bg-tile.is-visible {
    opacity: 1;
    transform: scale(1);
}

@keyframes galleryTilePulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.96);
    }
    35%, 72% {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 249, 249, 0.72);
    pointer-events: none;
}

.gallery-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 260px;
    gap: 1rem;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
}

.gallery-item.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.gallery-item.reveal:hover {
    transform: translateY(-6px) scale(1.02);
}

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

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(78, 22, 27, 0.9) 0%, rgba(78, 22, 27, 0.5) 70%, transparent 100%);
    border-top: 1px solid rgba(189, 146, 80, 0.4);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-caption {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Remove o título/detalhe ao passar o mouse nas fotos dos eventos */
.gallery-overlay {
    display: none !important;
}

/* Grid positioning — classes controlam span, dense preenche buracos */
.gallery-item-wide {
    grid-column: span 2;
}

.gallery-item-tall {
    grid-row: span 2;
}

/* ==========================================
   LIGHTBOX
   ========================================== */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    color: var(--color-gold);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-gold);
    color: var(--color-primary);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-caption {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* ==========================================
   MEDIA QUERIES
   ========================================== */

@media (max-width: 992px) {
    /* Hamburger Menu Button */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 48px;
        height: 48px;
        padding: 13px 8px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 110;
        position: absolute;
        right: 6vw;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .hamburger-line {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-light);
        border-radius: 2px;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, background-color 0.3s ease;
    }
    
    .hamburger-menu.is-open .hamburger-line:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
        background-color: var(--color-gold);
    }
    
    .hamburger-menu.is-open .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.is-open .hamburger-line:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
        background-color: var(--color-gold);
    }

    /* Mobile Glassmorphism Navigation Drawer */
    .main-nav,
    .main-nav.fade-in-up,
    .main-nav.fade-in-up.reveal {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 380px;
        height: 100%;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        background: rgba(42, 8, 10, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-left: 1px solid rgba(189, 146, 80, 0.2);
        padding: 6rem 1.5rem 2rem;
        z-index: 105;
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        opacity: 1;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .main-nav.is-open,
    .main-nav.fade-in-up.reveal.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    /* Overlay sutil quando o menu mobile estiver aberto */
    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.12);
        z-index: 104;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .mobile-nav-overlay.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Bloqueia o scroll do body quando o menu estiver aberto */
    body.menu-open {
        overflow: hidden !important;
        touch-action: none;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .nav-list li {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .main-nav.is-open .nav-list li {
        opacity: 1;
        transform: translateX(0);
    }

    .main-nav.is-open .nav-list li:nth-child(1) { transition-delay: 0.15s; }
    .main-nav.is-open .nav-list li:nth-child(2) { transition-delay: 0.22s; }
    .main-nav.is-open .nav-list li:nth-child(3) { transition-delay: 0.29s; }
    .main-nav.is-open .nav-list li:nth-child(4) { transition-delay: 0.36s; }
    .main-nav.is-open .nav-list li:nth-child(5) { transition-delay: 0.43s; }

    /* Animação de saída dos itens ao fechar o menu */
    .main-nav:not(.is-open) .nav-list li {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .main-nav:not(.is-open) .mobile-nav-social {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-link {
        font-size: 1rem;
        font-weight: 500;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
        border-bottom: none;
        text-shadow: none;
        text-decoration: none;
    }

    .nav-icon,
    .nav-text,
    .nav-title,
    .nav-sub,
    .nav-arrow,
    .mobile-nav-cta,
    .mobile-nav-social,
    .mobile-nav-logo {
        display: flex;
    }

    .nav-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 50%;
        border: 1px solid var(--color-gold);
        color: var(--color-gold);
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }

    .nav-text {
        flex: 1;
        flex-direction: column;
        gap: 0.15rem;
    }

    .nav-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #ffffff;
        line-height: 1.2;
    }

    .nav-sub {
        font-size: 0.8rem;
        font-weight: 400;
        color: var(--color-gold);
        line-height: 1.2;
    }

    .nav-arrow {
        color: var(--color-gold);
        font-size: 0.85rem;
        margin-left: 0.5rem;
    }

    .mobile-nav-cta {
        display: flex;
        margin-top: auto;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(189, 146, 80, 0.2);
    }

    .mobile-nav-logo {
        justify-content: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(189, 146, 80, 0.2);
    }

    .mobile-nav-logo img {
        max-height: 92px;
        width: auto;
    }

    .mobile-nav-cta-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 50%;
        border: 1px solid var(--color-gold);
        color: var(--color-gold);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }

    .mobile-nav-cta-text {
        flex: 1;
        flex-direction: column;
        gap: 0.15rem;
        display: flex;
    }

    .mobile-nav-cta-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: #ffffff;
        line-height: 1.2;
    }

    .mobile-nav-cta-sub {
        font-size: 0.75rem;
        font-weight: 400;
        color: var(--color-gold);
        line-height: 1.2;
    }

    .mobile-nav-social {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: auto;
        padding-top: 1rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease 0.58s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.58s;
    }

    .main-nav.is-open .mobile-nav-social {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-nav-social-label {
        font-size: 0.8rem;
        color: var(--color-gold);
        text-align: center;
        display: block;
        position: relative;
    }

    .mobile-nav-social-label::before,
    .mobile-nav-social-label::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 40px;
        height: 1px;
        background: rgba(189, 146, 80, 0.3);
    }

    .mobile-nav-social-label::before { right: calc(100% + 10px); }
    .mobile-nav-social-label::after { left: calc(100% + 10px); }

    .mobile-nav-social-icons {
        display: flex;
        gap: 1rem;
        justify-content: center;
    }

    .mobile-nav-social-icons a {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid rgba(189, 146, 80, 0.35);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .mobile-nav-social-icons a:hover {
        background: var(--color-gold);
        color: var(--color-primary);
        border-color: var(--color-gold);
    }

    .social-nav {
        display: none;
    }

    .logo img {
        max-height: 46px;
    }

    /* Services Section Responsive layout */
    .services-main-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .services-image-area {
        order: 2;
    }
    .services-polaroid {
        width: min(82%, 330px);
        padding: 0.75rem 0.75rem 3rem;
        transform: rotate(-5deg);
    }
    .services-content-area {
        order: 1;
    }

    /* Result Cards Responsive Grid layout */
    .result-grid {
        grid-template-columns: 1fr;
        top: 5rem;
        min-height: auto;
    }

    .result-content {
        max-width: none;
        position: relative;
        top: auto;
        margin-bottom: 3rem;
    }

    .result-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        min-height: auto;
        gap: 1.2rem;
        padding-top: 0;
    }

    .result-card {
        position: relative;
        top: auto !important;
        margin-bottom: 0;
        opacity: 1;
        pointer-events: auto;
        transform: none !important; /* Flat for standard tablet reading layout */
        padding: 1.35rem 1.45rem;
        min-height: 200px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .result-card.is-expanded {
        transform: translateY(-4px) scale(1.02) !important;
        border-color: var(--color-gold) !important;
        box-shadow: 0 10px 25px rgba(78, 22, 27, 0.12) !important;
        z-index: 10 !important;
    }

    .result-card.is-expanded:hover {
        transform: translateY(-4px) scale(1.02) !important;
    }

    /* Gallery Responsive Grid Layout */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
        grid-auto-flow: dense;
    }
}

@media (max-width: 768px) {
    /* Compact Header padding and buttons */
    .main-header {
        padding: 0.6rem 0;
    }

    .hamburger-menu {
        right: 1.5rem;
    }

    .btn-primary,
    .btn-services {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 48px; /* Safe mobile tap target size */
        width: 100%;
        text-align: center;
    }

    .about-cta {
        margin-top: 2rem;
        width: 100%;
        text-align: center;
    }

    .about-grid {
        gap: 2.5rem;
    }

    .about-image {
        order: 1;
    }

    .about-content {
        order: 2;
    }

    .about-image-img {
        max-height: 62vh;
        width: min(96%, 440px);
    }

    .services-section {
        height: auto !important;
        min-height: auto;
        overflow: hidden;
        padding-bottom: 0;
    }

    .services-scroll-container {
        position: relative;
        top: auto;
        min-height: auto;
        align-items: stretch;
        overflow: hidden;
        padding: 5rem 0 4rem;
    }

    .services-main-layout {
        gap: 2rem;
        overflow: visible;
        margin-bottom: 2.25rem;
    }

    .services-image-area {
        order: 2;
        padding: 0 0.75rem 1.25rem;
        overflow: visible;
    }

    .services-polaroid {
        width: min(78vw, 320px);
        padding: 0.2rem;
        transform: rotate(-4deg);
    }

    .services-polaroid img {
        aspect-ratio: auto;
        height: auto;
        object-fit: cover;
        background: #ffffff;
        transform: scaleX(-1);
    }

    .services-content-area {
        order: 1;
    }

    .services-content-area .section-title {
        font-size: clamp(1.9rem, 8.2vw, 2.6rem);
        line-height: 1.12;
        max-width: 100%;
        text-align: center;
    }

    .btn-services {
        align-self: stretch;
        text-align: center;
    }

    .services-marquee {
        width: calc(100% + 3rem);
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        margin-bottom: 0;
        padding: 0.3rem 0;
        overflow: hidden;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .marquee-track {
        gap: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .marquee-card {
        max-width: 86vw;
        padding: 0.8rem 1.35rem;
    }

    .marquee-text {
        font-size: 0.95rem;
    }

    /* Result Cards Mobile Single Column Layout */
    .result-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .result-card {
        min-height: auto;
    }

    /* Gallery Mobile Single Column layout */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .gallery-item,
    .gallery-item-wide,
    .gallery-item-tall {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        min-height: auto;
        aspect-ratio: 4 / 5;
    }

    .gallery-item-wide {
        aspect-ratio: 4 / 3;
    }

    .gallery-item img {
        object-position: center 18%;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 2rem;
    }
}

/* ==========================================
   REDUCED MOTION SUPPORT
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
        transform: none !important;
        filter: none !important;
        backdrop-filter: none !important;
    }
    
    .line-text, .fade-in-up, .fade-in-right, .blur-reveal, .draw-path {
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        stroke-dashoffset: 0 !important;
    }
    
    .nav-link::before {
        display: none !important;
    }

    .nav-link:hover::after,
    .nav-link:focus-visible::after {
        opacity: 1 !important;
    }
    
    .result-card {
        position: relative !important;
        top: auto !important;
        transform: none !important;
        opacity: 1 !important;
        margin-bottom: 1.5rem !important;
    }
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    position: relative;
    z-index: 8;
    background: #ffffff;
    color: var(--color-primary);
    padding: clamp(3.5rem, 7vw, 5rem) 0 1.5rem;
    border-top: 1px solid rgba(189, 146, 80, 0.24);
}

.footer-container {
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) minmax(180px, 0.7fr) minmax(240px, 0.8fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.footer-logo {
    display: inline-flex;
    width: 130px;
    margin-bottom: 1.2rem;
}

.footer-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-brand p,
.footer-cta p,
.footer-bottom p {
    color: rgba(78, 22, 27, 0.76);
    line-height: 1.65;
}

.footer-brand p {
    max-width: 430px;
}

.footer-nav {
    display: grid;
    gap: 0.85rem;
}

.footer-nav a {
    color: rgba(78, 22, 27, 0.86);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-nav a:hover {
    color: var(--color-gold);
    transform: translateX(4px);
}

.footer-cta {
    display: grid;
    gap: 1rem;
    justify-items: start;
}

.footer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.85rem 1.25rem;
    border: 1px solid rgba(189, 146, 80, 0.65);
    border-radius: 999px;
    color: #ffffff;
    background: var(--color-gold);
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.footer-bottom {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: 1.25rem;
    border-top: 1px solid rgba(78, 22, 27, 0.12);
}

.footer-bottom p {
    font-size: 0.92rem;
}

.footer-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    background: transparent;
    border: 1px solid rgba(78, 22, 27, 0.25);
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-admin-link:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78, 22, 27, 0.15);
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-brand,
    .footer-nav,
    .footer-cta {
        align-items: center;
    }

    .footer-nav {
        justify-items: center;
    }

    .footer-brand p {
        max-width: 100%;
        margin: 0 auto;
    }

    .footer-nav a:hover {
        transform: none;
    }

    .footer-cta {
        justify-items: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-logo {
        width: 112px;
        margin: 0 auto 1.2rem;
    }

    .footer-admin-link {
        margin: 1rem auto 0;
    }

    .feito-por-mask {
        width: 240px;
        height: 72px;
        margin: 0 auto;
    }
}

/* ============================================================
   CONTACT FORM & FLASH MESSAGES
   ============================================================ */

.flash-message {
    position: fixed;
    top: 90px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    animation: slideInFlash 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 420px;
}

.flash-message button {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.flash-message button:hover {
    opacity: 1;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideInFlash {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.contact-form-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(78, 22, 27, 0.12);
}

.contact-form-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form {
    display: grid;
    gap: 1.2rem;
    max-width: 720px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(78, 22, 27, 0.18);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 1rem;
    background: #ffffff;
    color: var(--color-primary);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(189, 146, 80, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(78, 22, 27, 0.45);
}

.btn-submit {
    justify-self: center;
    margin-top: 0.5rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-page {
    position: relative;
    z-index: 4;
    background: var(--color-light);
    color: var(--color-primary);
    overflow: hidden;
}

.contact-hero-section {
    position: relative;
    min-height: 100vh;
    padding: clamp(7.5rem, 10vw, 10rem) 0 clamp(4rem, 7vw, 6rem);
    background:
        linear-gradient(90deg, rgba(255, 249, 249, 0.96) 0%, rgba(255, 249, 249, 0.9) 46%, rgba(255, 249, 249, 0.7) 100%),
        url('../images/grunge-grey-abstract-compass-background.webp') center / cover no-repeat;
    overflow: hidden;
}

.contact-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 18%, rgba(189, 146, 80, 0.18), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 249, 249, 0.92));
    pointer-events: none;
}

.contact-hero-bg {
    position: absolute;
    right: -8vw;
    top: 6rem;
    width: min(58vw, 760px);
    aspect-ratio: 1;
    background: url('../images/bussola.webp') center / contain no-repeat;
    opacity: 0.1;
    filter: grayscale(1) drop-shadow(0 28px 55px rgba(78, 22, 27, 0.26));
    pointer-events: none;
    animation: contactBgEnter 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.72fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.contact-page-title {
    margin-bottom: 0.85rem;
    line-height: 1.05;
}

.contact-page-title .highlight {
    display: inline;
}

.contact-story .badge {
    margin-bottom: 0.5rem;
}

.contact-lead {
    max-width: 760px;
    margin-bottom: 1.4rem;
    color: var(--color-accent);
    font-size: clamp(1.05rem, 1.75vw, 1.35rem);
    font-weight: 700;
    line-height: 1.45;
}

.contact-copy {
    display: grid;
    gap: 1.1rem;
    max-width: 820px;
}

.contact-copy p {
    color: rgba(78, 22, 27, 0.82);
    font-size: clamp(1rem, 1.45vw, 1.12rem);
    line-height: 1.75;
    opacity: 0;
    animation: contactTextEnter 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-copy p:nth-child(1) { animation-delay: 0.16s; }
.contact-copy p:nth-child(2) { animation-delay: 0.24s; }
.contact-copy p:nth-child(3) { animation-delay: 0.32s; }
.contact-copy p:nth-child(4) { animation-delay: 0.4s; }
.contact-copy p:nth-child(5) { animation-delay: 0.48s; }
.contact-copy p:nth-child(6) { animation-delay: 0.56s; }

.contact-story .badge,
.contact-page-title,
.contact-lead,
.contact-essence {
    opacity: 0;
    animation: contactTextEnter 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-story .badge { animation-delay: 0.05s; }
.contact-page-title { animation-delay: 0.1s; }
.contact-lead { animation-delay: 0.18s; }
.contact-essence { animation-delay: 0.68s; }

@keyframes contactTextEnter {
    from {
        opacity: 0;
        transform: translateY(26px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes contactPhotoEnter {
    from {
        opacity: 0;
        transform: translateY(42px) scale(0.94);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes contactBgEnter {
    from {
        opacity: 0;
        transform: translateX(45px) scale(0.92) rotate(-4deg);
    }
    to {
        opacity: 0.1;
        transform: translateX(0) scale(1) rotate(0deg);
    }
}

.contact-essence {
    position: relative;
    max-width: 680px;
    margin-top: 2.4rem;
    padding: 1.4rem 0 1.4rem 1.6rem;
    border-left: 3px solid var(--color-gold);
}

.contact-essence span {
    display: block;
    margin-bottom: 0.45rem;
    color: rgba(78, 22, 27, 0.72);
    font-weight: 700;
}

.contact-essence strong {
    display: block;
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.4vw, 3.1rem);
    font-style: italic;
    line-height: 1.15;
}

.contact-visuals {
    position: sticky;
    top: 7.5rem;
    min-height: 900px;
}

.contact-photo {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgba(189, 146, 80, 0.42);
    border-radius: 8px;
    background: transparent;
    box-shadow: 0 28px 70px rgba(78, 22, 27, 0.16);
    transition:
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.35s ease,
        background-color 0.35s ease;
    will-change: transform;
    opacity: 0;
    animation: contactPhotoEnter 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.04);
    transition: filter 0.5s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-photo:hover {
    z-index: 30;
    border-color: var(--color-gold);
    background: transparent;
    box-shadow: 0 38px 90px rgba(78, 22, 27, 0.26);
    transform: translateY(-12px) scale(1.06);
}

.contact-photo:hover img {
    filter: grayscale(0) contrast(1);
    transform: scale(1.015);
}

.contact-photo-main {
    top: 0;
    right: 0;
    width: min(84%, 520px);
    aspect-ratio: 1 / 1;
    animation-delay: 0.18s;
}

.contact-photo-main img {
    object-position: center top;
}

.contact-photo-side img {
    object-position: center 22%;
}

.contact-photo-detail img {
    object-position: center 16%;
}

.contact-photo-wide img {
    object-position: center 38%;
}

.contact-photo-small img {
    object-position: center 18%;
}

.contact-photo-side {
    left: 0;
    top: 335px;
    width: min(60%, 350px);
    aspect-ratio: 4 / 3;
    animation-delay: 0.34s;
}

.contact-photo-detail {
    right: 3%;
    top: 520px;
    width: min(54%, 320px);
    aspect-ratio: 1 / 1;
    animation-delay: 0.5s;
}

.contact-photo-wide {
    left: 8%;
    top: 680px;
    width: min(70%, 410px);
    aspect-ratio: 4 / 3;
    animation-delay: 0.66s;
}

.contact-photo-small {
    right: 0;
    top: 790px;
    width: min(42%, 240px);
    aspect-ratio: 1 / 1;
    animation-delay: 0.82s;
}

.contact-panel {
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    margin-top: clamp(1rem, 4vw, 3rem);
    padding: clamp(1.6rem, 3vw, 2.4rem);
    border: 1px solid rgba(189, 146, 80, 0.42);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 28px 70px rgba(78, 22, 27, 0.14);
}

@media (max-width: 768px) {
    .contact-panel {
        background: rgba(255, 255, 255, 0.95);
    }
}

.contact-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(122, 35, 43, 0.06), transparent 44%, rgba(189, 146, 80, 0.08));
    pointer-events: none;
}

.contact-panel-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.contact-panel-visual img {
    width: min(100%, 330px);
    filter: drop-shadow(0 22px 28px rgba(78, 22, 27, 0.22));
}

.contact-panel-header,
.contact-page-form {
    position: relative;
    z-index: 1;
}

.contact-panel-header {
    margin-bottom: 1.4rem;
    text-align: left;
}

.contact-kicker {
    display: inline-flex;
    margin-bottom: 0.7rem;
    color: var(--color-gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-panel-header h2 {
    margin-bottom: 0.7rem;
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    line-height: 1.08;
}

.contact-panel-header p {
    color: rgba(78, 22, 27, 0.72);
    line-height: 1.55;
}

.contact-page-form {
    max-width: none;
}

.contact-page-form .btn-submit {
    width: 100%;
    max-width: none;
    border: 0;
}

@media (max-width: 1100px) {
    .contact-hero-grid {
        grid-template-columns: 1fr;
    }

    .contact-visuals {
        position: relative;
        top: auto;
        min-height: 560px;
        max-width: 760px;
    }

    .contact-panel {
        max-width: 760px;
        grid-template-columns: 1fr;
    }

    .contact-panel-visual {
        display: none;
    }
}

/* Tablet: ajuste das fotos e justificação do texto */
@media (min-width: 769px) and (max-width: 1100px) {
    .contact-hero-section {
        padding-top: 7rem;
        padding-bottom: 5rem;
    }

    .contact-page-title {
        font-size: clamp(2.6rem, 7vw, 3.4rem);
        margin-bottom: 0.7rem;
    }

    .contact-lead {
        font-size: clamp(1rem, 2.2vw, 1.2rem);
        margin-bottom: 1.2rem;
    }

    .contact-copy p {
        text-align: justify;
        hyphens: none;
        font-size: clamp(0.98rem, 1.9vw, 1.08rem);
    }

    .contact-visuals {
        min-height: 900px;
        margin: 0 auto;
        width: 100%;
        padding-bottom: 2rem;
    }

    .contact-photo-main {
        width: min(72%, 420px);
        right: 4%;
    }

    .contact-photo-side {
        width: min(52%, 290px);
        top: 260px;
        left: 3%;
    }

    .contact-photo-detail {
        width: min(46%, 260px);
        top: 400px;
        right: 8%;
    }

    .contact-photo-wide {
        width: min(58%, 330px);
        top: 520px;
        left: 6%;
    }

    .contact-photo-small {
        width: min(38%, 200px);
        top: 640px;
        right: 6%;
    }
}

@media (max-width: 768px) {
    #galeria-completa .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    #galeria-completa .gallery-item,
    #galeria-completa .gallery-item-wide,
    #galeria-completa .gallery-item-tall {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        aspect-ratio: 4 / 5;
        min-height: auto;
    }

    #galeria-completa .gallery-item-wide {
        aspect-ratio: 4 / 3;
    }

    #galeria-completa .gallery-item img {
        object-position: center 18%;
    }

    .bussola-zoom-text {
        font-size: clamp(3.2rem, 14vw, 5.5rem);
    }

    .bussola-slogan {
        max-width: 19.5rem;
        font-size: clamp(1.28rem, 5.2vw, 1.65rem);
        line-height: 1.35;
    }

    .contact-hero-section {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    .contact-hero-bg {
        right: 0;
        top: 5rem;
        width: 100%;
        max-width: 100%;
    }

    .contact-story .badge {
        margin-bottom: 0.5rem;
    }

    .contact-page-title {
        font-size: clamp(2.6rem, 12vw, 3.8rem);
        margin-bottom: 0.55rem;
    }

    .contact-lead {
        font-size: clamp(0.95rem, 4.2vw, 1.15rem);
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .contact-copy p {
        text-align: justify;
        hyphens: none;
    }

    .contact-visuals {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .contact-photo {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        height: auto;
    }

    .contact-photo-main {
        grid-column: 1 / -1;
        aspect-ratio: 1 / 1;
    }

    .contact-photo-side,
    .contact-photo-wide {
        aspect-ratio: 4 / 3;
    }

    .contact-photo-detail,
    .contact-photo-small {
        aspect-ratio: 1 / 1;
    }

    .contact-panel {
        padding: 1.4rem;
    }

    .contact-panel-header {
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    .flash-message {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    /* Mobile: pull essence closer to badge */
    .contact-copy {
        gap: 0.7rem;
    }
    .contact-copy p {
        margin-bottom: 0;
    }
    .contact-essence {
        margin-top: 1rem;
    }
}

/* ==========================================
   DEPOIMENTO MODAL E BOTÃO
   ========================================== */
.btn-ver-mais {
    display: inline-block;
    margin-top: 0.875rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-ver-mais:hover {
    background-color: var(--color-accent);
}

.depoimento-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.depoimento-modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

.depoimento-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.depoimento-modal-content {
    position: relative;
    background: var(--color-light);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.depoimento-modal.is-active .depoimento-modal-content {
    transform: translateY(0);
}

.depoimento-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    line-height: 1;
}

#depoimentoModalText {
    color: var(--color-primary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 1rem;
}

.modal-testimonial-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.modal-testimonial-client {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--color-primary);
    margin: 0;
}

.modal-testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 2rem;
    font-style: italic;
}

.modal-testimonial-footer {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1rem;
}

.modal-testimonial-author {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

/* ==========================================
   FOOTER SOCIAL E FEITO POR
   ========================================== */
.footer-social-section {
    padding: 1.5rem 0 1rem;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(78, 22, 27, 0.08);
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--color-gold);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0.8rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid rgba(78, 22, 27, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-feito-por {
    margin-top: 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-feito-por:hover {
    opacity: 1;
}

.feito-por-mask {
    display: inline-block;
    width: 300px;
    height: 90px;
    max-width: 100%;
    background-color: var(--color-primary);
    -webkit-mask: url('../images/feito por.webp') no-repeat center / contain;
    mask: url('../images/feito por.webp') no-repeat center / contain;
}

/* =========================================================
   TABLET (769px - 992px) — Services Section Override
   Colocado no final do arquivo para garantir prioridade de cascata.
   ========================================================= */
@media (min-width: 769px) and (max-width: 992px) {
    /* Layout single column */
    .services-main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Polaroid image FIRST (on top) */
    .services-image-area {
        order: -1;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .services-polaroid {
        margin: 0 auto;
        transform: none;
        width: min(70%, 320px);
        padding: 0.75rem 0.75rem 3rem;
    }

    /* Content after image */
    .services-content-area {
        order: 1;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Title: two lines, centered */
    .services-content-area .section-title {
        white-space: pre-line;
        text-align: center;
        font-size: clamp(1.9rem, 5vw, 2.6rem);
        line-height: 1.15;
    }

    /* Lead paragraph centered */
    .services-lead {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* Checklist: container centered but items left-aligned */
    .sustentation-list {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        margin: 0 auto;
        text-align: left;
    }

    /* Checklist items: left-aligned with checkmark on the left */
    .sustentation-list li {
        text-align: left;
        padding-left: 2.5rem;
        padding-right: 0;
        position: relative;
    }

    /* Checkmark positioned absolutely on the left */
    .sustentation-list li::before {
        content: '✓';
        position: absolute;
        left: 0;
        top: 0;
        font-size: 1.2rem;
        color: var(--color-gold);
        display: block;
        margin-right: 0;
    }
}

/* =========================================================
   DESKTOP/NOTEBOOK — Video Section Fix
   Garante que o vídeo da sessão 4 cubra toda a área,
   eliminando a faixa branca inferior.
   ========================================================= */
@media (min-width: 1025px) {
    .video-sticky-wrapper {
        background-color: #000000 !important;
    }

    .video-scrub-section #bussolaVideo.scroll-video,
    #bussola-video .scroll-video,
    .video-sticky-wrapper .scroll-video {
        width: 100% !important;
        height: 100% !important;
        min-width: 110% !important;
        min-height: 110% !important;
        object-fit: cover !important;
        object-position: center 60% !important;
        transform: translate(-50%, -50%) scale(1.35) !important;
    }
}

/* =========================================================
   MOBILE HORIZONTAL SCROLL PREVENTION — Safety net
   Garante que nenhum elemento estoure a largura da viewport
   em dispositivos móveis, removendo o scroll lateral.
   ========================================================= */

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw;
    }

    .gallery-bg-rotator {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: minmax(120px, 1fr);
        gap: 0.5rem;
        padding: 0.8rem;
    }

    main,
    section,
    .hero-section,
    .about-section,
    .services-section,
    .services-scroll-container,
    .video-scrub-section,
    .founder-section,
    .founder-sticky-container,
    .gallery-section,
    .testimonials-section,
    .result-section,
    .site-footer,
    .contact-page,
    .contact-hero-section,
    .profile-page,
    .timeline-section-vertical {
        overflow-x: hidden !important;
        max-width: 100vw;
    }

    .hero-section,
    .about-section,
    .services-section,
    .video-scrub-section,
    .founder-section,
    .gallery-section,
    .testimonials-section,
    .result-section,
    .site-footer,
    .contact-hero-section,
    .timeline-section-vertical {
        position: relative;
    }

    img,
    video,
    iframe,
    svg {
        max-width: 100%;
        height: auto;
    }

    /* Garante que pseudo-elementos decorativos não vazem */
    .testimonials-section::before,
    .testimonials-section::after,
    .about-section::before,
    .timeline-section-vertical::before {
        max-width: 100vw;
    }
}

/* ==========================================
   RESPONSIVE OVERRIDES — Mobile-first fixes
   ========================================== */

/* Tablets e notebooks menores: reduzir alturas fixas excessivas */
@media (max-width: 1024px) {
    /* Evita scroll exagerado/vão preto na seção de vídeo da bússola */
    .video-scrub-section {
        height: auto;
        min-height: 100vh;
    }

    /* Remove altura mínima gigante da seção de resultados/depoimentos */
    .result-section {
        min-height: auto;
    }

    .result-grid {
        position: relative;
        top: auto;
        min-height: auto;
    }

    /* Remove margem negativa frágil da fundadora em tablets */
    .founder-section {
        margin-top: 0;
    }
}

/* Smartphones: ajustes mais agressivos de altura e espaçamento */
@media (max-width: 768px) {
    /* Seção de vídeo da bússola sem vão preto em celulares */
    .video-scrub-section {
        height: auto;
        min-height: 100vh;
    }

    /* Slogan da bússola não fica preso a largura fixa pequena */
    .bussola-slogan {
        max-width: min(90%, 24rem);
    }

    /* Galeria: centraliza o foco das fotos em vez de cortar a parte inferior */
    .gallery-item img,
    .gallery-item-wide img,
    .gallery-item-tall img {
        object-position: center center;
    }

    /* Timeline: dá mais espaço para o conteúdo textual */
    .timeline-vertical-item {
        padding-left: 3.75rem !important;
        padding-right: 1rem !important;
    }

    .timeline-vertical-card p {
        text-align: justify;
    }

    /* Fundadora: evita altura mínima excessiva em paisagem */
    .founder-sticky-container {
        min-height: auto;
        padding: 4rem 0;
    }

    /* Depoimentos: texto justificado e áreas de toque maiores */
    .testimonial-text {
        text-align: justify;
    }

    .testimonial-nav {
        width: 44px;
        height: 44px;
    }

    .testimonial-dot {
        width: 6px !important;
        height: 6px !important;
        min-width: 14px !important;
        min-height: 14px !important;
        transform: scale(1) !important;
    }

    .testimonial-dot.is-active {
        transform: scale(1.15) !important;
    }

    .testimonial-dots {
        gap: 0.85rem;
    }

    /* Lightbox: área de toque mínima para fechar/navegar */
    .lightbox-close {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 48px;
        height: 48px;
    }

    /* Botão "ver mais" dos cards de serviço com área de toque adequada */
    .btn-card-ver-mais {
        padding: 0.5rem 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Página Contato: remove altura mínima fixa do painel visual */
    .contact-visuals {
        min-height: auto;
    }

    /* Sobre: reduz espaçamento inferior exagerado em mobile */
    .about-section {
        padding-bottom: 5rem;
    }

    /* Galeria: reduz número de tiles de fundo em telas pequenas */
    .gallery-bg-rotator {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }

    /* Contato: título não estoura em telas estreitas */
    .contact-page-title {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }
}

/* Smartphones pequenos */
@media (max-width: 480px) {
    /* Hero: fonte fluida para não quebrar de forma desigual */
    .hero-title {
        font-size: clamp(2rem, 9vw, 2.5rem);
    }

    /* Botões: reduz padding e fonte para caber em telas estreitas sem quebrar feio */
    .btn-primary,
    .btn-services {
        padding: 0.95rem 1.5rem;
        font-size: clamp(0.85rem, 4vw, 0.95rem);
        line-height: 1.25;
    }

    /* Timeline ainda mais ajustada para telas pequenas */
    .timeline-vertical-item {
        padding-left: 3.25rem !important;
    }

    .timeline-vertical-card p {
        font-size: 0.9rem;
    }
}

/* iPhone 15 / 15 Pro / 14 Pro / Galaxy S24 (390-430px) */
@media (max-width: 430px) {
    .btn-primary,
    .btn-services {
        padding: 0.9rem 1.2rem;
        font-size: 0.88rem;
    }
}

/* iPhones mini / smartphones muito estreitos */
@media (max-width: 390px) {
    .btn-primary,
    .btn-services {
        padding: 0.85rem 1rem;
        font-size: 0.82rem;
    }
}

/* Orientação paisagem em smartphones: evita hero gigante */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        padding-top: 28vh;
        min-height: auto;
        padding-bottom: 2rem;
    }

    .hero-bg-video,
    .hero-final-frame {
        object-position: center top;
    }

    .founder-section {
        min-height: auto;
    }

    .founder-image-area {
        height: auto;
        max-height: 70vh;
    }
}

/* Garante que textos longos em tablets também fiquem justificados */
@media (min-width: 769px) and (max-width: 1024px) {
    .about-text,
    .about-lead,
    .founder-lead,
    .founder-content p,
    .profile-details p,
    .contact-copy p,
    .timeline-vertical-card p,
    .testimonial-text {
        text-align: justify;
    }
}
