/* Babzi Driving School — Derby UK */
:root {
  --green: #00a651;
  --green-dark: #008542;
  --navy: #0f1f33;
  --navy-light: #1a3050;
  --gold: #f5a623;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #64748b;
  --gray-800: #1e293b;
  --shadow: 0 4px 24px rgba(15, 31, 51, 0.12);
  --radius: 12px;
  --max-width: 1200px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  line-height: 1.65;
  background: var(--white);
}

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

a {
  color: var(--green-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--green);
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  flex-shrink: 0;
}

.logo-mark {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}

.logo-text > span {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.925rem;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.header-cta {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-call {
  background: var(--green);
  color: var(--white);
}

.btn-call:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #1da851;
  color: var(--white);
}

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

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

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: #e09510;
  color: var(--navy);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 70vh, 620px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 31, 51, 0.88) 0%, rgba(15, 31, 51, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.95;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
}

.hero-stat span {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Sections */
section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.section-header p {
  color: var(--gray-600);
  font-size: 1.05rem;
}

.bg-light {
  background: var(--gray-50);
}

.bg-navy {
  background: var(--navy);
  color: var(--white);
}

.bg-navy .section-header h2,
.bg-navy h3 {
  color: var(--white);
}

.bg-navy .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

/* Cards grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.card-body p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Price cards */
.price-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s, transform 0.2s;
}

.price-card.featured {
  border-color: var(--green);
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.price-card h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin: 0.75rem 0;
}

.price-amount small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-600);
}

.price-card ul {
  text-align: left;
  margin: 1.25rem 0;
}

.price-card li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* Trust bar */
.trust-bar {
  background: var(--green);
  color: var(--white);
  padding: 1rem 0;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 3rem 0;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
  max-width: 560px;
  margin-inline: auto;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Content pages */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 640px;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.breadcrumb a {
  color: var(--gold);
}

.breadcrumb a:hover {
  color: var(--white);
}

.content-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.content-section h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

.content-section h2:first-child {
  margin-top: 0;
}

.content-section h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 1.5rem 0 0.5rem;
}

.content-section p,
.content-section li {
  color: var(--gray-600);
  margin-bottom: 0.85rem;
}

.content-section ul,
.content-section ol {
  margin: 0.75rem 0 1rem 1.25rem;
}

.content-section ul {
  list-style: disc;
}

.content-section ol {
  list-style: decimal;
}

.content-section li {
  margin-bottom: 0.4rem;
}

.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.content-split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Area links */
.area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.area-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.area-tag:hover {
  background: var(--green);
  color: var(--white);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 0;
}

.faq-item h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.3rem 0;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Mobile sticky CTA */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--navy);
  padding: 0.65rem;
  gap: 0.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.mobile-cta-bar .btn {
  flex: 1;
  padding: 0.7rem 0.5rem;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 1rem;
  }

  .content-split {
    grid-template-columns: 1fr;
  }

  .mobile-cta-bar {
    display: flex;
  }

  body {
    padding-bottom: 60px;
  }

  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero-cta .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 1rem;
  }
}
