/* ══════════════════════════════════════
   Denver Consultoria — styles.css
   ══════════════════════════════════════ */

/* ── Reset & Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: #080c14;
    color: #ecfeff;
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #080c14; }
::-webkit-scrollbar-thumb { background: #1c2b45; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #06b6d4; }

/* ── Logo ── */
.logo-mark {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0,212,255,0.2));
    transition: filter 0.3s ease;
}
.logo-group:hover .logo-mark {
    filter: drop-shadow(0 0 12px rgba(0,212,255,0.4));
}
.logo-text {
    line-height: 1;
}
.logo-text-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    color: #ecfeff;
}
.logo-text-sub {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    color: #00d4ff;
    text-transform: uppercase;
}

.logo-footer .logo-mark { height: 32px; opacity: 0.9; }
.logo-footer .logo-text-name { font-size: 1rem; opacity: 0.85; }
.logo-footer .logo-text-sub { font-size: 0.58rem; opacity: 0.8; }
.logo-footer:hover .logo-mark { opacity: 1; }
.logo-footer:hover .logo-text-name { opacity: 1; }
.logo-footer:hover .logo-text-sub { opacity: 1; }

/* ── Circuit SVG Pattern ── */
.circuit-bg {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0v20h30v20h-30v20h60v-20h30v-20h-30v-20h30v-20' fill='none' stroke='%2306b6d4' stroke-width='0.5'/%3E%3Ccircle cx='20' cy='20' r='2' fill='%2306b6d4'/%3E%3Ccircle cx='50' cy='40' r='1.5' fill='%2306b6d4'/%3E%3Ccircle cx='80' cy='20' r='2' fill='%2306b6d4'/%3E%3Ccircle cx='110' cy='40' r='1.5' fill='%2306b6d4'/%3E%3Cpath d='M100 80h40v40h-40zM140 100h30v20M60 120h40v30' fill='none' stroke='%2306b6d4' stroke-width='0.5'/%3E%3Ccircle cx='100' cy='80' r='2' fill='%2306b6d4'/%3E%3Ccircle cx='140' cy='120' r='1.5' fill='%2306b6d4'/%3E%3Ccircle cx='60' cy='150' r='2' fill='%2306b6d4'/%3E%3Cpath d='M0 160h20v20h40v-20h20v40' fill='none' stroke='%2306b6d4' stroke-width='0.5'/%3E%3Ccircle cx='20' cy='160' r='1.5' fill='%2306b6d4'/%3E%3Ccircle cx='60' cy='180' r='2' fill='%2306b6d4'/%3E%3Cpath d='M140 160h40v20h-20v20' fill='none' stroke='%2306b6d4' stroke-width='0.5'/%3E%3Ccircle cx='140' cy='160' r='1.5' fill='%2306b6d4'/%3E%3Ccircle cx='180' cy='180' r='2' fill='%2306b6d4'/%3E%3C/svg%3E");
}

/* ── Hero Circuit Lines (animated) ── */
.circuit-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.3), transparent);
    height: 1px;
    animation: traceLine var(--duration) linear infinite;
    animation-delay: var(--delay);
}
.circuit-line-v {
    position: absolute;
    background: linear-gradient(180deg, transparent, rgba(0,212,255,0.3), transparent);
    width: 1px;
    animation: traceLineV var(--duration) linear infinite;
    animation-delay: var(--delay);
}
@keyframes traceLine {
    0% { transform: translateX(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(100vw); opacity: 0; }
}
@keyframes traceLineV {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* ── Glowing Nodes ── */
.glow-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #00d4ff;
    border-radius: 50%;
    box-shadow: 0 0 12px 4px rgba(0,212,255,0.4), 0 0 30px 8px rgba(0,212,255,0.15);
    animation: nodePulse 3s ease-in-out infinite;
    animation-delay: var(--delay);
}
@keyframes nodePulse {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Service Cards ── */
.service-card {
    position: relative;
    background: linear-gradient(145deg, rgba(15,23,41,0.9), rgba(8,12,20,0.95));
    border: 1px solid rgba(0,212,255,0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 0%, rgba(0,212,255,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.service-card:hover {
    border-color: rgba(0,212,255,0.2);
    transform: translateY(-6px);
    box-shadow: 0 25px 60px -12px rgba(0,212,255,0.1), 0 0 0 1px rgba(0,212,255,0.05);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { opacity: 1; }

/* ── Tool Badge ── */
.tool-badge {
    background: linear-gradient(145deg, rgba(15,23,41,0.8), rgba(8,12,20,0.9));
    border: 1px solid rgba(0,212,255,0.07);
    transition: all 0.3s ease;
}
.tool-badge:hover {
    border-color: rgba(0,212,255,0.25);
    box-shadow: 0 0 30px -5px rgba(0,212,255,0.1);
    transform: translateY(-3px);
}

/* ── Navigation ── */
.nav-blur {
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}
.nav-link {
    position: relative;
    color: rgba(236,254,255,0.6);
    transition: color 0.3s ease;
}
.nav-link:hover { color: #00d4ff; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 1px;
    background: #00d4ff;
    box-shadow: 0 0 8px rgba(0,212,255,0.5);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── CTA Buttons ── */
.cta-primary {
    position: relative;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px -5px rgba(0,212,255,0.3);
}
.cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cta-primary:hover::before { opacity: 1; }
.cta-primary:hover {
    box-shadow: 0 8px 40px -8px rgba(0,212,255,0.5);
    transform: translateY(-1px);
}

.cta-ghost {
    border: 1px solid rgba(0,212,255,0.25);
    color: #67e8f9;
    transition: all 0.3s ease;
}
.cta-ghost:hover {
    border-color: #00d4ff;
    background: rgba(0,212,255,0.06);
    box-shadow: 0 0 25px -5px rgba(0,212,255,0.15);
}

/* ── Form Inputs ── */
.input-field {
    background: rgba(8,12,20,0.9);
    border: 1px solid rgba(0,212,255,0.1);
    transition: all 0.3s ease;
}
.input-field:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(0,212,255,0.08), 0 0 20px -5px rgba(0,212,255,0.15);
}

/* ── hCaptcha sizing ── */
.h-captcha {
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.75rem;
}

/* ── Glow Divider ── */
.glow-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.25), transparent);
}

/* ── Section Number ── */
.section-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: rgba(0,212,255,0.5);
}

/* ── Counter ── */
.counter { font-variant-numeric: tabular-nums; }

/* ── Mobile Menu ── */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open { transform: translateX(0); }

/* Mobile menu overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 49;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ══════════════════════════════════════
   Mobile Responsive
   ══════════════════════════════════════ */

/* ── Logo responsive ── */
@media (max-width: 767px) {
    .logo-mark { height: 36px; }
    .logo-text-name { font-size: 1.1rem; }
    .logo-text-sub { font-size: 0.6rem; letter-spacing: 0.18em; }
}

/* ── Hide decorative SVGs on small screens ── */
@media (max-width: 767px) {
    .hero-circuit-svg { display: none; }
    .glow-node { opacity: 0.3; }
    .floating-badge { display: none; }
}

/* ── Section padding responsive ── */
@media (max-width: 767px) {
    .section-padding { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .section-padding { padding-top: 5rem; padding-bottom: 5rem; }
}

/* ── Touch targets ── */
@media (max-width: 1023px) {
    .touch-target { min-width: 44px; min-height: 44px; }
}

/* ══════════════════════════════════════
   Preloader
   ══════════════════════════════════════ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 9999;
    background: #080c14;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.preloader-logo-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preloader-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(0,212,255,0.1);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: preloaderSpin 0.9s linear infinite;
}
.preloader-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0,212,255,0.4));
    animation: preloaderPulse 1.5s ease-in-out infinite;
}
@keyframes preloaderSpin {
    to { transform: rotate(360deg); }
}
@keyframes preloaderPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}
.preloader-text {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: #00d4ff;
    opacity: 0.7;
}

/* ══════════════════════════════════════
   WhatsApp Floating Button
   ══════════════════════════════════════ */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 90;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
    transition: all 0.3s ease;
    animation: whatsappPulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.35); }
    50% { box-shadow: 0 4px 20px rgba(37,211,102,0.35), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ══════════════════════════════════════
   Back to Top
   ══════════════════════════════════════ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    width: 44px;
    height: 44px;
    background: rgba(8,12,20,0.9);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 50%;
    color: #00d4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: rgba(0,212,255,0.1);
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0,212,255,0.2);
}

/* ══════════════════════════════════════
   LGPD Cookie Consent
   ══════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8,12,20,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,212,255,0.1);
    padding: 1rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.visible {
    transform: translateY(0);
}
.cookie-banner.dismissed {
    transform: translateY(100%);
}
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cookie-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(236,254,255,0.65);
    line-height: 1.5;
    flex: 1;
    min-width: 280px;
}
.cookie-link {
    color: #00d4ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-link:hover {
    color: #67e8f9;
}
.cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.cookie-btn-accept {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #080c14;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cookie-btn-accept:hover {
    box-shadow: 0 0 20px rgba(0,212,255,0.3);
    transform: translateY(-1px);
}
.cookie-btn-decline {
    background: transparent;
    color: rgba(236,254,255,0.5);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0,212,255,0.15);
    cursor: pointer;
    transition: all 0.2s ease;
}
.cookie-btn-decline:hover {
    border-color: rgba(0,212,255,0.3);
    color: rgba(236,254,255,0.7);
}

@media (max-width: 767px) {
    .whatsapp-float { width: 50px; height: 50px; right: 16px; bottom: 80px; }
    .whatsapp-float svg { width: 24px; height: 24px; }
    .back-to-top { right: 16px; bottom: 16px; }
    .cookie-content { flex-direction: column; text-align: center; gap: 0.75rem; }
    .cookie-actions { width: 100%; justify-content: center; }
}
