/* ================================
   Russell Driver Training — Global Styles
   Design: dark hero/footer, DM Serif Display headlines,
   brand stripe motif, red/amber/green hierarchy
   ================================ */

/* ── Design tokens ── */
:root {
  --red:        #cc3232;
  --red-dark:   #a82828;
  --amber:      #e7b416;
  --amber-dark: #c49a10;
  --green:      #2dc937;
  --green-dark: #24a82e;

  --ink:        #1a1a1a;
  --ink-light:  #555;
  --bg:         #f5f5f3;
  --card:       #ffffff;
  --dark:       #1a1a1a;
  --dark-card:  #252525;
  --muted:      #777;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-ui:      'Montserrat', system-ui, sans-serif;
  --font-body:    'Open Sans', system-ui, sans-serif;

  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  28px;
  --space-lg:  56px;
  --space-xl:  88px;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 20px rgba(26,26,26,.07);
  --shadow-md: 0 8px 32px rgba(26,26,26,.13);
  --max:       1120px;
  --stripe-h:  4px;
}

/* ── Resets ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── Brand stripe — fixed at very top of every page ── */
body::before {
  content: '';
  display: block;
  height: var(--stripe-h);
  background: linear-gradient(to right,
    var(--red)   0%      33.33%,
    var(--amber) 33.33%  66.66%,
    var(--green) 66.66%  100%
  );
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}

/* ── Typography ── */
.h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
}
.h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.p {
  font-family: var(--font-body);
  color: var(--ink-light);
  line-height: 1.75;
}
.p.lead { font-size: 1.1rem; }
.p.small, .small { font-size: .875rem; }
.strong { font-weight: 800; }
.text-center { text-align: center; }
.mt    { margin-top: var(--space-lg); }
.mt-sm { margin-top: var(--space-md); }
.on-dark       { color: rgba(255,255,255,.75); }
.on-dark.small { color: rgba(255,255,255,.5); }

/* ── Layout ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--space-sm); }
.narrow    { max-width: 760px; margin-left: auto; margin-right: auto; }
.section   { padding: var(--space-lg) 0; }
.section-lg { padding: var(--space-xl) 0; }
.section.alt { background: var(--bg); }

/* ── Brand stripe divider ── */
.stripe-rule {
  display: flex;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  width: 72px;
  margin-bottom: var(--space-md);
  gap: 2px;
}
.stripe-rule span:nth-child(1) { background: var(--red);   flex: 1; border-radius: 3px; }
.stripe-rule span:nth-child(2) { background: var(--amber); flex: 1; border-radius: 3px; }
.stripe-rule span:nth-child(3) { background: var(--green); flex: 1; border-radius: 3px; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: var(--stripe-h);
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.07);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 40px; height: 40px; border-radius: var(--radius-sm); }
.brand-name { font-weight: 800; font-size: .95rem; }

.nav-toggle {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  font-size: 18px;
  display: inline-flex;
  cursor: pointer;
  line-height: 1;
}

.site-nav { display: none; align-items: center; gap: var(--space-sm); }
.site-nav a {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: .875rem;
  line-height: 1;
  position: relative;
  padding: 2px 0;
}
/* Amber underline slide-in on hover/active */
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transition: width .2s ease;
}
.site-nav a:hover::after,
.site-nav a.active::after { width: 100%; }

/* Nav CTA — RED for urgency */
.site-nav .btn-nav-cta {
  background: var(--red);
  color: #fff !important;
  border-radius: 999px;
  min-height: 36px;
  min-width: 132px;
  padding: 0 22px;
  font-weight: 700;
  font-size: .875rem;
  box-shadow: 0 2px 12px rgba(204,50,50,.22);
  transition: background .15s, transform .1s, box-shadow .1s;
  margin-left: 8px;
  justify-content: center;
  white-space: nowrap;
}
.btn-nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-nav-cta::after { display: none !important; }

/* Mobile nav open */
.site-nav.is-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  top: 61px; left: 0; right: 0;
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: var(--space-sm);
  gap: 10px;
  z-index: 49;
}
.site-nav.is-open a::after { display: none; }
.site-nav.is-open .btn-nav-cta { margin-left: 0; width: 100%; justify-content: center; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav   { display: flex; }
  .site-nav.is-open {
    position: static; flex-direction: row;
    box-shadow: none; padding: 0; background: transparent;
  }
  .site-nav.is-open a::after { display: block; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 24px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 16px rgba(45,201,55,.28);
}
.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 20px rgba(45,201,55,.38);
}
.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(204,50,50,.25);
}
.btn-red:hover { background: var(--red-dark); }
.btn-amber {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(231,180,22,.25);
}
.btn-amber:hover { background: var(--amber-dark); }
.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.07); }

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

/* ── Hero ── */
.hero {
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
  /* first section clears the fixed stripe + sticky header */
  padding-top: calc(var(--space-xl) + var(--stripe-h));
}
/* Edinburgh skyline silhouette watermark */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 460px;
  background-image: url("/img/BG_empty.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom;
  pointer-events: none;
}
.hero .h1 { color: #fff; }
.hero .p  { color: rgba(255,255,255,.72); }
.hero .stripe-rule { margin-bottom: var(--space-md); }

/* Two-column hero grid */
.grid-2 { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1.1fr 1fr; align-items: center; } }
@media (min-width: 1100px) { .grid-2 { grid-template-columns: 1.2fr 1fr; } }

/* Hero stats bar */
.hero-stats {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--amber);
  line-height: 1;
}
.hero-stat-label {
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 4px;
}

/* Hero emblem panel (desktop right column) */
.hero-visual { display: none; }
@media (min-width: 900px) {
  .hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1; /* above the watermark */
  }
}
.hero-emblem {
  width: 100%;
  max-width: 400px;
  min-width: 340px;
  background: var(--dark-card);
  border-radius: 18px;
  padding: var(--space-md) calc(var(--space-md) + 6px);
  border: 1px solid rgba(255,255,255,.07);
}
.hero-emblem-stripes {
  display: flex; height: 5px;
  border-radius: 3px; overflow: hidden;
  gap: 2px; margin-bottom: var(--space-md);
}
.hero-emblem-stripes span:nth-child(1) { background: var(--red);   flex: 1; }
.hero-emblem-stripes span:nth-child(2) { background: var(--amber); flex: 1; }
.hero-emblem-stripes span:nth-child(3) { background: var(--green); flex: 1; }
.hero-emblem-badge {
  display: inline-flex;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: var(--space-sm);
}
.hero-emblem-title {
  font-family: var(--font-display);
  font-size: 1.45rem; color: #fff;
  line-height: 1.2; margin-bottom: 4px;
}
.hero-emblem-sub {
  font-size: .72rem; color: rgba(255,255,255,.45);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em;
}
.hero-emblem-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: var(--space-sm) 0;
}
.hero-emblem-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .84rem;
  color: rgba(255,255,255,.55);
  padding: 7px 0;
}
.hero-emblem-row strong { color: rgba(255,255,255,.88); font-weight: 700; }
.hero-emblem-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  margin-right: 6px;
  flex-shrink: 0;
}

/* ── Cards ── */
.card {
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: var(--space-md);
}
/* Feature card — red top border ties to brand stripe */
.card.feature { border-top: 3px solid var(--red); }

/* Dark card — used for featured pricing */
.card.dark {
  background: var(--dark-card);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.card.dark .p  { color: rgba(255,255,255,.7); }
.card.dark .h3 { color: rgba(255,255,255,.9); }

/* ── Card grids ── */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}
.cards.two { grid-template-columns: 1fr; }
@media (min-width: 560px) { .cards.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .cards     { grid-template-columns: repeat(3, 1fr); } }

/* Generic grid helpers */
.grid { display: grid; gap: var(--space-sm); }

/* ── Testimonials ── */
blockquote.card { margin: 0; position: relative; overflow: hidden; }
blockquote.card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 8rem; line-height: 1;
  color: var(--red);
  opacity: 0.1;
  position: absolute;
  top: -12px; left: 8px;
  pointer-events: none; user-select: none;
}
.quote {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink-light);
  line-height: 1.75;
  position: relative; z-index: 1;
  margin-bottom: var(--space-sm);
}
blockquote footer { font-weight: 700; font-size: .875rem; color: var(--ink); }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  align-items: start;
  margin-top: var(--space-md);
}
@media (min-width: 600px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.card.pricing { display: flex; flex-direction: column; gap: 10px; position: relative; }
.price {
  font-family: var(--font-display);
  font-size: 2.5rem; line-height: 1;
  color: var(--green);
}
.price-sub { font-size: .9rem; font-weight: 600; color: var(--muted); }
.card.dark .price { color: var(--amber); }

.badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--ink);
  font-weight: 800;
  font-size: .72rem;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.features { list-style: none; flex: 1; }
.features li {
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-family: var(--font-body);
  color: var(--ink-light);
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: 9px;
}
.card.dark .features li { color: rgba(255,255,255,.65); border-bottom-color: rgba(255,255,255,.08); }
.features li::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M2 6l3 3 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}
.card.pricing .btn { margin-top: auto; }

/* ── FAQ ── */
.faq {
  border: 1.5px solid #e8e8e8;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 8px;
  transition: border-color .15s;
}
.faq[open] { border-color: var(--red); }
.faq summary {
  font-weight: 700; font-size: .9rem;
  cursor: pointer; list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--red);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform .18s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: var(--ink-light); font-family: var(--font-body); font-size: .875rem; line-height: 1.7; }

/* ── Bottom CTA section ── */
.cta-section {
  background: var(--dark);
  color: #fff;
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
}
.cta-section::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right,
    var(--red)   0%      33.33%,
    var(--amber) 33.33%  66.66%,
    var(--green) 66.66%  100%
  );
}
.cta-section .h2 { color: #fff; margin-bottom: var(--space-sm); }
.cta-section .p  { color: rgba(255,255,255,.62); max-width: 500px; margin: 0 auto var(--space-md); }
.cta-section .stripe-rule { margin: 0 auto var(--space-md); }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding-top: var(--space-xl);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right,
    var(--red)   0%      33.33%,
    var(--amber) 33.33%  66.66%,
    var(--green) 66.66%  100%
  );
}
.footer-trust {
  text-align: center;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: var(--space-lg);
}
.footer-trust-line {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: rgba(255,255,255,.85);
}
.footer-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 840px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand-name { font-weight: 800; color: #fff; font-size: 1rem; }
.foot-h {
  color: #fff;
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}
.foot-links { list-style: none; }
.foot-links li { margin-bottom: 7px; }
.foot-links a { color: rgba(255,255,255,.55); font-size: .875rem; transition: color .15s; }
.foot-links a:hover { color: #fff; }
.foot-contact-line {
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.foot-contact-line a { color: rgba(255,255,255,.55); transition: color .15s; }
.foot-contact-line a:hover { color: #fff; }
.copy {
  text-align: center;
  color: rgba(255,255,255,.25);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: var(--space-sm) 0;
  font-size: .8rem;
  margin-top: var(--space-lg);
}

/* ── DVSA badge ── */
.dvsa-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
/* Light variant for about page */
.dvsa-badge.light {
  background: var(--bg);
  border-color: #ddd;
  color: var(--ink);
}
.dvsa-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ── Forms ── */
form.card { display: block; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .875rem; }
label span { font-weight: 600; color: var(--ink); }

input, select, textarea {
  border: 1.5px solid #ddd;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font: inherit;
  font-size: .9rem;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,201,55,.12);
}
input:not(:placeholder-shown):valid { border-color: #bde8bf; }
textarea { resize: vertical; }
small.err, .field-err { color: var(--red); font-weight: 600; font-size: .8rem; margin-top: 3px; display: block; }
.grid .full { grid-column: 1 / -1; }
.actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: var(--space-sm); flex-wrap: wrap; }
.hidden  { display: none; }

/* ── Availability builder ── */
.days { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 600px)  { .days { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .days { grid-template-columns: repeat(3, 1fr); } }
.day {
  border: 1.5px solid #e5e5e5;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--bg);
  transition: border-color .15s, background .15s;
}
.day:has(.day-toggle:checked) { border-color: var(--green); background: #f2fef2; }
.day > label { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-direction: row; font-size: .875rem; }
.slots       { margin-top: 10px; display: none; }
.slots.active { display: block; }
.slot-grid   { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 400px) { .slot-grid { grid-template-columns: repeat(3, 1fr); } }
.slot {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 8px;
  border: 1.5px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: .82rem; font-weight: 600;
  transition: border-color .15s, background .15s;
}
.slot:has(input:checked) { border-color: var(--green); background: #f2fef2; }

/* ── Toast ── */
.toast     { display: none; margin-top: var(--space-sm); padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: .875rem; }
.toast.ok  { display: block; background: #edfbee; border: 1px solid #c3e6c5; color: #1a5e1c; }
.toast.err { display: block; background: #fdecea; border: 1px solid #f5c6cb; color: #7a1c1c; }

/* ── Instructor panel (About page) ── */
.instructor-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}
@media (min-width: 640px) { .instructor-panel { grid-template-columns: 200px 1fr; align-items: center; } }
.instructor-photo-wrap {
  width: 200px; height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.instructor-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #e5e5e5, #d0d0d0);
  color: #999; font-size: .72rem; font-weight: 600;
  text-align: center; padding: 0;
  line-height: 1.4;
}
.instructor-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.instructor-photo-placeholder svg { opacity: .35; }
.instructor-photo-placeholder:has(img) svg,
.instructor-photo-placeholder:has(img) span { display: none; }


/* ── Testimonial carousel ── */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: var(--space-sm);
}
.testimonial-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}
@media (min-width: 640px) {
  .testimonial-slide {
    flex: 0 0 100%;
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Dots */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-md);
}
.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26,26,26,.18);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s, transform .25s;
}
.t-dot.active {
  background: var(--red);
  transform: scale(1.3);
}
/* Prev/next arrows */
.testimonial-arrows {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: var(--space-sm);
}
.t-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .15s, background .15s, transform .12s;
  box-shadow: var(--shadow);
}
.t-arrow:hover {
  border-color: var(--red);
  color: var(--red);
  transform: scale(1.05);
}

/* ── Utilities ── */
.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;
}

/* ── Legal / prose document pages ── */
.doc-hero {
  background: var(--dark);
  color: #fff;
  padding-top: calc(var(--space-xl) + var(--stripe-h));
  padding-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}
.doc-hero .h1  { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.doc-hero .p   { color: rgba(255,255,255,.65); margin-top: .75rem; }
.doc-hero .stripe-rule { margin-bottom: var(--space-md); }

/* The doc hero doesn't need the full Edinburgh skyline watermark */
.doc-hero::after { display: none; }

.doc-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-sm);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: 0.04em;
}
.doc-meta-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

/* Prose body */
.doc-body {
  padding: var(--space-lg) 0 var(--space-xl);
}
.doc-content {
  max-width: 760px;
  margin: 0 auto;
}

/* Section headings within prose */
.doc-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 2.5rem 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--bg);
}
.doc-content h2:first-child { margin-top: 0; }

.doc-content p {
  font-family: var(--font-body);
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: .85rem;
}
.doc-content ul, .doc-content ol {
  padding-left: 1.4rem;
  margin-bottom: .85rem;
}
.doc-content li {
  font-family: var(--font-body);
  color: var(--ink-light);
  line-height: 1.75;
  margin-bottom: .4rem;
}
.doc-content li strong { color: var(--ink); }
.doc-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.doc-content a:hover { color: var(--red-dark); }

/* Intro / lede paragraph */
.doc-lede {
  background: var(--bg);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  color: var(--ink-light);
  line-height: 1.75;
}

/* Notice / agreement box */
.doc-notice {
  background: #fff8e6;
  border: 1.5px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-md);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--ink);
  line-height: 1.7;
}
.doc-notice strong { color: var(--ink); }

/* Back link */
.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  transition: color .15s;
}
.doc-back:hover { color: var(--red); }

/* Table of contents sidebar on wider screens */
@media (min-width: 1000px) {
  .doc-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-lg);
    align-items: start;
  }
  .doc-toc {
    position: sticky;
    top: calc(61px + var(--stripe-h) + var(--space-md));
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
  }
  .doc-toc-title {
    font-weight: 700;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: var(--space-xs);
  }
  .doc-toc a {
    display: block;
    font-size: .82rem;
    color: var(--ink-light);
    padding: 4px 0;
    border-left: 2px solid transparent;
    padding-left: 8px;
    transition: color .15s, border-color .15s;
    text-decoration: none;
  }
  .doc-toc a:hover { color: var(--red); border-left-color: var(--red); }
}
@media (max-width: 999px) {
  .doc-toc { display: none; }
  .doc-layout { display: block; }
}
