/* Learn to Ride – Digital Exam landing page
   Colours and type taken from the source Word document. */

:root {
  --navy: #17325a;
  --navy-deep: #0f2340;
  --teal: #3f9e9e;
  --text: #5b6470;
  --tint: #eef4f2;
  --cta-muted: #afc4ce;
  --cta-text: #d8e3e8;
  --white: #ffffff;

  --radius-img: 18px;   /* shared by both section photos */
  --radius-card: 4px;
  --max-width: 1040px;

  --font: Calibri, Carlito, "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
}

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

a { color: var(--teal); }

/* ---------- Layout ---------- */
.ltr {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px;
}

.ltr-section + .ltr-section,
.ltr-section + .cta { margin-top: 64px; }

/* ---------- Headings ---------- */
.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.section-title {
  margin: 0 0 20px;
  font-size: clamp(22px, 2.6vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

/* ---------- Program at a glance ---------- */
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--tint);
  border-radius: var(--radius-card);
}

.fact--wide { grid-column: span 2; }

.fact__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.fact__value {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Image + text split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split__media { margin: 0; }

.split__media img {
  width: 100%;
  border-radius: var(--radius-img);
  object-fit: cover;
}

/* Membership section: photo on the right */
.split--reverse .split__media { order: 2; }

.split__body p { margin: 0 0 16px; }

.checklist {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--navy);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.footnote {
  font-size: 13px;
  font-style: italic;
  color: var(--teal);
}

sup { font-size: 0.7em; }

/* ---------- How it works ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step { padding: 4px 16px; }

.step__title {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--navy);
}

.step p { margin: 0 0 4px; font-size: 15px; }

.step__link {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  word-break: break-word;
}
.step__link:hover { text-decoration: underline; }

/* ---------- CTA ---------- */
.cta {
  padding: 40px 24px;
  text-align: center;
  background: var(--navy-deep);
  color: var(--cta-text);
  border-radius: var(--radius-card);
}

.cta__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.8vw, 28px);
  color: var(--white);
}

.cta__text { margin: 0 0 24px; }

.cta__btn {
  display: inline-block;
  padding: 12px 28px;
  font-weight: 700;
  color: var(--white);
  background: var(--teal);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta__btn:hover,
.cta__btn:focus-visible {
  background: #358a8a;
  transform: translateY(-1px);
}

.cta__meta {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--cta-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .ltr { padding: 40px 16px; }

  .facts,
  .steps { grid-template-columns: 1fr 1fr; }

  .split { grid-template-columns: 1fr; gap: 24px; }
  .split--reverse .split__media { order: 0; }
}

@media (max-width: 480px) {
  .facts,
  .steps { grid-template-columns: 1fr; }
  .fact--wide { grid-column: auto; }
}
