/* ============================================================================
   THEME — Kazansky Consulting brand tokens (see documents/BRAND.md).
   Everything downstream uses these tokens; restyle the whole site from here.
   Palette is navy + royal blue sampled from the logo — no gold, no teal.
   ============================================================================ */
:root {
  /* Core brand — from the logo */
  --navy:        #04204A;   /* primary brand, headings, dark UI, wordmark */
  --navy-deep:   #001838;   /* footers / max-contrast dark */
  --blue:        #0B4C96;   /* the "road" — links, accents, icons */
  --blue-bright: #1E63D1;   /* CTA / hover (AA on white) */
  --blue-tint:   #E7EFF9;   /* info / selected fills */

  /* Neutrals — slate (shared with the calculator) */
  --ink:         #0F2036;
  --ink-soft:    #3A4A63;
  --muted:       #64748B;
  --line:        #DCE4EE;
  --bg:          #F5F8FC;
  --surface:     #FFFFFF;
  --surface-alt: #EEF3FA;

  /* Semantic — financial meaning (from the calculator) */
  --success:      #059669;
  --success-tint: #E7F5EF;
  --danger:       #B91C1C;
  --danger-tint:  #FBEAEA;

  /* Typography */
  --font-brand: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-head:  "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Shape + depth */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(4, 32, 74, 0.06);
  --shadow:    0 10px 30px rgba(4, 32, 74, 0.08);
  --shadow-lg: 0 24px 60px rgba(4, 32, 74, 0.14);
  --maxw: 1120px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; color: var(--navy); margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue-bright); color: #fff; box-shadow: 0 8px 20px rgba(30, 99, 209, .28); }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 248, 252, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-brand); font-weight: 600; font-size: .98rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--navy);
}
.brand:hover { text-decoration: none; }
.brand .mark-img { width: 36px; height: 36px; object-fit: contain; display: block; }
/* White chip so the navy mark reads on dark bands (no knockout logo yet) */
.site-footer .mark-chip {
  background: #fff; border-radius: 8px; padding: 3px;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: .96rem; white-space: nowrap; }
.nav-links a:hover { color: var(--navy); text-decoration: none; }
/* Nav CTA: keep button text white (beats the .nav-links a color above) */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
@media (max-width: 980px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(900px 420px at 85% -10%, var(--blue-tint) 0%, rgba(231, 239, 249, 0) 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--blue); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; justify-content: center; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: .9rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.check { color: var(--success); font-weight: 700; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 26px;
}
.hero-card h3 { font-family: var(--font-head); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat-line { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.stat-line:last-child { border-bottom: none; }
.stat-line .k { color: var(--ink-soft); font-size: .95rem; }
.stat-line .v { font-family: var(--font-body); font-weight: 600; color: var(--navy); font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.stat-line .v.gain { color: var(--success); }
.hero-card .foot { margin-top: 14px; font-size: .8rem; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* Value cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-tint); }
.card .ico {
  width: 46px; height: 46px; border-radius: 11px; margin-bottom: 16px;
  background: var(--blue-tint); color: var(--blue);
  display: grid; place-items: center; font-size: 1.4rem;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .96rem; }

/* Steps */
.steps-band { background: var(--navy); color: #fff; }
.steps-band .eyebrow { color: #9DBDE8; }
.steps-band h2, .steps-band p { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.step { position: relative; padding-top: 14px; }
.step .num {
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 700;
  color: #9DBDE8; line-height: 1; margin-bottom: 10px;
}
.step h3 { color: #fff; }
.step p { color: #C2D2E8; font-size: .96rem; margin: 0; }

/* ---------- The consultation (Dave's copy) ---------- */
.consult { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.consult .section-head { margin-bottom: 30px; }
.consult-note {
  max-width: 680px; margin: 0 auto 40px; text-align: center;
  font-size: .92rem; color: var(--muted);
}
.cred-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 0 auto 44px; }
.cred {
  display: flex; align-items: center; gap: 14px;
  background: var(--blue-tint); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 22px;
}
.cred .big {
  font-family: var(--font-head); font-weight: 700; font-size: 1.9rem;
  color: var(--navy); line-height: 1; white-space: nowrap;
}
.cred .label { font-size: .88rem; color: var(--ink-soft); max-width: 220px; line-height: 1.4; }
.consult-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 44px; }
.consult-item {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.consult-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-tint); }
.consult-item .ico {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 14px;
  background: var(--blue-tint); color: var(--blue);
  display: grid; place-items: center; font-size: 1.25rem;
}
.consult-item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.consult-item p { margin: 0; font-size: .92rem; }
.consult-callout {
  display: flex; gap: 16px; align-items: flex-start;
  max-width: 760px; margin: 0 auto 18px;
  background: var(--blue-tint); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px;
}
.consult-callout .ico { font-size: 1.5rem; line-height: 1.3; }
.consult-callout p { margin: 0; font-size: .98rem; color: var(--ink); }
.consult-callout p strong { color: var(--navy); }
.consult-quote {
  max-width: 760px; margin: 44px auto 0; text-align: center;
  border-top: 1px solid var(--line); padding-top: 36px;
}
.consult-quote p {
  font-family: var(--font-head); font-weight: 600; font-size: 1.25rem;
  line-height: 1.5; color: var(--navy); margin-bottom: 18px;
}
.consult-quote .who { font-family: var(--font-body); font-weight: 500; font-size: .95rem; color: var(--muted); }

/* Pricing / deposit */
.pricing-card {
  max-width: 560px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pricing-top { background: var(--blue-tint); padding: 28px 32px; border-bottom: 1px solid var(--line); }
.pricing-top .tag { display: inline-block; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: var(--navy); margin: 12px 0 2px; }
.price small { font-family: var(--font-body); font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-name { font-size: 1.05rem; margin: 14px 0 0; color: var(--navy); }
.price-sub { margin: 4px 0 16px; font-size: .95rem; color: var(--ink-soft); }
.rate-note {
  display: grid; gap: 2px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem; color: var(--ink-soft);
}
.rate-note strong { color: var(--navy); font-size: .92rem; }
.about-creds { justify-content: flex-start; margin: 22px 0 26px; }
.pricing-body { padding: 28px 32px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 24px; }
.feature-list li { display: flex; gap: 11px; padding: 9px 0; color: var(--ink-soft); font-size: .98rem; }
.feature-list li::before { content: "✓"; color: var(--success); font-weight: 800; }
.deposit-note {
  background: var(--surface-alt); border: 1px dashed var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: .9rem; color: var(--ink-soft);
}

/* About */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.about-photo {
  width: 100%;
  aspect-ratio: 435 / 371;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--blue-tint);
}

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink);
  padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; font-size: .96rem; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy-deep), var(--blue)); color: #fff; text-align: center; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--navy); box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.cta-band .btn-primary:hover { background: var(--blue-tint); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #A9B8CE; padding: 48px 0 30px; font-size: .9rem; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 26px; }
.site-footer .brand { color: #fff; }
.site-footer a { color: #C9D5E6; }
.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px;
  font-size: .78rem; line-height: 1.6; color: #8598B1;
}

/* ---------- Schedule page ---------- */
.schedule-hero { padding: 48px 0 8px; text-align: center; }
.booking-shell { padding: 12px 0 72px; }
.booking-layout { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
.booking-aside {
  position: sticky; top: 96px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px;
}
.booking-aside h3 { font-size: 1.05rem; }
.booking-aside .deposit-badge {
  display: inline-block; background: var(--blue-bright); color: #fff; font-weight: 600;
  font-size: .85rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.booking-aside ul { list-style: none; padding: 0; margin: 16px 0 0; }
.booking-aside li { display: flex; gap: 10px; padding: 8px 0; font-size: .92rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.booking-aside li:first-child { border-top: none; }
.secure-note { margin-top: 18px; font-size: .8rem; color: var(--muted); display: flex; gap: 7px; align-items: flex-start; }
#booking-embed {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; min-height: 720px;
}
.embed-fallback { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- Animations (scroll reveal — progressive enhancement) ----------
   assets/js/reveal.js adds .reveal to targets, then .visible when they enter
   the viewport. Without JS nothing is ever hidden. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .consult-item { transition: none; }
  .btn:hover, .card:hover, .consult-item:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards, .steps, .consult-grid { grid-template-columns: 1fr; }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-aside { position: static; }
  .hero { padding: 48px 0 20px; }
  .cred-row { flex-direction: column; align-items: stretch; }
}
/* Phones: shrink brand + nav CTA so both fit inside the header padding */
@media (max-width: 520px) {
  .brand { font-size: .84rem; letter-spacing: .08em; }
  .nav-cta { padding: 10px 16px; font-size: .9rem; }
}
