/* ==========================================================================
   Assurz Driving School
   Lane: assured / calm / test-ready. Deep petrol + warm sand + confident coral.
   Headings: Sora. Body/accent: Newsreader (serif).
   ========================================================================== */

:root {
  --petrol: #0e3b3c;
  --petrol-deep: #082827;
  --teal: #12504e;
  --teal-soft: #1f6b66;
  --sand: #f0e7d6;
  --sand-line: #e2d6c0;
  --paper: #faf6ee;
  --paper-2: #fffdf8;
  --coral: #ef6144;
  --coral-deep: #d94a2f;
  --gold: #c98f34;
  --ink: #1f2e2b;
  --muted: #566b65;
  --muted-2: #7c8b85;

  --container: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(14, 59, 60, .06), 0 12px 30px -18px rgba(14, 59, 60, .35);
  --shadow-lift: 0 2px 4px rgba(14, 59, 60, .08), 0 26px 50px -24px rgba(14, 59, 60, .45);

  --font-head: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.16rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--coral-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--coral); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--petrol);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--petrol); color: var(--sand);
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
  font-family: var(--font-head); font-size: .95rem;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 238, .9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--sand-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-glyph { display: inline-flex; color: var(--coral); flex: none; }
.brand-glyph svg { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-mark {
  font-family: var(--font-head); font-weight: 800; font-size: 1.28rem;
  color: var(--petrol); letter-spacing: -0.02em;
}
.brand-sub {
  font-family: var(--font-head); font-weight: 500; font-size: .62rem;
  text-transform: uppercase; letter-spacing: .22em; color: var(--teal-soft);
  margin-top: 3px;
}

.site-nav ul {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  font-family: var(--font-head); font-weight: 500; font-size: .92rem;
  color: var(--ink); text-decoration: none;
  padding: 9px 13px; border-radius: 8px; display: inline-block;
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--sand); color: var(--petrol); }
.site-nav a[aria-current="page"] { color: var(--coral-deep); }

.nav-toggle, .nav-toggle-btn { display: none; }

/* ---------- Hero ---------- */
.page-hero {
  background: radial-gradient(120% 140% at 12% 0%, var(--teal) 0%, var(--petrol) 46%, var(--petrol-deep) 100%);
  color: var(--sand);
  padding: 70px 0 62px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; bottom: -120px;
  width: 340px; height: 340px; border-radius: 50%;
  border: 2px solid rgba(240, 231, 214, .10);
  box-shadow: 0 0 0 40px rgba(240, 231, 214, .04);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.hero-kicker {
  font-family: var(--font-head); font-weight: 600; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .28em; color: var(--gold);
  margin: 0 0 14px;
}
.page-hero h1 {
  color: #fff; font-size: clamp(2.1rem, 6vw, 3.5rem); margin: 0;
  max-width: 15ch; font-weight: 800;
}
.page-hero .lead { color: rgba(240, 231, 214, .88); }
.page-hero--article, .page-hero--guides { padding: 58px 0 48px; }
.page-hero--article h1, .page-hero--guides h1 { max-width: 24ch; }
.page-hero--article .lead, .page-hero--guides .lead { max-width: 62ch; }

/* ---------- Body / prose ---------- */
.page-body { padding: 52px 0 72px; }
.page-body > *,
.hero-copy { }

/* prose column for readability */
.page-body p,
.page-body ul,
.page-body ol,
.page-body h2,
.page-body h3,
.page-body .callout,
.page-body figure,
.page-body blockquote,
.lead {
  max-width: 72ch;
}
.page--article .page-body p,
.page--article .page-body ul,
.page--article .page-body ol,
.page--article .page-body h2,
.page--article .page-body h3,
.page--article .page-body blockquote { max-width: 68ch; }

.lead {
  font-size: 1.34rem; line-height: 1.5; color: var(--teal);
  font-weight: 500; margin: 0 0 26px;
}
.page--article .page-body .lead,
.page--home .page-body .lead { font-style: normal; }

.page-body h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 46px 0 14px;
  position: relative; padding-top: 8px;
}
.page-body h2::before {
  content: ""; display: block; width: 46px; height: 3px;
  background: var(--coral); border-radius: 2px; margin-bottom: 16px;
}
.page-body h3 { font-size: 1.28rem; margin: 30px 0 10px; color: var(--teal); }
.page-body p { margin: 0 0 18px; }

.page-body ul, .page-body ol { margin: 0 0 20px; padding-left: 1.1em; }
.page-body li { margin: 0 0 9px; padding-left: 4px; }
.page-body ul { list-style: none; padding-left: 0; }
.page-body ul li {
  position: relative; padding-left: 30px;
}
.page-body ul li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral); box-shadow: 0 0 0 4px rgba(239, 97, 68, .14);
}
.page-body ol { list-style: none; counter-reset: step; padding-left: 0; }
.page-body ol li {
  position: relative; padding-left: 42px; margin-bottom: 14px;
}
.page-body ol li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: .05em;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  color: var(--coral-deep); background: var(--sand);
  border: 1px solid var(--sand-line);
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
}

/* figures */
.page-body figure {
  margin: 34px 0; border-radius: var(--radius); overflow: hidden;
  background: var(--paper-2); box-shadow: var(--shadow);
  border: 1px solid var(--sand-line);
}
.page-body figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.page-body figcaption {
  font-size: .92rem; color: var(--muted); padding: 12px 18px 14px;
  font-style: italic; line-height: 1.45;
}

/* callout */
.callout {
  background: var(--sand); border: 1px solid var(--sand-line);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius-sm); padding: 20px 22px; margin: 30px 0;
}
.callout-label {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--coral-deep); margin-bottom: 8px;
}
.callout p { margin: 0; color: var(--petrol); font-size: 1.08rem; }

blockquote {
  margin: 30px 0; padding: 6px 0 6px 24px;
  border-left: 3px solid var(--gold);
  font-size: 1.24rem; color: var(--teal); font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

/* ---------- Home: stat strip + CTA ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 36px 0 40px; max-width: none;
}
.stat {
  background: var(--paper-2); border: 1px solid var(--sand-line);
  border-radius: var(--radius-sm); padding: 20px 20px; box-shadow: var(--shadow);
}
.stat b {
  font-family: var(--font-head); font-weight: 800; color: var(--coral-deep);
  font-size: 2rem; display: block; line-height: 1; letter-spacing: -0.02em;
}
.stat span { font-size: .98rem; color: var(--muted); display: block; margin-top: 8px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 6px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 13px 22px; border-radius: 999px; text-decoration: none;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 10px 22px -12px rgba(239, 97, 68, .8); }
.btn--primary:hover { background: var(--coral-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--petrol); border: 1.5px solid var(--sand-line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); background: var(--paper-2); }

/* pill row of trust points */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; max-width: none; }
.pill {
  font-family: var(--font-head); font-size: .82rem; font-weight: 500;
  background: var(--sand); color: var(--teal);
  border: 1px solid var(--sand-line); border-radius: 999px; padding: 7px 14px;
}

/* ---------- Guide grid ---------- */
.guide-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px; margin: 30px 0 10px; max-width: none;
}
.guide-card {
  display: flex; flex-direction: column;
  background: var(--paper-2); border: 1px solid var(--sand-line);
  border-radius: var(--radius); padding: 24px 22px 22px;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .2s, border-color .2s;
  position: relative;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--teal-soft); color: var(--ink); }
.gc-tick {
  display: inline-flex; width: 38px; height: 38px; border-radius: 10px;
  background: var(--petrol); color: var(--sand);
  align-items: center; justify-content: center; margin-bottom: 15px;
}
.guide-card h3 {
  font-size: 1.18rem; margin: 0 0 8px; color: var(--petrol); line-height: 1.22;
}
.guide-card p { font-size: .98rem; color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.gc-more {
  margin-top: auto; font-family: var(--font-head); font-weight: 600;
  font-size: .84rem; color: var(--coral-deep);
  display: inline-flex; align-items: center; gap: 6px;
}
.gc-more::after { content: "\2192"; transition: transform .15s; }
.guide-card:hover .gc-more::after { transform: translateX(3px); }
.gc-idx {
  font-family: var(--font-head); font-weight: 800; font-size: .9rem;
  color: var(--gold); display: block; margin-bottom: 10px; letter-spacing: .04em;
}

/* home uses the numbered variant */
.page--home .guide-card .gc-idx { }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px;
  margin: 10px 0; max-width: none; align-items: start;
}
.contact-card {
  background: var(--paper-2); border: 1px solid var(--sand-line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.contact-card h2 { margin-top: 0; }
.contact-card h2::before { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--petrol-deep); color: rgba(240, 231, 214, .78); margin-top: 20px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px;
  padding: 52px 22px 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand-mark { color: #fff; }
.footer-brand .brand-sub { color: var(--gold); }
.footer-brand .brand-glyph { color: var(--coral); }
.footer-brand p { font-size: 1rem; line-height: 1.55; max-width: 42ch; margin: 0; }
.site-footer h2 {
  font-family: var(--font-head); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .18em; color: var(--gold); margin: 0 0 14px;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a, .footer-contact a { color: rgba(240, 231, 214, .82); text-decoration: none; font-size: .98rem; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p { margin: 0 0 8px; font-size: .98rem; }
.footer-base { border-top: 1px solid rgba(240, 231, 214, .12); }
.footer-base .container { padding-top: 18px; padding-bottom: 18px; }
.footer-base p { margin: 0; font-size: .84rem; color: rgba(240, 231, 214, .55); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 1.1rem; }
  .nav-toggle-btn {
    display: inline-flex; flex-direction: column; gap: 5px;
    width: 44px; height: 44px; align-items: center; justify-content: center;
    cursor: pointer; border-radius: 10px;
  }
  .nav-toggle-btn span { display: block; width: 22px; height: 2px; background: var(--petrol); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper-2); border-bottom: 1px solid var(--sand-line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-toggle:checked ~ .site-nav { max-height: 60vh; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 14px 16px; gap: 2px; }
  .site-nav a { padding: 12px 12px; font-size: 1rem; border-radius: 8px; }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .page-hero { padding: 52px 0 44px; }
  .page-body { padding: 40px 0 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .guide-card, .btn { transition: none; }
}
