:root {
  --primary: #12344d;
  --primary-light: #1f5f87;
  --accent: #f4b400;
  --accent-dark: #c88d00;
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-soft: #f1efe8;
  --text: #1f2933;
  --muted: #52606d;
  --white: #ffffff;
  --shadow: 0 14px 35px rgba(18, 52, 77, 0.12);
  --radius: 12px;
  --container: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-y: scroll;
}

body {
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

section {
  padding: 3rem 0;
}

.container {
  width: min(90%, var(--container));
  margin: 0 auto;
  min-width: 0;
}

.center {
  text-align: center;
}

.top-bar {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.95rem;
}

.top-bar a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.phone-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #56a7b6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23eaf6f4' d='M9.2 5.8c-.7 0-1.2.2-1.6.7L5.9 8.4c-.7.8-1 1.9-.8 3 .8 4.3 3 8.1 6.4 11.5 3.4 3.4 7.2 5.6 11.5 6.4 1.1.2 2.2-.1 3-.8l1.9-1.7c.5-.4.7-1 .7-1.6 0-.7-.3-1.3-.7-1.8l-4.1-4.1c-.9-.9-2.3-1-3.2-.2l-2 1.6c-.3.2-.6.3-1 .2-1.8-.7-3.5-1.8-5.1-3.4-1.6-1.6-2.7-3.3-3.4-5.1-.1-.4 0-.7.2-1l1.6-2c.8-.9.7-2.3-.2-3.2L11 6.5c-.5-.5-1.1-.7-1.8-.7z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 74%;
  font-size: 0;
  vertical-align: middle;
}

.whatsapp-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 0.35rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #25d366;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23fff' d='M16 5.2c-5.9 0-10.7 4.8-10.7 10.7 0 1.9.5 3.8 1.5 5.4l-1.6 5.7 5.8-1.5c1.6.9 3.3 1.4 5 1.4 5.9 0 10.7-4.8 10.7-10.7S21.9 5.2 16 5.2zm0 19.6c-1.6 0-3.2-.4-4.6-1.3l-.3-.2-3.4.9.9-3.3-.2-.3c-1-1.5-1.5-3.1-1.5-4.9 0-4.9 4-8.9 8.9-8.9s8.9 4 8.9 8.9-4 8.9-8.8 8.9zm4.9-6.7c-.3-.2-1.7-.8-2-.9-.3-.1-.5-.2-.7.2-.2.3-.8.9-.9 1.1-.2.2-.3.2-.6.1-.3-.2-1.2-.4-2.3-1.4-.9-.8-1.4-1.7-1.6-2-.2-.3 0-.4.1-.6.1-.1.3-.3.4-.5.1-.2.2-.3.3-.5.1-.2 0-.4 0-.5 0-.1-.7-1.8-1-2.4-.2-.5-.5-.4-.7-.4h-.6c-.2 0-.5.1-.7.3-.2.3-.9.9-.9 2.1s.9 2.4 1 2.5c.1.2 1.8 2.9 4.4 4 .6.3 1.1.5 1.4.6.6.2 1.2.2 1.6.1.5-.1 1.7-.7 1.9-1.4.2-.7.2-1.2.1-1.3-.1-.2-.3-.2-.6-.4z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 88%;
  vertical-align: middle;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: center;
  column-gap: 1.5rem;
  min-height: 84px;
}

.logo {
  display: inline-flex;
  align-items: center;
  width: 230px;
  min-width: 0;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  position: relative;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  list-style: none;
  min-width: 0;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-links a.active {
  color: var(--accent);
}

.btn,
.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn-nav:hover {
  transform: translateY(-1px);
}

.btn-primary,
.btn-nav {
  background: var(--accent);
  color: var(--primary);
}

.btn-nav {
  padding: 0.72rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.btn-nav:hover {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.btn-nav:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.28);
  outline-offset: 2px;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.nav-links .btn-nav.active {
  color: var(--primary);
}

.page-header,
.prices,
.instructors,
.areas,
.gallery,
.cta,
.map-section {
  text-align: center;
}

.page-header h1,
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.page-header p,
.hero p,
.section-title p {
  max-width: 42rem;
  margin: 0.75rem auto 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(31, 95, 135, 0.08);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hero {
  background: linear-gradient(135deg, #102c41, #1f5f87);
  color: var(--white);
  min-height: calc(100vh - 132px);
  display: flex;
  align-items: center;
}

.reviews-hero {
  background:
    radial-gradient(circle at top right, rgba(244, 180, 0, 0.24), transparent 30%),
    linear-gradient(135deg, #102c41, #173f5d 55%, #1f5f87);
  color: var(--white);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 2.5rem;
  align-items: center;
  text-align: left;
}

.reviews-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.reviews-copy {
  max-width: 40rem;
}

.hero-copy {
  max-width: 40rem;
}

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

.hero-copy p {
  font-size: 1.08rem;
}

.hero-badges,
.hero-actions,
.car-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.hero-badges,
.hero-actions {
  justify-content: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow-wrap: anywhere;
}

.hero-note {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.84);
}

.hero-panel,
.lesson-panel,
.map-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.hero-panel img {
  display: block;
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.reviews-score-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.reviews-score-card strong {
  display: block;
  font-size: clamp(3rem, 8vw, 4.75rem);
  line-height: 1;
  color: var(--accent);
}

.reviews-score-card p {
  margin-top: 0.85rem;
}

.reviews-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.reviews-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.car-images {
  margin-top: 1.25rem;
}

.car-images img {
  width: min(100%, 220px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.price-grid,
.instructor-grid,
.gallery-grid,
.feature-grid,
.stat-grid,
.service-grid,
.contact-grid,
.hours-grid,
.lesson-notes,
.reviews-grid {
  display: grid;
  gap: 1.5rem;
}

.price-grid,
.instructor-grid,
.gallery-grid,
.feature-grid,
.stat-grid,
.service-grid,
.contact-grid,
.hours-grid,
.reviews-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.lesson-notes {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.container > *,
.nav-container > *,
.price-grid > *,
.instructor-grid > *,
.gallery-grid > *,
.feature-grid > *,
.stat-grid > *,
.service-grid > *,
.contact-grid > *,
.hours-grid > *,
.lesson-notes > * {
  min-width: 0;
  max-width: 100%;
}

.card,
.price-card,
.instructor-card,
.gallery-card,
.areas-list,
.feature-card,
.stat-card,
.service-card,
.contact-card,
.hours-card,
.review-panel,
.lesson-note,
.lesson-panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.card,
.price-card,
.instructor-card,
.feature-card,
.stat-card,
.service-card,
.contact-card,
.hours-card,
.review-panel,
.lesson-note,
.lesson-panel {
  padding: 1.5rem;
}

.card {
  border-top: 4px solid var(--primary-light);
  text-align: center;
}

.feature-card,
.stat-card,
.service-card,
.contact-card,
.hours-card,
.review-panel,
.lesson-note {
  text-align: center;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: rgba(31, 95, 135, 0.12);
  color: var(--primary);
  font-size: 1.4rem;
}

.feature-card h3,
.service-card h3,
.contact-card h3,
.hours-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.stat-card strong {
  display: block;
  color: var(--accent);
  line-height: 1;
}

.stat-card strong {
  font-size: 2rem;
  margin-bottom: 0.45rem;
}

.home-section-alt {
  background: linear-gradient(180deg, rgba(31, 95, 135, 0.06), rgba(31, 95, 135, 0));
}

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-caption {
  padding: 1rem;
}

.lesson-layout {
  display: grid;
  gap: 2rem;
}

.pricing-table-wrap {
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(18, 52, 77, 0.1);
}

.pricing-table th {
  color: var(--accent);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-table td:first-child,
.pricing-table th:first-child {
  text-align: left;
}

.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.lesson-type {
  font-weight: 700;
  color: var(--accent);
}

.lesson-highlight {
  color: var(--primary-light);
  font-weight: 700;
}

.lesson-cta {
  text-align: center;
}

.review-panel {
  text-align: left;
  border-top: 4px solid rgba(31, 95, 135, 0.18);
}

.review-rating {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.review-panel h3 {
  color: var(--primary);
  margin-bottom: 0.65rem;
}

.review-label {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-light);
  font-weight: 700;
}

.reviews-cta {
  text-align: center;
  background: linear-gradient(135deg, #102c41, #1f5f87);
  color: var(--white);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
}

.reviews-cta p {
  max-width: 36rem;
  margin: 0.75rem auto 1.25rem;
}

.reviews-page-safe {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.reviews-page-safe .container,
.reviews-page-safe section,
.reviews-page-safe .reviews-hero-inner,
.reviews-page-safe .reviews-grid,
.reviews-page-safe .service-grid,
.reviews-page-safe .reviews-score-card,
.reviews-page-safe .review-panel,
.reviews-page-safe .reviews-cta {
  min-width: 0;
  max-width: 100%;
}

.reviews-page-safe .reviews-hero-inner {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.reviews-page-safe .hero-actions {
  justify-content: center;
}

.reviews-page-safe .reviews-grid,
.reviews-page-safe .service-grid {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}

.reviews-page-safe .review-panel,
.reviews-page-safe .service-card,
.reviews-page-safe .reviews-score-card {
  width: 100%;
}

.map-card {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-card iframe {
  display: block;
  border: 0;
}

.service-card p,
.contact-card p,
.hours-card p,
.eyebrow {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.contact-card a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-card a:hover {
  text-decoration: underline;
}

.hours-list,
.coverage-postcodes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours-list li,
.coverage-postcodes li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(18, 52, 77, 0.08);
}

.hours-list li:last-child,
.coverage-postcodes li:last-child {
  border-bottom: 0;
}

.areas-list {
  width: min(100%, 32rem);
  padding: 1.5rem;
  list-style: none;
}

.areas-list li + li {
  margin-top: 0.75rem;
}

.footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 1rem;
}

@media (max-width: 900px) {
  .nav-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }

  .logo {
    width: 190px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(20rem, 90vw);
    padding: 1rem;
    background: var(--primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .nav-links.show {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .reviews-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    margin: 0 auto;
  }

  .reviews-copy {
    margin: 0 auto;
  }

  .hero-badges,
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .top-bar {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .btn,
  .btn-nav {
    width: 100%;
    max-width: 18rem;
    margin: 0.35rem auto;
  }

  .nav-links .btn-nav {
    display: none;
  }

  .price-grid,
  .instructor-grid,
  .gallery-grid,
  .feature-grid,
  .stat-grid,
  .service-grid,
  .contact-grid,
  .hours-grid,
  .lesson-notes,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .pricing-table {
    min-width: 0;
  }

  .pricing-table thead {
    display: none;
  }

  .pricing-table,
  .pricing-table tbody,
  .pricing-table tr,
  .pricing-table td {
    display: block;
    width: 100%;
  }

  .pricing-table tr {
    padding: 1rem;
    border-radius: var(--radius);
    background: rgba(31, 95, 135, 0.04);
    margin-bottom: 1rem;
  }

  .pricing-table td {
    text-align: right;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(18, 52, 77, 0.08);
  }

  .pricing-table td:last-child {
    border-bottom: 0;
  }

  .pricing-table td::before {
    content: attr(data-label);
    float: left;
    font-weight: 700;
    color: var(--primary);
    padding-right: 1rem;
  }

  .pricing-table td:first-child {
    text-align: left;
    font-size: 1.05rem;
  }

  .pricing-table td:first-child::before {
    display: none;
  }

  iframe {
    height: 320px;
  }

  .reviews-cta {
    padding: 1.5rem;
  }

}
