/* ==========================================================================
   Carlinda Driving School — Stylesheet
   Design tokens + shared components + page styles
   ========================================================================== */

:root {
  /* Color system */
  --blue-900: #0f2557;
  --blue-800: #16327a;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-100: #dbe6ff;
  --blue-50:  #eef4ff;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --ink:      #0f172a;
  --slate-700:#334155;
  --slate-500:#64748b;
  --slate-300:#cbd5e1;
  --slate-200:#e2e8f0;
  --slate-100:#f1f5f9;
  --white:    #ffffff;
  --green-600:#16a34a;

  --primary: var(--blue-700);
  --primary-dark: var(--blue-900);
  --accent: var(--amber-500);

  /* Spacing / radius / shadow */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(15, 37, 87, .08);
  --shadow:    0 10px 30px rgba(15, 37, 87, .10);
  --shadow-lg: 0 24px 60px rgba(15, 37, 87, .16);
  --maxw: 1140px;

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset / base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tint { background: var(--blue-50); }
.section--dark { background: var(--primary-dark); color: #dbe6ff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--slate-500); max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  color: var(--primary); background: var(--blue-100); padding: .35em .8em;
  border-radius: 999px; margin-bottom: 1rem;
}
.section--dark .eyebrow { color: #fff; background: rgba(255,255,255,.14); }

/* Skip link --------------------------------------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--accent); color: #3a2500; box-shadow: 0 8px 20px rgba(245,158,11,.35); }
.btn-primary:hover { background: var(--amber-600); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--slate-200); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--primary); }
.btn-lg { font-size: 1.1rem; padding: 1em 1.8em; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--slate-200);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; color: var(--primary-dark); font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand .brand-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand small { display: block; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.main-nav { margin-left: auto; display: flex; align-items: center; }
.nav-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: .55em .9em; border-radius: 8px; font-family: var(--font-head);
  font-weight: 500; color: var(--slate-700);
}
.nav-menu a:hover { background: var(--slate-100); text-decoration: none; color: var(--primary); }
.nav-menu a[aria-current="page"] { color: var(--primary); background: var(--blue-50); }
.header-call { margin-left: 8px; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 40px; background: var(--slate-100); border: 1px solid var(--slate-200);
  border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 22px; margin: 0 auto; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; color: #eaf1ff;
  background: radial-gradient(1200px 500px at 80% -10%, #2b57c9 0%, transparent 60%),
              linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 55%, #1c3f9e 100%); }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 84px 0; }
.hero h1 { color: #fff; }
.hero p { color: #c9d8ff; font-size: 1.2rem; max-width: 48ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; font-family: var(--font-head); }
.hero-badge { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; font-size: .95rem; }
.hero-badge svg { width: 26px; height: 26px; color: var(--accent); flex: 0 0 auto; }
.hero-art { display: grid; place-items: center; }
.hero-art svg { width: 100%; max-width: 420px; filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); }

/* Rating pill */
.rating-pill { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2); padding: 8px 16px; border-radius: 999px; margin-bottom: 22px; }
.rating-pill .stars { color: var(--accent); letter-spacing: 2px; }
.rating-pill strong { color: #fff; font-family: var(--font-head); }
.rating-pill span { color: #c9d8ff; font-size: .92rem; }

/* Cards / grids ----------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-top: .2em; }
.card p:last-child { margin-bottom: 0; }
.icon-badge {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(140deg, var(--blue-600), var(--blue-800)); color: #fff; margin-bottom: 16px;
}
.icon-badge svg { width: 30px; height: 30px; }
.icon-badge.amber { background: linear-gradient(140deg, var(--amber-500), var(--amber-600)); }

.service-card .price-note { display: inline-block; margin: 4px 0 16px; font-family: var(--font-head); font-weight: 600; color: var(--green-600); }
.service-card ul { color: var(--slate-500); font-size: .96rem; }

/* Feature list with checks */
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* Steps */
.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(3,1fr); }
.step { position: relative; padding-top: 8px; }
.step .num { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #3a2500;
  font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; font-size: 1.2rem; }

/* Testimonials ------------------------------------------------------------ */
.quote-card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.quote-card .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; }
.quote-card blockquote { margin: 0 0 18px; font-size: 1.02rem; color: var(--slate-700); }
.quote-card .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(140deg,var(--blue-600),var(--blue-900)); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; flex: 0 0 auto; }
.who .name { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.who .role { font-size: .85rem; color: var(--slate-500); }

/* CTA band ---------------------------------------------------------------- */
.cta-band { background: linear-gradient(135deg, var(--blue-800), var(--blue-600)); color: #fff; border-radius: var(--radius-lg); padding: 48px; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e2ff; max-width: 54ch; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* Split (image/text) ------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(160deg,var(--blue-50),var(--blue-100)); display: grid; place-items: center; padding: 30px; min-height: 320px; }
.split .media svg { width: 100%; max-width: 360px; }

/* Instructors */
.person { text-align: center; }
.person .headshot { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; background: linear-gradient(140deg,var(--blue-600),var(--blue-900)); color:#fff; display:grid; place-items:center; font-family:var(--font-head); font-weight:700; font-size:2rem; box-shadow: var(--shadow-sm); }

/* Contact ----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--slate-200); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--primary); display: grid; place-items: center; flex: 0 0 auto; }
.info-row .ic svg { width: 22px; height: 22px; }
.info-row h3 { margin: 0 0 2px; font-size: 1.05rem; }
.info-row p { margin: 0; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--slate-200); font-size: .98rem; }
.hours-table td { text-align: right; color: var(--slate-500); font-variant-numeric: tabular-nums; }
.hours-table .closed { color: #b91c1c; }
.hours-table tr.today th, .hours-table tr.today td { font-weight: 700; color: var(--ink); }
.map-embed { border: 0; width: 100%; height: 100%; min-height: 340px; border-radius: var(--radius); display: block; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--slate-200); height: 100%; }

/* Chips / tags ------------------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.chips li { background: #fff; border: 1px solid var(--slate-200); border-radius: 999px; padding: .45em 1em; font-size: .92rem; font-family: var(--font-head); color: var(--slate-700); }
.section--dark .chips li { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #eaf1ff; }

/* Page header (interior) -------------------------------------------------- */
.page-hero { background: linear-gradient(160deg,var(--blue-900),var(--blue-800)); color: #fff; padding: 64px 0; text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c9d8ff; max-width: 60ch; margin: 0 auto; }
.breadcrumb { font-size: .85rem; color: #9db4ec; margin-bottom: 10px; }
.breadcrumb a { color: #c9d8ff; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: #0b1c44; color: #b7c6ec; padding-top: 56px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #c9d6f5; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand small { color: var(--accent); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #8ea3d4; }
.footer-bottom a { color: #fff; font-weight: 600; }

/* Utilities --------------------------------------------------------------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 2px; border-radius: 4px; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding: 60px 0; }
  .hero-art { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; margin-left: auto; }
  .header-call { display: none; }
  .main-nav { margin-left: 0; }
  .nav-menu {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--slate-200); box-shadow: var(--shadow);
    padding: 10px 16px 18px; display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: .8em .6em; border-radius: 8px; }
  .nav-menu li:last-child { margin-top: 8px; }
  .nav-menu .btn { justify-content: center; }
}
@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
