@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;1,300;1,400&display=swap');

/* Avant Garde approximation: Montserrat + fallback to native geometric */
:root {
    --bg-white: #ffffff;
    --color-blue-pastel: #c9d4e2;
    --color-lavender: #bfb7df;
    --color-gray-light: #d8d8d8;
    --color-purple-light: #e2ddff;
    --color-dark: #12141d;
    --color-dark-light: #282c3f;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: rgba(18, 20, 29, 0.05);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    /* Avant Garde stack: geometric sans with clean proportions */
    --font-primary: 'ITC Avant Garde Gothic', 'Avant Garde', 'Montserrat', 'Century Gothic', 'Futura', Helvetica, sans-serif;
    --font-accent: 'ITC Avant Garde Gothic', 'Avant Garde', 'Montserrat', 'Century Gothic', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-primary);
    background-color: #f1f3f7;
    color: var(--color-dark);
    overflow-x: hidden;
    line-height: 1.5;
    position: relative;
    padding: 40px 0;
}

/* Ambient Moving Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 10% 20%, #e8ecf3 0%, #e2ddff 40%, #e0d9f4 70%, #f1f3f7 100%);
    background-size: 200% 200%;
    animation: gradientMove 20s ease infinite alternate;
}

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

/* MAIN CONTAINERIZED WEBSITE FRAME */
.app-container {
    width: 95vw;
    max-width: 1360px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 48px;
    box-shadow: 0 40px 100px rgba(18, 20, 29, 0.08);
    overflow: hidden;
    position: relative;
    padding: 0 0 24px 0;
}

@media (max-width: 768px) {
    .app-container {
        width: 100vw;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    body {
        padding: 0;
    }
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}
::-webkit-scrollbar-thumb {
    background: rgba(18, 20, 29, 0.15);
    border-radius: 3px;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 32px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 30px rgba(18, 20, 29, 0.02);
    border-radius: 32px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 45px rgba(18, 20, 29, 0.05);
}

/* ===========================
   GLASSY BUTTONS (Frosted Glass style)
   ===========================
   Base style: light frosted pill — matches the "Entrar em contato" reference.
   Use .btn-hero for dark-background sections (hero video).
   Use .btn-pill-dark for solid dark actions (footer CTA, form submit).
*/
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 100px;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    cursor: pointer;
    /* Light frosted pill — matches reference screenshot */
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-dark);
    border: 1px solid rgba(220, 220, 228, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.28s ease,
                background 0.28s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255,255,255,0.6) 0%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.btn-pill:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.75);
}

.btn-pill:hover::before {
    opacity: 1;
}

.btn-pill:active {
    transform: translateY(-1px) scale(0.99);
}

/* Dark variant for non-hero sections */
.btn-pill-dark {
    background: var(--color-dark);
    color: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-pill-dark:hover {
    background: #000;
    color: #fff;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

/* Hero-specific glassy button — white border, light fill */
.btn-hero {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 4px 20px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.4);
    font-weight: 300;
    letter-spacing: 1px;
}

.btn-hero:hover {
    background: rgba(255, 255, 255, 0.32);
    color: #ffffff;
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 16px 40px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.55);
    color: var(--color-dark);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.btn-glass:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 255, 255, 0.8);
}

.btn-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    font-size: 1.1rem;
}

.btn-circle:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-3px) scale(1.05);
}

/* HEADER */
header.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 20px 32px;
    margin-bottom: 0;
    transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

/* Header styling when overlaying the dark hero section (at top of home page) */
header.main-header.on-hero,
header.main-header.glass-panel.on-hero {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    color: #ffffff;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-radius: 0 !important;
}

header.main-header.on-hero .logo {
    color: #ffffff;
}

header.main-header.on-hero .nav-links a {
    color: #ffffff;
    opacity: 0.85;
}

header.main-header.on-hero .nav-links a:hover,
header.main-header.on-hero .nav-links a.active {
    opacity: 1;
}

header.main-header.on-hero .nav-links a::after {
    background-color: #ffffff;
}

header.main-header.on-hero .btn-glass {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

header.main-header.on-hero .btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.55);
}

header.main-header.on-hero .mobile-toggle span {
    background: #ffffff;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-dark);
}

/* Logo SVG image — sized to be proportional in header */
.logo-svg {
    width: 140px;
    height: auto;
    display: block;
    fill: currentColor;
    transition: color 0.4s ease;
}

/* Slightly larger version for footer */
.logo-img-footer {
    width: 90px;
    opacity: 0.85;
}

.logo-svg-footer {
    width: 58px;
    height: auto;
    display: block;
    fill: currentColor;
    color: #311f75;
}

.logo-main {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 2px;
    opacity: 0.7;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 8px;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    padding: 6px 0;
    position: relative;
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-dark);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 20px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-dark);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease;
}

/* Hambúrguer vira X quando o menu mobile está aberto */
.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* O painel do menu mobile é sempre claro, então o X acompanha o mesmo tom escuro mesmo sobre o hero */
header.main-header.on-hero .mobile-toggle.active span {
    background: var(--color-dark);
}

@media (max-width: 900px) {
    header.main-header {
        padding: 16px 20px;
    }

    .header-container {
        gap: 10px;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    /* Logo encolhe (nunca transborda por cima do menu) */
    .header-container > .logo {
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    .logo-svg {
        width: 110px;
        max-width: 100%;
    }

    /* Ordem visual: logo | ......... | CTA | menu */
    .header-container > .btn-pill {
        order: 2;
        margin-left: auto;
        flex: 0 0 auto;
        padding: 10px 16px !important;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .mobile-toggle {
        display: flex;
        order: 3;
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        margin-right: -10px;
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: calc(100% + 8px);
        left: 20px;
        right: 20px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: 24px;
        padding: 28px;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        z-index: 999;
        box-shadow: 0 20px 45px rgba(18, 20, 29, 0.16);
        /* Fechado: invisível e levemente recolhido, sem ocupar interação nem espaço de tab */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-14px) scale(0.96);
        transform-origin: top center;
        transition: opacity 0.28s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.35s;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    /* O fundo do menu mobile é sempre claro/fosco — força texto escuro mesmo com header transparente (on-hero) */
    .nav-links a {
        color: var(--color-dark) !important;
        opacity: 0.85;
    }

    .nav-links a:hover,
    .nav-links a.active {
        opacity: 1;
    }

    .nav-links a::after {
        background-color: var(--color-dark) !important;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links a {
        display: inline-block;
        padding: 10px 0;
        font-size: 1.05rem;
    }

    /* Itens surgem em cascata quando o menu abre */
    .nav-links.open li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.open li:nth-child(1) { transition-delay: 0.06s; }
    .nav-links.open li:nth-child(2) { transition-delay: 0.11s; }
    .nav-links.open li:nth-child(3) { transition-delay: 0.16s; }
    .nav-links.open li:nth-child(4) { transition-delay: 0.21s; }
    .nav-links.open li:nth-child(5) { transition-delay: 0.26s; }
    .nav-links.open li:nth-child(6) { transition-delay: 0.31s; }
    .nav-links.open li:nth-child(7) { transition-delay: 0.36s; }
    .nav-links.open li:nth-child(8) { transition-delay: 0.41s; }
}

@media (max-width: 480px) {
    .header-container {
        gap: 8px;
    }

    .logo-svg {
        width: 92px;
    }

    .header-container > .btn-pill {
        padding: 9px 14px !important;
        font-size: 0.75rem;
    }
}

@media (max-width: 380px) {
    .logo-svg {
        width: 78px;
    }

    .header-container > .btn-pill {
        padding: 8px 12px !important;
        font-size: 0.7rem;
    }

    .mobile-toggle {
        width: 38px;
        margin-right: -8px;
    }
}

/* PAGE VIEWS & TRANSITIONS */
.page-view {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Sections within pages (non-hero) get horizontal padding */
.page-view > section:not(.hero-section),
.page-view > section + section {
    margin-left: 24px;
    margin-right: 24px;
}

/* ===========================
   HERO SECTION — Single Unified Box
   =========================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 24px;
}

/* Video Background */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Soft dark overlay for text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 12, 20, 0.35) 0%,
        rgba(10, 12, 20, 0.25) 40%,
        rgba(10, 12, 20, 0.55) 100%
    );
    z-index: 1;
}

/* Content sits above video+overlay */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    flex: 1;
    padding: 120px 56px 48px;
}

/* Label at top */
.hero-label {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    display: block;
}

/* Main hero title — Avant Garde bold + italic mix — reduced size so video breathes */
.hero-title {
    font-family: var(--font-primary);
    font-weight: 200;
    font-size: clamp(2rem, 4.5vw, 5rem);
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: #ffffff;
    text-transform: uppercase;
    /* Constrain to left 65% so video is visible on right */
    max-width: 68%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 32px 0;
}

.hero-title .line-regular {
    font-weight: 200;
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-title .line-italic {
    font-style: italic;
    font-weight: 200;
    color: rgba(255,255,255,0.85);
}

.hero-title .line-bold {
    font-weight: 700;
    font-style: italic;
    font-size: clamp(1.6rem, 3.2vw, 3.8rem);
    color: rgba(255,255,255,0.95);
}

/* Horizontal rule connector (thin line like reference image) */
.hero-title .hero-line {
    display: inline-block;
    width: clamp(60px, 8vw, 120px);
    height: 1px;
    background: rgba(255,255,255,0.5);
    vertical-align: middle;
    flex-shrink: 0;
}

/* Bottom bar: social icons | desc tag | action buttons */
.hero-bottom-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

/* Social icons bottom-left */
.hero-socials {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hero-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease;
}

.hero-social-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    color: #ffffff;
}

.hero-social-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Centre descriptor text */
.hero-desc {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
    text-align: center;
    max-width: 340px;
    line-height: 1.4;
}

/* CTA buttons bottom-right (vertical stack) */
.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

/* Responsive hero */
@media (max-width: 1024px) {
    .hero-content {
        padding: 130px 32px 32px;
    }
    .hero-title {
        font-size: clamp(1.8rem, 4vw, 3.5rem);
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100svh;
        border-radius: 24px;
    }
    .hero-content {
        padding: 120px 24px 28px;
    }
    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.8rem);
        letter-spacing: -0.5px;
        max-width: 100%;
    }
    .hero-title .hero-line {
        display: none;
    }
    .hero-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .hero-cta-group {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .hero-desc {
        text-align: left;
    }
}

/* SECTION PADDINGS & INTROS */
.section-padding {
    padding: 80px 24px;
}

.sec-intro {
    max-width: 600px;
    margin-bottom: 48px;
}

.sec-title {
    font-size: clamp(1.4rem, 3.2vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 16px;
    color: #311f75;
    white-space: normal;
    word-break: break-word;
}

.sec-subtitle {
    font-size: 1.05rem;
    color: #311f75;
    opacity: 0.85;
    line-height: 1.5;
}

/* PRODUCTS GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    grid-gap: 24px;
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-card {
        min-height: auto;
        padding: 28px 24px;
    }
}

.product-card {
    padding: 40px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 32px;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: #a39ad7;
    filter: blur(40px);
    opacity: 0.35;
    z-index: -1;
    border-radius: inherit;
    transition: var(--transition-smooth);
}

.product-card:hover::before {
    opacity: 0.55;
    filter: blur(50px);
}

.product-card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    box-shadow: 0 25px 50px rgba(18, 20, 29, 0.05);
}

.product-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.product-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(18, 20, 29, 0.02);
    color: #311f75;
    font-weight: 700;
}

.product-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #311f75;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0.85;
}

.product-card:hover .product-header-icon {
    opacity: 1;
    transform: scale(1.15);
}

.product-header-icon svg {
    width: 28px;
    height: 28px;
    stroke: #311f75;
}

.product-num {
    font-size: 0.95rem;
    font-weight: 700;
    opacity: 0.4;
}

.product-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    color: #311f75;
    min-height: 3em;
    display: flex;
    align-items: flex-end;
}

.product-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.product-list li {
    font-size: 0.92rem;
    color: #311f75;
    opacity: 0.95;
    padding-left: 14px;
    position: relative;
}

.product-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #311f75;
}

#produtos .sec-title,
#produtos .sec-subtitle,
#produtos .product-icon-wrap {
    color: #311f75;
}

/* MANIFESTO */
.manifesto-sec {
    border-radius: 32px;
    margin: 0 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.manifesto-video {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 32px;
    display: block;
    /* Sombreamento sutil para integrar melhor com a página se necessário */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

@keyframes pan-text {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* =====================
   COVERFLOW CAROUSEL
   ===================== */
.coverflow-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 520px;
    perspective: 1200px;
    overflow: visible;
    padding: 30px 0;
}

.cflow-slide {
    position: absolute;
    width: 340px;
    height: 460px;
    border-radius: 28px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    /* Default: hidden state */
    opacity: 0;
    pointer-events: none;
    transform: translateX(0) scale(0.6) rotateY(0deg);
    z-index: 0;
}

/* Active/center slide */
.cflow-slide.is-center {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0) scale(1) rotateY(0deg);
    z-index: 10;
    box-shadow: 0 30px 80px rgba(18, 20, 29, 0.35);
}

/* Left neighbor */
.cflow-slide.is-left {
    opacity: 0.7;
    pointer-events: all;
    transform: translateX(-310px) scale(0.82) rotateY(20deg);
    z-index: 5;
    box-shadow: 0 20px 50px rgba(18, 20, 29, 0.2);
    filter: brightness(0.75);
}

/* Right neighbor */
.cflow-slide.is-right {
    opacity: 0.7;
    pointer-events: all;
    transform: translateX(310px) scale(0.82) rotateY(-20deg);
    z-index: 5;
    box-shadow: 0 20px 50px rgba(18, 20, 29, 0.2);
    filter: brightness(0.75);
}

/* Hover on side slides */
.cflow-slide.is-left:hover,
.cflow-slide.is-right:hover {
    filter: brightness(0.9);
    opacity: 0.85;
}

.cflow-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.88);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.cflow-slide.is-center:hover .cflow-img {
    transform: scale(1.04);
}

.cflow-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 14, 24, 0.92) 0%, rgba(12, 14, 24, 0.32) 55%, rgba(12, 14, 24, 0.08) 100%);
    z-index: 1;
}

.cflow-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 32px;
    z-index: 2;
    color: #ffffff;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cflow-slide.is-center .cflow-info {
    opacity: 1;
    transform: translateY(0);
}

/* Coverflow Controls */
.coverflow-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.cflow-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(18, 20, 29, 0.12);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--color-dark);
}

.cflow-btn:hover {
    background: var(--color-dark);
    color: #ffffff;
    transform: scale(1.1);
    border-color: var(--color-dark);
}

@media (max-width: 768px) {
    .coverflow-wrapper {
        height: 420px;
    }
    .cflow-slide {
        width: 260px;
        height: 360px;
    }
    .cflow-slide.is-left {
        transform: translateX(-210px) scale(0.78) rotateY(18deg);
    }
    .cflow-slide.is-right {
        transform: translateX(210px) scale(0.78) rotateY(-18deg);
    }
    .cflow-info {
        padding: 20px 22px;
    }
    .cflow-info .case-tag {
        font-size: 0.68rem;
        padding: 3px 10px;
        margin-bottom: 8px;
    }
    .cflow-info .case-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .cflow-info .case-desc {
        font-size: 0.82rem;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .cflow-info .btn-case-more {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .coverflow-wrapper {
        height: 340px;
        perspective: 600px;
    }
    .cflow-slide {
        width: 220px;
        height: 300px;
    }
    .cflow-slide.is-left {
        transform: translateX(-160px) scale(0.7) rotateY(12deg);
        opacity: 0.5;
    }
    .cflow-slide.is-right {
        transform: translateX(160px) scale(0.7) rotateY(-12deg);
        opacity: 0.5;
    }
    .cflow-info {
        padding: 16px 18px;
    }
    .cflow-info .case-tag {
        font-size: 0.62rem;
        padding: 2px 8px;
        margin-bottom: 6px;
    }
    .cflow-info .case-title {
        font-size: 0.95rem;
        letter-spacing: -0.2px;
        margin-bottom: 5px;
    }
    .cflow-info .case-desc {
        font-size: 0.76rem;
        line-height: 1.3;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
    }
    .cflow-info .btn-case-more {
        font-size: 0.76rem;
    }
}

/* CASE CARD TEXT STYLES (used in coverflow + grid) */
.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18, 20, 29, 0.8) 0%, rgba(18, 20, 29, 0) 60%);
    z-index: 1;
}

.case-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.case-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.case-desc {
    font-size: 0.92rem;
    opacity: 0.85;
    margin-bottom: 20px;
    line-height: 1.4;
}

.btn-case-more {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(18, 20, 29, 0.15);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dot.active {
    background: var(--color-dark);
    width: 20px;
    border-radius: 4px;
}

/* FORM CAPTURE (NEW MODERN LAYOUT) */
.contact-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: linear-gradient(135deg, #394C6A 0%, #2a3a55 40%, #1e2e46 70%, #2d4060 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 40px;
    overflow: hidden;
    box-shadow:
        0 40px 100px rgba(18, 20, 29, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.15);
    position: relative;
}

.contact-form-box {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Glassmorphism sheen */
.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.07) 0%,
        rgba(255,255,255,0.02) 50%,
        rgba(255,255,255,0.05) 100%
    );
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}

.contact-media-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    margin: 16px;
    min-height: 520px;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.5);
    background: #12141d;
}

.contact-media-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    opacity: 0.85;
}

.contact-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(18, 20, 29, 0.9) 0%,
        rgba(18, 20, 29, 0.4) 50%,
        rgba(18, 20, 29, 0.1) 100%
    );
    z-index: 1;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    border-radius: 28px;
}

.contact-media-text {
    color: #ffffff;
    z-index: 2;
}

.media-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-purple-light);
    margin-bottom: 12px;
    display: inline-block;
    font-weight: 700;
}

.media-title {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -1px;
    color: #ffffff;
}

.contact-form-box .sec-title {
    color: #ffffff;
    font-size: clamp(1.35rem, 7vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.contact-form-box .sec-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.98rem;
    line-height: 1.45;
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

.form-group {
    position: relative;
    width: 100%;
}

.contact-form-box .form-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: #ffffff;
    outline: none;
    transition: var(--transition-smooth);
}

.contact-form-box .form-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-purple-light);
    box-shadow: 0 0 15px rgba(226, 221, 255, 0.15);
}

.contact-form-box .form-label {
    position: absolute;
    top: 16px;
    left: 20px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.contact-form-box .form-input:focus ~ .form-label,
.contact-form-box .form-input:not(:placeholder-shown) ~ .form-label {
    top: -10px;
    left: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-purple-light);
    background: #2d4060; /* Matches new dark-blue glass bg */
    padding: 2px 8px;
    border-radius: 4px;
}

.contact-form-box textarea.form-input {
    min-height: 100px;
    resize: none;
}

.contact-form-box .submit-btn {
    background: #ffffff;
    color: var(--color-dark);
    border: none;
    padding: 16px 32px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08);
}

.contact-form-box .submit-btn:hover {
    background: var(--color-purple-light);
    color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(226, 221, 255, 0.25);
}

.form-feedback {
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 20px;
    margin-top: 8px;
}

.form-feedback.success { color: #81c784; }
.form-feedback.error { color: #e57373; }

@media (max-width: 900px) {
    .contact-card {
        grid-template-columns: 1fr;
        border-radius: 28px;
    }
    .contact-media-box {
        min-height: 220px;
        margin: 12px 12px 0;
    }
    .contact-form-box {
        padding: 36px 28px 40px;
    }
}

@media (max-width: 480px) {
    .contact-card {
        border-radius: 20px;
    }
    .contact-media-box {
        min-height: 180px;
        margin: 10px 10px 0;
        border-radius: 20px;
    }
    .contact-media-video {
        border-radius: 20px;
    }
    .contact-form-box {
        padding: 28px 20px 32px;
    }
    .contact-form-box .sec-subtitle {
        margin-bottom: 24px;
    }
    .contact-form {
        gap: 14px;
    }
}

/* FOOTER — Compact */
footer.main-footer {
    border-top: 1px solid rgba(18, 20, 29, 0.08);
    padding: 24px 32px 16px;
    margin-top: 48px;
}

/* Top row: logo | nav links | social icons — all on one horizontal line */
.footer-top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(18, 20, 29, 0.06);
    margin-bottom: 14px;
}

.footer-logo .logo-svg {
    width: 90px;
    height: auto;
    opacity: 0.75;
}

.footer-logo:hover .logo-svg {
    opacity: 1;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    list-style: none;
    flex: 1;
    justify-content: center;
}

@media (max-width: 700px) {
    .footer-top-row {
        justify-content: center;
        text-align: center;
    }
    .footer-links {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
    }
}

.footer-links a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
    font-size: 0.88rem;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-socials {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(18, 20, 29, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    text-decoration: none;
    opacity: 0.6;
    transition: all 0.25s ease;
}

.footer-social-icon:hover {
    opacity: 1;
    background: var(--color-dark);
    color: var(--bg-white);
    border-color: var(--color-dark);
    transform: translateY(-2px);
}

/* Bottom bar: copyright left, legal links right */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(18, 20, 29, 0.4);
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    .footer-legal {
        gap: 16px;
    }
    footer.main-footer {
        padding: 20px 16px 16px;
    }
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(18, 20, 29, 0.4);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--color-dark);
}

/* ABOUT PAGE (Conheça a F) - Glassmorphism Layout */
#page-quem-somos {
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.qs-light-beam {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.qs-beam-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--color-purple-light) 0%, rgba(226,221,255,0) 70%);
}

.qs-beam-2 {
    bottom: -10%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, #c9d4e2 0%, rgba(201,212,226,0) 70%);
}

.qs-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.qs-glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    padding: 56px;
    box-shadow: 0 20px 60px rgba(18, 20, 29, 0.05);
    margin-bottom: 60px;
    position: relative;
}

@media (max-width: 768px) {
    .qs-glass-card {
        padding: 32px 24px;
        border-radius: 24px;
        margin-bottom: 32px;
    }
    #page-quem-somos {
        padding: 100px 16px 60px;
    }
    .qs-pill-banner {
        padding: 12px 24px;
        margin-bottom: 48px;
    }
    .qs-pill-banner h2 {
        font-size: clamp(1.2rem, 5vw, 2rem);
        letter-spacing: 2px;
    }
    .qs-eco-right {
        padding-left: 0;
    }
    .qs-tags span {
        font-size: 0.9rem;
    }
}

.qs-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-dark-light);
    margin-bottom: 48px;
    opacity: 0.6;
}

.qs-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.qs-title {
    font-family: var(--font-primary);
    line-height: 0.9;
    letter-spacing: -2px;
}

.qs-title-outline {
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 800;
    color: var(--color-dark);
}

.qs-title-solid {
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 800;
    color: #4a5c7a; /* matches the theme of cases section roughly */
}

.qs-right-col p {
    font-size: 1.05rem;
    color: var(--color-dark);
    margin-bottom: 24px;
    line-height: 1.6;
}

.qs-highlight {
    margin-top: 40px;
    font-family: var(--font-primary);
    line-height: 1.1;
}

.qs-hl-solid {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: var(--color-dark);
    letter-spacing: -0.5px;
}

.qs-hl-outline {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: var(--color-dark);
    letter-spacing: -0.5px;
}

.qs-pill-banner {
    background: transparent;
    border: 1px solid rgba(18, 20, 29, 0.3);
    border-radius: 100px;
    padding: 16px 48px;
    text-align: center;
    margin: 0 auto 80px auto;
    display: table;
}

.qs-pill-banner h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--color-dark);
}

.qs-eco-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.qs-eco-title {
    font-family: var(--font-primary);
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.qs-eco-solid {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 800;
    color: var(--color-dark);
}

.qs-eco-outline {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 800;
    color: var(--color-dark);
}

.qs-eco-center {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qs-glass-panel {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 24px 32px;
    font-size: 0.95rem;
    color: var(--color-dark);
    line-height: 1.6;
    box-shadow: 0 10px 30px rgba(18, 20, 29, 0.03);
}

.qs-eco-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-left: 20px;
}

.qs-tags {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qs-tags span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-dark);
    letter-spacing: 1px;
}

.qs-vivo {
    margin-top: 80px;
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--color-dark);
}

@media (max-width: 1024px) {
    .qs-eco-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .qs-content-grid {
        grid-template-columns: 1fr;
    }
    .qs-eco-right {
        padding-left: 0;
    }
    .qs-vivo {
        margin-top: 40px;
    }
}

/* CASES PAGE */
.cases-header-sec {
    padding: 130px 24px 32px;
    position: relative;
    text-align: center;
}

/* Back button — top left of the cases header */
.btn-back {
    position: absolute;
    top: 40px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(18, 20, 29, 0.06);
    border: 1px solid rgba(18, 20, 29, 0.1);
    border-radius: 30px;
    padding: 10px 20px;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-back:hover {
    background: var(--color-dark);
    color: var(--bg-white);
    border-color: var(--color-dark);
    transform: translateX(-3px);
}

.btn-back svg {
    transition: transform 0.25s ease;
}

.btn-back:hover svg {
    transform: translateX(-3px);
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 600px) {
    .filter-bar {
        gap: 8px;
    }
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
    .cases-header-sec {
        padding-top: 100px;
    }
}

.filter-btn {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(18, 20, 29, 0.08);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    background: #ffffff;
}

.filter-btn.active {
    background: var(--color-dark);
    color: var(--bg-white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    grid-auto-flow: dense;
    gap: 14px;
}

/* Todos os cards: 1 coluna por padrão */
.case-grid-item {
    grid-column: span 1;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.case-grid-item:hover {
    transform: scale(1.015);
    z-index: 2;
}

/*
  Padrão que fecha limpo em 3 colunas, sem gaps:
  4n+1 → span 2: cards 1, 5, 9, 13, 17, 21  →  [2 cols] + [1 col] = linha cheia
  4n   → span 2: cards 4, 8, 12, 16, 20      →  [1 col] + [2 cols] = linha cheia
*/
.case-grid-item:nth-child(4n+1) { grid-column: span 2; }
.case-grid-item:nth-child(4n)   { grid-column: span 2; }

.grid-case-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.65);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.case-grid-item:hover .grid-case-img {
    filter: grayscale(0%) brightness(0.9);
    transform: scale(1.06);
}

.grid-case-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 22px 24px;
    z-index: 2;
    color: var(--bg-white);
}

/* Título base menor nos cards de 1 col */
.case-grid-item .case-title {
    font-size: 1rem;
    letter-spacing: -0.3px;
}
/* Título maior nos cards de destaque (2 cols) */
.case-grid-item:nth-child(4n+1) .case-title,
.case-grid-item:nth-child(4n)   .case-title {
    font-size: 1.3rem;
}

@media (max-width: 1024px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 260px;
    }
    /* Em 2 colunas: padrão 2n+1 span 2, 2n span 1 */
    .case-grid-item:nth-child(4n+1) { grid-column: span 2; }
    .case-grid-item:nth-child(4n)   { grid-column: span 1; }
}

@media (max-width: 640px) {
    .cases-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }
    .case-grid-item,
    .case-grid-item:nth-child(4n+1),
    .case-grid-item:nth-child(4n) {
        grid-column: span 1;
    }
}

/* DETAILS MODAL */
.case-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

.modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(18, 20, 29, 0.25);
    backdrop-filter: blur(20px);
}

.modal-content-wrap {
    position: relative;
    width: 90%;
    max-width: 840px;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 36px;
    overflow-y: auto;
    z-index: 10;
    padding: 48px;
    box-shadow: 0 30px 60px rgba(18, 20, 29, 0.1);
    transform: scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-detail-modal.active .modal-content-wrap {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 2.2rem;
    cursor: pointer;
    color: var(--color-dark);
    opacity: 0.5;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-blue-pastel);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.modal-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 32px;
}

.modal-media {
    width: 100%;
    height: 320px;
    border-radius: 24px;
    overflow: hidden;
}

.modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    font-size: 1rem;
    color: var(--color-dark-light);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    .modal-media {
        height: 200px;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float-btn svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
}

.whatsapp-float-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55), 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-float-btn:active {
    transform: scale(0.95);
}

/* =========================================
   CASE LP (LANDING PAGE INDIVIDUAL)
   ========================================= */
#page-case-detail {
    min-height: 70vh;
    padding: 48px 24px 40px;
}

.case-lp-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.case-lp-container .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(49, 31, 117, 0.07);
    border: 1px solid rgba(49, 31, 117, 0.15);
    color: #311f75;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
    margin-bottom: 40px;
    letter-spacing: 0.3px;
}

.case-lp-container .btn-back:hover {
    background: rgba(49, 31, 117, 0.14);
    transform: translateX(-4px);
}

.case-lp-header {
    margin-bottom: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.case-lp-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #311f75;
    background: rgba(49, 31, 117, 0.1);
    border: 1px solid rgba(49, 31, 117, 0.2);
    padding: 5px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
    text-align: center;
}

.case-lp-title {
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: #311f75;
    margin-bottom: 16px;
    text-align: center;
    max-width: 820px;
}

.case-lp-desc {
    font-size: 1.15rem;
    color: rgba(49, 31, 117, 0.75);
    line-height: 1.6;
    font-weight: 300;
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

.case-lp-hero-img-wrap {
    position: relative;
    width: 100%;
    height: clamp(300px, 50vw, 520px);
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 56px;
    box-shadow: 0 24px 60px rgba(49, 31, 117, 0.15);
}

.case-lp-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.case-lp-hero-img-wrap:hover .case-lp-hero-img {
    transform: scale(1.03);
}

.case-lp-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(49, 31, 117, 0.0) 40%,
        rgba(49, 31, 117, 0.35) 100%
    );
    pointer-events: none;
}

.case-lp-body {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.case-lp-detail {
    margin-bottom: 48px;
    text-align: center;
}

.case-lp-detail p {
    font-size: 1.08rem;
    color: #311f75;
    line-height: 1.8;
    opacity: 0.88;
    margin-bottom: 24px;
    text-align: center;
}

.case-lp-detail p:last-child {
    margin-bottom: 0;
}

.case-lp-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
}

@media (max-width: 768px) {
    .case-lp-container {
        padding: 32px 20px 60px;
    }
    .case-lp-title {
        font-size: 1.7rem;
    }
}

/* Saiba Mais no grid de cases */
.grid-case-content .btn-case-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.2s;
    letter-spacing: 0.3px;
}

.case-grid-item:hover .btn-case-more {
    opacity: 1;
}

/* Share Button */
.btn-pill-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 100px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: #12141d;
    background: #ffffff;
    border: 1px solid rgba(18, 20, 29, 0.2);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.btn-pill-share:hover {
    transform: translateY(-3px) scale(1.02);
    background: #f4f4f8;
    border-color: rgba(18, 20, 29, 0.4);
    color: #000000;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.btn-pill-share:active {
    transform: scale(0.98);
}

.btn-pill-share .share-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #12141d;
}

/* Related Client Cases Section */
.case-client-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(49, 31, 117, 0.12);
}

.case-client-header {
    text-align: center;
    margin-bottom: 36px;
}

.case-client-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #311f75;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
}

.case-client-subtitle {
    font-size: 0.98rem;
    color: rgba(49, 31, 117, 0.7);
    font-weight: 400;
}

.case-client-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.case-client-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 16px 8px 24px 8px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
    justify-content: flex-start;
}

.case-client-carousel.few-cards {
    justify-content: center;
}

.case-client-carousel::-webkit-scrollbar {
    display: none;
}

.case-client-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(49, 31, 117, 0.12);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.case-client-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(49, 31, 117, 0.14);
    border-color: rgba(49, 31, 117, 0.35);
    background: #ffffff;
}

.case-client-card-img-wrap {
    width: 100%;
    height: 170px;
    overflow: hidden;
    position: relative;
    background: #1a1d2e;
}

.case-client-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-client-card:hover .case-client-card-img {
    transform: scale(1.08);
}

.case-client-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.case-client-card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #311f75;
    background: rgba(49, 31, 117, 0.08);
    padding: 3px 10px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 10px;
    align-self: flex-start;
}

.case-client-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: #311f75;
    margin-bottom: 12px;
}

.case-client-card-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #311f75;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.case-client-card:hover .case-client-card-link {
    gap: 8px;
}

.case-client-arrow {
    position: absolute;
    top: calc(50% - 12px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(49, 31, 117, 0.15);
    color: #311f75;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 6px 16px rgba(18, 20, 29, 0.12);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.case-client-arrow:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(49, 31, 117, 0.2);
}

.case-client-arrow.prev {
    left: -20px;
}

.case-client-arrow.next {
    right: -20px;
}

@media (max-width: 768px) {
    .case-lp-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .case-client-arrow {
        display: none;
    }
    .case-client-card {
        flex: 0 0 240px;
    }
    .case-client-arrow.prev {
        left: 0;
    }
    .case-client-arrow.next {
        right: 0;
    }
}

/* ============================================================
   FCOM edit chrome (admin only) — does not alter public layout
   ============================================================ */
.fcom-edit-chrome {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 99990;
    display: flex;
    gap: 8px;
    align-items: center;
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}
.fcom-edit-btn {
    appearance: none;
    border: 1px solid rgba(24, 20, 45, 0.18);
    background: #fff;
    color: #181425;
    font-size: 13px;
    font-weight: 650;
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(24, 20, 45, 0.12);
    text-decoration: none;
    line-height: 1;
}
.fcom-edit-btn:hover {
    border-color: rgba(75, 47, 176, 0.45);
}
.fcom-edit-btn-ghost {
    background: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    color: #726d87;
}
.fcom-edit-btn-primary {
    background: #4b2fb0;
    border-color: #4b2fb0;
    color: #fff;
}
.fcom-edit-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.fcom-edit-savebar {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99991;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(24, 20, 45, 0.12);
    box-shadow: 0 16px 40px rgba(24, 20, 45, 0.16);
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}
.fcom-edit-savebar-msg {
    font-size: 13px;
    font-weight: 600;
    color: #181425;
    white-space: nowrap;
}
.fcom-edit-hidden {
    display: none !important;
}
.fcom-edit-mode [data-cms].fcom-edit-box,
.fcom-edit-mode .fcom-edit-box {
    outline: 1.5px dashed rgba(75, 47, 176, 0.55);
    outline-offset: 3px;
    border-radius: 4px;
    min-width: 1ch;
}
.fcom-edit-mode .fcom-edit-box:focus {
    outline-color: #4b2fb0;
}

/* Host keeps position for absolute media button (no wrap on img) */
.fcom-edit-media-host {
    position: relative !important;
}
.fcom-edit-media-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 40;
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(24, 20, 45, 0.92);
    color: #fff;
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}
.fcom-edit-media-btn:hover {
    background: #4b2fb0;
}
.cflow-slide .fcom-edit-media-btn {
    top: 14px;
    left: 14px;
    z-index: 50;
}
.case-grid-item .fcom-edit-media-btn {
    z-index: 50;
}

.fcom-edit-url-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px dashed rgba(75, 47, 176, 0.4);
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
    font-size: 12px;
    color: #726d87;
    max-width: 360px;
}
.fcom-edit-url-row input,
.fcom-edit-url-row select {
    flex: 1;
    min-width: 0;
    border: 1px solid #e7e3f3;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
}

.fcom-edit-card {
    position: relative;
}
.fcom-edit-card-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    align-items: center;
}
.fcom-edit-card-toolbar-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 45;
    margin: 0;
}
.fcom-edit-mini-btn,
.fcom-edit-card-toolbar select {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(24, 20, 45, 0.88);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}
.product-card .fcom-edit-mini-btn,
.product-card .fcom-edit-card-toolbar select {
    border-color: #dad3ef;
    background: #fff;
    color: #181425;
}
.fcom-edit-mini-danger {
    background: #d6455a !important;
    border-color: #d6455a !important;
    color: #fff !important;
}
.fcom-edit-note {
    margin-top: 10px;
    font-size: 12px;
    color: #311f75;
    min-height: 1.2em;
}
.fcom-edit-item-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    list-style: none;
}
.fcom-edit-item-row .fcom-edit-item-text {
    flex: 1;
    min-width: 0;
}
.fcom-edit-item-remove {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: none;
    border-radius: 999px;
    background: rgba(214, 69, 90, 0.12);
    color: #d6455a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}
.fcom-edit-item-remove:hover {
    background: #d6455a;
    color: #fff;
}
.fcom-edit-note:empty::before {
    content: attr(data-placeholder);
    opacity: 0.45;
}
.fcom-edit-products-bar,
.fcom-edit-cases-bar {
    display: flex;
    justify-content: center;
    margin: 18px 0 8px;
}
.fcom-edit-add-btn {
    appearance: none;
    border: 1.5px dashed rgba(75, 47, 176, 0.55);
    background: rgba(255, 255, 255, 0.9);
    color: #372286;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}
.fcom-edit-add-btn:hover {
    background: #efe9ff;
}

.fcom-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 99995;
    background: rgba(12, 14, 24, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}
.fcom-edit-modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 22px 18px;
    width: min(520px, 100%);
    max-height: min(86vh, 720px);
    overflow: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.fcom-edit-modal-card h3 {
    margin: 0 0 14px;
    font-size: 17px;
}
.fcom-edit-modal-card label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #726d87;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.fcom-edit-modal-card input,
.fcom-edit-modal-card textarea {
    font: inherit;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    color: #181425;
    border: 1.5px solid #e7e3f3;
    border-radius: 10px;
    padding: 10px 12px;
}
.fcom-edit-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}


