/* Desktop/Base styles extracted from styless.css (max-width blocks removed) */

:root {
  --red: #b62626;
  --red-dark: #921f1f;
  --accent: #f97316;
  --bg-page: #f3f4f6;
  --bg-card: #ffffff;
  --bg-soft: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
  --border-soft: #e5e7eb;
  --max-width: 1100px;
  --nav-h:72px;
  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.16);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Base */

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

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

body {
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
   margin: 0;
  padding: 0;
  background-color: #ffffff; /* optional but tidy */
}

h1, h2, h3, .heading, .section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.15;
}


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

a {
  color: inherit;
  text-decoration: none;
}

/* Utilities */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.site-header {
   position: sticky;
   top: 0;
   z-index: 20;
   background:transparent;
   border-bottom: none;
    backdrop-filter: blur(6px);
 }


.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  display: block;
  height: 50px;   /* adjust here if needed */
  width: auto;
  margin-top: 2px;
}
/* Medium screens (tablets / small laptops) */
@media (min-width: 768px) {
  .logo-img {
    height: 82px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .logo-img {
    height: 100px;
  }
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 700;
  font-size: 0.98rem;
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--border-soft);
}

.nav-link-primary {
  background: var(--red);
  color: #ffffff;
}

.nav-link-primary:hover {
  background: var(--red-dark);
}
/* Navbar call swap (mobile) */
.nav-call-mobile{ display:inline-flex; }
.nav-call-desktop{ display:none; }


/* Hero */

.hero {
  background: radial-gradient(
    circle at top center,
    #fef9f5 0%,
    #fdf7f3 40%,
    #ffffff 100%
  );
  box-shadow:none;
  border-radius: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  padding: 32px 16px 28px;
  align-items: center;
}

.hero-eyebrow {
  margin: 16px 0 16px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-dark);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.25;
}

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

.hero-sub {
  margin: 0 0 16px;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.7;

}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.hero h1,
.hero-sub,
.hero-actions,
.hero-brand,
.hero-eyebrow {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 1s ease-out forwards;
}

.hero-sub {
  animation-delay: .08s;
}

.hero-actions {
  animation-delay: .15s;
}
.hero-top{
  width:90px;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-phone {
  font-size: 0.9rem;
  color: var(--muted);
}
/* Burger button base */

.menu-toggle {
  display: none;              /* hidden on desktop by default */
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 999px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
}

.menu-toggle span + span {
  margin-top: 4px;
}

/* Mobile-specific tweaks */



/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.12s ease,
    color 0.12s ease,
    border-color 0.12s ease,
    transform 0.12s ease,
    box-shadow 0.12s ease;
}



.btn-primary{ 
  font-weight: 600;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
  transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
}
.btn-outline {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.12);
  color: #111827;
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.18);
}

.btn-secondary {
  background: #111827;
  color: #ffffff;
}
.btn-secondary:hover {
  background: #020617;
}

/* Hero media */

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illustration {
  width: 100%;
  max-width: none;
  border-radius:0;
  display: block;
  object-fit: contain;
  box-shadow: none;
  border: none;
  background:transparent;
}
/* New CTA container under hero text */
.hero-ctas {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding: 0 16px;
}

/* Default spacing (desktop/tablet) */
.hero-ctas {
  margin-top: 12px;
}


/* Offer banner */

.offer-banner {
  margin-top: 24px;
  margin-bottom: 28px;
}

.offer-inner {
  background: #111827;
  border-radius: var(--radius-card);
  color: #ffffff;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.offer-label {
  background: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.offer-text {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.offer-highlight {
  font-weight: 700;
  margin-right: 8px;
}

.offer-note {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Services */

.section-title {
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.services {
  margin-bottom: 32px;
}

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

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}

.service-media {
  height: 160px;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}

.service-media-alt {
  background: linear-gradient(135deg, #e5e7eb, #f97316);
}

.service-body {
  padding: 14px 14px 12px;
}

.service-body h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.service-body p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.service-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--red-dark);
}

/* Testimonial */

.testimonial-inner {
  position: relative;
  padding: 30px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.quote{
  font-weight: 700;
}


.testimonial-content {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-text {
  margin: 6px 0 8px;
  font-size: 0.98rem;
  color: var(--muted);
}

.testimonial-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Theory */

.theory-inner {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 20px 16px 22px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.theory-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.theory-heading h2 {
  margin: 4px 0 4px;
  font-size: 1.2rem;
}

.theory-heading p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.theory-badge {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #111827;
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 999px;
}

.theory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: center;
}

.theory-media {
  height: 190px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}

.theory-text h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.steps-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.steps-list li + li {
  margin-top: 4px;
}

/* Footer */

.site-footer {
  background: #111827;
  color: #e5e7eb;
  padding: 22px 0 20px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.footer-contact h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.footer-contact p {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.footer-phone a,
.footer-email a {
  color: #f97316;
}

.footer-meta {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #9ca3af;
}
/* =========================================================
   MOBILE LAYOUT
   Everything below applies to screens <= 768px wide
   ========================================================= */


  .hero-media {
    display: none;
  }
  .hero-illustration {
    max-width: 100%;
    border-radius: 0;
  }

  .hero h1 {
     font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  }
  .hero h1 span {
  color: #b91c1c;         /* matches your theme red */
  font-weight: 700;
}


  .hero-sub {
    font-size: 1.05rem;
  line-height: 1.6;
  max-width: 48ch;
  color: #4b5563; /* softer than black */
  }
  .hero-text {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 768px) {
  .hero-text {
    gap: 1.1rem;
  }
}


  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  /* Hero CTAs – match navbar icon style */
.hero-actions .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hero-actions .btn-cta .btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12); /* same feel as .nav-cta */
  flex-shrink: 0;
}

/* Ensure desktop-only CTA stays hidden on mobile (overrides .hero-actions .btn-cta) */
.hero-actions .btn-cta.cta-desktop { display: none; }
.hero-actions .btn-cta.cta-mobile  { display: inline-flex; }


/* Icon sizes inside hero buttons */
.hero-actions .btn-cta svg {
  display: block;
}
.hero-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* Slightly bigger taps on mobile */

/* Base arrow style */
.scroll-down {
   position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;

  display: flex;
  justify-content: center;
  align-items: center;

  width: 48px;
  height: 48px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  
}
.scroll-down {
  transition:
    transform 0.12s cubic-bezier(.2,1.5,.4,1),
   
    opacity 0.3s ease;
}
.scroll-down span {
  position: relative;
  width: 22px;
  height: 22px;
  border-bottom: 2px solid #b91c1c;
  border-right: 2px solid #b91c1c;
  transform: rotate(45deg);
  animation: bounce 1.6s infinite;
  opacity: 0.9;
}
/* Hide when JS adds is-hidden */
.scroll-down.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
}

@keyframes bounce {
  0%, 100% {
    transform: rotate(45deg) translate(0, 0);
  }
  50% {
    transform: rotate(45deg) translate(0, 6px);
  }
}

/* Hidden state (used when you scroll past hero) */
.scroll-down.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
}

/* Only show arrow on mobile */
@media (min-width: 768px) {
  .scroll-down {
    display: none;
  }
}

/* Make sure hero is positioned so the arrow can be absolute inside it */
.hero {
  position: relative;
}

/* Optional: global smooth scroll for all in-page links */
html {
  scroll-behavior: smooth;
}
#lessons {
  scroll-margin-top: 80px; /* adjust to your header height */ 
}
/* MOBILE: stack CTAs vertically */


  /* OFFER BANNER */

  .offer-banner {
    margin-top: 8px;
    margin-bottom: 20px;
  }

  .offer-inner {
    grid-template-columns: 1fr;
    border-radius: 0;
    padding: 12px 14px;
    row-gap: 6px;
  }

  .offer-text {
    font-size: 0.9rem;
  }

  .offer-note {
    font-size: 0.78rem;
  }

  /* SERVICES */

  .services {
    margin-bottom: 24px;
  }

  .section-title {
    font-size: 1.05rem;
  }

  .service-grid {
    gap: 14px;
  }

  .service-card {
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  }

  .service-media {
    height: 130px;
  }

  .service-body {
    padding: 12px 12px 10px;
  }

  /* TESTIMONIAL */


  .testimonial-inner {
    border-radius: 14px;
    padding: 20px 14px;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }

  .quote-mark {
    font-size: 3rem;
  }

  .quote-mark-right {
    bottom: -18px;
  }

  /* THEORY */

  .theory-inner {
    border-radius: 14px;
    padding: 16px 14px 18px;
  }

  .theory-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .theory-layout {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .theory-media {
    height: 150px;
  }

  .steps-list {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  /* FIND US */

  .find-us {
    margin-bottom: 28px;
  }

  .findus-inner {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .findus-map {
    height: 130px;
    border-radius: 14px;
  }

  /* FOOTER */

  .site-footer {
    padding: 18px 0 16px;
  }

  .footer-contact p {
    font-size: 0.86rem;
  }

  .footer-meta {
    font-size: 0.78rem;
  }






/* Mobile/Tablet overrides extracted from styless.css */


@media (max-width: 380px) {
  .nowrap {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 10px 16px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Nav: hidden by default on mobile */
  .nav {
    display: none;
    width: 100%;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 8px;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 8px 10px;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .nav-link-primary {
    background: transparent;
    color: var(--red);
    border-color: transparent;
  }

  /* When nav is open */
  .site-header.nav-open .nav {
    display: block;
  }

  /* Animate burger into X */
  .site-header.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .site-header.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .site-header.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
 
 html, body {
    width:100%;
    background: #f9fafb;
    overflow-x:clip;
  }
  a, button, .scroll-down {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}


  /* HEADER + BURGER */

  .header-inner {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap:wrap;
  }

  .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* burger is visible on mobile */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 999px;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
    transition:
    transform 0.3s ease-in-out,
    opacity 0.25s ease-in-out 0.05s;
  }

  .menu-toggle span + span {
    margin-top: 4px;
  }

  /* nav becomes dropdown under header */
  /* Nav: icon tray that sits next to the burger on mobile */
  /* Nav: icon tray that sits next to the burger on mobile */
.nav {
  position: absolute;                 /* <— key change */
  top: 16px;                       /* distance from top of screen */
  right: 56px;                     /* space to the left of the burger/X */
  transform: translateY(0) translateX(40px);;     /* start slightly off-screen */
  opacity: 0;
  pointer-events: none;
  display: block;
  z-index: 40;                     /* sit above content */
  transition:
    transform 0.35s cubic-bezier(0.25, 1.4, 0.35, 1),
    opacity 0.2s ease-out;
}


  /* when menu is open, roll the icons in */
  .site-header.nav-open .nav {
    opacity: 1;
    transform:translateX(0);
    pointer-events: auto;
    display:flex;
    align-items: center;     /* vertically centers everything */
    justify-content: flex-end;

  }

  .nav-list {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: flex-end;
    list-style: none;
  }

  .cta-row.icons-only {
    display: flex;
    gap: 10px;
  }

.cta-row.icons-only .nav-cta {
  width: 42px;
  height: 42px;

  border-radius: 50%;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 18px rgba(0,0,0,.12);
}
.call-btn {
  background: linear-gradient(180deg, #cf3a3a, #b62626);
}

.whatsapp-btn {
  background: linear-gradient(180deg, #25d366, #1ebe5a);
}

.facebook-btn {
  background: linear-gradient(180deg, #1877f2, #0f5fd4);
}

.nav-cta:hover {
  background: linear-gradient(180deg, #d64545, #b62626);
}
.cta-row.icons-only .nav-cta:active {
  transform: scale(0.95);
}




  /* burger turns into an X when open */

  .site-header.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .site-header.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .site-header.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* HERO */

  #hero-title { 
    margin: 0.35rem 0 0.9rem; 
  }
  .hero-text h2, .hero-text .brand-line { 
     max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    margin: 0;
  }

  .hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height:100svh;
    margin-top: calc(-1 * var(--nav-h));
    padding-top:var(--nav-h);

    background:
      /* TOP CURVED WHITE */
      radial-gradient(
        circle at 10% 0%,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.9) 25%,
        rgba(255, 255, 255, 0.65) 45%,
        rgba(255, 255, 255, 0.15) 70%,
        rgba(255, 255, 255, 0) 85%
      ),

      /* BOTTOM FADE */
     

      /* LEFT PANEL */
     
      url("../images/hero-driving.jpeg") center / cover no-repeat;

    border-radius: 0;
    box-shadow: none;
  }
  .hero-eyebrow {
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  opacity: 0.75;
  }
  .hero h1{
     font-size: 2.3rem;
  line-height: 1.15;
  font-weight: 700;

  }
  .hero-text {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: 16px;
   border: 1px solid rgba(255,255,255,0.045);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}
.hero-brand{
  white-space: nowrap;
  color:#921f1f;
  font-weight: ;
}
  .hero-inner {
    flex:1;
    width:100%;
    max-width: 580px;
    padding-left: clamp(16px, 5vw, 32px);
  padding-right: clamp(16px, 5vw, 32px);
    display: block;
  }
  .hero-ctas {
    margin-top: 40px;
    justify-content: center;
    padding-bottom: 38px;   /* adjust until it feels perfect */
  }
  .hero-cta {
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid rgba(255,255,255,0.4);
  }
  .hero-cta:active {
  transform: scale(0.97);
  box-shadow: 0 5px 15px rgba(0,0,0,0.12);
  }
}



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

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;   /* force column on small screens */
    align-items: stretch;
  }

  .hero-actions a {
    width: 100%;              /* full-width buttons */
    justify-content: center;
  }
}

/* Section 2 background */
#lessons{
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 40px 0 60px;

  /* Clean hero-matching blue air */
  background: linear-gradient(
    180deg,
    #d9e7f5 0%,
    #eef4fa 45%,
    #ffffff 100%
  );
}

/* Your card */
#lessons .glass-card{
  background: rgba(255, 255, 255, 0.6);
  border-radius: 22px;
  padding: 28px 22px;
  box-shadow:
    0 30px 70px rgba(0,0,0,0.15),
    0 1px 0 rgba(255,255,255,0.6) inset;
}
#lessons {
  scroll-margin-top: -0.05vh;
}
.reassure-image{
  height: clamp(90px, 18vh, 140px);
   filter: brightness(1.05) saturate(0.9);
  margin: 12px 0 14px;
  border-radius: 12px;
  overflow: hidden;     /* this is the important part */

}
.reassure-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Reviews section = calm chapter */
.testimonial{
   position: relative;
  overflow: hidden;
  display: flex;
 align-items: center;
  min-height: 100svh;
  

}
/* Put the quote on a glass card */
.testimonial-inner{
  position: relative;
  display: flex;
   background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: 16px;
   border: 1px solid rgba(255,255,255,0.045);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);

  margin:20px;
}
/* the moving image layer */
.testimonial-parallax{
  position: absolute;
  inset: -12% 0;              /* taller so we can move it */
  
  background: linear-gradient(
    180deg,
    rgba(238,242,255,1) 0%,
    rgba(238,244,250,0.7) 55%,
    rgba(255,255,255,1) 100%
  ),
  url("../images/tonbridge-castle.jpg") center / cover no-repeat;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  z-index: 0;
}
.testimonial::after{
  content:"";
  position:absolute;
  inset:0;
 
  z-index: 0;
  pointer-events:none;
}
.testimonial-content{
  
  border-radius: 22px;
  padding: 26px 20px;

}

/* Title */
.testimonial .section-title{
  margin: 0 0 16px;
  font-size: 1.4rem;
}
.section-title{
  color:#921f1f;
}
/* Quote text */
.testimonial-text{
  position: relative;
  z-index: 1;
  margin: 0;
   font-size: 1.05rem;
  line-height: 1.7;
  color: #5a6474;
}

/* Name */
.testimonial-name-one{
  margin: 14px 0 0;
  font-weight: 600;

}

.quote-mark-left{
  top: 65px;
  left: 60px;
}

.quote-mark-right{
  bottom: 45px;
  right: 70px;
}
.quote-mark{
  font-size: 4rem;

}
.quote{
  font-weight: 700;
  font-size: 1.5rem;
  opacity: 0.65;
  line-height: 1;
  vertical-align: middle;
}
/* Quotes: present but subtle */
.testimonial-inner .quote{
  font-weight: 700;
  opacity: 0.7;
  margin: 0 2px;
}
/* Quote marks decorative */
#reviews .quote{
  color: #9aa6b2;
}

/* THEORY = calm chapter like Lessons/Reviews */
@media (max-width: 768px) {
  .theory {
  background:
    linear-gradient(
      180deg,
      rgba(238,244,250,0.50) 0%,
      rgba(255,255,255,0.60) 100%
    ),
    url("../images/road-bg.png") center / cover no-repeat;

  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 50px 0 60px;
}


  /* Make the whole block GLASS */
  .theory-inner {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.045);
    box-shadow: 0 18px 40px rgba(0,0,0,0.10);

    margin: 20px;
    padding: 1.5rem;
  }

  /* Remove the “card” divider look so it feels like one glass panel */
  .theory-banner {
    border-bottom: 1px solid rgba(255,255,255,0.35);
  }
}
/* Road CTA */
.road-cta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.35);
}

.road-cta-text {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #5a6474;
}

/* Footer "Back to top" button */
.footer-top {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #e5e7eb;
}
.footer-top:active {
  transform: scale(0.98);
}
.steps-list li {
  color: #6b7280;
}
.steps-list li strong {
  color: #111827;
}

.steps-list li::marker {
  color: #9ca3af;
  font-weight: 500;
}


@media (max-width: 768px){
  .testimonial-card,
  .testimonial{
    width: 100%;
    max-width: 520px;      /* stops the ultra-wide look */
    margin-inline: auto;
  }

  .testimonial p,
  .testimonial blockquote{
    max-width: 42ch;       /* ideal line length */
    margin-inline: auto;
    text-align: left;      /* makes it read like a review */
  }
  .num-two{
    display: none;
  }
  
}
