@charset "UTF-8";

/* ===== RESET + VARIÁVEIS ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

:root {
    /* 🔧 Variáveis globais para consistência e fácil ajuste */
    --header-h: 88px;
    --header-h-scrolled: 72px;
    --brand: #00A8FF;
    --brand-dark: #0074D9;
    --bg-dark: #0a1128;
    --bg-black: #000;
    --text-light: #d1d5db;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    --text-soft: #4b5563;
    --border-soft: rgba(0, 168, 255, 0.15);
    --border-strong: rgba(0, 168, 255, 0.3);
    --radius-lg: 25px;
    --radius-pill: 50px;
    --shadow-brand: 0 20px 60px rgba(0, 168, 255, 0.15);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

html { scroll-behavior: smooth; transition: background-color 0.4s ease; }

body {
    background: var(--bg-dark);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; height: auto; display: block; }

/* ===== ACESSIBILIDADE: FOCO VISÍVEL ===== */
a:focus-visible,
button:focus-visible,
.contact-item a:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed; top: 0; left: 0; width: 100%;
    height: var(--header-h);
    background: rgba(10, 17, 40, 0.85);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 168, 255, 0.15);
    z-index: 1000;
    padding: 18px 20px;
    transition: all 0.3s ease;
    overflow: visible;
    display: flex;
    align-items: center;
}
.header.scrolled {
    height: var(--header-h-scrolled);
    padding: 12px 20px;
    background: rgba(10, 17, 40, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    overflow: visible;
    position: relative;
}

/* ===== LOGO ===== */
.logo {
    display: flex; align-items: flex-end; text-decoration: none;
    transition: transform 0.3s ease; flex-shrink: 0;
    position: relative; z-index: 5; height: auto;
}
.logo:hover { transform: scale(1.05); }
.logo img {
    height: 130px; width: auto; display: block; object-fit: contain;
    margin-bottom: -75px; margin-top: -15px;
    transition: filter 0.3s ease, height 0.3s ease, margin 0.3s ease;
    pointer-events: auto; position: relative; z-index: 2;
    filter: drop-shadow(0 0 8px rgba(0, 168, 255, 0.9)) drop-shadow(0 0 20px rgba(0, 168, 255, 0.6)) drop-shadow(0 0 35px rgba(0, 116, 217, 0.4));
    animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(0, 168, 255, 0.9)) drop-shadow(0 0 20px rgba(0, 168, 255, 0.6)) drop-shadow(0 0 35px rgba(0, 116, 217, 0.4));
        transform: translateY(0);
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(0, 168, 255, 1)) drop-shadow(0 0 30px rgba(0, 168, 255, 0.85)) drop-shadow(0 0 55px rgba(0, 168, 255, 0.6)) drop-shadow(0 0 80px rgba(0, 116, 217, 0.4));
        transform: translateY(-3px);
    }
}
.logo::before {
    content: ''; position: absolute;
    top: 50%; left: 50%;
    width: 130%; height: 130%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 168, 255, 0.35) 0%, rgba(0, 168, 255, 0.1) 40%, transparent 70%);
    border-radius: 50%; z-index: 1; pointer-events: none;
    animation: auraPulse 3s ease-in-out infinite; filter: blur(15px);
}
@keyframes auraPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
.logo::after {
    content: ''; position: absolute;
    top: 50%; left: 50%;
    width: 130%; height: 130%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, transparent 0deg, rgba(0, 168, 255, 0.6) 60deg, transparent 120deg, rgba(0, 116, 217, 0.5) 180deg, transparent 240deg, rgba(0, 168, 255, 0.6) 300deg, transparent 360deg);
    border-radius: 50%; z-index: 1; pointer-events: none;
    animation: rotateGlow 6s linear infinite; filter: blur(20px); opacity: 0.7;
}
@keyframes rotateGlow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
.header.scrolled .logo img { height: 139px; margin-bottom: -91px; margin-top: -10px; }
.header.scrolled .logo::before, .header.scrolled .logo::after { width: 120%; height: 120%; }

/* ===== NAV ===== */
.nav-menu { display: flex; gap: 22px; list-style: none; }
.nav-menu a {
    color: #d1d5db; text-decoration: none; font-size: 14px;
    font-weight: 600; transition: color 0.3s ease; position: relative;
}
.nav-menu a:hover, .nav-menu a.active { color: #00A8FF; }
.nav-menu a::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 2px; background: #00A8FF; transition: width 0.3s ease;
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

/* ===== MENU MOBILE TOGGLE ===== */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.menu-toggle:active { background: rgba(0, 168, 255, 0.15); }

/* ===== PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark), #7FDBFF);
    z-index: 10001;
    transition: width 0.1s ease;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.8);
}

/* ===== HERO ===== */
.page-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-h) + clamp(30px, 6vw, 70px)) 20px clamp(50px, 8vw, 80px);
    background: radial-gradient(circle at center, #0a1128 0%, #000 100%);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 168, 255, 0.15) 0%, transparent 60%);
    animation: pulseGlow 8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}
.page-hero .subtitle {
    color: var(--brand);
    font-size: clamp(11px, 1.4vw, 14px);
    font-weight: 700;
    letter-spacing: clamp(2px, 0.4vw, 3px);
    text-transform: uppercase;
    margin-bottom: clamp(10px, 1.5vw, 15px);
}
.page-hero h1 {
    font-size: clamp(26px, 5.5vw, 48px);
    font-weight: 900;
    color: #fff;
    margin-bottom: clamp(14px, 2vw, 20px);
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.page-hero h1 .highlight {
    color: var(--brand);
    text-shadow: 0 0 25px rgba(0, 168, 255, 0.6);
}
.page-hero p {
    font-size: clamp(14px, 1.8vw, 18px);
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto;
}

/* ===== SEÇÃO CONTATO ===== */
.section { padding: clamp(40px, 7vw, 80px) 20px; background: var(--bg-dark); }

.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: stretch;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 40px) clamp(18px, 3vw, 30px);
    box-shadow: var(--shadow-brand);
    display: flex;
    flex-direction: column;
}
.contact-card h2 {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}
.contact-card h2 .highlight { color: var(--brand); }
.contact-card > p {
    color: var(--text-muted);
    font-size: clamp(13px, 1.4vw, 15px);
    margin-bottom: clamp(20px, 3vw, 30px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 18px);
    margin-bottom: clamp(20px, 3vw, 30px);
    flex: 1;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 1.5vw, 15px);
    color: var(--text-light);
    font-size: clamp(13px, 1.4vw, 15px);
    text-align: left;
    min-width: 0;
}
.contact-item .icon {
    flex: 0 0 auto;
    width: clamp(38px, 5vw, 45px);
    height: clamp(38px, 5vw, 45px);
    background: rgba(0, 168, 255, 0.15);
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(15px, 2vw, 18px);
}
.contact-item .info { min-width: 0; flex: 1; }
.contact-item .info strong {
    color: #fff;
    display: block;
    margin-bottom: 3px;
    font-size: clamp(11px, 1.2vw, 14px);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.contact-item .info a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.contact-item .info a:hover { color: #fff; }
.contact-item .info span {
    color: var(--text-light);
    overflow-wrap: anywhere;
    word-break: break-word;
}
.contact-item .info small {
    color: var(--text-muted);
    font-size: clamp(11px, 1.2vw, 13px);
    display: block;
    margin-top: 3px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    padding: clamp(13px, 1.8vw, 16px) clamp(24px, 3vw, 40px);
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(14px, 1.6vw, 16px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}
.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.8);
}
.btn-contact svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }

/* ===== MAPA ===== */
.map-wrapper {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-brand);
    display: flex;
    flex-direction: column;
    min-height: 380px;
}
.map-header {
    padding: clamp(14px, 2vw, 20px) clamp(16px, 2.5vw, 25px);
    border-bottom: 1px solid rgba(0, 168, 255, 0.2);
    background: rgba(10, 17, 40, 0.5);
}
.map-header h3 {
    font-size: clamp(15px, 1.8vw, 18px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}
.map-header p {
    color: var(--text-muted);
    font-size: clamp(11px, 1.3vw, 13px);
    overflow-wrap: anywhere;
    word-break: break-word;
}
.map-container {
    flex: 1;
    width: 100%;
    position: relative;
    aspect-ratio: 4 / 3;
    min-height: 300px;
}
.map-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: none;
    transition: filter 0.4s ease;
}

/* ===== CTA ===== */
.cta {
    padding: clamp(50px, 8vw, 80px) 20px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: ctaGlow 8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes ctaGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.cta-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.cta h2 {
    font-size: clamp(22px, 4vw, 38px);
    font-weight: 900;
    color: #fff;
    margin-bottom: clamp(10px, 1.5vw, 15px);
    line-height: 1.2;
}
.cta p {
    font-size: clamp(14px, 1.7vw, 17px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: clamp(20px, 3vw, 30px);
}
.cta .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: var(--brand-dark);
    padding: clamp(13px, 1.8vw, 16px) clamp(24px, 3vw, 40px);
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(14px, 1.6vw, 16px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
.cta .btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.cta .btn-cta svg { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-black);
    border-top: 1px solid rgba(0, 168, 255, 0.2);
    padding: clamp(36px, 6vw, 50px) 20px clamp(20px, 3vw, 30px);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 40px);
    margin-bottom: clamp(24px, 4vw, 40px);
}
.footer-col h4 {
    color: var(--brand);
    font-size: clamp(12px, 1.4vw, 14px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: clamp(12px, 2vw, 20px);
}
.footer-col p {
    color: var(--text-muted);
    font-size: clamp(12px, 1.3vw, 14px);
    margin-bottom: 10px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: clamp(12px, 1.3vw, 14px);
    transition: color 0.3s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.footer-col ul li a:hover { color: var(--brand); }

.social-icons {
    display: flex;
    gap: clamp(8px, 1.5vw, 15px);
    margin-top: 20px;
    flex-wrap: wrap;
}
.social-icon, .admin-icon {
    width: clamp(38px, 4.5vw, 45px);
    height: clamp(38px, 4.5vw, 45px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-muted);
    flex-shrink: 0;
}
.social-icon:hover, .admin-icon:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 168, 255, 0.5);
}
.social-icon svg, .admin-icon svg {
    width: clamp(18px, 2.2vw, 22px);
    height: clamp(18px, 2.2vw, 22px);
    fill: currentColor;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: clamp(16px, 2.5vw, 25px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: var(--text-muted);
    font-size: clamp(11px, 1.2vw, 13px);
}
.footer-bottom .company-info { margin-bottom: 10px; }
.footer-bottom .company-info strong { color: var(--brand); }
.footer-bottom .cnpj {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: clamp(10px, 1.1vw, 12px);
    margin: 5px 0;
}
.footer-bottom .copyright {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: clamp(10px, 1.1vw, 11px);
}
.footer-bottom .dev-credit {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
    font-size: clamp(10px, 1.1vw, 12px);
}
.footer-bottom .dev-credit a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}
.footer-bottom .dev-credit a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.8);
}

/* ===== BOTÕES FLUTUANTES ===== */
.whatsapp-float {
    position: fixed;
    bottom: calc(20px + var(--safe-bottom));
    right: calc(20px + var(--safe-right));
    width: clamp(50px, 6vw, 60px);
    height: clamp(50px, 6vw, 60px);
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 5px;
}
.whatsapp-float:hover, .whatsapp-float:active {
    background-color: #128C7E;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.8);
    animation: none;
}
.whatsapp-float svg {
    width: clamp(24px, 3vw, 30px);
    height: clamp(24px, 3vw, 30px);
    fill: #fff;
    pointer-events: none;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.theme-toggle {
    position: fixed;
    bottom: calc(20px + var(--safe-bottom));
    left: calc(20px + var(--safe-left));
    width: clamp(46px, 5vw, 55px);
    height: clamp(46px, 5vw, 55px);
    background: rgba(10, 17, 40, 0.95);
    border: 1px solid rgba(0, 168, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4);
    padding: 5px;
    color: #fff;
}
.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--brand);
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.8);
}
.theme-toggle svg {
    width: clamp(20px, 2.5vw, 26px);
    height: clamp(20px, 2.5vw, 26px);
    fill: currentColor;
    pointer-events: none;
}
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-stagger.active > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.45s; }

/* ============================================================
   MODO CLARO — SINCRONIZADO (html.light-mode-early + body.light-mode)
   ============================================================ */

/* Base */
html.light-mode-early { background: #f5f7fb; }
html.light-mode-early body { background: #f5f7fb; color: var(--bg-dark); }
body.light-mode { background: #f5f7fb; color: var(--bg-dark); }

/* Header */
body.light-mode .header,
html.light-mode-early .header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 116, 217, 0.15);
}
body.light-mode .header.scrolled,
html.light-mode-early .header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Logo */
body.light-mode .logo img,
html.light-mode-early .logo img {
    filter: drop-shadow(0 0 8px rgba(0, 116, 217, 0.7)) drop-shadow(0 0 20px rgba(0, 168, 255, 0.5)) drop-shadow(0 0 35px rgba(0, 116, 217, 0.3));
}

/* Nav */
body.light-mode .nav-menu a,
html.light-mode-early .nav-menu a { color: var(--text-soft); }
body.light-mode .nav-menu a:hover,
body.light-mode .nav-menu a.active,
html.light-mode-early .nav-menu a:hover,
html.light-mode-early .nav-menu a.active { color: var(--brand-dark); }
body.light-mode .menu-toggle,
html.light-mode-early .menu-toggle { color: var(--bg-dark); }

/* Hero */
body.light-mode .page-hero,
html.light-mode-early .page-hero {
    background: radial-gradient(circle at center, #ffffff 0%, #f5f7fb 100%);
}
body.light-mode .page-hero h1,
html.light-mode-early .page-hero h1 { color: var(--bg-dark); }
body.light-mode .page-hero p,
html.light-mode-early .page-hero p { color: var(--text-soft); }

/* Section */
body.light-mode .section,
html.light-mode-early .section { background: #f5f7fb; }

/* Contact card */
body.light-mode .contact-card,
html.light-mode-early .contact-card {
    background: #ffffff;
    border-color: rgba(0, 116, 217, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}
body.light-mode .contact-card h2,
html.light-mode-early .contact-card h2 { color: var(--bg-dark); }
body.light-mode .contact-card > p,
html.light-mode-early .contact-card > p { color: var(--text-soft); }
body.light-mode .contact-item,
html.light-mode-early .contact-item { color: var(--text-soft); }
body.light-mode .contact-item .info strong,
html.light-mode-early .contact-item .info strong { color: var(--bg-dark); }
body.light-mode .contact-item .info a,
html.light-mode-early .contact-item .info a { color: var(--brand-dark); }
body.light-mode .contact-item .info a:hover,
html.light-mode-early .contact-item .info a:hover { color: var(--bg-dark); }
body.light-mode .contact-item .info span,
html.light-mode-early .contact-item .info span { color: var(--text-soft); }
body.light-mode .contact-item .info small,
html.light-mode-early .contact-item .info small { color: var(--text-dim); }
body.light-mode .contact-item .icon,
html.light-mode-early .contact-item .icon {
    background: rgba(0, 116, 217, 0.1);
    border-color: rgba(0, 116, 217, 0.3);
}

/* Mapa */
body.light-mode .map-wrapper,
html.light-mode-early .map-wrapper {
    background: #ffffff;
    border-color: rgba(0, 116, 217, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}
body.light-mode .map-header,
html.light-mode-early .map-header {
    background: #f3f6fa;
    border-bottom-color: rgba(0, 116, 217, 0.15);
}
body.light-mode .map-header h3,
html.light-mode-early .map-header h3 { color: var(--bg-dark); }
body.light-mode .map-header p,
html.light-mode-early .map-header p { color: var(--text-dim); }

/* Toggle */
body.light-mode .theme-toggle,
html.light-mode-early .theme-toggle {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--brand-dark);
    color: var(--brand-dark);
    box-shadow: 0 4px 15px rgba(0, 116, 217, 0.3);
}
body.light-mode .theme-toggle .icon-sun,
html.light-mode-early .theme-toggle .icon-sun { display: none; }
body.light-mode .theme-toggle .icon-moon,
html.light-mode-early .theme-toggle .icon-moon { display: block; }

/* Footer */
body.light-mode .footer,
html.light-mode-early .footer {
    background: #ffffff;
    border-top-color: rgba(0, 116, 217, 0.2);
}
body.light-mode .footer-col h4,
html.light-mode-early .footer-col h4 { color: var(--brand-dark); }
body.light-mode .footer-col p,
body.light-mode .footer-col ul li a,
html.light-mode-early .footer-col p,
html.light-mode-early .footer-col ul li a { color: var(--text-soft); }
body.light-mode .footer-bottom,
html.light-mode-early .footer-bottom { color: var(--text-dim); }
body.light-mode .social-icon,
body.light-mode .admin-icon,
html.light-mode-early .social-icon,
html.light-mode-early .admin-icon {
    background: rgba(0, 116, 217, 0.05);
    border-color: rgba(0, 116, 217, 0.15);
    color: var(--text-soft);
}
body.light-mode .footer-bottom .cnpj,
html.light-mode-early .footer-bottom .cnpj {
    background: rgba(0, 116, 217, 0.05);
    border-color: rgba(0, 116, 217, 0.1);
    color: var(--text-dim);
}
body.light-mode .footer-bottom .copyright,
html.light-mode-early .footer-bottom .copyright { color: var(--text-muted); }

/* CTA no modo claro — manter gradiente azul, mas com texto legível */
body.light-mode .cta,
html.light-mode-early .cta {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #001f3f 100%);
}
body.light-mode .cta .btn-cta,
html.light-mode-early .cta .btn-cta {
    background: #fff;
    color: var(--brand-dark);
}

/* Transições globais de tema */
body, .header, .page-hero, .section, .contact-card, .map-wrapper,
.contact-item, .map-header, .footer, .page-hero h1, .page-hero p,
.footer-col h4, .footer-col p, .footer-col a, .cta {
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* ============================================================
   RESPONSIVIDADE ESTRUTURADA
   ============================================================ */

/* --- Telas muito grandes (acima de 1400px) --- */
@media (min-width: 1400px) {
    :root {
        --header-h: 100px;
        --header-h-scrolled: 80px;
    }
    .header-content,
    .contact-grid,
    .footer-content,
    .footer-bottom {
        max-width: 1280px;
    }
}

/* --- Tablets grandes / notebooks pequenos (até 1024px) --- */
@media (max-width: 1024px) {
    :root {
        --header-h: 80px;
        --header-h-scrolled: 66px;
    }
    .logo img { height: 110px; margin-bottom: -65px; }
    .header.scrolled .logo img { height: 90px; margin-bottom: -55px; }
    .contact-grid { gap: 24px; }
    .footer-content {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    }
}

/* --- Tablets (até 900px) --- */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .map-wrapper { min-height: 340px; }
    .map-container { aspect-ratio: 16 / 9; min-height: 280px; }
    .btn-contact { max-width: 100%; }
    .footer-content {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .footer-col:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }
    .footer-col:first-child .social-icons { justify-content: center; }
}

/* --- Menu mobile (até 768px) --- */
@media (max-width: 768px) {
    :root {
        --header-h: 72px;
        --header-h-scrolled: 62px;
    }
    .logo img { height: 90px; margin-bottom: -55px; margin-top: -10px; }
    .header.scrolled .logo img { height: 75px; margin-bottom: -45px; margin-top: -8px; }

    .menu-toggle { display: block; }

    .nav-menu {
        position: fixed;
        top: var(--header-h); /* 🔧 usa variável em vez de valor fixo */
        left: 0;
        width: 100%;
        background: rgba(10, 17, 40, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 70px 20px;
        gap: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid rgba(0, 168, 255, 0.2);
    }
    .nav-menu.active { transform: translateX(0); }
    body.light-mode .nav-menu,
    html.light-mode-early .nav-menu { background: rgba(255, 255, 255, 0.98); }

    .header-content { padding: 0 16px; }

    .section { padding: clamp(40px, 7vw, 60px) 16px; }
    .cta { padding: clamp(40px, 7vw, 60px) 16px; }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 26px;
        text-align: center;
    }
    .footer-col { text-align: center; }
    .footer-col .social-icons { justify-content: center; }
}

/* --- Smartphones grandes (até 640px) --- */
@media (max-width: 640px) {
    .contact-card { padding: 24px 18px; border-radius: 20px; }
    .map-wrapper { border-radius: 20px; min-height: 300px; }
    .map-container { aspect-ratio: 4 / 3; min-height: 240px; }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: calc(16px + var(--safe-bottom));
        right: calc(16px + var(--safe-right));
    }
    .whatsapp-float svg { width: 26px; height: 26px; }
    .theme-toggle {
        width: 48px;
        height: 48px;
        bottom: calc(16px + var(--safe-bottom));
        left: calc(16px + var(--safe-left));
    }
    .theme-toggle svg { width: 22px; height: 22px; }
}

/* --- Smartphones pequenos (até 480px) --- */
@media (max-width: 480px) {
    .page-hero { padding-top: calc(var(--header-h) + 30px); }

    .contact-card h2 { font-size: 20px; }
    .contact-item .info strong { font-size: 11px; }

    .contact-item { gap: 10px; }
    .contact-item .icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .map-wrapper { min-height: 280px; }
    .map-container { min-height: 220px; }

    .cta .btn-cta,
    .btn-contact {
        width: 100%;
        justify-content: center;
    }

    .footer-bottom .cnpj { font-size: 10px; }
}

/* --- Smartphones muito pequenos / antigos (até 360px) --- */
@media (max-width: 360px) {
    :root {
        --header-h: 64px;
        --header-h-scrolled: 56px;
    }
    .logo img { height: 75px; margin-bottom: -45px; margin-top: -8px; }
    .header.scrolled .logo img { height: 65px; margin-bottom: -40px; margin-top: -6px; }
    .header-content { padding: 0 12px; }
    .section { padding: 40px 12px; }

    .contact-card { padding: 20px 14px; }
    .contact-item .icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .contact-item .info { font-size: 13px; }

    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: calc(14px + var(--safe-bottom));
        right: calc(14px + var(--safe-right));
    }
    .whatsapp-float svg { width: 22px; height: 22px; }
    .theme-toggle {
        width: 44px;
        height: 44px;
        bottom: calc(14px + var(--safe-bottom));
        left: calc(14px + var(--safe-left));
    }
    .theme-toggle svg { width: 20px; height: 20px; }

    .social-icon, .admin-icon { width: 40px; height: 40px; }
    .social-icon svg, .admin-icon svg { width: 18px; height: 18px; }
}

/* --- Celular deitado (landscape baixo) --- */
@media (max-height: 500px) and (orientation: landscape) {
    :root {
        --header-h: 64px;
        --header-h-scrolled: 56px;
    }
    .page-hero {
        padding-top: calc(var(--header-h) + 20px);
        padding-bottom: 30px;
    }
    .page-hero h1 { font-size: clamp(22px, 4vw, 32px); }
    .whatsapp-float, .theme-toggle {
        width: 46px;
        height: 46px;
        bottom: calc(10px + var(--safe-bottom));
    }
    .whatsapp-float svg, .theme-toggle svg { width: 20px; height: 20px; }
}

/* --- Acessibilidade: reduzir animações --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
    .logo img { animation: none; }
    .whatsapp-float { animation: none; }
}

/* --- Impressão --- */
@media print {
    .header, .scroll-progress, .whatsapp-float, .theme-toggle,
    .cta, .footer .dev-credit { display: none !important; }
    body { background: #fff; color: #000; }
    .page-hero { padding: 20px; background: #fff; }
    .page-hero::before { display: none; }
    a { color: #000; text-decoration: underline; }
}