/* ==========================================================
   Learn Right Driving School – styles
   Brand colours taken from the logo: navy + amber.
   ========================================================== */

:root {
  --navy: #0f2340;
  --navy-2: #1a3358;
  --amber: #f5a524;
  --amber-dark: #d98c0b;
  --ink: #1c2533;
  --muted: #5b6676;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --line: #e2e7ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 35, 64, .08);
  --container: 1140px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: .6em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .55em 1.1em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--amber); color: var(--navy); }
.btn-accent:hover { background: var(--amber-dark); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--navy); text-transform: uppercase; letter-spacing: .02em; }
.brand-text small { font-family: var(--font-head); font-weight: 600; font-size: .72rem; color: var(--amber-dark); text-transform: uppercase; letter-spacing: .14em; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy);
  text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--amber-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(245, 165, 36, .18), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 80px 0 90px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero-inner > *, .about > *, .contact > * { min-width: 0; }
.hero h1 { color: #fff; }
.hero .hl { color: var(--amber); }
.hero .eyebrow { color: var(--amber); }
.hero .lead { font-size: 1.12rem; color: #d5deea; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.rating-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: #d5deea; font-size: .9rem; text-decoration: none;
  transition: background .2s;
}
.rating-pill:hover { background: rgba(255, 255, 255, .14); }
.rating-pill strong { color: #fff; }
.g-icon { width: 30px; height: 30px; padding: 5px; background: #fff; border-radius: 50%; flex: none; }

.hero-visual { position: relative; padding: 30px 10px; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: 0 25px 60px rgba(0, 0, 0, .35); }
.plan-card {
  background: #fff; color: var(--ink);
  border-radius: 22px; padding: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
  max-width: 420px; margin-left: auto;
}
.plan-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.plan-head img { width: 40px; }
.plan-head strong { display: block; font-family: var(--font-head); color: var(--navy); }
.plan-head small { color: var(--muted); font-size: .85rem; }
.plan-list { list-style: none; padding: 0; margin: 0 0 18px; }
.plan-list li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px solid var(--line); font-size: .93rem; color: var(--muted); }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line);
  box-sizing: border-box;
}
.plan-list li.done { color: var(--ink); }
.plan-list li.done::before { content: "\2713"; background: var(--amber); border-color: var(--amber); color: var(--navy); font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.plan-progress { height: 8px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; }
.plan-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--amber-dark)); border-radius: inherit; }
.plan-foot { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.float-chip {
  position: absolute;
  background: #fff; color: var(--navy);
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .25);
  animation: bob 5s ease-in-out infinite;
}
.chip-a { top: 4px; left: 0; }
.chip-b { bottom: 0; left: 30px; animation-delay: -2.5s; }
@keyframes bob { 50% { translate: 0 -8px; } }

/* ---------- Strip ---------- */
.strip { background: var(--amber); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-top: 22px; padding-bottom: 22px; text-align: center; }
.strip strong { display: block; font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.1rem; }
.strip span { font-size: .88rem; color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head p:last-child { font-size: 1.08rem; }
.section-head p:last-child { color: var(--muted); }

/* Services - bento grid */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.b-hero { grid-column: span 2; grid-row: span 2; }
.b-wide { grid-column: span 2; }
.b-sm { grid-column: span 1; }
.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 26px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #fff;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card.b-hero { background: var(--navy); border-color: var(--navy); padding: 40px 36px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; transition: transform .6s ease; }
.b-hero:hover .card-photo { transform: scale(1.04); }
.b-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 35, 64, .1) 0%, rgba(15, 35, 64, .25) 40%, rgba(15, 35, 64, .92) 78%, var(--navy) 100%); }
.b-hero > :not(.card-photo) { position: relative; z-index: 1; }
.card.b-hero { min-height: 440px; }
.b-hero h3 { color: #fff; font-size: 1.7rem; }
.card.b-hero p { color: #d5deea; font-size: 1.05rem; max-width: 420px; }
.b-hero .card-icon { background: var(--amber); width: 64px; height: 64px; margin-bottom: auto; }
.b-hero .card-icon svg { width: 34px; height: 34px; }
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Reviews */
.reviews-section { padding: 0 0 110px; }
.reviews-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center;
  padding: 64px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(245, 165, 36, .28), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(66, 133, 244, .18), transparent 40%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}
.reviews-panel::before {
  content: "\201C"; position: absolute; left: 30px; top: -70px;
  font-family: Georgia, serif; font-size: 22rem; line-height: 1;
  color: rgba(255, 255, 255, .04); pointer-events: none;
}
.reviews-copy { position: relative; }
.reviews-copy h2 { color: #fff; }
.reviews-copy .hl { color: var(--amber); }
.reviews-copy .eyebrow { color: var(--amber); }
.reviews-copy > p:not(.eyebrow) { color: #d5deea; font-size: 1.08rem; max-width: 520px; }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-fb svg { width: 20px; height: 20px; }

.rating-card {
  position: relative;
  display: block; text-align: center; text-decoration: none;
  background: #fff; color: var(--ink);
  border-radius: 24px; padding: 30px 28px 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
  rotate: 2deg;
  transition: rotate .3s, transform .3s;
}
.rating-card:hover { rotate: 0deg; transform: translateY(-4px); }
.rating-card-head { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.rating-card-head .g-icon { width: 28px; height: 28px; padding: 0; }
.rating-score {
  margin: 10px 0 0;
  font-family: var(--font-head); font-weight: 800;
  font-size: 5.5rem; line-height: 1; letter-spacing: -.04em;
  color: var(--navy);
}
.rating-stars { font-size: 1.9rem; margin: 6px 0 10px; }
.rating-name { font-family: var(--font-head); font-weight: 700; color: var(--navy); margin: 0 0 14px; }
.rating-link { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--amber-dark); padding-top: 14px; border-top: 1px solid var(--line); width: 100%; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.quote { margin: 0; background: var(--bg-alt); border-radius: 20px; padding: 28px; }
.quote blockquote { margin: 0 0 14px; font-size: 1.02rem; }
.quote figcaption { color: var(--muted); font-size: .88rem; }

/* Packages */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.package {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
}
.package .price { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--navy); margin-bottom: .8em; }
.package ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.package li { padding: 8px 0 8px 26px; border-bottom: 1px dashed var(--line); position: relative; font-size: .95rem; }
.package li::before { content: "✓"; position: absolute; left: 0; color: var(--amber-dark); font-weight: 700; }
.package.featured { background: var(--navy); border-color: var(--navy); box-shadow: var(--shadow); transform: scale(1.03); }
.package.featured h3, .package.featured .price { color: #fff; }
.package.featured li { color: #d5deea; border-bottom-color: rgba(255, 255, 255, .15); }
.package.featured li::before { color: var(--amber); }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: var(--navy);
  font-family: var(--font-head); font-weight: 700; font-size: .75rem;
  padding: 4px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em;
}

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; }
.about-copy > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { padding: 7px 0 7px 32px; position: relative; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--amber); color: var(--navy);
  font-size: .75rem; font-weight: 800; display: grid; place-items: center;
}
.steps { background: var(--bg-alt); border-radius: var(--radius); padding: 34px; border-left: 5px solid var(--amber); }
.steps ol { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 52px; color: var(--muted); }
.steps li:last-child { padding-bottom: 0; }
.steps li strong { color: var(--navy); display: block; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: var(--font-head); font-weight: 700;
  display: grid; place-items: center;
}

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  padding: 18px 30px 18px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--amber-dark); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Contact */
.contact-section { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h2 { color: #fff; }
.contact-info .eyebrow { color: var(--amber); }
.contact-info > p { color: #d5deea; }
.people { display: grid; gap: 12px; margin: 26px 0 28px; max-width: 460px; }
.person {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 14px 14px 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
}
.avatar {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--amber); color: var(--navy);
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
}
.person-info { flex: 1; min-width: 0; line-height: 1.3; }
.person-info strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.person-info a { color: var(--amber); font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; text-decoration: none; white-space: nowrap; }
.person-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .35);
  transition: background .2s, transform .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .12); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; fill: #fff; }
.icon-btn-accent { background: var(--amber); border-color: var(--amber); }
.icon-btn-accent:hover { background: var(--amber-dark); }
.icon-btn-accent svg { fill: var(--navy); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.social-links a { color: #fff; font-size: .88rem; font-weight: 600; text-decoration: none; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; }
.social-links a:hover { background: rgba(255, 255, 255, .1); }
.hours { margin: 0; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 20px; }
.hours div { display: flex; justify-content: space-between; max-width: 340px; padding: 4px 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: #d5deea; }

.enquiry {
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
}
.enquiry label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 16px; color: var(--navy); }
.enquiry input, .enquiry select, .enquiry textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 165, 36, .25);
}
.enquiry .invalid { border-color: #d64545; }
.form-note { margin: 12px 0 0; font-size: .9rem; color: var(--muted); min-height: 1.4em; }

/* Footer */
.site-footer { background: #0a1a30; color: #9fb0c6; padding: 34px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--amber); text-decoration: none; }
.brand-footer img { background: #fff; border-radius: 8px; padding: 3px; width: 44px; }
.brand-footer .brand-text strong { color: #fff; }

/* Sticky booking bar - mobile only */
.mobile-bar {
  display: none;
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  grid-template-columns: 1.4fr 1fr 1fr; gap: 6px;
  padding: 6px;
  background: rgba(15, 35, 64, .92);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}
.mobile-bar a {
  display: grid; place-items: center;
  padding: 12px 6px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  color: #fff; text-decoration: none;
}
.mobile-bar .mb-call { background: var(--amber); color: var(--navy); }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s ease; }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .float-chip { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .plan-card { margin: 0 auto; }
  .packages { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-hero { grid-row: auto; min-height: 320px; }
  .package.featured { transform: none; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 20px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; }
  .mobile-bar { display: grid; }
  body { padding-bottom: 84px; }
  .reviews-panel { grid-template-columns: 1fr; padding: 48px 32px; gap: 40px; }
  .rating-card { max-width: 360px; width: 100%; margin: 0 auto; }
  .quotes { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .reviews-section { padding: 10px 0 72px; }
  .reviews-panel { padding: 40px 22px; border-radius: 24px; }
  .rating-score { font-size: 4.5rem; }
  .hero { padding: 54px 0 64px; }
  .packages, .bento { grid-template-columns: 1fr; }
  .b-hero, .b-wide, .b-sm { grid-column: auto; }
  .float-chip { font-size: .78rem; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .enquiry, .steps { padding: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Star rating */
.stars { color: #fbbc05; letter-spacing: .05em; }
.stars-lg { font-size: 1.5rem; line-height: 1; margin: 0 0 10px; }
