/* ============================================================
   Datacator marketing site — styles.css
   Brand palette lives here once, as CSS custom properties.
   Layout only. All copy/prices/toggles come from content.js.
   Usage ratio target: ~60% warm white · 28% navy · 12% teal.
   ============================================================ */

:root {
  /* Brand palette (source of truth: Brand Guidelines v1.0) */
  --deep-navy:    #0D1B2A;  /* primary text / dark surfaces */
  --electric-teal:#00C2CB;  /* accent / highlights only     */
  --warm-white:   #F8F9FA;  /* background / canvas           */
  --deep-teal:    #00949B;  /* teal TEXT on light (AA-safe)  */

  /* Neutrals */
  --ink-800:  #1B2B3A;
  --slate-600:#415A77;
  --mist-400: #8B9BB0;
  --cloud-200:#E1E5EA;

  /* Supporting */
  --teal-tint:   #E5F8F9;  /* fills / panels        */
  --signal-amber:#F4B740;  /* alerts, sparingly     */
  --growth-green:#2E9E6B;  /* positive metrics      */

  /* Fonts */
  --font-head: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(56px, 8vw, 104px);
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(13, 27, 42, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(13, 27, 42, 0.28);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--deep-navy);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--deep-navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 700; }

p { margin: 0 0 1rem; }
a { color: var(--deep-teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--deep-teal);
  margin: 0 0 0.9rem;
}

/* ---------- Layout helpers ---------- */
.section { padding: var(--section-y) 0; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section--navy { background: var(--deep-navy); color: var(--warm-white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--warm-white); }
.section--navy .eyebrow { color: var(--electric-teal); }
.section--tint { background: var(--teal-tint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--electric-teal); color: var(--deep-navy); box-shadow: var(--shadow); }
.btn--primary:hover { box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--deep-navy); border-color: var(--cloud-200); }
.section--navy .btn--ghost { color: var(--warm-white); border-color: rgba(255,255,255,0.35); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 249, 250, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--cloud-200);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-family: var(--font-head); font-weight: 600; font-size: 0.94rem;
  color: var(--deep-navy); padding: 8px 14px; border-radius: 8px;
}
.nav-links a:hover { background: var(--cloud-200); text-decoration: none; }
.nav-links a.nav-cta {
  background: var(--electric-teal); color: var(--deep-navy);
  padding: 9px 18px; margin-left: 6px;
}
.nav-links a.nav-cta:hover { background: var(--deep-teal); color: var(--warm-white); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--deep-navy);
  border-radius: 2px; transition: 0.2s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(0,194,203,0.16), transparent 60%),
    var(--warm-white);
  padding: clamp(60px, 10vw, 120px) 0 clamp(56px, 8vw, 100px);
}
.hero-inner { max-width: 820px; }
.hero h1 { margin-bottom: 0.35em; }
.hero .subhead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--slate-600); max-width: 640px; margin-bottom: 2rem; }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem .lead p { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(248,249,250,0.86); }
.problem .emphasis {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--electric-teal);
  margin: 0.5em 0 0;
}
.pain-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; margin-top: clamp(30px, 5vw, 48px);
}
.pain-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 20px 22px;
}
.pain-card .sector {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--electric-teal); margin-bottom: 8px;
}
.pain-card .quote { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--warm-white); }

/* ============================================================
   WHAT WE DO — 5-step value chain
   ============================================================ */
.whatwedo .intro { font-size: 1.12rem; color: var(--slate-600); max-width: 680px; }
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-top: clamp(28px, 4vw, 44px);
}
.step {
  background: #fff; border: 1px solid var(--cloud-200);
  border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow);
  position: relative;
}
.step .num {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--deep-teal);
  border: 1px solid var(--teal-tint); background: var(--teal-tint);
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--slate-600); font-size: 0.95rem; margin: 0; }

/* ============================================================
   PILLARS — What You Get
   ============================================================ */
.pillars-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: clamp(28px, 4vw, 44px);
}
.pillar {
  background: #fff; border: 1px solid var(--cloud-200);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow);
  border-top: 4px solid var(--electric-teal);
}
.pillar h3 { margin-bottom: 4px; }
.pillar .q { font-family: var(--font-head); font-weight: 600; color: var(--deep-teal); font-size: 1rem; margin-bottom: 14px; }
.pillar p { color: var(--slate-600); font-size: 0.96rem; margin: 0; }

/* ============================================================
   ADVISORY
   ============================================================ */
.advisory .adv-inner { max-width: 760px; }
.advisory p { font-size: clamp(1.05rem, 2vw, 1.2rem); color: rgba(248,249,250,0.88); }
.advisory .emphasis {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--electric-teal); margin-top: 0.6em;
}

/* ============================================================
   HOW IT WORKS — timeline
   ============================================================ */
.timeline {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px; margin-top: clamp(28px, 4vw, 44px);
}
.phase {
  background: #fff; border: 1px solid var(--cloud-200);
  border-radius: var(--radius); padding: 24px 22px;
  border-left: 4px solid var(--electric-teal);
}
.phase .timing {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--deep-teal); margin-bottom: 6px;
}
.phase h3 { font-size: 1.1rem; margin-bottom: 8px; }
.phase p { color: var(--slate-600); font-size: 0.93rem; margin: 0; }
.goodwill {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal-tint); color: var(--ink-800);
  border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 0.95rem;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing .disclaimer { color: var(--slate-600); font-size: 0.95rem; max-width: 620px; }
.tiers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px; margin: clamp(28px, 4vw, 44px) 0 30px; align-items: stretch;
}
.tier {
  background: #fff; border: 1px solid var(--cloud-200);
  border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column;
  box-shadow: var(--shadow); position: relative;
}
.tier--rec { border: 2px solid var(--electric-teal); box-shadow: var(--shadow-lg); }
.tier .badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--electric-teal); color: var(--deep-navy);
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.tier h3 { font-size: 1.4rem; letter-spacing: 0.02em; margin-bottom: 4px; }
.tier .audience { color: var(--slate-600); font-size: 0.9rem; margin-bottom: 20px; min-height: 2.6em; }
.tier .price { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--deep-navy); }
.tier .price small { display: block; font-size: 0.8rem; font-weight: 500; color: var(--mist-400); font-family: var(--font-body); }
.tier .setup { color: var(--slate-600); font-size: 0.9rem; margin: 8px 0 20px; }
.tier ul { list-style: none; margin: 0 0 26px; padding: 0; }
.tier li { position: relative; padding: 8px 0 8px 26px; font-size: 0.95rem; color: var(--ink-800); border-bottom: 1px solid var(--warm-white); }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 14px; height: 8px; border-left: 2px solid var(--deep-teal);
  border-bottom: 2px solid var(--deep-teal); transform: rotate(-45deg);
}
.tier .btn { margin-top: auto; text-align: center; }
.addons {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; margin-top: 8px;
}
.addon {
  background: var(--warm-white); border: 1px solid var(--cloud-200);
  border-radius: var(--radius); padding: 18px 20px;
}
.addon .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.addon .name { font-family: var(--font-head); font-weight: 700; }
.addon .price { font-family: var(--font-head); font-weight: 700; color: var(--deep-teal); white-space: nowrap; }
.addon .note { color: var(--slate-600); font-size: 0.85rem; margin: 4px 0 0; }

/* ============================================================
   SECTORS
   ============================================================ */
.sector-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px; margin-top: clamp(24px, 4vw, 40px);
}
.sector-chip {
  background: #fff; border: 1px solid var(--cloud-200); border-radius: var(--radius);
  padding: 22px 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  display: flex; align-items: center; gap: 12px;
}
.sector-chip::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--electric-teal); flex: none;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about .purpose { max-width: 720px; }
.about .purpose p { font-size: 1.12rem; color: var(--slate-600); }
.namestory { margin-top: clamp(34px, 5vw, 56px); }
.namestory .intro { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; max-width: 640px; margin-bottom: 22px; }
.roles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px;
}
.role {
  background: var(--teal-tint); border-radius: var(--radius); padding: 20px 22px;
}
.role .word { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--deep-navy); }
.role .meaning { color: var(--deep-teal); font-size: 0.92rem; margin-top: 4px; }

.founders { margin-top: clamp(34px, 5vw, 56px); }
.founders-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 22px;
}
.founder {
  background: #fff; border: 1px solid var(--cloud-200); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
}
.founder img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; }
.founder .name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.founder .role { color: var(--deep-teal); font-size: 0.9rem; margin-bottom: 10px; }
.founder .bio { color: var(--slate-600); font-size: 0.94rem; margin: 0; }

/* ============================================================
   CASE STUDY (styled now, gated by content.js)
   ============================================================ */
.casestudy-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: clamp(28px, 4vw, 44px);
}
.casestudy {
  background: #fff; border: 1px solid var(--cloud-200); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow); border-top: 4px solid var(--electric-teal);
}
.casestudy .client { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }
.casestudy .cs-sector { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--deep-teal); margin-bottom: 12px; }
.casestudy .summary { color: var(--slate-600); }
.casestudy .testimonial { border-left: 3px solid var(--electric-teal); padding-left: 16px; margin-top: 16px; font-style: italic; color: var(--ink-800); }
.casestudy .author { font-weight: 600; font-style: normal; margin-top: 8px; font-size: 0.9rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 48px); margin-top: clamp(26px, 4vw, 44px); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact .subhead { font-family: var(--font-head); font-weight: 600; color: var(--electric-teal); font-size: 1.2rem; }
.contact-side p { color: rgba(248,249,250,0.85); }
.contact-side a { color: var(--electric-teal); font-weight: 600; }

.contact-form { background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 34px); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; color: var(--ink-800); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--deep-navy);
  padding: 12px 14px; border: 1px solid var(--cloud-200); border-radius: 10px; background: var(--warm-white);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--deep-teal); outline-offset: 1px; border-color: var(--deep-teal); }
.field textarea { min-height: 110px; resize: vertical; }
.contact-form .btn { width: 100%; margin-top: 6px; }
.privacy-note { color: var(--mist-400); font-size: 0.82rem; margin: 14px 0 0; text-align: center; }
.form-status { text-align: center; font-weight: 600; margin: 14px 0 0; display: none; }
.form-status.ok { display: block; color: var(--growth-green); }
.form-status.err { display: block; color: var(--signal-amber); }
.mailto-fallback { color: rgba(248,249,250,0.85); font-size: 0.92rem; margin-top: 18px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--deep-navy); color: rgba(248,249,250,0.72); padding: clamp(40px, 6vw, 64px) 0; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.site-footer img { height: 30px; margin-bottom: 14px; }
.site-footer .legal { font-size: 0.88rem; line-height: 1.7; }
.site-footer a { color: var(--electric-teal); }
.site-footer .copyright { font-size: 0.82rem; color: var(--mist-400); }

/* ============================================================
   RESPONSIVE — mobile nav (verify at 360 / 768 / 1280)
   ============================================================ */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--warm-white); border-bottom: 1px solid var(--cloud-200);
    padding: 12px var(--gutter) 18px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links a.nav-cta { margin-left: 0; margin-top: 6px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
