/* ════════════════════════════════════════════════════════════
   base.css — Reset, CSS variables (light + dark), layout, typography
   Geo Aerial Consulting
   ════════════════════════════════════════════════════════════ */

/* ─── RESET ──────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,sans-serif;line-height:1.6;background:var(--bg);color:var(--text);transition:background .25s,color .25s}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
button{font-family:inherit;cursor:pointer;border:none;background:none}

/* ─── LIGHT THEME ────────────────────────────────────────── */
:root,[data-theme="light"]{
  --bg:#ffffff;
  --bg-alt:#f4f6f9;
  --bg-dark:#04224f;
  --bg-dark-soft:#0a3a7a;
  --card:#ffffff;
  --card-border:#e5e7eb;
  --text:#111827;
  --text-muted:#6b7280;
  --text-light:#9ca3af;
  --border:#e5e7eb;
  --border-strong:#d1d5db;
  --accent:#012A6B;
  --accent-hover:#063a86;
  --accent-light:#e7edf7;
  --accent2:#1f8b57;
  --accent2-light:#e6f4ec;
  --cta:#f97316;
  --cta-hover:#ea6c0a;
  --shadow:0 1px 3px rgba(0,0,0,.06),0 4px 12px rgba(0,0,0,.06);
  --shadow-lg:0 8px 40px rgba(0,0,0,.10);
  --hero-text:#fff;
  --hero-muted:rgba(255,255,255,.68);
  --hero-border:rgba(255,255,255,.13);
  --logo-filter:none;
  --client-logo-filter:grayscale(100%) opacity(0.55);
  --client-logo-filter-hover:grayscale(0%) opacity(1);
  --search-bg:rgba(255,255,255,.1);
  --search-border:rgba(255,255,255,.22);
  --search-text:rgba(255,255,255,.9);
  --search-placeholder:rgba(255,255,255,.45);
}

/* ─── DARK THEME ─────────────────────────────────────────── */
[data-theme="dark"]{
  --bg:#0c1626;
  --bg-alt:#15243c;
  --bg-dark:#03132e;
  --bg-dark-soft:#0a2247;
  --card:#1e293b;
  --card-border:#334155;
  --text:#f1f5f9;
  --text-muted:#94a3b8;
  --text-light:#64748b;
  --border:#334155;
  --border-strong:#475569;
  --accent:#4d8ef0;
  --accent-hover:#3b7de0;
  --accent-light:#16335c;
  --accent2:#34b06e;
  --accent2-light:#15331f;
  --cta:#f97316;
  --cta-hover:#ea6c0a;
  --shadow:0 1px 3px rgba(0,0,0,.3),0 4px 12px rgba(0,0,0,.25);
  --shadow-lg:0 8px 40px rgba(0,0,0,.4);
  --hero-text:#fff;
  --hero-muted:rgba(255,255,255,.62);
  --hero-border:rgba(255,255,255,.1);
  --logo-filter:brightness(0) invert(1);
  --client-logo-filter:grayscale(100%) invert(1) opacity(0.45);
  --client-logo-filter-hover:grayscale(0%) invert(1) opacity(0.9);
  --search-bg:rgba(255,255,255,.08);
  --search-border:rgba(255,255,255,.16);
  --search-text:rgba(255,255,255,.9);
  --search-placeholder:rgba(255,255,255,.38);
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container{max-width:1160px;margin:0 auto;padding:0 40px}
.section{padding:88px 0}
.section-sm{padding:56px 0}
.section-alt{background:var(--bg-alt)}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
.eyebrow{display:inline-block;font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--accent);background:var(--accent-light);padding:4px 12px;border-radius:20px;margin-bottom:14px}
.eyebrow-teal{color:var(--accent2);background:var(--accent2-light)}
h1,h2,h3,h4{line-height:1.15;letter-spacing:-.25px;color:var(--text)}
.section-title{font-size:clamp(26px,3vw,38px);font-weight:800;margin-bottom:14px}
.section-sub{font-size:16px;color:var(--text-muted);max-width:520px;line-height:1.75}
.section-header{margin-bottom:52px}
.section-header.center{text-align:center}.section-header.center .section-sub{margin:0 auto}

/* ─── FLOATING WHATSAPP BUTTON ───────────────────────────── */
.wa-float{
  position:fixed;left:24px;bottom:24px;z-index:500;
  display:inline-flex;align-items:center;gap:10px;
  height:54px;padding:0 20px 0 15px;border-radius:30px;
  background:#25D366;color:#fff;text-decoration:none;
  box-shadow:0 6px 20px rgba(37,211,102,.45);
  transition:transform .2s,box-shadow .2s,background .2s;
}
.wa-float:hover{background:#1ebe5d;transform:translateY(-2px);box-shadow:0 10px 28px rgba(37,211,102,.5)}
.wa-float svg{width:28px;height:28px;fill:#fff;flex-shrink:0}
.wa-float-label{font-size:14px;font-weight:600;white-space:nowrap}
/* subtle attention pulse */
.wa-float::after{content:'';position:absolute;inset:0;border-radius:30px;box-shadow:0 0 0 0 rgba(37,211,102,.5);animation:waPulse 2.6s ease-out infinite}
@keyframes waPulse{0%{box-shadow:0 0 0 0 rgba(37,211,102,.45)}70%{box-shadow:0 0 0 14px rgba(37,211,102,0)}100%{box-shadow:0 0 0 0 rgba(37,211,102,0)}}
@media(max-width:560px){
  .wa-float{left:16px;bottom:16px;padding:0;width:52px;height:52px;justify-content:center}
  .wa-float-label{display:none}
}
@media(prefers-reduced-motion:reduce){ .wa-float::after{animation:none} }

/* ─── CHATBOT WIDGET (GeoBot, bottom-right) ──────────────── */
.cbot-launcher{position:fixed;right:24px;bottom:24px;z-index:600;width:60px;height:60px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(17,85,204,.4);cursor:pointer;border:none;transition:transform .2s,background .2s}
.cbot-launcher:hover{background:var(--accent-hover);transform:translateY(-2px)}
.cbot-launcher svg{width:26px;height:26px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cbot-launcher .cbot-ic-close{display:none}
.cbot-open .cbot-launcher .cbot-ic-open{display:none}
.cbot-open .cbot-launcher .cbot-ic-close{display:block}

.cbot-panel{position:fixed;right:24px;bottom:96px;z-index:600;width:360px;max-width:calc(100vw - 32px);height:480px;max-height:calc(100vh - 130px);background:var(--card);border:1.5px solid var(--card-border);border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.32);display:flex;flex-direction:column;overflow:hidden;opacity:0;transform:translateY(12px) scale(.98);pointer-events:none;transition:opacity .2s,transform .2s}
.cbot-open .cbot-panel{opacity:1;transform:none;pointer-events:auto}
.cbot-header{background:var(--bg-dark);color:#fff;padding:15px 16px;display:flex;align-items:center;gap:11px}
.cbot-avatar{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,var(--accent),var(--accent2));display:flex;align-items:center;justify-content:center;flex-shrink:0}
.cbot-avatar svg{width:19px;height:19px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cbot-htext strong{font-size:14.5px;font-weight:700;color:#fff;display:block;line-height:1.2}
.cbot-status{font-size:11.5px;color:rgba(255,255,255,.6);display:flex;align-items:center;gap:5px;margin-top:2px}
.cbot-status::before{content:'';width:7px;height:7px;border-radius:50%;background:#22c55e}
.cbot-sub{font-size:11.5px;color:rgba(255,255,255,.55);margin-top:2px;display:block}
.cbot-close{margin-left:auto;background:none;border:none;color:rgba(255,255,255,.7);cursor:pointer;padding:4px;display:flex}
.cbot-close:hover{color:#fff}
.cbot-close svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cbot-body{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:var(--bg-alt)}
.cbot-msg{max-width:82%;padding:10px 14px;border-radius:14px;font-size:13.5px;line-height:1.55}
.cbot-msg.bot{background:var(--card);border:1px solid var(--border);color:var(--text);align-self:flex-start;border-bottom-left-radius:4px}
.cbot-msg.user{background:var(--accent);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.cbot-msg a{color:var(--accent);font-weight:600;text-decoration:underline}
.cbot-msg.user a{color:#fff}
.cbot-typing{align-self:flex-start;display:flex;gap:4px;padding:12px 14px;background:var(--card);border:1px solid var(--border);border-radius:14px;border-bottom-left-radius:4px}
.cbot-typing span{width:7px;height:7px;border-radius:50%;background:var(--text-light);animation:cbotBlink 1.2s infinite}
.cbot-typing span:nth-child(2){animation-delay:.2s}.cbot-typing span:nth-child(3){animation-delay:.4s}
@keyframes cbotBlink{0%,60%,100%{opacity:.3}30%{opacity:1}}
.cbot-quick{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 12px;background:var(--bg-alt)}
.cbot-chip{font-family:inherit;font-size:12.5px;font-weight:600;color:var(--accent);background:var(--accent-light);border:1px solid transparent;border-radius:20px;padding:7px 13px;cursor:pointer;transition:all .15s}
.cbot-chip:hover{background:var(--accent);color:#fff}
.cbot-inputrow{display:flex;gap:8px;padding:12px;border-top:1px solid var(--border);background:var(--card)}
.cbot-inputrow input{flex:1;font-family:inherit;font-size:13.5px;border:1.5px solid var(--border);border-radius:20px;padding:9px 14px;outline:none;background:var(--bg);color:var(--text)}
.cbot-inputrow input:focus{border-color:var(--accent)}
.cbot-send{width:38px;height:38px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;border:none}
.cbot-send:hover{background:var(--accent-hover)}
.cbot-send svg{width:17px;height:17px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:560px){
  .cbot-launcher{right:16px;bottom:16px;width:54px;height:54px}
  .cbot-panel{right:12px;left:12px;width:auto;bottom:82px;height:70vh}
  .scroll-top{bottom:84px;right:22px}
}
@media(prefers-reduced-motion:reduce){.cbot-typing span{animation:none}}

/* ─── FADE-IN ANIMATION ──────────────────────────────────── */
.fade-in{opacity:0;transform:translateY(18px);transition:opacity .45s ease,transform .45s ease}
.fade-in.visible{opacity:1;transform:translateY(0)}

/* ─── SCROLL TO TOP ──────────────────────────────────────── */
.scroll-top{
  position:fixed;bottom:96px;right:34px;z-index:500;
  width:40px;height:40px;border-radius:10px;
  background:var(--accent);color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow-lg);cursor:pointer;
  opacity:0;transform:translateY(8px);
  transition:all .2s;pointer-events:none;
}
.scroll-top.visible{opacity:1;transform:translateY(0);pointer-events:auto}
.scroll-top:hover{background:var(--accent-hover);transform:translateY(-2px)}
.scroll-top svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}

/* ─── PAGE HERO (interior pages) ─────────────────────────── */
.page-hero{background:var(--bg-dark);padding:84px 0 76px;position:relative;overflow:hidden}
.page-hero::before{
  content:'';position:absolute;inset:0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 40%,rgba(17,85,204,.28) 0%,transparent 70%),
    radial-gradient(ellipse 40% 50% at 90% 75%,rgba(15,143,122,.22) 0%,transparent 60%);
  pointer-events:none;
}
.page-hero.has-bg{background-size:cover;background-position:center}
.page-hero.has-bg::before{
  background:
    linear-gradient(180deg,rgba(4,34,79,.82),rgba(4,34,79,.9)),
    radial-gradient(ellipse 80% 60% at 65% 40%,rgba(17,85,204,.3) 0%,transparent 70%);
}
.page-hero-inner{position:relative;z-index:1;max-width:680px}
.page-hero h1{font-size:clamp(30px,4vw,46px);font-weight:900;color:#fff;line-height:1.12;letter-spacing:-.6px;margin-bottom:16px}
.page-hero p{font-size:17px;color:var(--hero-muted);line-height:1.75;max-width:560px}
.page-hero .eyebrow{margin-bottom:16px}

/* ─── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb{display:flex;align-items:center;gap:8px;font-size:13px;color:rgba(255,255,255,.5);margin-bottom:18px;position:relative;z-index:1}
.breadcrumb a{color:rgba(255,255,255,.7);transition:color .15s}
.breadcrumb a:hover{color:#fff}
.breadcrumb svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.5}

/* ─── RESPONSIVE (global) ────────────────────────────────── */
@media(max-width:640px){
  .container{padding:0 20px}.section{padding:60px 0}
}
