/* =========================
   DESKTOP BASELINE (clean)
   Loads only on desktop
========================= */

/* ---------- Variables ---------- */
:root{
  --bg: #f9fafb;
  --text: #111827;
  --muted: #5a6474;

  --accent: #b91c1c;
  --accent-2: #921f1f;

  --card: rgba(255,255,255,0.65);
  --card-border: rgba(255,255,255,0.18);

  --shadow: 0 18px 40px rgba(0,0,0,0.10);
  --radius: 16px;

  --container: 1200px;
  --hero-cap: 1800px;
  --nav-h: 74px;
  --red-dark: #921f1f;
}

/* ---------- Reset ---------- */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:auto;
  max-width:1600px;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
p{ margin:0 0 12px; }
h1,h2,h3{ margin:0 0 10px; line-height:1.15; }

/* ---------- Layout helpers ---------- */
.container{
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.section-title{
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.muted{ color: var(--muted); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;

  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
}

.btn-primary{
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(185, 28, 28, 0.24);
}
.btn-primary:hover{ filter: brightness(1.05); }

.btn-secondary{
  background: rgba(17,24,39,0.92);
  color:#fff;
  border-color: rgba(255,255,255,0.10);
}
.btn-secondary:hover{ filter: brightness(1.05); }

/* HERO CTA device swap */
.cta-mobile{ display:none; }
.cta-desktop{ display:inline-flex; }

/* Copy toast */
.copy-toast{
  margin-left: 10px;
  font-weight: 600;
  color: rgba(17,24,39,0.75);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}
.copy-toast.show{
  opacity: 1;
  transform: translateY(0);
}

/* (Optional) remove the default blue focus ring without killing accessibility completely */
.btn:focus { outline: none; }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(185,28,28,0.25); }


/* ---------- Header / Nav (desktop) ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
  width: min(1800px, 100%);
  margin: 0 auto;
  padding: 14px 32px; 
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17,24,39,0.06);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
}


.logo-img{ height: 80px; width:auto; }

.menu-toggle{ display:none; } /* desktop */

.nav{ display:block; }
.nav-list{
  display:flex;
  align-items:center;
  gap: 12px;
}
.nav-cta{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(17,24,39,0.9);
  border: 1px solid rgba(255,255,255,0.10);
}
.nav-cta:hover{ filter: brightness(1.08); }

/* ---------- Glass card utility ---------- */
.glass-card,
.testimonial-inner,
.theory-inner{
  border: 1px solid var(--card-border);
  border-radius:16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

/* ---------- HERO (desktop) ---------- */
.hero{
  position: relative;
    display: flex;
    overflow:hidden;
    align-items: center;
    min-height:100svh;
    margin-top: -100px;
    padding-top:var(--nav-h);
  /* keep your calm hero vibe (adjust if you already have a hero bg image) */
  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%
      ),     
      url("../images/hero-driving.jpeg") center / cover no-repeat;

    border-radius: 0;
    box-shadow: none;
}

.hero-inner{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items:center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero-text{
  max-width: 560px;
}

.hero-eyebrow{
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-text h1{
  font-size: clamp(2.6rem, 3.8vw, 3.4rem);
  letter-spacing: -0.03em;
}

.hero-brand{
  margin-top: 6px;
  font-size: 1.2rem;
  color: rgba(17,24,39,0.75);
  font-weight: 600;
}

.hero-actions{
  display:flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* ---------- Reassure panel (desktop) ---------- */
.panel{
  padding: 70px 0;
  background: #ffffff;
}

.panel--reassure{
  padding-inline: clamp(1.5rem, 4vw, 4rem);
}

.panel-inner .glass-card{
  padding: 28px;
  display:grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  
}

.reassure-image img{
  width:95%;
  height:auto;
  border-radius: 12px;
  margin:auto;
}

/* ---------- Testimonials (desktop) ---------- */
.testimonial{
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  background: #f6f8fb;
  padding-inline: clamp(1.5rem, 4vw, 4rem);
}

.testimonial-parallax{
  position:absolute;
  inset: -12% 0;
  z-index:0;
  /* If you already set the bg image in CSS, keep it there.
     If not, it will just be a soft gradient. */
  background: linear-gradient(
    180deg,
    rgba(238,242,255,1) 0%,
    rgba(238,244,250,0.75) 55%,
    rgba(255,255,255,1) 100%
  );
  transform: translate3d(0,0,0);
}

.testimonial-inner{
  position: relative;
  z-index: 1;
  padding: 34px;
  max-width: 760px;
  margin: 0 auto;
  text-align:center;
}

.testimonial-text{
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--muted);
}

.testimonial-name{
  margin-top: 14px;
  font-weight: 700;
}

/* ---------- Road to success (desktop) ---------- */
.theory{
  padding: 90px 0;
  padding-inline: clamp(1.5rem, 4vw, 4rem);
}

.theory-inner{
  padding: 34px;
  max-width: 860px;
  margin: 0 auto;
}

.steps-list{
  margin: 18px 0 0;
  padding-left: 20px;
}

.steps-list li{
  margin: 0 0 10px;
  color: var(--muted);
}
.steps-list li strong{
  color: var(--text);
  font-weight: 700;
}

/* CTA under road section (if present) */
.road-cta{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(17,24,39,0.06);
}
.road-cta-text{
  color: var(--muted);
  margin-bottom: 10px;
}

/* ---------- Footer (desktop) ---------- */
.site-footer{
  background: #111827;
  color: #e5e7eb;
  padding: 70px 0;
}

.footer-inner{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items:start;
}

.site-footer a{
  color: #ffb4b4;
  font-weight: 700;
}

.footer-top{
  display:inline-flex;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #e5e7eb;
}

.footer-meta{
  opacity: 0.85;
  font-size: 0.95rem;
}

/* ---------- Safety: hide mobile-only scroll cue on desktop ---------- */
.scroll-down{ display:none; }


/* Navbar call swap (desktop) */
.nav-call-mobile{ display:none; }
.nav-call-desktop{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  height: 44px;              /* match icon buttons */
  padding: 0 16px;          /* horizontal only */
  border-radius: 999px;

  background: #111827;
  color: #ffffff;

  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;

  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.nav-call-desktop:hover{
  filter: brightness(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.nav-call-desktop:active{
  transform: scale(0.97);
}

/* Align the contents inside the <li> */
.cta-row.icons-only{
  display: flex;
  align-items: center;
  gap: 10px;
}


/* ================================
   DESKTOP: Inline 3-card layout
   (NO HTML changes, mobile unaffected)
================================ */


  /* Make the page a 3-column grid */
  main{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;

    /* soft rail behind cards */
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
      }

  /* Hero stays full width */
  .hero{
    grid-column: 1 / -1;
  }

  /* Footer stays full width */
  .site-footer{
    grid-column: 1 / -1;
    margin-top: 28px;
  }

  /* The 3 sections become the 3 cards */
  #lessons,
  #reviews,
  #road{
    grid-column: span 1;
    padding: 0;                 /* remove big section padding */
    background: transparent;     /* let the rail show through */
    min-height: auto;
    display: flex;
  }

  /* Make their containers not fight the grid */
  #lessons .container,
  #reviews .container,
  #road .container{
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* Make the existing "card" elements fill each grid column */
  #lessons .glass-card,
  #reviews .testimonial-inner,
  #road .theory-inner{
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 26px;
    height: 100%;
  }

  /* Reviews section: remove parallax layer + big quotes for card mode */
  #reviews .testimonial-parallax,
  #reviews .quote-mark{
    display: none;
  }

  /* Reviews inner alignment for card mode */
  #reviews .testimonial-content{
    text-align: left;
  }
  /* --- Fix #lessons card flow in 3-column layout --- */
#lessons .glass-card{
  display: flex;          /* stop the old 2-col grid */
  flex-direction: column; /* natural top-to-bottom flow */
  gap: 14px;
}

/* Make the image behave like a proper card header */
#lessons .reassure-image{
  margin: 0;
  margin-bottom: 8px;
  border-radius: 14px;
  overflow: hidden;
}

#lessons .reassure-image img{
  height: 200px;          /* try 200–220 */
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

/* Make the "Got questions" line feel like a footer note */
#lessons p:last-of-type{
  margin-top: 18px;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Divider between testimonials */
#reviews .testimonial-inner hr{
  border: none;
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 24px 0;
}

.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;
}

/* Attribution: caption style */
.testimonial-inner figcaption{
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 10px;
}

.testimonial-inner .testimonial-quote{
  margin-top: 80px;
}
.testimonial-quote{
  margin-bottom: 20px;
}
/* Match text width to left card */
#reviews .testimonial-quote{
  padding-left:20px;
  padding-right:20px;
}



/* Quote text softer than black */
#reviews blockquote{
  color: #2f3a45;
}

/* Quote marks decorative */
#reviews .quote{
  color: #9aa6b2;
}

/* Name as caption */
#reviews figcaption{
  color: #7a8590;
}
.section-title{
  font-size: 1.4rem;
}
#road,#lessons,#reviews{
  border:solid 1px rgba(0,0,0,0.02);
}
#road {
   background: linear-gradient(rgba(235,235,235,1),rgba(0,255,0,0.04));
  border-radius: 16px;
}
#road h2{
  color:green;
}
#reviews{
  background: linear-gradient(rgba(235,235,235,1),rgba(250,250,0,0.05));
  border-radius: 16px;
}
#reviews h2{
  color:rgba(119,119,0,1);
}
#lessons{
   background: linear-gradient(rgba(235,235,235,1),rgba(255,0,0,0.06));
  border-radius: 16px;
}
#lessons h2{
  color:var(--red-dark);
}
.testimonial-quote{
  background: white;
  padding:20px;
  border-radius: 16px;
  box-shadow: 13px 18px 16px rgba(0,0,0,0.08);

}
.road-cta-btn{
  background:rgba(19, 139, 9, 0.8);
}

@media (max-width: 1200px) {
  main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

