/* =============================================
   DOPPIO MARKETING — Aesthetic Overhaul
   Referência: GC Studio (Tech / Agency)
   Tipografia: Plus Jakarta Sans (fallback para Gordita)
   Cores: Azul #009bdc | Grafite #595a5c
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;700;800&display=swap');

/* --- CSS Variables / Design Tokens --- */
:root {
    /* Brand Colors (from Logo) */
    --brand-blue: #009bdc;
    --brand-blue-glow: rgba(0, 155, 220, 0.3);
    --brand-grey: #595a5c;
    
    /* Backgrounds (GC Studio Style) */
    --bg-dark: #09090b; /* Almost black */
    --bg-surface: #121215;
    --bg-surface-light: #1a1a1f;
    
    /* Borders - Alterado para o azul da marca conforme feedback */
    --border-subtle: rgba(0, 155, 220, 0.15);
    --border-hover: rgba(0, 155, 220, 0.3);
    --border-brand: rgba(0, 155, 220, 0.6);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Typography */
    /* Update this to local Gordita files later */
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Layout */
    --max-width: 1280px;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; background-color: var(--bg-dark); }

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Noise Background (Presentation style) --- */
.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section Label --- */
.section-label {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-transform: uppercase;
    padding: 8px 18px;
    border: 1px solid var(--border-brand);
    border-radius: 100px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,0.03);
}

/* =============================================
   LAYOUT STRUCTURE (Grid System)
   ============================================= */
.grid-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.section-wrapper {
    position: relative;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

/* Emulating the new geometric [D] logo in CSS/SVG */
.logo-icon { width: 44px; height: 44px; }
.logo-icon rect.bracket { stroke: var(--text-primary); stroke-width: 3px; fill: none; }
.logo-icon rect.inner { fill: var(--brand-blue); }

.logo-text-group { display: flex; flex-direction: column; line-height: 1.1; margin-top: 2px;}
.logo-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; letter-spacing: 1px; }
.logo-sub { font-family: var(--font-primary); font-weight: 400; font-size: 0.65rem; letter-spacing: 3px; color: var(--text-secondary); }

.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    border-left: 1px solid var(--border-subtle);
    position: relative;
}

.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.02); }

.nav-cta {
    background: var(--brand-blue);
    color: var(--text-primary) !important;
    font-weight: 700 !important;
}
.nav-cta:hover { background: #008cc9 !important; }

.mobile-menu-btn { display: none; }

/* =============================================
   HERO
   ============================================= */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
    background: url('hero-bg.webp') center/cover no-repeat;
}

/* Overlay & Abstract Radial Glows */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 9, 11, 0.7) 0%, rgba(9, 9, 11, 0.98) 100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--brand-blue-glow) 0%, transparent 60%);
    border-radius: 50%;
    z-index: 1;
    filter: blur(80px);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 120px 0;
    width: 100%;
}

.hero-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 24px;
    padding-bottom: 0.1em;
    background: linear-gradient(90deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 500px;
}
.hero-tagline strong { color: var(--brand-blue); font-weight: 600; }

.scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 2;
}
.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: var(--brand-blue);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--brand-blue), 0 0 20px var(--brand-blue);
    animation: scrollDrop 2s infinite ease-in-out;
}
@keyframes scrollDrop {
    0% { top: -30%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* =============================================
   MANIFESTO / O PAR DEFINITIVO
   ============================================= */
.manifesto-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
.manifesto-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 120%; /* margem extra para o parallax rodar limpo */
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center;
    transform: translate(-50%, -50%);
    z-index: 0;
}
.manifesto-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.92); /* Escuro o suficiente para legibilidade no desktop */
    box-shadow: inset 0 150px 100px -20px var(--bg-default), inset 0 -150px 100px -20px var(--bg-default);
    z-index: 1;
    pointer-events: none;
}
.manifesto-section .grid-container {
    position: relative;
    z-index: 2;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.manifesto-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 32px;
}

.manifesto-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.manifesto-text p strong { color: var(--text-primary); }

.pair-visual {
    position: relative;
    padding: 60px;
    border: 1px solid rgba(0, 155, 220, 0.4);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(0, 155, 220, 0.05) 0%, rgba(9, 9, 11, 0) 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pair-item { position: relative; z-index: 2; margin-bottom: 32px; }
.pair-item:last-child { margin-bottom: 0; }

.pair-item h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.pair-item h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--brand-blue);
    border-radius: 50%;
}

.pair-item p { font-size: 0.9rem; color: var(--text-secondary); padding-left: 20px; }

/* =============================================
   SERVICES (Modular Grid)
   ============================================= */
.services-section { 
    padding: 120px 0; 
    position: relative;
    overflow: hidden;
}
.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center;
    transform: translate(-50%, -50%);
    z-index: 0;
}
.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.85);
    box-shadow: inset 0 150px 100px -20px var(--bg-default), inset 0 -150px 100px -20px var(--bg-default);
    z-index: 1;
    pointer-events: none;
}
.services-section .grid-container {
    position: relative;
    z-index: 2;
}

.services-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.service-card {
    padding: 40px 32px;
    background: linear-gradient(180deg, rgba(16, 24, 39, 0.8) 0%, rgba(9, 9, 11, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.03); /* Linha quase imperceptível de vidro ao invés do azul */
    border-radius: 12px;
    box-shadow: inset 0 20px 40px -20px rgba(0, 155, 220, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 20px 40px -20px rgba(0, 155, 220, 0.3), 0 15px 30px -10px rgba(0, 0, 0, 0.5);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--brand-blue);
    margin-bottom: 24px;
}
.service-icon svg { 
    width: 36px; 
    height: 36px; 
    min-width: 36px; 
    flex-shrink: 0; 
    stroke: var(--brand-blue); 
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================
   MÉTODO
   ============================================= */
.method-section { 
    padding: 120px 0; 
    background: url('blue-glass-bg_.webp') center/cover no-repeat fixed;
    position: relative;
    overflow: hidden;
}

.method-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.88);
    box-shadow: inset 0 150px 100px -20px var(--bg-default), inset 0 -150px 100px -20px var(--bg-default);
    z-index: 0;
    pointer-events: none;
}

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

.method-steps {
    display: flex;
    flex-direction: column;
    margin-top: 60px;
    border-top: 1px solid var(--border-subtle);
}

.method-step {
    display: grid;
    grid-template-columns: 50px 100px 1fr 2fr;
    gap: 40px;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.4s ease;
    border-left: 0px solid transparent;
}

.method-step:hover { 
    padding-left: 20px; 
    background: rgba(255,255,255,0.01); 
    border-left: 2px solid var(--brand-blue); 
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue);
    opacity: 0.8;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--brand-blue);
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
}

.step-desc { font-size: 0.95rem; color: var(--text-secondary); }

/* =============================================
   PORTFOLIO & CLIENTS
   ============================================= */
.projects-section { padding: 120px 0; }

.portfolio-placeholder {
    width: 100%;
    height: 300px;
    border: 1px dashed var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 40px 0 80px;
    background: rgba(255,255,255,0.01);
}

.clients-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
}

.client-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =============================================
   CONTACT & FOOTER
   ============================================= */
.contact-section {
    padding: 120px 0 0;
    position: relative;
    background: radial-gradient(ellipse at top, rgba(0, 155, 220, 0.06) 0%, transparent 70%);
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-brand) 50%, transparent 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding-bottom: 80px;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-info p { color: var(--text-secondary); margin-bottom: 40px; }

.contact-email {
    font-size: 1.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--brand-blue);
    border-bottom: 1px solid var(--brand-blue);
    padding-bottom: 4px;
    display: inline-block;
    margin-bottom: 32px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: all 0.3s ease;
}
.social-icon:hover {
    background: var(--brand-blue);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 155, 220, 0.3);
}
.social-icon svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
}

/* Form Minimalist */
.form-group { margin-bottom: 32px; position: relative; }

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    padding: 16px 24px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group textarea {
    border-radius: 24px; /* Arredondamento menor para não distorcer o quadrado de texto */
}

.form-group input:focus, .form-group textarea:focus { 
    border-color: var(--brand-blue); 
    background: rgba(0, 155, 220, 0.05);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }

.interest-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.interest-tag {
    padding: 8px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.interest-tag.active { border-color: var(--brand-blue); background: var(--brand-blue); color: #fff; }

.btn-submit {
    padding: 16px 40px;
    background: var(--text-primary);
    color: var(--bg-dark);
    border: none;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 100px;
}
.btn-submit:hover { background: var(--brand-blue); color: #fff; }

/* Footer */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0;
}
.footer .grid-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer p { font-size: 0.75rem; color: var(--text-muted); }

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.whatsapp-float {
    position: fixed;
    width: 68px;
    height: 68px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    box-shadow: 0px 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite;
}
.whatsapp-float svg {
    width: 34px;
    height: 34px;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0px 8px 25px rgba(37, 211, 102, 0.6);
    animation: none;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .manifesto-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid-wrapper { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    
    .method-step { 
        grid-template-columns: 50px 1fr; 
        grid-template-rows: auto auto;
        gap: 8px 16px; 
        padding: 32px 0;
    }
    .step-icon { grid-row: span 2; align-self: start; margin-top: 4px; }
    .step-title { grid-column: 2; }
    .step-desc { grid-column: 2; margin-top: 0; }
    .step-num { display: none; }
    
    .contact-grid { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 768px) {
    .grid-container { padding: 0 24px; }
    .nav-container { padding: 0 24px; position: relative; }
    
    /* MOBILE MENU BUTTON */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    
    .mobile-menu-btn span {
        width: 100%;
        height: 2px;
        background-color: var(--text-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: left center;
    }
    
    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg); background-color: var(--brand-blue); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg); background-color: var(--brand-blue); }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-dark);
        flex-direction: column;
        align-items: flex-start;
        display: none;
    }
    .nav-links.active { display: flex; }
    .nav-links a { width: 100%; padding: 24px; border-left: none; border-bottom: 1px solid var(--border-subtle); height: auto; }
    
    .services-grid-wrapper { grid-template-columns: 1fr; }
    .service-card { padding: 32px 24px; }
    
    .clients-track { flex-wrap: wrap; justify-content: center; }
    .footer .grid-container { flex-direction: column; gap: 24px; text-align: center; }

    /* Fix overlay darkness on mobile blocking videos */
    .manifesto-overlay {
        background: rgba(9, 9, 11, 0.85); /* Equilíbrio para mostrar o vídeo mas dar legibilidade */
        box-shadow: inset 0 30px 40px -10px var(--bg-default), inset 0 -30px 40px -10px var(--bg-default);
    }
    
    /* Consertando layout do box Estratégia no mobile */
    .pair-visual {
        padding: 32px 24px;
    }
    .pair-item h3 {
        font-size: 1.4rem;
    }
    .video-overlay, .method-section::before {
        background: rgba(9, 9, 11, 0.70);
        box-shadow: inset 0 30px 40px -10px var(--bg-default), inset 0 -30px 40px -10px var(--bg-default);
    }
    
    /* Clareando o Hero no mobile para trazer a cor da imagem de fundo */
    .hero::before {
        background: linear-gradient(180deg, rgba(9, 9, 11, 0.3) 0%, rgba(9, 9, 11, 0.8) 100%);
    }

    /* Fix horizontal scroll caused by long email */
    .contact-email {
        font-size: 1.2rem;
        word-break: break-all;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 24px;
        right: 24px;
        z-index: 9999;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
