/* =========================================================
   On Target Driving School — Liverpool NSW
   Plain CSS · mobile-first · no frameworks
   ========================================================= */

:root {
  --yellow: #f7b500;
  --yellow-dark: #d99e00;
  --charcoal: #030000;
  --grey-900: #3a3a3a;
  --grey-600: #576168;
  --grey-100: #eeeeee;
  --off-white: #fbfcff;
  --white: #ffffff;
  --blue: #1579e6;
  --green: #1e8e3e;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(29, 29, 31, 0.08);
  --shadow-lg: 0 10px 30px rgba(29, 29, 31, 0.14);
  --container: 1140px;
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--grey-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--charcoal);
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 3.5rem;
}

.section--alt {
  background: var(--off-white);
}

.section--dark {
  background: var(--charcoal);
  color: #d9dde3;
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section-intro {
  max-width: 46rem;
  margin: 0.75rem auto 0;
  text-align: center;
  color: var(--grey-600);
}

.section--dark .section-intro {
  color: #b8bec7;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin-bottom: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  border: 2px solid transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--yellow);
  color: var(--charcoal);
  box-shadow: 0 6px 16px rgba(247, 181, 0, 0.45);
}

.btn--primary:hover {
  background: var(--yellow-dark);
  box-shadow: 0 4px 12px rgba(247, 181, 0, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn--outline:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline-light:hover {
  background: var(--white);
  color: var(--charcoal);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.logo img {
  width: 180px;
  height: 53px;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--charcoal);
  box-shadow: var(--shadow-lg);
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  padding: 0.5rem 1.25rem 1.25rem;
}

.site-nav a {
  display: block;
  padding: 0.7rem 0.25rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--yellow);
}

.header-phone {
  display: none;
}

/* Mobile sticky call bar */
.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  gap: 1px;
  box-shadow: 0 -4px 14px rgba(29, 29, 31, 0.18);
}

.mobile-call-bar a {
  flex: 1;
  padding: 0.9rem 0.5rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.mobile-call-bar .call {
  background: var(--charcoal);
  color: var(--white);
}

.mobile-call-bar .book {
  background: var(--yellow);
  color: var(--charcoal);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(rgba(20, 20, 22, 0.78), rgba(20, 20, 22, 0.78)),
    url("../images/driving-school-car.jpg") center / cover no-repeat;
  color: var(--white);
  padding-block: 4rem;
}

.hero h1 {
  color: var(--white);
  max-width: 22ch;
}

.hero h1 .accent {
  color: var(--yellow);
}

.hero-lede {
  max-width: 40rem;
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #e6e8ec;
}

.hero-points {
  list-style: none;
  margin-top: 1.25rem;
  display: grid;
  gap: 0.6rem;
}

.hero-points li {
  padding-left: 1.85rem;
  position: relative;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 800;
}

.hero .btn-group {
  margin-top: 1.75rem;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #b8bec7;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

/* Compact, CTA-first hero on small screens */
@media (max-width: 899px) {
  .hero {
    padding-block: 2.25rem;
  }
  .hero-grid {
    gap: 2rem;
  }
  .hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }
  .hero-content {
    display: flex;
    flex-direction: column;
  }
  .hero-content .eyebrow { order: 0; }
  .hero-content h1 { order: 1; }
  .hero-content .hero-stars { order: 2; margin-top: 0.75rem; }
  .hero-content .btn-group { order: 3; margin-top: 1.1rem; }
  .hero-content .hero-lede {
    order: 4;
    margin-top: 1.25rem;
    font-size: 1.02rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-content .hero-points { order: 5; }
  .hero-content .hero-points li { font-size: 0.92rem; }
  .hero-content .hero-badges { order: 6; margin-top: 1.25rem; }
  .hero-content .hero-badges img { height: 36px; }
  .hero-content .hero-note { order: 7; }
}

.hero-stars {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--white);
}

.hero-stars span {
  color: var(--yellow);
  letter-spacing: 2px;
  margin-right: 0.4rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-badges img {
  height: 44px;
  width: auto;
  background: var(--white);
  border-radius: 8px;
  padding: 4px 6px;
}

.hero-form {
  padding: 1.5rem;
}

.hero-form h2 {
  font-size: 1.3rem;
}

.hero-form > .form-note {
  margin: 0.35rem 0 1rem;
}

.hero-form .form-grid {
  gap: 0.75rem;
}

.hero-video {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.hero-video wistia-player {
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.hero-video p {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e6e8ec;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
  }
}

/* ---------- Pass rate highlight band ---------- */
.stat-band {
  background: var(--yellow);
}

.stat-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-block: 2.5rem;
  text-align: center;
}

.stat-figure {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: 1;
  color: var(--charcoal);
  text-shadow: 4px 4px 0 rgba(255, 255, 255, 0.55);
}

.stat-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}

.stat-sub {
  margin-top: 0.25rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(3, 0, 0, 0.72);
}

.btn--dark {
  background: var(--charcoal);
  color: var(--white);
}

.btn--dark:hover {
  background: #2b2b2e;
}

@media (min-width: 900px) {
  .stat-inner {
    flex-direction: row;
    gap: 3rem;
    text-align: left;
  }
  .stat-copy {
    flex-grow: 1;
  }
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--grey-600);
  font-size: 0.96rem;
}

.card .card-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 700;
  color: var(--yellow-dark);
  text-decoration: none;
}

.card .card-link:hover {
  text-decoration: underline;
}

.card--icon .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(247, 181, 0, 0.16);
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}

.card--photo {
  padding: 0;
  overflow: hidden;
}

.card--photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 28%;
}

.card--photo .card-body {
  padding: 1.4rem 1.5rem 1.6rem;
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  list-style: none;
}

.steps li {
  counter-increment: step;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 1.5rem 4.5rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.4rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--charcoal);
  font-weight: 800;
}

.steps h3 {
  margin-bottom: 0.35rem;
}

.steps p {
  color: var(--grey-600);
  font-size: 0.96rem;
}

/* ---------- Split (text + image) ---------- */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}

.split .checklist {
  list-style: none;
  margin-top: 1.25rem;
  display: grid;
  gap: 0.6rem;
}

.split .checklist li {
  padding-left: 1.75rem;
  position: relative;
}

.split .checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--yellow-dark);
  font-weight: 800;
}

/* ---------- Reviews ---------- */
.review {
  display: flex;
  flex-direction: column;
}

.review wistia-player {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.review .stars {
  color: var(--yellow);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.review blockquote {
  font-style: italic;
  color: var(--grey-900);
  flex-grow: 1;
}

.review figcaption {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  font-size: 0.95rem;
}

.review figcaption span {
  display: block;
  font-weight: 400;
  color: var(--grey-600);
  font-size: 0.85rem;
}

/* ---------- Accreditation strip ---------- */
.accred {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
  text-align: center;
}

.accred-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  max-width: 15ch;
}

.accred-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3.5rem;
}

.accred-logos img {
  height: 90px;
  width: auto;
}

@media (min-width: 900px) {
  .accred {
    flex-wrap: nowrap;
    text-align: left;
  }
  .accred-title {
    padding-right: 3rem;
    border-right: 2px solid #d9dde3;
    flex-shrink: 0;
  }
  .accred-logos {
    flex-wrap: nowrap;
    justify-content: space-between;
    flex-grow: 1;
  }
  .accred-logos img {
    height: 104px;
  }
}

/* ---------- Pricing / offers ---------- */
.offers-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-top: 1.5rem;
}

.price-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--grey-100);
  padding: 2.5rem 1.5rem 4rem;
}

.price-card .price-flag {
  font-weight: 800;
  color: var(--charcoal);
  font-size: 0.95rem;
}

.price-card h3 {
  font-size: 0.95rem;
  color: var(--charcoal);
  margin: 0.9rem 0 1rem;
}

.price-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.1;
}

.price-card .price-desc {
  margin: 1rem 0 1.25rem;
  color: #7d8ba1;
  font-size: 0.92rem;
  flex-grow: 1;
}

/* ---------- Badges ---------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
}

.badge-row img {
  height: 64px;
  width: auto;
  background: var(--white);
  border-radius: 8px;
  padding: 0.4rem;
}

/* ---------- Test centres ---------- */
.centres {
  display: grid;
  gap: 2.5rem 1.5rem;
  margin-top: 2.5rem;
  text-align: center;
}

.centre h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 1rem;
}

.centre img {
  height: 72px;
  width: auto;
  margin-inline: auto;
}

.btn--blue {
  background: var(--blue);
  color: var(--white);
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

.btn--blue:hover {
  background: #1163bd;
}

@media (min-width: 640px) {
  .centres { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .centres { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Suburbs ---------- */
.suburb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
  justify-content: center;
}

.suburb-list li {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-900);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 50rem;
  margin: 2rem auto 0;
  display: grid;
  gap: 0.85rem;
}

.faq-list details {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.4rem;
}

.faq-list summary {
  font-weight: 700;
  color: var(--charcoal);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--yellow-dark);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin-top: 0.75rem;
  color: var(--grey-600);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  max-width: 42rem;
  margin: 0.85rem auto 0;
  color: #c6ccd4;
}

.cta-band .btn-group {
  justify-content: center;
  margin-top: 1.75rem;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--charcoal);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid #cfd4da;
  border-radius: 8px;
  font: inherit;
  color: var(--grey-900);
  background: var(--white);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--grey-600);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--charcoal);
  color: var(--white);
  padding-block: 3rem;
}

.page-hero h1 {
  color: var(--white);
}

.page-hero p {
  max-width: 44rem;
  margin-top: 0.85rem;
  color: #c6ccd4;
  font-size: 1.05rem;
}

.page-hero .btn-group {
  margin-top: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #141416;
  color: #b8bec7;
  padding: 3rem 0 5.5rem; /* bottom padding clears mobile call bar */
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.site-footer a {
  color: #b8bec7;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-logo {
  width: 180px;
  height: 53px;
  filter: brightness(0) invert(1);
  margin-bottom: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid #2c2c30;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  text-align: center;
  color: #7d848d;
}

/* ---------- Tablet & up ---------- */
@media (min-width: 640px) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .form-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .form-grid--2 .form-field--full { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .section { padding-block: 5rem; }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .steps--row { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .split--reverse .split-media { order: 2; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .hero { padding-block: 6rem; }

  /* Desktop nav */
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: none;
    box-shadow: none;
  }
  .site-nav ul {
    display: flex;
    gap: 1.5rem;
    padding: 0;
  }
  .site-nav a {
    border: 0;
    padding: 0.25rem 0;
  }
  .header-phone {
    display: inline-block;
  }
  .mobile-call-bar { display: none; }
  .site-footer { padding-bottom: 3rem; }
}
