/* ==========================================================================
   ESCARVELHO — CINEMATIC & MODERN REDESIGN
   ========================================================================== */

:root {
    --bg-base: #050604;
    --bg-surface: #0E110A;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    --lime: #C1693D;
    --lime-glow: rgba(193, 105, 61, 0.4);
    --lime2: #8B9B6B;
    --lime2-glow: rgba(139, 155, 107, 0.25);
    
    --white: #F4F4F0;
    --muted: #8A8E81;
    --whatsapp: #25D366;
    
    --font-display: 'Fraunces', serif;
    --font-body: 'Work Sans', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { 
    max-width: 100%; width: 100%; overflow-x: hidden; position: relative;
}

html { scroll-behavior: smooth; background: var(--bg-base); }

body { 
    font-family: var(--font-body); background-color: var(--bg-base); 
    color: var(--white); line-height: 1.6; 
    overflow-wrap: break-word; -webkit-font-smoothing: antialiased; 
}

a { text-decoration: none !important; color: inherit; }

/* EFEITOS ATMOSFÉRICOS */
body::before { 
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; 
    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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); 
    opacity: 0.03; z-index: 9999; pointer-events: none; 
}
.bloom { position: absolute; border-radius: 50%; filter: blur(120px); z-index: 0; pointer-events: none; }
.bloom.primary { background: var(--lime-glow); }
.bloom.secondary { background: var(--lime2-glow); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.02em; position: relative; z-index: 1; }
.accent-swash { font-family: var(--font-display); font-style: italic; font-weight: 700; color: var(--lime); position: relative; display: inline-block; text-shadow: 0 0 20px var(--lime-glow); }

/* BOTÕES */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.25rem; min-height: 2.75rem; border-radius: 100px; font-weight: 500; font-size: 0.9rem; transition: all 0.3s; cursor: pointer; text-align: center; }
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --angle: 360deg; } }

.btn-ghost { background: var(--bg-base); color: var(--white); padding: 0.75rem 1.25rem; min-height: 2.75rem; border-radius: 100px; position: relative; border: 1px solid transparent; cursor: pointer; z-index: 1; text-align: center; }
.btn-ghost::before { content: ""; position: absolute; inset: -2px; border-radius: 100px; padding: 2px; background: conic-gradient(from var(--angle), var(--lime), transparent 40%, transparent 60%, var(--lime)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-border 3s linear infinite; z-index: -1; }
.btn-ghost::after { content: ""; position: absolute; inset: 2px; background: var(--bg-base); border-radius: 100px; z-index: -1; transition: background 0.3s; }
.btn-ghost:hover::after { background: var(--bg-surface); }
.btn-ghost:hover { color: var(--lime); }

.btn-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.25rem; min-height: 2.75rem; border-radius: 100px; font-weight: 600; font-size: 0.9rem; background: var(--whatsapp); color: #000; transition: all 0.3s; box-shadow: 0 0 25px rgba(37, 211, 102, 0.3); }
.btn-whatsapp:hover, .btn-whatsapp:active { background: #1EBE5A; transform: scale(1.05); }

/* LAYOUT GERAL & MARGENS SEGURAS */
.container { 
    max-width: 90rem; width: 100%; margin: 0 auto; 
    padding: 0 1.5rem; position: relative; z-index: 1; 
}
@media (min-width: 768px) { .container { padding: 0 5vw; } }

.section-pad { padding-top: 4.5rem; padding-bottom: 4.5rem; } 
@media (min-width: 768px) { .section-pad { padding-top: 8rem; padding-bottom: 8rem; } }

.reveal { opacity: 1; transform: none; filter: none; transition: none; }
@media (min-width: 769px) {
    .reveal { opacity: 0; transform: translateY(2.5rem); filter: blur(4px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
    .reveal.active { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* =========================================================
   NAVIGATION (CORREÇÃO DE ESPAÇAMENTOS E SCROLL)
   ========================================================= */
#main-nav { 
    position: fixed; top: 0; width: 100%; z-index: 100; 
    padding-top: 2rem; padding-bottom: 2rem; transition: all 0.4s ease; 
}
.nav-inner { 
    display: flex; justify-content: space-between; align-items: center; 
    width: 100%; position: relative; 
}
.logo-link { display: flex; align-items: center; }
.logo-img { height: 2.25rem; object-fit: contain; transition: opacity 0.3s ease; margin: 0; }

.nav-links { 
    position: fixed; top: 0; right: -100%; width: 100%; height: 100dvh; 
    background: var(--bg-surface); display: flex; flex-direction: column; 
    justify-content: center; align-items: center; gap: 2rem; padding: 1.5rem; 
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); 
}
.nav-links.active { right: 0; }
.nav-link { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); transition: color 0.3s; padding: 0.5rem; }
.nav-link:hover, .nav-link:active { color: var(--white); }

.nav-burger { 
    position: relative; background: none; border: none; cursor: pointer; 
    width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; 
    z-index: 101; transition: all 0.4s ease; border-radius: 50%; margin-left: auto;
}
.nav-burger span { display: block; width: 1.25rem; height: 2px; background: var(--white); position: absolute; transition: 0.3s; left: 50%; transform: translateX(-50%); }
.nav-burger span:nth-child(1) { top: 0.75rem; } 
.nav-burger span:nth-child(2) { top: 1.15rem; } 
.nav-burger span:nth-child(3) { top: 1.55rem; }
.nav-burger.open span:nth-child(1) { transform: translate(-50%, 0.4rem) rotate(45deg); } 
.nav-burger.open span:nth-child(2) { opacity: 0; } 
.nav-burger.open span:nth-child(3) { transform: translate(-50%, -0.4rem) rotate(-45deg); }

#main-nav.scrolled { 
    background: rgba(14, 17, 10, 0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); 
    padding-top: 1rem; padding-bottom: 1rem; pointer-events: auto;
}
#main-nav.scrolled .logo-img { opacity: 1; }

@media (min-width: 1025px) {
    .nav-links { 
        position: static; height: auto; width: auto; right: auto; flex-direction: row; gap: 2rem; 
        background: rgba(255,255,255,0.03); padding: 0.5rem 0.75rem 0.5rem 1.5rem; 
        border-radius: 100px; border: 1px solid var(--border); backdrop-filter: blur(10px); 
    }
    .nav-link { font-size: 0.85rem; padding: 0; }
    .nav-burger { display: none; }
    .logo-img { height: 2.75rem; }
    #main-nav.scrolled .nav-links { opacity: 1; pointer-events: auto; }
}

/* =========================================================
   HERO SECTION (CORREÇÃO DE SOBREPOSIÇÃO)
   ========================================================= */
.hero { 
    position: relative; min-height: 100dvh; height: auto; 
    display: flex; align-items: center; overflow: hidden; 
    padding-top: 9rem; padding-bottom: 4rem; 
}
.hero-bg-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.35; pointer-events: none; }

.hero::after {
    content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, var(--bg-base) 0%, rgba(5,6,4,0.92) 35%, transparent 100%);
    z-index: 1; pointer-events: none;
}

.hero-grid { 
    position: relative; z-index: 2; width: 100%;
    display: flex; flex-direction: column; gap: 3.5rem; align-items: center; text-align: center; 
}

/* Trava rígida para evitar que vídeo e texto se esmaguem */
.hero-visual, .hero-content {
    flex-shrink: 0; 
    width: 100%;
}

.hero-visual { display: flex; justify-content: center; order: -1; } 

.hero-visual-frame { 
    position: relative; width: 100%; max-width: 22rem; aspect-ratio: 9/16; 
    border-radius: 1.5rem; box-shadow: 0 20px 50px rgba(0,0,0,0.6); 
    border: 1px solid rgba(255,255,255,0.05);
}

.hero-content { order: 1; display: flex; flex-direction: column; align-items: center; }
.hero-h1 { font-size: clamp(2.6rem, 9vw, 6rem); margin-bottom: 1rem; font-weight: 500; line-height: 1.05; }
.hero-sub { font-size: clamp(1.1rem, 4vw, 1.25rem); color: var(--muted); max-width: 34.375rem; margin-bottom: 2rem; line-height: 1.5; text-align: center; }
.hero-actions { display: flex; flex-direction: row; gap: 0.75rem; align-items: center; justify-content: center; flex-wrap: wrap; width: 100%; }

/* =========================================================
   STATUS - ALINHAMENTO GEOMÉTRICO
   ========================================================= */
.hero-stats-wibify { 
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; 
    width: 100%; gap: 2rem; margin-top: 2.5rem; 
}
.stat-box { 
    display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; 
    column-gap: 0.6rem; row-gap: 0.1rem; align-items: center; justify-content: center; 
}
.stat-icon { grid-column: 1; grid-row: 1; display: flex; align-items: center; justify-content: center; color: var(--lime); }
.stat-icon svg { width: 1.25rem; height: 1.25rem; filter: drop-shadow(0 0 5px var(--lime)); }
.stat-data { display: contents; } 
.stat-number { grid-column: 2; grid-row: 1; font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--white); line-height: 1; }
.stat-text { grid-column: 1 / span 2; grid-row: 2; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); text-align: center; justify-self: center; margin-top: 0.2rem; }
.stat-divider { display: none; }

/* ENVELOPE DE VÍDEOS GERAIS */
.video-wrapper { position: relative; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; }
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; display: block; }
.unmute-btn { position: absolute; bottom: 1.25rem; right: 1.25rem; z-index: 10; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.4); color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.unmute-btn svg { width: 1.25rem; height: 1.25rem; stroke: #FFF; fill: none; }
.unmute-btn:hover, .unmute-btn:active { background: var(--lime); border-color: var(--lime); transform: scale(1.1); box-shadow: 0 0 20px var(--lime-glow); }

/* OVERLAY DO BOTÃO DE REPLAY */
.replay-overlay {
    position: absolute; inset: 0; background: rgba(5, 6, 4, 0.75); backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
    border-radius: inherit; z-index: 15;
}
.replay-overlay.active { opacity: 1; pointer-events: auto; }
.btn-replay {
    width: 4.5rem; height: 4.5rem; border-radius: 50%;
    background: var(--lime); color: var(--bg-base);
    border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 30px var(--lime-glow);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-replay svg { width: 2.2rem; height: 2.2rem; fill: currentColor; }
.btn-replay:hover { transform: scale(1.1); background: var(--white); color: var(--bg-base); box-shadow: 0 0 30px rgba(255,255,255,0.3); }

/* VÍDEO DE SERVIÇOS (HORIZONTAL) */
.service-video-wrapper {
    border-radius: 1rem; 
    border: 1px solid rgba(255,255,255,0.05); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
}

@media (min-width: 1025px) {
    .hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4vw; text-align: left; align-items: center; }
    .hero-visual { order: 1; justify-content: flex-end; }
    .hero-content { order: 0; align-items: flex-start; text-align: left; }
    .hero-sub { text-align: left; margin: 0 0 2.5rem 0; }
    .hero-actions { justify-content: flex-start; }
    .hero-stats-wibify { justify-content: center; gap: 3rem; margin-top: 4rem; }
    .stat-divider { display: block; width: 4px; height: 4px; background: var(--border-hover); border-radius: 50%; }
}

/* =========================================================
   PRODUÇÃO CRIATIVA (SERVIÇOS)
   ========================================================= */
.split-section { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; text-align: center; }
.split-section > div:first-child p { margin-inline: auto; }

.service-list { display: flex; flex-direction: column; gap: 1.25rem; text-align: left; }
.service-item { 
    border: 1px solid var(--border); border-radius: 1.25rem; padding: 1.75rem 1.5rem; 
    background: rgba(255, 255, 255, 0.01); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    position: relative; overflow: hidden; z-index: 1;
}
.service-item::before { 
    content: ""; position: absolute; inset: 0; 
    background: linear-gradient(90deg, transparent, rgba(193, 105, 61, 0.12), transparent); 
    transform: translateX(-100%); transition: transform 0.6s ease; z-index: -1; 
}
.service-item:hover { 
    border-color: var(--lime); transform: translateY(-4px); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.5); background: rgba(14, 17, 10, 0.85);
}
.service-item:hover::before { transform: translateX(100%); }

.service-title { font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 2.2rem); font-style: italic; color: var(--white); margin-bottom: 0.5rem; transition: color 0.3s, text-shadow 0.3s; }
.service-item:hover .service-title { color: var(--lime); text-shadow: 0 0 20px var(--lime-glow); }
.service-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.6; max-width: 100%; }

@media (min-width: 769px) {
    .split-section { grid-template-columns: 1fr 1fr; gap: 6vw; text-align: left; }
    .split-section > div:first-child p { margin-inline: 0; }
    .service-desc { max-width: 100%; font-size: 1rem; }
}

/* DEPOIMENTOS */
#depoimentos .reveal { text-align: center; }
#depoimentos .reveal p { margin-inline: auto; }
.testi-carousel-wrapper { position: relative; width: 100%; height: 22.5rem; display: flex; justify-content: center; align-items: center; perspective: 1200px; margin-top: 2rem; cursor: grab; overflow: hidden; }
.testi-carousel-wrapper:active { cursor: grabbing; }
.testi-carousel { position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; transform-style: preserve-3d; }
.testi-card { position: absolute; width: 85vw; max-width: 24rem; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 1.5rem; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; user-select: none; -webkit-user-drag: none; will-change: transform, opacity, filter; text-align: left; }
.testi-card * { user-select: none; -webkit-user-drag: none; }
.testi-header { display: flex; align-items: center; gap: 1rem; pointer-events: none; }
.testi-avatar { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.testi-name { font-size: 1.1rem; color: var(--white); margin-bottom: 0.15rem; font-weight: 600; }
.testi-role { font-size: 0.8rem; color: var(--lime); text-transform: uppercase; letter-spacing: 0.05em; }
.testi-body p { font-size: 0.95rem; line-height: 1.6; color: var(--muted); font-style: italic; pointer-events: none; }

@media (min-width: 769px) { #depoimentos .reveal { text-align: left; } #depoimentos .reveal p { margin-inline: 0; } .testi-carousel-wrapper { height: 25rem; } .testi-card { padding: 2rem; max-width: 26.25rem; } .testi-body p { font-size: 1.05rem; } }

/* =========================================================
   SESSÃO REGISTRO DE MARCA
   ========================================================= */
.brand-protection-banner { 
    background: rgba(14, 17, 10, 0.7); border: 1px solid var(--lime); border-radius: 1.5rem; 
    padding: 2.5rem 1.5rem; text-align: center; display: flex; flex-direction: column; 
    align-items: center; transition: all 0.4s; margin-inline: auto; max-width: 100%; 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); color: var(--white);
}
.brand-protection-banner h2 { color: var(--lime); }
.brand-protection-banner p { color: var(--white); font-weight: 400; opacity: 0.9; }
.brand-protection-icon { 
    width: 3.5rem; height: 3.5rem; border-radius: 50%; background: rgba(193, 105, 61, 0.1); 
    display: flex; align-items: center; justify-content: center; color: var(--lime); 
    margin-bottom: 1.5rem; border: 1px solid var(--lime);
}
.brand-protection-icon svg { width: 1.75rem; height: 1.75rem; }
.brand-protection-banner .btn-ghost { background: var(--lime); color: var(--bg-base); border: 1px solid var(--lime); font-weight: 700; }
.brand-protection-banner .btn-ghost::before, .brand-protection-banner .btn-ghost::after { display: none; }
.brand-protection-banner .btn-ghost:hover { background: transparent; color: var(--lime); border-color: var(--lime); }
@media (min-width: 769px) { .brand-protection-banner { padding: 3.75rem 5vw; } }

/* PORTFÓLIO DINÂMICO */
.portfolio-list-minimal { border-top: 1px solid var(--border); margin-top: 3rem; }
.port-row { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0.5rem; border-bottom: 1px solid var(--border); border-radius: 0.5rem; color: var(--white); transition: all 0.3s; position: relative; overflow: hidden; z-index: 1; text-align: left; }
.port-row-content { display: flex; align-items: center; gap: 1rem; }
.port-icon { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgba(255,255,255,0.02); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); flex-shrink: 0; }
.port-icon svg { width: 1.25rem; height: 1.25rem; }
.port-row .title { font-family: var(--font-display); font-size: clamp(1.3rem, 5vw, 3rem); font-style: italic; line-height: 1.2; }
.port-desc { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }
.view-project { display: none; } 
.port-row .arrow { font-size: 1.2rem; color: var(--muted); }

@media (min-width: 769px) { 
    .port-row { padding: 2.5rem 1rem; border-radius: 1rem; } 
    .port-row-content { gap: 1.5rem; } 
    .port-icon { width: 3.5rem; height: 3.5rem; } 
    .port-icon svg { width: 1.5rem; height: 1.5rem; }
    .port-desc { font-size: 0.95rem; }
    .view-project { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--lime); opacity: 0; transform: translateX(-15px); transition: all 0.4s; font-weight: 600; }
    .port-row:hover .view-project { opacity: 1; transform: translateX(0); }
    .port-row:hover .port-icon { background: var(--lime); color: var(--bg-base); transform: scale(1.1) rotate(5deg); border-color: var(--lime); box-shadow: 0 0 20px var(--lime-glow); }
    .port-row:hover .title { color: var(--lime); text-shadow: 0 0 20px var(--lime-glow); }
    .port-row:hover .arrow { transform: translate(10px, -10px); color: var(--lime); }
    .port-row::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(193,105,61,0.15), transparent); transform: translateX(-100%); transition: transform 0.6s ease; z-index: -1; }
    .port-row:hover::before { transform: translateX(100%); }
}

/* EQUIPE */
#equipe .reveal { text-align: center; }
#equipe .reveal p { margin-inline: auto; }
.team-grid { display: flex; flex-direction: column; gap: 2rem; margin-top: 3rem; align-items: center; }
.member-card { background: transparent; border: 1px solid var(--border); border-radius: 1.5rem; padding: 2rem 1.5rem; text-align: center; transition: 0.3s; width: 100%; max-width: 320px; }
.member-photo { width: 8rem; height: 8rem; margin: 0 auto 1.5rem; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,0.05); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(50%) contrast(1.1); transition: 0.5s; }
.member-role { color: var(--lime); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 0.5rem; display: block; }
.member-name { font-size: clamp(1.5rem, 5vw, 2.2rem); margin-bottom: 0.75rem; }
.member-quote { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-family: var(--font-display); font-style: italic; color: var(--lime); font-size: 1.05rem; }

@media (min-width: 769px) { 
    #equipe .reveal { text-align: left; } 
    #equipe .reveal p { margin-inline: 0; } 
    .team-grid { flex-direction: row; justify-content: center; gap: 2.5rem; align-items: flex-start; } 
    .member-card { max-width: 380px; padding: 2.5rem 2rem; height: auto; } 
    .member-card:hover { border-color: var(--border-hover); transform: translateY(-5px); background: rgba(255,255,255,0.01); } 
    .member-card:hover .member-photo img { filter: grayscale(0%) contrast(1); transform: scale(1.05); border-color: var(--lime); } 
}

/* CONTATO */
.contact-section { 
    background: rgba(255,255,255,0.01); border-radius: 1.5rem; border: 1px solid var(--border); 
    padding: 2.5rem 1.5rem; 
    margin-top: 0; /* Espaçamento extra removido */
    display: grid; grid-template-columns: 1fr; gap: 2.5rem; 
    align-items: center; position: relative; overflow: hidden; text-align: left;
}
.contact-section > div:first-child { text-align: center; }
.contact-section > div:first-child p { margin-inline: auto; }
.form-group { margin-bottom: 1.25rem; text-align: left; }
.form-label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.5rem; }
.form-input, .form-select, .form-textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--border); color: var(--white); font-family: var(--font-body); font-size: 1rem; padding: 0 0 0.75rem 0; transition: border-color 0.3s; border-radius: 0; outline: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--lime); }
.form-textarea { resize: none; min-height: 5rem; }
.form-select option { background: var(--bg-surface); color: var(--white); }
.btn-submit { width: 100%; padding: 1rem; background: var(--white); color: var(--bg-base); font-size: 1rem; font-weight: 600; font-family: var(--font-body); border: none; border-radius: 100px; cursor: pointer; transition: all 0.3s; margin-top: 0.5rem; }
.btn-submit:hover, .btn-submit:active { background: var(--lime); color: var(--white); box-shadow: 0 0 25px var(--lime-glow); }

/* BOTÃO DE IDIOMA FORMATADO (Pílula Sutil) */
.btn-en-text { 
    display: block; width: fit-content; margin: 1.5rem auto 0 auto; 
    background: rgba(255,255,255,0.03); border: 1px solid var(--border); 
    color: var(--muted); cursor: pointer; text-decoration: none; 
    font-family: var(--font-body); font-size: 0.85rem; transition: all 0.3s; 
    padding: 0.6rem 1.25rem; border-radius: 100px; text-align: center;
}
.btn-en-text:hover { background: rgba(255,255,255,0.08); color: var(--white); border-color: var(--border-hover); }

@media (min-width: 901px) { 
    .contact-section { 
        grid-template-columns: 1fr 1fr; padding: 4rem; gap: 3.75rem; 
        margin-top: -2rem; /* Puxa o contato para cima reduzindo o vão */
        border-radius: 2rem; 
    } 
    .contact-section > div:first-child { text-align: left; }
    .contact-section > div:first-child p { margin-inline: 0; }
    .form-input, .form-select, .form-textarea { font-size: 1.2rem; }
}

/* =========================================================
   FOOTER (EQUILIBRADO DESKTOP & MOBILE)
   ========================================================= */
footer { 
    border-top: 1px solid var(--border); 
    padding-top: 2.5rem; padding-bottom: 1.5rem; 
    background: var(--bg-base); position: relative; z-index: 10; 
}

.footer-grid { 
    display: grid; grid-template-columns: 1fr; gap: 2rem; 
    margin-bottom: 1.5rem; text-align: center;
}

.footer-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.footer-brand .footer-logo { max-width: 2rem; margin: 0 auto 0.75rem auto; display: block; }
.footer-brand p { text-align: center; margin: 0 auto; max-width: 20rem; font-size: 0.85rem; color: var(--muted); }

.footer-title { font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--lime); margin-bottom: 0.5rem; font-weight: 600; text-align: center; }
.footer-links { list-style: none !important; padding: 0 !important; margin: 0 !important; text-align: center; }
.footer-links li { margin-bottom: 0.2rem !important; font-size: 0.8rem; list-style: none !important; } 
.footer-links a { color: var(--white); transition: color 0.3s; display: inline-block; padding: 0.1rem 0; }

.footer-contact-box { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.footer-contact-item { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; color: var(--muted); font-size: 0.825rem; transition: color 0.3s; }
.footer-contact-item:hover { color: var(--lime); }

/* MOBILE: 2 Colunas Limpas e Distribuídas */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
    .footer-brand { grid-column: 1 / -1; }
    
    /* O "display: contents" funde os filhos direto no grid principal, evitando gambiarras no HTML */
    .footer-links-wrapper { display: contents; } 
    
    .footer-col-portfolio { grid-column: 1 / 2; }
    .footer-col-agencia { grid-column: 2 / 3; }
    .footer-col-contato { grid-column: 1 / -1; }
}

/* DESKTOP: 3 Colunas com os Menus Menores Unificados no Centro */
@media (min-width: 901px) { 
    footer { padding-top: 4rem; padding-bottom: 1.5rem; }
    
    .footer-grid { 
        grid-template-columns: 2fr 2.5fr 1.5fr; 
        gap: 4rem; align-items: flex-start; text-align: left; 
    }
    
    .footer-brand { align-items: flex-start; }
    .footer-brand .footer-logo { margin: 0 0 1rem 0; }
    .footer-brand p { text-align: left; margin: 0; }
    
    /* Coloca Portfólio e Agência LADO A LADO na coluna central para equilibrar o tamanho da coluna Contatos */
    .footer-links-wrapper { display: flex; justify-content: space-around; gap: 2rem; width: 100%; }
    
    .footer-title, .footer-links { text-align: left; }
    .footer-col-contato .footer-title { text-align: left; }
    .footer-contact-box { align-items: flex-start; }
    .footer-contact-item { justify-content: flex-start; }
}

.footer-bottom { 
    display: flex; flex-direction: column; gap: 0.4rem; text-align: center; justify-content: center; 
    align-items: center; border-top: 1px solid var(--border); padding-top: 1rem; color: var(--muted); font-size: 0.75rem; 
}

@media (min-width: 901px) { 
    .footer-bottom { flex-direction: row; justify-content: space-between; font-size: 0.8rem; padding-top: 1.25rem; }
}

/* =========================================================
   PATCH DE RESPONSIVIDADE ESTRUTURAL
   ========================================================= */

@media (max-width: 768px) {
    .hero-bg-video { object-position: center; opacity: 0.15; }
    
    /* Remove sombras e bordas dos vídeos SOMENTE no Mobile (Ajuste 2) */
    .hero-visual-frame,
    .service-video-wrapper {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    
    /* Aproxima "Trabalhos Recentes" dos "Feedbacks" no mobile (Ajuste 3) */
    #depoimentos { padding-bottom: 1.5rem; }
    #portfolio { padding-top: 1.5rem; margin-top: -1.5rem; }
}

@media (min-width: 1025px) and (max-height: 850px) {
    .hero { min-height: auto; }
    .hero-h1 { font-size: clamp(2.2rem, 4vw, 4.5rem); }
    .hero-visual-frame { max-width: 18rem; }
}
@media (min-width: 769px) and (max-width: 1100px) {
    .team-grid { flex-wrap: wrap; }
}

/* =========================================================
   SELETOR DE IDIOMA (BOUTIQUE)
   ========================================================= */
.lang-menu { position: relative; display: flex; align-items: center; margin-left: 0.5rem; z-index: 1000; }
.lang-btn { background: transparent; border: none; color: var(--muted); font-size: 0.85rem; font-family: var(--font-body); font-weight: 600; cursor: pointer; display: flex; align-items: center; transition: color 0.3s; text-transform: uppercase; letter-spacing: 0.1em; }
.lang-btn:hover { color: var(--white); }

.lang-dropdown { 
    position: absolute; top: 120%; right: 0; background: rgba(14, 17, 10, 0.95); backdrop-filter: blur(12px); 
    border: 1px solid var(--border); border-radius: 0.75rem; min-width: 140px; display: flex; flex-direction: column; 
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.6); overflow: hidden; pointer-events: none;
}
.lang-menu:hover .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }

.lang-dropdown button { 
    background: transparent; border: none; color: var(--muted); padding: 0.85rem 1.25rem; 
    font-size: 0.85rem; font-family: var(--font-body); text-align: left; cursor: pointer; 
    transition: all 0.3s; border-bottom: 1px solid rgba(255,255,255,0.03); 
}
.lang-dropdown button:hover { background: rgba(255,255,255,0.03); color: var(--lime); padding-left: 1.5rem; }
.lang-dropdown button:last-child { border-bottom: none; }

@media (max-width: 1024px) {
    .lang-menu { margin: 1rem auto 0; }
    .lang-dropdown { right: auto; left: 50%; transform: translateX(-50%) translateY(10px); }
    .lang-menu:hover .lang-dropdown { transform: translateX(-50%) translateY(0); }
}

/* =========================================================
   HEADER MOBILE ACTIONS & MENU SANDUÍCHE
   ========================================================= */
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-mobile-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Espaço entre idioma e menu */
}

.lang-menu {
    position: relative;
    z-index: 100;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 0.4rem 0.8rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--lime);
}

@media (min-width: 900px) {
    .nav-mobile-actions {
        order: 3;
    }
    #nav-links {
        order: 2;
        margin-right: auto;
        margin-left: 2rem;
    }
}

/* Suporte ao clique no mobile para o menu de idiomas */
@media (max-width: 1024px) {
    .lang-menu.open .lang-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(-50%) translateY(0) !important;
        pointer-events: auto !important;
    }
}