/* ==========================================================================
   DestinyBridge Educational Consulting Limited
   Shared stylesheet. Page accent set via <body data-accent="navy|purple|teal">
   ========================================================================== */

:root {
  --navy: #1F3864;
  --navy-light: #2E4A7D;
  --navy-tint: #EEF2F8;
  --navy-border: #CBD8E8;

  --purple: #5B2C6F;
  --purple-light: #74448A;
  --purple-tint: #F3EDF5;
  --purple-border: #DBC8E1;

  --teal: #14605C;
  --teal-light: #1D7A75;
  --teal-tint: #E8F1F0;
  --teal-border: #BCD6D3;

  --gold: #C9A227;
  --bg: #FAF9F6;
  --surface: #ffffff;
  --ink: #2B2B2B;
  --ink-soft: #5C5A54;
  --border: #E4E1D8;

  /* Default accent = navy; overridden per page below. */
  --accent: var(--navy);
  --accent-light: var(--navy-light);
  --accent-tint: var(--navy-tint);
  --accent-border: var(--navy-border);
  --accent-on-dark: #D9DEE8;
}

body[data-accent="purple"] {
  --accent: var(--purple);
  --accent-light: var(--purple-light);
  --accent-tint: var(--purple-tint);
  --accent-border: var(--purple-border);
  --accent-on-dark: #E8DEEC;
}

body[data-accent="teal"] {
  --accent: var(--teal);
  --accent-light: var(--teal-light);
  --accent-tint: var(--teal-tint);
  --accent-border: var(--teal-border);
  --accent-on-dark: #D5E6E4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  color: var(--accent);
  text-wrap: balance;
}

.mono { font-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

/* Accessibility ----------------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
  font-size: 14px; font-weight: 500;
}
.skip-link:focus { left: 0; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Navigation -------------------------------------------------------------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-nav.is-stuck { border-bottom-color: var(--border); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; max-width: 1120px; margin: 0 auto; padding: 18px 24px;
}
@media (min-width: 640px) { .nav-inner { padding: 20px 32px; } }

.brand {
  font-family: 'Source Serif 4', Georgia, serif; font-weight: 600;
  font-size: 20px; color: var(--navy); white-space: nowrap;
}
.brand span { color: var(--gold); }

.navlinks { display: flex; align-items: center; gap: 26px; font-size: 15px; color: var(--ink-soft); }
.navlinks a { padding: 4px 0; border-bottom: 2px solid transparent; transition: color 0.15s ease, border-color 0.15s ease; }
.navlinks a:hover { color: var(--navy); }
.navlinks a.active { color: var(--accent); font-weight: 500; border-bottom-color: var(--gold); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; cursor: pointer; color: var(--navy); line-height: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  /* Collapsed by default on small screens; .is-open beats this, and the
     no-JS fallback below keeps every link reachable if the script never runs. */
  .navlinks { display: none; }
  .navlinks.is-open {
    display: flex;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 4px 24px 16px; font-size: 16px;
    box-shadow: 0 8px 24px rgba(31, 56, 100, 0.06);
  }
  .navlinks.is-open a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .navlinks.is-open a:last-child { border-bottom: none; }
  /* If JS is unavailable the toggle can never open the menu, so show the
     links inline rather than trapping the visitor on one page. */
  html.no-js .navlinks { display: flex; flex-wrap: wrap; gap: 16px 20px; font-size: 14px; }
  html.no-js .nav-toggle { display: none; }
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 500; border: 1.5px solid transparent;
  transition: background 0.15s ease, transform 0.1s ease; cursor: pointer;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-light); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-light); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-light); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); padding: 12px 24px; font-size: 14px; }
.btn-outline:hover { background: var(--navy); color: #fff; }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Shared page furniture --------------------------------------------------- */
.eyebrow {
  display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  letter-spacing: 0.08em; color: var(--gold); border: 1px solid var(--gold);
  border-radius: 999px; padding: 6px 16px; margin-bottom: 24px;
}
@media (min-width: 640px) { .eyebrow { font-size: 13px; } }

.page-head { padding: 56px 0 48px; }
.page-head h1 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 16px; max-width: 660px; line-height: 1.2; }
.page-head p { color: var(--ink-soft); font-size: 17px; max-width: 600px; }
.page-head--centred { text-align: center; }
.page-head--centred h1, .page-head--centred p { margin-left: auto; margin-right: auto; }

.page-head--filled { background: var(--accent); color: #fff; padding: 64px 0 56px; }
.page-head--filled h1 { color: #fff; }
.page-head--filled p { color: var(--accent-on-dark); }

.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(24px, 4vw, 30px); margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); font-size: 15px; max-width: 640px; }
.section-head--centred { text-align: center; }
.section-head--centred p { margin-left: auto; margin-right: auto; }

/* Chips ------------------------------------------------------------------- */
.chip-row { display: flex; gap: 12px; flex-wrap: wrap; padding: 48px 0 0; }
.chip {
  border: 1px solid var(--accent-border); background: var(--accent-tint);
  border-radius: 999px; padding: 9px 18px; font-size: 14px; color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
}

/* Service cards ----------------------------------------------------------- */
.services { padding: 48px 0 64px; }
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service-card {
  border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.service-card h3 { font-size: 17px; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--ink-soft); }
.service-card .who {
  display: block; margin-top: 14px; font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent);
}

/* Pricing ----------------------------------------------------------------- */
.pricing { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 72px 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; border-collapse: collapse; margin-top: 24px; min-width: 560px; }
.price-table th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft); padding: 12px 16px; border-bottom: 2px solid var(--accent); font-weight: 500;
}
.price-table td { padding: 18px 16px; border-bottom: 1px solid var(--border); font-size: 15px; vertical-align: top; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table td.name { font-weight: 500; }
.price-table td.price { color: var(--accent); font-family: 'IBM Plex Mono', monospace; font-weight: 500; white-space: nowrap; }
.price-table td.scope { color: var(--ink-soft); font-size: 14px; }

/* Bespoke work is scoped per client rather than listed, so the cell reads as
   an invitation instead of a blank. */
.price-table td.price.request { font-family: inherit; font-weight: 400; }
.price-table td.price.request a { color: var(--accent); border-bottom: 1px solid var(--accent-border); }
.price-table td.price.request a:hover { border-bottom-color: var(--accent); }

.price-note { margin-top: 24px; font-size: 14px; color: var(--ink-soft); }
.price-note li { margin-bottom: 8px; margin-left: 18px; }
.price-reviewed {
  margin-top: 20px; font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  letter-spacing: 0.04em; color: var(--ink-soft);
}

/* Closing CTA ------------------------------------------------------------- */
.cta { text-align: center; padding: 72px 0 88px; }
.cta h2 { font-size: clamp(24px, 4vw, 28px); margin-bottom: 14px; }
.cta p { color: var(--ink-soft); margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* Footer ------------------------------------------------------------------ */
.site-footer { padding: 56px 0 32px; border-top: 1px solid var(--border); background: var(--bg); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-brand { max-width: 300px; }
.footer-brand h3 { font-size: 18px; margin-bottom: 10px; color: var(--navy); }
.footer-brand h3 span { color: var(--gold); }
.footer-brand p { font-size: 14px; color: var(--ink-soft); }
.footer-col h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft); margin-bottom: 14px; font-weight: 500;
}
.footer-col a { display: block; font-size: 14px; color: var(--ink); padding: 5px 0; }
.footer-col a:hover { color: var(--navy); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  font-size: 13px; color: var(--ink-soft); text-align: center;
}

/* ==========================================================================
   Components carried over from the production site
   ========================================================================== */

/* Subtle dot grid on the page ground. */
body {
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* Floating WhatsApp button ------------------------------------------------ */
.wa-float {
  position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px;
  border-radius: 50%; background: #25D366; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 60; transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 640px) { .wa-float { width: 52px; height: 52px; bottom: 16px; right: 16px; } }

/* Hero graphic: messy row becomes ordered row ----------------------------- */
.hero-graphic { max-width: 560px; margin: 0 auto 36px; }
.hg-row { display: flex; justify-content: center; gap: 4px; margin-bottom: 4px; flex-wrap: nowrap; }
.hg-cell { width: 22px; height: 22px; border-radius: 4px; flex-shrink: 1; min-width: 10px; }
.hg-messy { background: var(--border); }
.hg-clean-navy { background: var(--navy); }
.hg-clean-teal { background: var(--teal); }
.hg-clean-purple { background: var(--purple); }
.hg-clean-gold { background: var(--gold); }
.hg-arrow {
  text-align: center; margin: 6px 0; color: var(--ink-soft); font-size: 12px;
  font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.05em;
}

/* Pillar card icons ------------------------------------------------------- */
.pillar-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 20px;
}
.pillar-icon svg { width: 26px; height: 26px; }

/* Tool chips with glyphs -------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 8px; }
.chip svg { width: 17px; height: 17px; flex-shrink: 0; }

/* Numbered pipeline steps ------------------------------------------------- */
.step-num {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--gold);
  margin-bottom: 10px; letter-spacing: 0.06em;
}
.service-icon { margin-bottom: 14px; }
.service-icon svg { width: 26px; height: 26px; }
.service-card .tagline { font-size: 14px; color: var(--accent); margin-bottom: 12px; font-weight: 500; }
.service-card ul { list-style: none; margin-top: 12px; }
.service-card ul li {
  font-size: 14px; color: var(--ink-soft); padding: 4px 0 4px 18px; position: relative;
}
.service-card ul li::before { content: '\2014'; position: absolute; left: 0; color: var(--gold); }

/* Mission / vision / promise --------------------------------------------- */
.mvp { padding: 8px 0 24px; }
.mvp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.mvp-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; border-top: 3px solid var(--gold);
}
.mvp-card h3 { font-size: 17px; margin-bottom: 10px; }
.mvp-card p { font-size: 15px; color: var(--ink-soft); }

/* Story with a by-the-numbers sidebar ------------------------------------- */
.story-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 920px) { .story-layout { grid-template-columns: 1.6fr 1fr; gap: 56px; } }
.sidebar {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; align-self: start;
}
.sidebar h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; color: var(--ink-soft); font-family: 'IBM Plex Sans', sans-serif; font-weight: 500; }
.sidebar-stat { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.sidebar-stat:last-of-type { border-bottom: none; }
.sidebar-num { font-family: 'IBM Plex Mono', monospace; font-size: 26px; color: var(--gold); font-weight: 500; }
.sidebar-label { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
