/* Virchakra Chits: design system. Editorial/authority register. */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0a2445;
  --navy-deep: #071a32;
  --navy-mid: #14335c;
  --cream: #faf7f0;
  --surface: #ffffff;
  --ink: #1f232c;
  --muted: #5a6270;
  --line: #e4ddcd;
  --gold: #7a5f22;
  --gold-on-dark: #d4af6a;
  --gold-soft-bg: #f4ecd8;

  --font-head: "Source Serif 4", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 4px;
  --shadow: 0 8px 30px rgba(10, 36, 69, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }
p { margin: 0 0 1em; color: var(--ink); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 4px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9em;
}

/* ===== Header ===== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { height: 34px; width: auto; }

.nav-toggle {
  display: none;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 1rem;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.main-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
}
.main-nav a:hover { background: var(--gold-soft-bg); color: var(--navy); }
.main-nav a[aria-current="page"] {
  color: var(--gold);
  font-weight: 700;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-cta .tel {
  display: none;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 860px) {
  .header-cta .tel { display: inline; }
}

@media (max-width: 859px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-header .container { flex-wrap: wrap; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 44px;
  line-height: 1.2;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-mid); border-color: var(--navy-mid); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: #fff; }

.on-dark .btn-secondary,
.hero .btn-secondary,
.cta-band .btn-secondary,
.notfound .btn-secondary {
  color: #fff;
  border-color: #fff;
}
.on-dark .btn-secondary:hover,
.hero .btn-secondary:hover,
.cta-band .btn-secondary:hover,
.notfound .btn-secondary:hover {
  background: #fff;
  color: var(--navy);
}

/* Primary CTA on dark sections: switch to the gold-coin accent so the
   single most important action on a dark hero/CTA band doesn't read as
   a navy shape floating on a navy background (weak figure-ground contrast). */
.on-dark .btn-primary,
.hero .btn-primary,
.cta-band .btn-primary,
.notfound .btn-primary {
  background: var(--gold-on-dark);
  border-color: var(--gold-on-dark);
  color: var(--navy-deep);
}
.on-dark .btn-primary:hover,
.hero .btn-primary:hover,
.cta-band .btn-primary:hover,
.notfound .btn-primary:hover {
  background: #e6c483;
  border-color: #e6c483;
  color: var(--navy-deep);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 1.6em; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.82;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,26,50,0.94) 0%, rgba(7,26,50,0.88) 60%, rgba(7,26,50,0.97) 100%);
  z-index: -1;
}
.hero-emblem {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 620px;
  max-width: 70vw;
  opacity: 0.1;
  filter: brightness(0) invert(1);
  z-index: -1;
  pointer-events: none;
}
.hero .container { padding-top: 96px; padding-bottom: 96px; max-width: 760px; }
.hero h1 { color: #fff; }
.hero .lede { font-size: 1.15rem; color: #dfe6f0; max-width: 60ch; }
.hero .eyebrow { color: var(--gold-on-dark); }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--surface); }
.section--navy { background: var(--navy-deep); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p:not(.eyebrow) { color: #cdd7e6; }
.section--navy .eyebrow { color: var(--gold-on-dark); }

.section-head { max-width: 68ch; margin-bottom: 2.4em; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== Grid / cards ===== */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 40px; height: 40px; margin-bottom: 16px; color: var(--gold); }

/* Icon badge: circular gold-on-cream mount for a card icon, reusing the
   same numbered-circle motif as the how-it-works walkthrough so the
   "reasons to invest" icons read as part of one system, not a generic
   stock icon set floating on white. */
.card .ico-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-soft-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card .ico-badge .ico { width: 26px; height: 26px; margin-bottom: 0; }

/* "Before you enquire" objection cards: a quote-style navy rule marks
   these as direct answers to a doubt, distinct from the benefit cards
   above so two back-to-back card grids don't read as one repeated block. */
.card--objection {
  border-left: 3px solid var(--navy);
  position: relative;
}
.card--objection h3::before {
  content: "Q.";
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.5em;
}

.section--navy .card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
}
.section--navy .card h3 { color: #fff; }
.section--navy .card p { color: #cdd7e6; }

/* ===== Split (image + text) ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}
.split-media img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  box-shadow: var(--shadow);
}
.split-text .eyebrow { display: block; }

/* ===== Stat strip ===== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 720px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.6rem);
  font-weight: 700;
  color: var(--gold-on-dark);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.85rem;
  color: #cdd7e6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== CTA band ===== */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 60px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dfe6f0; }
.cta-band .btn-row { justify-content: center; }

/* ===== Scheme table (ledger styling, signature element) ===== */
.ledger-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.ledger {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-variant-numeric: tabular-nums;
}
table.ledger caption { text-align: left; padding: 16px 20px 0; font-weight: 600; color: var(--navy); }
table.ledger th, table.ledger td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
table.ledger thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
table.ledger tbody tr:nth-child(even) { background: var(--gold-soft-bg); }
table.ledger tbody tr:hover { background: #efe3c6; }
table.ledger td.num { font-weight: 600; color: var(--navy); }

/* ===== Numbered walkthrough (how it works) ===== */
.walkthrough { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.walkthrough li {
  counter-increment: step;
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  position: relative;
}
.walkthrough li:last-child { border-bottom: none; }
.walkthrough li::before {
  content: counter(step);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--gold);
  background: var(--gold-soft-bg);
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.walkthrough li > svg {
  position: absolute;
  left: 12px;
  top: 22px;
  width: 32px;
  height: 32px;
  pointer-events: none;
}
.walkthrough li > div {
  flex: 1;
}
.walkthrough h3 { margin-bottom: 0.3em; }
.walkthrough p { margin-bottom: 0; color: var(--muted); }
.walkthrough .ico { width: 32px; height: 32px; color: var(--gold); flex-shrink: 0; }
.walkthrough .figure {
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* ===== FAQ (native details) ===== */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  padding: 20px 4px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
  font-family: var(--font-body);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 4px 22px; color: var(--muted); max-width: 72ch; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* ===== Objections / trust checklist ===== */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .ico { flex-shrink: 0; width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.contact-card h3 { margin-bottom: 0.3em; font-size: 1.05rem; }
.contact-card + .contact-card { margin-top: 18px; }
.starter-list { display: grid; gap: 16px; }
.starter {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
}
.starter:hover { border-color: var(--gold); }
.starter h3 { color: var(--navy); margin-bottom: 4px; font-size: 1.02rem; }
.starter p { color: var(--muted); margin: 0; font-size: 0.92rem; }
.starter .starter-cta { color: var(--gold); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }

.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ===== Standards strip ===== */
.standards-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: #cdd7e6;
}
.standards-strip li { display: flex; align-items: center; gap: 8px; }
.standards-strip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-on-dark); }

.tbc-note {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--muted);
  font-size: 0.92rem;
  background: var(--gold-soft-bg);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: #cdd7e6;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { background: var(--surface); }
.footer-brand .brand img { height: 56px; }
.footer-brand p { margin-top: 16px; color: #b6c2d6; max-width: 42ch; }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #cdd7e6; text-decoration: none; }
.site-footer a:hover { color: var(--gold-on-dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: #9fb0c7;
}

/* ===== 404 ===== */
.notfound {
  background: var(--navy-deep);
  color: #fff;
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.notfound .code {
  font-family: var(--font-head);
  font-size: clamp(4rem, 3rem + 5vw, 8rem);
  color: var(--gold-on-dark);
  font-weight: 700;
}
.notfound h1 { color: #fff; }
.notfound p { color: #cdd7e6; }

/* ===== Utility ===== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}
.mt-0 { margin-top: 0; }
.center-text { text-align: center; }

/* scroll reveal, gated: only takes effect once js.js confirms JS + IntersectionObserver ran */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .js .reveal.is-visible { opacity: 1; transform: translateY(0); }
}
