/* ============================================================
   New Beginnings Transportation — Design System
   Brief: modern, professional, trustworthy · safe school rides
   Palette: deep navy + white + silver/gray · gold CTA accents
   Fonts: Nunito (headings) / Nunito Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&family=Nunito+Sans:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --navy: #0E2A4E;
  --navy-dark: #0A1F3A;
  --navy-700: #163C6B;
  --gold: #F5A623;
  --gold-dark: #D98E12;
  --gold-soft: #FFF3DD;

  --color-on-primary: #FFFFFF;
  --color-background: #F4F7FB;
  --color-surface: #FFFFFF;
  --color-foreground: #14243D;
  --color-muted-fg: #4B5A72;
  --color-muted: #EEF3F9;
  --color-silver: #E6ECF4;
  --color-border: #D6DFEA;
  --color-ring: #0E2A4E;

  --font-head: 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;

  --space-1: 4px;  --space-2: 8px;  --space-3: 16px;
  --space-4: 24px; --space-5: 32px; --space-6: 48px;
  --space-7: 64px; --space-8: 96px;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(14, 42, 78, 0.08);
  --shadow-md: 0 10px 28px rgba(14, 42, 78, 0.12);
  --shadow-lg: 0 24px 56px rgba(14, 42, 78, 0.18);

  --maxw: 1160px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--navy); font-weight: 800; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--navy); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 3px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-4); }
section { padding: var(--space-8) 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto var(--space-6); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; font-size: .82rem;
  color: var(--gold-dark); margin-bottom: var(--space-2);
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { color: var(--color-muted-fg); font-size: 1.08rem; margin-top: var(--space-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--gold); color: var(--navy-dark); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--gold-dark); color: #fff; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: var(--shadow-md); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--color-surface); color: var(--navy); border-color: var(--color-border); }
.btn-secondary:hover { background: var(--color-muted); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn svg { width: 20px; height: 20px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 900; font-size: 1.22rem; color: var(--navy); }
.brand .logo {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-700));
  display: grid; place-items: center; box-shadow: var(--shadow-sm); position: relative;
}
.brand .logo svg { width: 25px; height: 25px; color: var(--gold); }
/* 3D badge logo */
.logo-img { width: 50px; height: 50px; flex-shrink: 0; display: block; object-fit: contain; }
@media (max-width: 680px) { .logo-img { width: 44px; height: 44px; } }
.brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .7rem; color: var(--color-muted-fg); letter-spacing: .04em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: var(--space-1); list-style: none; }
.nav-links a {
  display: inline-block; padding: 10px 15px; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .98rem;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--color-muted); }
.nav-links a.active { color: var(--navy); background: var(--color-silver); }
.nav-cta { margin-left: var(--space-2); }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; color: var(--gold-dark); padding: 10px 14px; }
.nav-phone svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--color-border);
  background: var(--color-surface); border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--navy); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: var(--space-8) 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1000px 520px at 88% -10%, rgba(22,60,107,.14), transparent 60%),
    radial-gradient(760px 460px at 0% 110%, rgba(245,166,35,.12), transparent 55%),
    var(--color-background);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: var(--space-7); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 900; letter-spacing: -.01em; }
.hero h1 .hl { color: var(--gold-dark); }
.hero p.lead { font-size: 1.2rem; color: var(--color-muted-fg); margin-top: var(--space-4); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.trust-row { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-5); }
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 700; font-family: var(--font-head); color: var(--navy); }
.trust-item svg { width: 22px; height: 22px; color: var(--gold-dark); flex-shrink: 0; }

.hero-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 28px; box-shadow: var(--shadow-lg); padding: var(--space-3);
  position: relative;
}
.hero-photo {
  border-radius: 20px; width: 100%; height: auto; aspect-ratio: 16/11; object-fit: cover;
  background: linear-gradient(160deg, var(--navy-700), var(--navy));
}
.hero-badge {
  position: absolute; left: -14px; bottom: 26px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.hero-badge .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); display: grid; place-items: center; }
.hero-badge .ic svg { width: 24px; height: 24px; color: var(--gold-dark); }
.hero-badge strong { font-family: var(--font-head); font-size: 1.35rem; display: block; line-height: 1; color: var(--navy); }
.hero-badge span { font-size: .82rem; color: var(--color-muted-fg); }

/* ---------- Stat bar ---------- */
.stats { background: var(--navy); color: #fff; padding: var(--space-6) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); text-align: center; }
.stat b { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.6rem); display: block; color: var(--gold); font-weight: 900; }
.stat span { color: #C7D6EA; font-size: .98rem; }

/* ---------- Feature / service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.cards.two { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: var(--space-5);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: var(--space-3);
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(14,42,78,.10), rgba(245,166,35,.16));
}
.card .icon svg { width: 30px; height: 30px; color: var(--navy); }
.card h3 { font-size: 1.28rem; margin-bottom: var(--space-2); }
.card p { color: var(--color-muted-fg); }
.card ul { list-style: none; margin-top: var(--space-3); display: grid; gap: 8px; }
.card ul li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.card ul li svg { width: 20px; height: 20px; color: var(--gold-dark); flex-shrink: 0; margin-top: 2px; }

/* ---------- About split ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }
.about-photo { border-radius: var(--radius); width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-md); background: linear-gradient(160deg, var(--navy-700), var(--navy)); }
.about-grid h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.about-grid p { color: var(--color-muted-fg); margin-top: var(--space-3); }
.value-list { list-style: none; display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.value-list li { display: flex; gap: 14px; align-items: flex-start; }
.value-list .vic { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.value-list .vic svg { width: 24px; height: 24px; color: var(--gold); }
.value-list b { font-family: var(--font-head); color: var(--navy); display: block; }
.value-list span { color: var(--color-muted-fg); font-size: .96rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.step { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-5); position: relative; }
.step .num {
  width: 46px; height: 46px; border-radius: var(--radius-pill);
  background: var(--gold); color: var(--navy-dark); font-family: var(--font-head);
  font-weight: 900; font-size: 1.2rem; display: grid; place-items: center; margin-bottom: var(--space-3);
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { color: var(--color-muted-fg); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.quote { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.quote .stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: var(--space-3); }
.quote .stars svg { width: 20px; height: 20px; }
.quote blockquote { font-size: 1.05rem; color: var(--color-foreground); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: var(--space-4); }
.quote .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; color: var(--gold); font-family: var(--font-head); font-weight: 800; }
.quote .who b { font-family: var(--font-head); display: block; color: var(--navy); }
.quote .who span { color: var(--color-muted-fg); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: #fff; border-radius: 28px; padding: var(--space-7); text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin: var(--space-3) auto var(--space-5); max-width: 50ch; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-6); align-items: start; }
.contact-grid > * { min-width: 0; }
.info-list { list-style: none; display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list li > div { min-width: 0; }
.info-list .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.info-list .ic svg { width: 26px; height: 26px; color: var(--gold); }
.info-list b { font-family: var(--font-head); display: block; font-size: 1.05rem; color: var(--navy); }
.info-list a, .info-list span { color: var(--color-muted-fg); overflow-wrap: anywhere; }
.info-list a:hover { color: var(--navy-700); text-decoration: underline; }

.form-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-6); box-shadow: var(--shadow-md); }
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-family: var(--font-head); font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.field .req { color: var(--gold-dark); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; font-family: var(--font-body); font-size: 1rem;
  color: var(--color-foreground); background: #FBFDFF;
  border: 2px solid var(--color-border); border-radius: var(--radius-sm); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(14,42,78,.16); }
.field .hint { font-size: .86rem; color: var(--color-muted-fg); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-3); }
.form-note { font-size: .9rem; color: var(--color-muted-fg); margin-top: var(--space-3); text-align: center; }
.fieldset { border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: var(--space-4); margin-bottom: var(--space-4); }
.fieldset legend { font-family: var(--font-head); font-weight: 800; color: var(--navy); padding: 0 8px; font-size: .95rem; }
.toggle-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.toggle-row .field { margin-bottom: 0; flex: 1; min-width: 150px; }
.form-success { background: var(--gold-soft); border: 1px solid var(--gold); color: #7A4E06; padding: var(--space-4); border-radius: var(--radius-sm); margin-bottom: var(--space-4); display: none; align-items: center; gap: 12px; font-weight: 700; }
.form-success.show { display: flex; }
.form-success svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--gold-dark); }
.form-error { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; padding: var(--space-4); border-radius: var(--radius-sm); margin-bottom: var(--space-4); display: none; align-items: center; gap: 12px; font-weight: 700; }
.form-error.show { display: flex; }
.form-error svg { width: 26px; height: 26px; flex-shrink: 0; }
.form-error a { color: #991B1B; text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: var(--space-3); }
.faq details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 4px var(--space-4); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: var(--space-3) 0; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 22px; height: 22px; color: var(--gold-dark); transition: transform .2s ease; flex-shrink: 0; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { color: var(--color-muted-fg); padding: 0 0 var(--space-3); }

/* ---------- Page hero (inner) ---------- */
.page-hero { text-align: center; padding: var(--space-8) 0 var(--space-6); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(720px 340px at 50% -10%, rgba(22,60,107,.14), transparent 62%), var(--color-background);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; }
.page-hero p { color: var(--color-muted-fg); font-size: 1.15rem; max-width: 640px; margin: var(--space-3) auto 0; }
.crumbs { font-size: .9rem; color: var(--color-muted-fg); margin-bottom: var(--space-3); }
.crumbs a { color: var(--navy-700); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #C9D6E8; padding: var(--space-7) 0 var(--space-4); margin-top: var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.3fr; gap: var(--space-5); }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #90A6C4; }
.site-footer p { color: #9FB3CD; margin-top: var(--space-3); font-size: .96rem; max-width: 36ch; }
.footer-col h4 { color: #fff; margin-bottom: var(--space-3); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #9FB3CD; }
.footer-col a:hover { color: var(--gold); text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; color: #9FB3CD; min-width: 0; }
.footer-contact a, .footer-contact span { overflow-wrap: anywhere; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--space-6); padding-top: var(--space-4); text-align: center; color: #7E93B2; font-size: .9rem; }

/* ---------- Notice ---------- */
.notice { background: var(--gold-soft); border: 1px solid var(--gold); color: #7A4E06; border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); display: flex; gap: 12px; align-items: center; font-size: .96rem; margin-top: var(--space-5); }
.notice svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--gold-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero p.lead { max-width: none; }
  .cards, .steps, .quotes { grid-template-columns: 1fr 1fr; }
  .cards.two { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  section { padding: var(--space-7) 0; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--color-surface); border-bottom: 1px solid var(--color-border);
    padding: var(--space-3); gap: 6px; box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .25s ease; z-index: 90;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-links .nav-cta, .nav-links .nav-phone { justify-content: center; }
  .nav-cta { margin-left: 0; margin-top: 6px; }
  .nav-toggle { display: flex; }
  .cards, .steps, .quotes, .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Mobile hero: trim the top gap and lift the photo above the copy */
  .hero { padding-top: var(--space-4); padding-bottom: var(--space-5); }
  .hero-grid { display: flex; flex-direction: column; gap: var(--space-4); }
  .hero-card { order: -1; }
  .hero-photo { aspect-ratio: 16/11; }
  .hero-badge { left: 10px; }
  /* Mobile stats: tighter column gap + smaller value text so nothing clips */
  .stats-grid { gap: var(--space-5) var(--space-3); }
  .stat b { font-size: 1.5rem; }
  .cta-band { padding: var(--space-6) var(--space-4); }
  .btn, .hero-actions .btn, .cta-band .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
