/* ============================================================
   GEOVIQ SOLUTIONS — Bold / Editorial Design System
   Brand palette from logo: emerald → teal → blue → indigo
   Supports light (default) and dark themes via [data-theme]
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand (constant across themes) */
  --mint:   #2FD0A6;
  --teal:   #1EC8D1;
  --sky:    #2E9BE6;
  --blue:   #2F6BE0;
  --indigo: #2A2F86;
  --brand:  #15b9c2;   /* primary accent (teal) */
  --brand-2:#2F6BE0;   /* secondary accent (blue) */
  --brand-3:#2A2F86;   /* deep accent (indigo) */
  --grad: linear-gradient(115deg, var(--mint), var(--teal) 32%, var(--sky) 62%, var(--blue) 82%, var(--indigo));

  /* Theme tokens — LIGHT (default) */
  --bg:        #f3f6f6;
  --surface:   #ffffff;
  --text:      #0c1430;
  --muted:     #5a6580;
  --muted-2:   #8b95ac;
  --border:    #0c1430;       /* editorial hard borders */
  --border-soft: rgba(12,20,48,.12);
  --nav-bg:    rgba(243,246,246,.82);
  --ink-bg:    #0c1430;        /* .section--ink panel */
  --ink-text:  #eaf0f7;
  --ink-muted: #aab4cc;
  --on-brand:  #04241f;        /* text on teal/mint accent */
  --shadow: 0 24px 60px -28px rgba(12,20,48,.35);

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --bg:        #080d1a;
  --surface:   #0f1626;
  --text:      #eef2f7;
  --muted:     #9aa6bd;
  --muted-2:   #6a7790;
  --border:    #28324a;
  --border-soft: rgba(255,255,255,.10);
  --nav-bg:    rgba(8,13,26,.78);
  --ink-bg:    #0f1626;
  --ink-text:  #eef2f7;
  --ink-muted: #9aa6bd;
  --on-brand:  #04241f;
  --shadow: 0 24px 60px -28px rgba(0,0,0,.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------- Display type ---------- */
.display { font-family: var(--font-display); font-weight: 400; line-height: 0.92; letter-spacing: -0.01em; text-transform: uppercase; }
h1.display { font-size: clamp(48px, 9vw, 132px); }
h2.display { font-size: clamp(36px, 6vw, 84px); }
h3.display { font-size: clamp(28px, 4vw, 52px); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.out { -webkit-text-stroke: 1.6px var(--text); color: transparent; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand); display: inline-block; }

.lead { font-size: clamp(17px, 2vw, 22px); color: var(--muted); max-width: 60ch; font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px;
  padding: 16px 28px; border-radius: 100px; border: 2px solid var(--text);
  background: var(--text); color: var(--bg); cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { transform: translateY(-3px); background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translate(4px,-4px); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--acid { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--acid:hover { background: var(--text); border-color: var(--text); color: var(--bg); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: var(--nav-bg); backdrop-filter: blur(14px); border-bottom: 1.5px solid var(--border); transition: background .4s; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 92px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__img { height: 58px; width: auto; }
.brand__img.is-missing { display: none; }
.brand__text { display: none; font-family: var(--font-display); font-size: 26px; letter-spacing: 0.02em; text-transform: uppercase; }
.brand__text span { color: var(--teal); }
.brand__img.is-missing ~ .brand__text { display: inline; }
.nav__links { display: flex; gap: 4px; align-items: center; }
.nav__links a { font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 100px; color: var(--text); transition: background .2s, color .2s; }
.nav__links a:hover { background: var(--text); color: var(--bg); }
.nav__links a.active { color: var(--brand); }
.nav__cta { margin-left: 6px; }
.themebtn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--border); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; font-size: 17px; transition: transform .3s, border-color .3s; }
.themebtn:hover { transform: rotate(20deg) scale(1.05); border-color: var(--brand); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav__toggle span { width: 26px; height: 2.5px; background: var(--text); display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero h1 { margin: 22px 0; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.marquee { border-top: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border); background: var(--grad); overflow: hidden; white-space: nowrap; padding: 14px 0; margin-top: 60px; }
.marquee__track { display: inline-block; animation: scroll 26s linear infinite; }
.marquee span { font-family: var(--font-display); text-transform: uppercase; font-size: 30px; padding: 0 28px; letter-spacing: 0.02em; color: #fff; }
.marquee span::after { content: "✳"; margin-left: 56px; color: rgba(255,255,255,.7); }
@keyframes scroll { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ---------- Section scaffolding ---------- */
.section { padding: 100px 0; }
.section--ink { background: var(--ink-bg); color: var(--ink-text); }
.section--ink .lead { color: var(--ink-muted); }
.section--ink .eyebrow { color: var(--mint); }
.section--ink .out { -webkit-text-stroke: 1.6px var(--ink-text); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 56px; flex-wrap: wrap; }
.section__head .lead { margin-top: 16px; }

/* ---------- Service / feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1.5px solid var(--border); background: var(--surface); }
.card { padding: 40px 34px; border-right: 1.5px solid var(--border); transition: background .35s var(--ease), color .35s var(--ease); position: relative; min-height: 320px; display: flex; flex-direction: column; }
.card:last-child { border-right: none; }
.card__num { font-family: var(--font-display); font-size: 18px; color: var(--muted-2); }
.card h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 30px; line-height: 1; margin: 18px 0 14px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .tag { margin-top: auto; font-weight: 600; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; color: var(--brand); }
.card:hover { background: var(--brand-3); color: #fff; }
.card:hover p { color: rgba(255,255,255,.82); }
.card:hover .card__num { color: var(--mint); }
.card:hover .tag { color: var(--mint); }
.card--acid:hover { background: var(--brand); color: #fff; }
.card--acid:hover p { color: rgba(255,255,255,.9); }
.card--acid:hover .card__num, .card--acid:hover .tag { color: #042722; }
.card--flame:hover { background: var(--brand-2); color: #fff; }
.card--flame:hover p { color: #e4ecff; }
.card--flame:hover .card__num, .card--flame:hover .tag { color: var(--mint); }
.card--cobalt:hover { background: var(--indigo); color: #fff; }
.card--cobalt:hover p { color: #dfe2ff; }
.card--cobalt:hover .card__num, .card--cobalt:hover .tag { color: var(--mint); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); }
.stat { padding: 30px 24px; border-left: 1.5px solid var(--border); }
.stat:first-child { border-left: none; }
.stat__n { font-family: var(--font-display); font-size: clamp(48px, 6vw, 88px); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__l { font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em; margin-top: 8px; color: var(--muted); }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.split__media { aspect-ratio: 4/5; background: var(--ink-bg); border-radius: 6px; overflow: hidden; position: relative; box-shadow: var(--shadow); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.tagblock { display: inline-block; background: var(--grad); color: #fff; padding: 6px 16px; font-family: var(--font-display); text-transform: uppercase; font-size: 22px; margin: 4px 6px 4px 0; }

/* ---------- Sector list ---------- */
.sectorlist { border-top: 1.5px solid var(--border); }
.sectorrow { display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: center; padding: 30px 8px; border-bottom: 1.5px solid var(--border); transition: padding .35s var(--ease), background .35s var(--ease), color .35s var(--ease); }
.sectorrow__num { font-family: var(--font-display); font-size: 24px; color: var(--muted-2); }
.sectorrow__name { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(28px, 4vw, 54px); line-height: 1; }
.sectorrow__desc { max-width: 42ch; color: var(--muted); font-size: 15px; }
.sectorrow:hover { background: var(--brand-3); color: #fff; padding-left: 28px; padding-right: 28px; }
.sectorrow:hover .sectorrow__num { color: var(--mint); }
.sectorrow:hover .sectorrow__desc { color: rgba(255,255,255,.82); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.quote { border: 1.5px solid currentColor; padding: 34px; border-radius: 6px; }
.quote__stars { color: var(--mint); letter-spacing: 3px; margin-bottom: 16px; }
.quote p { font-size: 20px; font-weight: 500; line-height: 1.4; }
.quote__by { margin-top: 22px; font-weight: 600; }
.quote__by small { display: block; color: var(--ink-muted); font-weight: 400; }

/* ---------- FAQ (AEO) ---------- */
.faq { border-top: 1.5px solid var(--border); }
.faq__item { border-bottom: 1.5px solid var(--border); }
.faq__q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: var(--font-body); color: var(--text);
  font-size: clamp(18px, 2.4vw, 26px); font-weight: 600; padding: 28px 48px 28px 4px; position: relative; display: flex; }
.faq__q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 30px; color: var(--brand); transition: transform .3s; }
.faq__item.open .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { padding: 0 4px 28px; color: var(--muted); font-size: 17px; max-width: 80ch; }
.faq__item.open .faq__a { max-height: 400px; }

/* ---------- Big CTA ---------- */
.cta { background: var(--grad); color: #fff; padding: 110px 0; text-align: center; }
.cta h2 { color: #fff; }
.cta .eyebrow { color: #fff; }
.cta .eyebrow::before { background: #fff; }
.cta .btn { background: #fff; border-color: #fff; color: var(--indigo); margin-top: 34px; }
.cta .btn:hover { background: var(--text); border-color: var(--text); color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-bg); color: var(--ink-text); padding: 80px 0 36px; border-top: 1.5px solid var(--border); }
.footer__logo-img { height: 64px; width: auto; display: block; margin-bottom: 18px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 18px; }
.footer a, .footer p { color: var(--ink-text); opacity: 0.85; font-size: 15px; display: block; margin-bottom: 10px; transition: opacity .2s, color .2s; }
.footer a:hover { opacity: 1; color: var(--mint); }
.footer__bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--border); margin-top: 60px; padding-top: 24px; color: var(--ink-muted); font-size: 14px; flex-wrap: wrap; gap: 10px; }

/* ---------- Page header (interior pages) ---------- */
.pagehead { padding: 80px 0 60px; border-bottom: 1.5px solid var(--border); }
.pagehead h1 { margin: 18px 0; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.field input, .field textarea, .field select { width: 100%; padding: 16px 18px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font-family: var(--font-body); font-size: 16px; border-radius: 6px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--brand); border-color: var(--border); }
.contact-card { border: 1.5px solid var(--border); border-radius: 6px; padding: 36px; background: var(--surface); }
.contact-card a:hover { color: var(--brand); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .marquee__track { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .card { border-right: none; border-bottom: 1.5px solid var(--border); }
  .card:last-child { border-bottom: none; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(3) { border-left: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .quotes { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .sectorrow { grid-template-columns: 50px 1fr; }
  .sectorrow__desc { display: none; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.open { display: flex; position: absolute; top: 92px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1.5px solid var(--border); padding: 16px 32px; gap: 6px; }
  .nav__links.open a { padding: 12px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}
