/* ============================================================
   Apogee Numbers — shared stylesheet
   Palette: navy #062C55 · teal #00858C · gold #F0BD09
   Type: Gelasio (display, Cambria-metric) · Montserrat (body) · IBM Plex Mono (ledger figures)
   ============================================================ */

:root {
  --navy: #062C55;
  --navy-deep: #041d3a;
  --teal: #00858C;
  --teal-soft: #0aa3ab;
  --gold: #F0BD09;
  --ink: #0d2748;
  --muted: #5a6b80;
  --paper: #F5F8FA;
  --paper-2: #eef3f7;
  --white: #ffffff;
  --line: #d9e2ec;
  --radius: 14px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1; /* tabular figures */
}

h1, h2, h3, h4 {
  font-family: "Gelasio", Cambria, Georgia, serif;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-soft); }

img, svg { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.lead { font-size: 1.18rem; color: var(--muted); max-width: 52ch; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn-primary {
  --btn-bg: var(--gold);
  --btn-fg: var(--navy);
  box-shadow: 0 8px 22px -10px rgba(240,189,9,0.8);
}
.btn-primary:hover { box-shadow: 0 14px 30px -12px rgba(240,189,9,0.9); }
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); background: var(--white); }
.btn-light {
  --btn-bg: transparent;
  --btn-fg: #eaf3ff;
  border-color: rgba(255,255,255,0.35);
}
.btn-light:hover { border-color: #fff; color: #fff; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,248,250,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 132px;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Gelasio", Cambria, Georgia, serif;
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--navy); }
.brand .peak { width: 26px; height: 26px; flex: none; }
.brand b { font-weight: 600; }
.brand .thin { color: var(--teal); }
.brand img.logo { height: 108px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 500;
  padding: 0.3rem 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--navy); }

.nav-right { display: flex; align-items: center; gap: 1.4rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.3s var(--ease);
}

/* ---------- sections ---------- */
section { padding: 5.5rem 0; }
.section-tight { padding: 3.5rem 0; }

/* ---------- hero ---------- */
.hero {
  padding: 5rem 0 4.5rem;
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(0,133,140,0.07), transparent 60%),
    var(--paper);
}
.hero .grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero h1 span { color: var(--teal); }
.hero .tagline {
  font-family: "Gelasio", Cambria, Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0.5rem 0 1.3rem;
}
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* hero logo panel */
.hero-logo {
  background:
    radial-gradient(90% 90% at 50% 30%, rgba(0,133,140,0.08), transparent 70%),
    var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 60px -35px rgba(6,44,85,0.5);
}
.hero-logo img { width: 100%; max-width: 380px; height: auto; }

/* ---------- trust strip ---------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.trust .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.6rem;
  justify-content: center;
  padding-block: 1.3rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.trust span { display: inline-flex; align-items: center; gap: 0.55rem; }
.trust span::before {
  content: "▲";
  color: var(--gold);
  font-size: 0.6rem;
}

/* ---------- section header ---------- */
.sec-head { max-width: 60ch; margin-bottom: 3rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ---------- service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px -28px rgba(6,44,85,0.4);
  border-color: transparent;
}
.card .num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--teal);
}
.card .icon {
  width: 40px; height: 40px;
  color: var(--teal);
  margin-bottom: 1rem;
}
.card h3 { margin-top: 0.5rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.97rem; }

/* ---------- process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.6rem; }
.step { position: relative; padding-top: 2.2rem; }
.step .step-n {
  position: absolute;
  top: 0; left: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
}
.step::before {
  content: "";
  position: absolute;
  top: 0.55rem; left: 2.6rem; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- split / value ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 0.7rem 0 0.7rem 2.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "▲";
  position: absolute;
  left: 0; top: 0.85rem;
  color: var(--teal);
  font-size: 0.75rem;
}
.checklist li b { color: var(--navy); }

/* panel used on inner pages */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.4rem;
}
.panel-navy {
  background: var(--navy);
  color: #cfe0f1;
  border: 0;
}
.panel-navy h2, .panel-navy h3 { color: #fff; }

/* ---------- founder note ---------- */
.founder { align-items: start; }
.founder .avatar {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  box-shadow: 0 26px 55px -30px rgba(6,44,85,0.6);
}
.founder .avatar-cap {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.9rem;
  text-align: center;
}
.founder blockquote {
  margin: 0;
  font-family: "Gelasio", Cambria, Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--navy);
}
.founder cite {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 1.4rem;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); position: relative; overflow: hidden; }
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 120% at 80% -20%, rgba(0,133,140,0.35), transparent 55%);
  pointer-events: none;
}
.cta-band .wrap { position: relative; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9cee4; max-width: 46ch; margin-inline: auto; }
.cta-band .btn-row { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; align-items: stretch; }
.tier {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.2rem 1.9rem;
  display: flex;
  flex-direction: column;
}
.tier.featured {
  border-color: var(--teal);
  box-shadow: 0 26px 50px -30px rgba(0,133,140,0.5);
  position: relative;
}
.tier.featured .flag {
  position: absolute;
  top: -0.85rem; left: 1.9rem;
  background: var(--gold);
  color: var(--navy);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.tier h3 { font-size: 1.35rem; margin-bottom: 0.2rem; }
.tier .tier-sub { color: var(--muted); font-size: 0.92rem; min-height: 2.6em; }
.tier .price {
  font-family: "IBM Plex Mono", monospace;
  font-size: 2.4rem;
  color: var(--navy);
  margin: 1rem 0 0.2rem;
  font-weight: 500;
}
.tier .price small { font-size: 0.85rem; color: var(--muted); letter-spacing: 0; }
.tier .price .from { font-size: 0.85rem; color: var(--muted); display: block; letter-spacing: 0.1em; text-transform: uppercase; }
.tier ul {
  list-style: none;
  margin: 1.4rem 0 1.8rem;
  padding: 0;
  flex: 1;
}
.tier ul li {
  padding: 0.55rem 0 0.55rem 1.7rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1px solid var(--paper-2);
}
.tier ul li::before {
  content: "▲";
  position: absolute; left: 0; top: 0.7rem;
  color: var(--teal); font-size: 0.65rem;
}

/* horizontal service boxes (pricing) */
.svc-boxes { display: flex; flex-direction: column; gap: 1.3rem; }
.svc-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.9rem 2.1rem;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.2rem 2.6rem;
  align-items: start;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.svc-box:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -28px rgba(6,44,85,0.4); }
.svc-box h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.svc-box .svc-box-main p { color: var(--muted); margin-bottom: 0; }
.svc-box .svc-price {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.7rem;
  color: var(--navy) !important;
  margin: 0.2rem 0 0.6rem;
}
.svc-box .svc-price .from { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-right: 0.3rem; }
.svc-box .svc-price small { font-size: 0.8rem; color: var(--muted); }
.svc-box .svc-list { margin: 0; }
@media (max-width: 760px) {
  .svc-box { grid-template-columns: 1fr; gap: 0.6rem 0; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.3rem 0;
}
.faq summary {
  cursor: pointer;
  font-family: "Gelasio", Cambria, Georgia, serif;
  font-size: 1.18rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-family: "IBM Plex Mono", monospace; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 1rem 0 0; color: var(--muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,133,140,0.15);
}
.field textarea { min-height: 130px; resize: vertical; }
.contact-info { }
.contact-info .row {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .row:last-child { border-bottom: 0; }
.contact-info .row .ico { color: var(--teal); flex: none; }
.contact-info .row .lbl {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-info .row .val { color: var(--navy); font-weight: 500; }

/* ---------- page hero (inner) ---------- */
.page-hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(100% 90% at 90% 0%, rgba(0,133,140,0.08), transparent 55%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.3rem); }

/* ---------- footer ---------- */
.site-foot {
  background: var(--navy-deep);
  color: #9fb6cf;
  padding: 3.5rem 0 2rem;
}
.site-foot .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.site-foot .brand { color: #fff; margin-bottom: 1rem; }
.foot-logo {
  display: inline-block;
  background: #fff;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  box-shadow: 0 12px 30px -18px rgba(0,0,0,0.6);
}
.foot-logo img { height: 132px; width: auto; display: block; }
.site-foot .brand .thin { color: var(--gold); }
.site-foot h4 {
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot ul li { margin-bottom: 0.6rem; }
.site-foot a { color: #9fb6cf; }
.site-foot a:hover { color: #fff; }
.site-foot .tagline-foot {
  font-family: "Montserrat", system-ui, sans-serif;
  font-style: italic;
  font-weight: 700;
  color: #f0bd09;
  max-width: 34ch;
}
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: #7f96b0;
}

/* small inline certification badges */
.qbo-badge {
  height: 112px;
  width: auto;
  display: block;
}
.badge-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.6rem;
}

/* single-line section heading (wraps on small screens) */
.hdr-oneline { white-space: nowrap; font-size: clamp(1.5rem, 3vw, 2.4rem); }
@media (max-width: 820px) { .hdr-oneline { white-space: normal; } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .site-nav .wrap {
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    gap: 0.45rem;
    padding-top: 0.7rem;
    padding-bottom: 0.55rem;
  }
  .nav-right { width: 100%; justify-content: center; gap: 0; }
  .nav-toggle { display: none; }
  .nav-right .btn { display: none; }
  .nav-links {
    position: static;
    transform: none;
    inset: auto;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.2rem 1.3rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .nav-links.open { transform: none; }
  .nav-links li { width: auto; }
  .nav-links a { display: inline-block; padding: 0.35rem 0; border: 0; }
  .nav-links a::after { display: none; }
  .brand img.logo { height: 56px; }

  .hero .grid, .split, .contact-grid, .founder { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-logo { max-width: 340px; margin: 0 auto; padding: 1.8rem; }
  .hero .tagline { white-space: normal !important; font-size: 1.05rem !important; }
  .foot-logo img { height: 96px; }
  .qbo-badge { height: 88px; }
  .site-foot .grid { grid-template-columns: 1fr; gap: 1.8rem; }
  section { padding: 4rem 0; }
}

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

/* focus visibility */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
