/*
Theme Name: I.G. Driving School
Description: Hand-built theme for igdrivingschool.com, converted from the three-page static design export in this repo's design/ directory. No build step, no JavaScript.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: ig-driving-school
*/

/* =============================================================
   Palette and shared measurements
   Values lifted from the design export's inline styles.
   ============================================================= */
:root {
  --cream: #F6EFDE;
  --paper: #FFFDF6;
  --ink: #1E1B15;
  --red: #A8281E;
  --red-dark: #8A1F17;
  --line: #E5DCC6;
  /* Photo-frame fill and badge ground, one step darker than the cream. */
  --sand: #EDE4CF;
  --muted: #5C564A;
  --on-red-dim: #F3E0D6;

  /* Dark-surface tones, used by the footer and the design's ink sections. */
  --ink-deep: #141210;
  --on-ink: #F6EFDE;
  --on-ink-dim: #CFC5AD;
  --on-ink-bar: #A99F87;
  --on-ink-accent: #D4685E;

  --shell: 1160px;
  --gutter: 28px;
  --radius: 5px;

  --font-body: 'Barlow', system-ui, sans-serif;
  --font-display: 'Rokkitt', Georgia, serif;
  --font-eyebrow: 'Barlow Condensed', sans-serif;
}

/* =============================================================
   Base
   The design ships a small global <style> block alongside its inline styles; these
   four rules are that block, ported verbatim. The a:hover colour in particular is
   not one of the design's style-hover attributes and is easy to miss.
   ============================================================= */
html,
body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  color: var(--red-dark);
}

::selection {
  background: var(--red);
  color: var(--cream);
}

/*
 * A visible keyboard indicator everywhere. The design has no focus styling at all, and
 * several of its colour pairings would otherwise leave the browser default outline hard
 * to see against the cream and ink backgrounds.
 */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.section--ink :focus-visible,
.section--red :focus-visible,
.site-footer :focus-visible,
.rates__card :focus-visible {
  outline-color: var(--cream);
}

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

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

/* =============================================================
   Layout primitives
   ============================================================= */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* The footer's margin-top:auto pins it to the bottom on short pages. */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site__main {
  display: block;
}

.site-footer {
  margin-top: auto;
}

/* =============================================================
   Buttons
   Three variants, all from the header and repeated across the page sections.
   ============================================================= */
.btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 9.5px 18px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--red);
  color: var(--cream);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--red-dark);
  color: var(--cream);
}

.btn--ghost {
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--ink);
  color: var(--cream);
}

.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--ink);
  color: var(--cream);
}

/* =============================================================
   Road divider
   A dashed lane marking used as a section break. The dark variant is the footer's
   top edge; the default sits between the hero and the section below it.
   ============================================================= */
.road-divider {
  height: 14px;
  background: var(--ink);
  display: flex;
  align-items: center;
}

.road-divider__lane {
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--cream) 0 24px, transparent 24px 48px);
}

.road-divider--dark {
  height: 16px;
  background: var(--ink-deep);
}

.road-divider--dark .road-divider__lane {
  background: repeating-linear-gradient(90deg, var(--red) 0 24px, transparent 24px 48px);
}

/* =============================================================
   Header and primary navigation
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 239, 222, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand__logo {
  max-height: 44px;
  width: auto;
}

.brand__lockup {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand__tagline {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 4px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav__list a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
  color: var(--red);
}

.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a {
  color: var(--red);
  border-bottom-color: var(--red);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* =============================================================
   Section scaffolding
   The design pads most bands 84px vertically and tints them with one of four surfaces.
   ============================================================= */
.section {
  padding: 84px 0;
}

.section--paper {
  background: var(--paper);
}

.section--ink {
  background: var(--ink);
  color: var(--on-ink);
}

.section--red {
  background: var(--red);
  color: var(--on-ink);
}

.section-title {
  margin: 0;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.05;
  text-wrap: pretty;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 44px;
}

.section-heading--centered {
  align-items: center;
  text-align: center;
}

.lede {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 64ch;
  text-wrap: pretty;
}

.section-heading--centered .lede {
  margin-left: auto;
  margin-right: auto;
}

/* =============================================================
   Eyebrow
   ============================================================= */
.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--red);
  text-transform: uppercase;
}

.eyebrow--centered {
  justify-content: center;
}

.eyebrow--on-ink {
  color: var(--on-ink-accent);
}

.eyebrow__rule {
  width: 28px;
  height: 2px;
  flex-shrink: 0;
  background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 10px);
}

.eyebrow--on-ink .eyebrow__rule {
  background: repeating-linear-gradient(90deg, var(--on-ink-accent) 0 6px, transparent 6px 10px);
}

/* =============================================================
   Button rows and link affordances
   ============================================================= */
.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
}

.btn-row--centered {
  justify-content: center;
  margin-top: 36px;
}

.btn--lg {
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  padding: 13px 26px;
  border-radius: 6px;
}

.btn--outline.btn--lg {
  border-width: 2px;
  padding: 11px 24px;
}

.btn--on-red {
  background: var(--cream);
  color: var(--red);
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  padding: 14px 26px;
  border-radius: 6px;
}

.btn--on-red:hover,
.btn--on-red:focus-visible {
  background: var(--paper);
  color: var(--red-dark);
}

.arrow-link {
  font-weight: 700;
  font-size: 15px;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.arrow-link:hover,
.arrow-link:focus-visible {
  color: var(--red-dark);
}

.arrow-link__arrow {
  font-family: var(--font-eyebrow);
}

/* =============================================================
   Home: hero
   ============================================================= */
.hero {
  padding: 72px 0 80px;
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 52px;
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.hero__title {
  margin: 0;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 62px;
  line-height: 1.02;
  text-wrap: pretty;
}

.hero__title-accent {
  color: var(--red);
}

.hero__lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
  text-wrap: pretty;
}

.hero__note {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}

/* The offset red block behind the photo is a shadow, so it never affects layout. */
.hero__media {
  position: relative;
  padding: 0 12px 12px 0;
}

.hero__frame {
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand);
  box-shadow: 12px 12px 0 var(--red);
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================================
   Home: welcome
   ============================================================= */
.welcome__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 52px;
  align-items: center;
}

.welcome__media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand);
  border: 1.5px solid var(--line);
}

.welcome__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.welcome__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.welcome__body {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

/* =============================================================
   About: vision hero
   Same two-column frame as the home hero, with a smaller headline and a sub-heading.
   ============================================================= */
.hero--about {
  padding: 72px 0 84px;
}

.hero--about .hero__copy {
  gap: 18px;
}

.hero__title--about {
  font-size: 54px;
}

.hero__subtitle {
  margin: 0;
  font-family: var(--font-eyebrow);
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
}

.hero__lead--narrow {
  font-size: 16.5px;
  max-width: 58ch;
}

/* =============================================================
   About: founder
   ============================================================= */
.founder__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 52px;
  align-items: center;
}

.founder__media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand);
  border: 1.5px solid var(--line);
}

.founder__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.founder__body {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.stats {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stats__value {
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 38px;
  color: var(--red);
  line-height: 1;
}

.stats__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}

.stats__rule {
  width: 1.5px;
  background: var(--line);
  flex-shrink: 0;
}

/* =============================================================
   About: teaching methods
   ============================================================= */
.methods {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 64px 0;
}

.methods__inner {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
}

.methods__list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  justify-content: center;
  align-items: center;
}

.methods__item {
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 28px;
}

.methods__diamond {
  width: 9px;
  height: 9px;
  background: var(--red);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* =============================================================
   Course cards
   Shared by the home page previews and the full cards on Our Courses.
   ============================================================= */
.course-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
}

.course-card {
  flex: 1;
  min-width: 270px;
  max-width: 350px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.course-card--featured {
  border: 2px solid var(--red);
  box-shadow: 0 16px 34px rgba(168, 40, 30, 0.14);
}

.course-card__badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 10px;
  border-radius: 3px;
}

.course-card__badge--basic {
  background: var(--sand);
  color: var(--muted);
}

.course-card__badge--popular {
  background: var(--red);
  color: var(--cream);
}

.course-card__badge--premium {
  background: var(--ink);
  color: var(--cream);
}

.course-card__title {
  margin: 0;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.1;
}

.course-card__price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.course-card__currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
}

.course-card__amount {
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
}

.course-card__note {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.course-card__blurb {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

/* margin-top:auto pins the link to the bottom so cards of different heights align. */
.course-card__link {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--red);
  margin-top: auto;
}

.course-card__link:hover,
.course-card__link:focus-visible {
  color: var(--red-dark);
}

/* Full cards carry a feature checklist and a call to action below the summary. */
.course-card--full {
  min-width: 280px;
  max-width: 360px;
  padding: 28px;
  gap: 16px;
}

.course-card--full .course-card__title {
  font-size: 28px;
}

.course-card--full .course-card__amount {
  font-size: 56px;
}

.course-card__features {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1.5px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.course-card__feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
}

.course-card__check {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--red);
}

/* margin-top:auto keeps the buttons on a shared baseline across cards. */
.course-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.course-card__cta {
  display: block;
  text-align: center;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  padding: 13px 0;
  border-radius: 6px;
}

.course-card__note-line {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* =============================================================
   Our Courses: header, banner, rates, payment
   ============================================================= */
.courses-header {
  padding: 64px 0 12px;
}

.courses-header__title {
  margin: 0;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 54px;
  line-height: 1.02;
  text-wrap: pretty;
  max-width: 20ch;
}

.lede--wide {
  font-size: 17px;
  max-width: 62ch;
}

.courses-pricing {
  padding: 44px 0 72px;
}

.course-grid--full {
  align-items: stretch;
}

.availability {
  padding: 34px 0;
}

.availability__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.availability__title {
  margin: 0;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 30px;
  text-align: center;
  text-wrap: pretty;
}

.btn--sm {
  font-size: 15px;
  padding: 11px 22px;
}

.rates {
  background: var(--paper);
}

.rates__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 52px;
  align-items: start;
}

.rates__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.rates__title {
  margin: 0;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  text-wrap: pretty;
}

.rates__lede {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.rates__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rates__trust-item {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}

.rates__trust-tick {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rates__trust-icon {
  width: 14px;
  height: 14px;
}

.rates__media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--sand);
  border: 1.5px solid var(--line);
  width: 100%;
  margin-top: 10px;
}

.rates__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rates__card {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 14px;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 10px 10px 0 var(--line);
}

.rates__card-title {
  margin: 0;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
}

.rates__card-title-accent {
  color: var(--on-ink-accent);
}

.rates__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rates__group-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--on-ink-accent);
}

/* The leader flexes to fill whatever space the name and price leave. */
.rates__line {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.rates__line-name {
  font-size: 15.5px;
  font-weight: 600;
}

.rates__line-leader {
  flex: 1;
  border-bottom: 2px dotted rgba(246, 239, 222, 0.3);
  transform: translateY(-4px);
}

.rates__line-price {
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 23px;
  white-space: nowrap;
}

.rates__group-note {
  margin: -4px 0 0;
  font-size: 12.5px;
  color: var(--on-ink-bar);
}

.rates__footnote {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--on-ink-dim);
}

.payment__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 44px;
  align-items: start;
}

.payment__subtitle,
.payment__refund-title {
  margin: 0 0 16px;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 25px;
}

.payment__chips {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment__chip {
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sand);
  border: 1px solid var(--line);
}

.payment__text {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.payment__text strong {
  color: var(--ink);
}

.payment__rule {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.payment__badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 14px;
}

.payment__badge--tick {
  background: var(--red);
}

.payment__badge-icon {
  width: 14px;
  height: 14px;
}

.payment__footnote {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* =============================================================
   Philosophy
   ============================================================= */
.philosophy {
  padding: 80px 0;
}

.philosophy__title {
  margin: 12px 0 40px;
}

.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
}

.philosophy__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 2px solid rgba(246, 239, 222, 0.2);
  padding-top: 18px;
}

.philosophy__number {
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 20px;
  color: var(--on-ink-accent);
}

.philosophy__heading {
  margin: 0;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 26px;
}

.philosophy__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-ink-dim);
  text-wrap: pretty;
}

/* =============================================================
   Why choose us
   ============================================================= */
.why__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.why__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.why__tick {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why__tick-icon {
  width: 17px;
  height: 17px;
}

.why__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.why__heading {
  margin: 0;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 23px;
}

.why__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* The photo variant only becomes two columns when a featured image exists; without one
   the reasons keep the full width rather than leaving an empty box. */
.why--has-photo .why__body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 44px;
  align-items: start;
}

.why--has-photo .why__grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.why__media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 560px;
  background: var(--sand);
  border: 1.5px solid var(--line);
}

.why__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================================
   Closing call to action
   ============================================================= */
.cta {
  padding: 60px 0;
}

.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.cta__copy {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta__title {
  margin: 0;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.05;
  text-wrap: pretty;
}

.cta__body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-red-dim);
  max-width: 58ch;
  text-wrap: pretty;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.cta__hours {
  margin: 0;
  font-size: 13.5px;
  color: var(--on-red-dim);
}

/* =============================================================
   DriveScout product grid
   Styles for the cards the drivescout-shop-page plugin renders, so a shop page matches
   the rest of the site instead of arriving in the plugin's own blue-grey.

   Every rule is prefixed #drivescout-app to match the plugin's own specificity, and all
   three class generations are listed side by side rather than matched with :is() so they
   stay greppable:

     .card*         plugin 0.2.8 and earlier
     .ds_card*      0.2.26 onward, including 0.2.28 (this is what production emits)
     .checkout-card new in 0.2.28's dist/style.css

   Loaded from day one even with the shop toggled off: the cost is a few hundred bytes,
   and it means switching checkout on is a Customizer change rather than a CSS change.
   ============================================================= */
#drivescout-app .drivescout-products,
#drivescout-app .ds_products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}

#drivescout-app .card,
#drivescout-app .ds_card,
#drivescout-app .checkout-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  color: var(--ink);
  box-shadow: none;
}

/* The plugin paints this strip with a Tailwind utility (.ds-bg-blue-300). The
   id prefix outranks it without needing !important. */
#drivescout-app .card-header,
#drivescout-app .ds_card-header,
#drivescout-app .checkout-card-header {
  background: var(--red);
}

#drivescout-app .card-body,
#drivescout-app .ds_card-body,
#drivescout-app .checkout-card-body {
  color: var(--ink);
}

#drivescout-app .card-title,
#drivescout-app .ds_card-title,
#drivescout-app .ds_card_title,
#drivescout-app .ds_card-body h2,
#drivescout-app .ds_card-body h3 {
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.1;
  color: var(--ink);
}

#drivescout-app .ds_card-body p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

#drivescout-app .card-price,
#drivescout-app .ds_card-price,
#drivescout-app .ds_card_price {
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--ink);
}

#drivescout-app .card-description,
#drivescout-app .ds_card-description,
#drivescout-app .ds_card_description {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

#drivescout-app .add-to-cart,
#drivescout-app .ds_add-to-cart,
#drivescout-app button[type="submit"] {
  background: var(--red);
  color: var(--cream);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

#drivescout-app .add-to-cart:hover,
#drivescout-app .ds_add-to-cart:hover,
#drivescout-app button[type="submit"]:hover,
#drivescout-app .add-to-cart:focus-visible,
#drivescout-app .ds_add-to-cart:focus-visible,
#drivescout-app button[type="submit"]:focus-visible {
  background: var(--red-dark);
}

/* The plugin writes an inline style="height: 15px" on its spacer, which is the one
   place an !important is unavoidable. */
#drivescout-app .spacer {
  height: 6px !important;
}

/* =============================================================
   Contact section
   The #contact anchor target, above the footer on every page. Slice 5 adds the form;
   these are the surrounding band's styles.
   ============================================================= */
.contact {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.contact__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 52px;
  align-items: start;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.contact__lede {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
  text-wrap: pretty;
}

/* A two-column definition list: label in condensed caps, value beside it. */
.contact__list {
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  align-items: baseline;
}

.contact__term {
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
}

.contact__value {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink);
}

.contact__form-title {
  margin: 0 0 18px;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 25px;
}

/* =============================================================
   Form
   ============================================================= */
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0 18px;
}

.form__field {
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.form__input {
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 11px 13px;
  width: 100%;
}

.form__input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}

.form__input--area {
  resize: vertical;
  min-height: 120px;
}

.form__error {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

.form__submit {
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  padding: 13px 26px;
  border-radius: 6px;
}

.form__notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 15.5px;
  line-height: 1.55;
}

.form__notice--success {
  background: var(--sand);
  border-left: 4px solid var(--red);
  color: var(--ink);
}

.form__notice--error {
  background: #F7E2DF;
  border-left: 4px solid var(--red);
  color: var(--ink);
}

/*
 * The honeypot. Kept out of the layout without display:none, which some bots detect and
 * skip; this is off-screen but still a real, fillable field.
 */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  background: var(--ink);
  color: var(--on-ink);
}

.site-footer__columns {
  padding-top: 56px;
  padding-bottom: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 44px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.site-footer__name {
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.site-footer__blurb {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-ink-dim);
  max-width: 36ch;
  text-wrap: pretty;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__heading {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--on-ink-accent);
}

.site-footer__hours {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--on-ink-dim);
}

.site-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__link {
  font-size: 14.5px;
  color: var(--on-ink);
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--on-ink-accent);
}

.site-footer__link--strong {
  font-weight: 600;
}

.site-footer__link--wrap {
  overflow-wrap: anywhere;
}

.site-footer__bar {
  border-top: 1px dashed rgba(246, 239, 222, 0.25);
}

.site-footer__bar-inner {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--on-ink-bar);
}

/* =============================================================
   Narrow screens
   The layouts above are auto-fit grid and flex-wrap based, so they reflow on their own.
   These rules only relieve the fixed horizontal padding, the display type that is sized
   for a desktop column, and the header row.

   No hamburger and no JavaScript: four nav items plus two buttons wrap cleanly, which is
   the same approach driveright-academy takes.
   ============================================================= */

/*
 * The header is one row of brand + nav + two calls to action. Left alone it would
 * overflow and side-scroll the document on a phone; here it wraps onto a second line and
 * the nav takes the full width.
 */
@media (max-width: 900px) {
  .site-header__inner {
    gap: 16px;
  }

  .site-nav {
    flex: 1 1 100%;
    margin-left: 0;
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
  }

  .section {
    padding: 56px 0;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .site-nav__list {
    justify-content: center;
    gap: 18px;
  }

  .site-nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .site-nav__actions .btn {
    text-align: center;
  }

  /* Display type sized for a desktop column is too large on a phone. */
  .hero__title {
    font-size: 40px;
  }

  .hero__title--about,
  .courses-header__title {
    font-size: 36px;
  }

  .section-title,
  .cta__title,
  .rates__title {
    font-size: 30px;
  }

  .availability__title {
    font-size: 24px;
  }

  .methods__item {
    font-size: 22px;
  }

  .course-card__amount {
    font-size: 44px;
  }

  .site-footer__columns {
    padding-top: 44px;
    padding-bottom: 32px;
    gap: 32px;
  }

  .rates__card {
    padding: 26px 22px;
    box-shadow: 6px 6px 0 var(--line);
  }

  /* A stat divider makes no sense once the pair has stacked. */
  .stats__rule {
    display: none;
  }

  /* Full-width buttons read better than a wrapped row on a phone. */
  .btn-row .btn,
  .form__submit,
  .course-card__cta {
    width: 100%;
    white-space: normal;
  }
}

/*
 * Below the sticky header's useful range it eats too much of a short viewport, so let it
 * scroll away.
 */
@media (max-width: 782px), (max-height: 480px) {
  .site-header {
    position: static;
  }
}

/* The WordPress admin bar offsets the sticky header. */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* Respect a reduced-motion preference: the only transitions here are button hovers. */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
