/* ==========================================================================
   Every Boro Ambulette — stylesheet
   Palette sampled from the company logo.
   ========================================================================== */

:root {
  /* Brand */
  --teal:        #1E93A6;
  --teal-bright: #37B7C6;
  --teal-light:  #9DDBE4;
  --teal-wash:   #E8F6F8;
  --ink:         #0B3B44;
  --ink-soft:    #3D6068;
  --orange:      #F2941F;
  --orange-dark: #D97C0A;
  --coral:       #E8503A;

  /* Neutrals */
  --paper:  #FFFFFF;
  --cream:  #FBF9F5;
  --line:   #DCE7E9;
  --muted:  #5C7379;

  /* Type */
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --wrap: 1120px;
  --gap: 24px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(11, 59, 68, .07), 0 4px 12px rgba(11, 59, 68, .05);
  --shadow-md: 0 4px 10px rgba(11, 59, 68, .08), 0 18px 40px rgba(11, 59, 68, .09);
}

/* --- Reset ---------------------------------------------------------------- */

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

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 750; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); }

/* --- Utilities ------------------------------------------------------------ */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tint { background: var(--cream); }
.section--wash { background: var(--teal-wash); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .7em;
}

.lede { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--ink-soft); }

.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  font: inherit; font-weight: 750; font-size: 1.02rem;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--call {
  background: var(--orange); color: #fff;
  box-shadow: 0 4px 0 var(--orange-dark), 0 12px 24px rgba(217, 124, 10, .28);
}
.btn--call:hover { background: #FFA332; box-shadow: 0 6px 0 var(--orange-dark), 0 16px 30px rgba(217, 124, 10, .32); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); background: #fff; }

.btn--ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost-light:hover { background: #fff; color: var(--teal); border-color: #fff; }

.btn--sm { padding: 11px 20px; font-size: .94rem; }

.btn .ico { width: 19px; height: 19px; flex: none; }

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 52px; height: 52px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 850; color: var(--ink); font-size: 1.04rem; letter-spacing: -.02em; }
.brand-tag { font-size: .74rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 650; font-size: .96rem;
  padding: 9px 13px; border-radius: 8px;
}
.nav a:hover { background: var(--teal-wash); color: var(--teal); }
.nav a { white-space: nowrap; }
.nav > .btn { display: none; }   /* desktop uses .header-cta instead */

.header-cta { flex: none; margin-left: 8px; }

.nav-toggle {
  display: none; margin-left: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  width: 46px; height: 46px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(55,183,198,.22), transparent 62%),
    radial-gradient(700px 420px at 4% 108%, rgba(242,148,31,.13), transparent 60%),
    var(--cream);
  padding: clamp(52px, 8vw, 92px) 0 clamp(56px, 8vw, 88px);
}

.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}

.badge-years {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--teal-light);
  color: var(--teal); font-weight: 800; font-size: .84rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.badge-years .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none;
}

.hero h1 { margin-bottom: .45em; }
.hero h1 .accent { color: var(--teal); }

.hero-lede { font-size: clamp(1.08rem, 1.9vw, 1.28rem); max-width: 34em; margin-bottom: 30px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-hours {
  margin-top: 26px; display: flex; align-items: center; gap: 10px;
  font-size: .95rem; color: var(--muted); font-weight: 600;
}
.hero-hours .pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--teal-bright); flex: none;
  box-shadow: 0 0 0 4px rgba(55,183,198,.22);
}

/* Hero card */
.hero-card {
  background: #fff; border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.hero-card h2 { font-size: 1.22rem; margin-bottom: 18px; }
.hero-card ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 13px; }
.hero-card li { display: flex; gap: 12px; align-items: flex-start; font-size: .99rem; color: var(--ink-soft); }
.hero-card li svg { width: 21px; height: 21px; flex: none; margin-top: 2px; color: var(--teal); }
.hero-card .card-phone {
  display: block; text-align: center; text-decoration: none;
  background: var(--teal-wash); border-radius: var(--radius); padding: 16px;
  border: 1px dashed var(--teal-light);
}
.hero-card .card-phone .label {
  display: block; font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--teal); font-weight: 800; margin-bottom: 3px;
}
.hero-card .card-phone .number {
  display: block; font-size: 1.5rem; font-weight: 850; color: var(--ink); letter-spacing: -.02em;
}

/* --- Trust strip ---------------------------------------------------------- */

.trust {
  background: var(--ink); color: rgba(255,255,255,.9);
  padding: 22px 0;
}
.trust-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px;
}
.trust-list li {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .96rem; letter-spacing: -.01em;
}
.trust-list svg { width: 20px; height: 20px; color: var(--teal-bright); flex: none; }

/* --- About ---------------------------------------------------------------- */

.about-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 66px); align-items: center;
}

.stat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
}
.stat .num {
  display: block; font-size: 2.4rem; font-weight: 850; color: var(--teal);
  line-height: 1; letter-spacing: -.03em; margin-bottom: 8px;
}
.stat .lbl { font-size: .92rem; color: var(--muted); font-weight: 650; line-height: 1.4; }

.quote {
  margin: 30px 0 0; padding: 22px 26px;
  border-left: 4px solid var(--orange); background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.06rem; color: var(--ink); font-weight: 600; font-style: italic;
}

/* --- Cards / services ----------------------------------------------------- */

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 20px;
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal-light); }
.card h3 { margin-bottom: .45em; }
.card p { font-size: .97rem; margin: 0; }

.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--teal-wash); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card-icon svg { width: 25px; height: 25px; }
.card-icon--orange { background: #FEF1DF; color: var(--orange-dark); }

/* --- Boroughs ------------------------------------------------------------- */

.boro-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px;
}
.boro {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease;
}
.boro:hover { transform: translateY(-3px); border-color: var(--teal-bright); }
.boro .pin { width: 34px; height: 34px; margin: 0 auto 12px; color: var(--teal); }
.boro h3 { font-size: 1.08rem; margin-bottom: .25em; }
.boro p { font-size: .88rem; color: var(--muted); margin: 0; }

/* --- Steps ---------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .n {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 850; font-size: 1.15rem;
  display: grid; place-items: center; margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(30,147,166,.3);
}
.step h3 { margin-bottom: .4em; }
.step p { font-size: .97rem; margin: 0; }

/* --- FAQ ------------------------------------------------------------------ */

.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.faq details[open] { border-color: var(--teal-light); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 750; color: var(--ink); font-size: 1.04rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 11px; height: 11px; margin-top: -6px;
  border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--teal); }
.faq .answer { padding: 0 24px 22px; font-size: .99rem; }

/* --- CTA band ------------------------------------------------------------- */

.cta-band {
  background:
    radial-gradient(700px 380px at 12% 0%, rgba(255,255,255,.16), transparent 60%),
    linear-gradient(135deg, var(--teal) 0%, #17798A 100%);
  color: #fff; text-align: center;
  padding: clamp(52px, 7vw, 84px) 0;
}
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 46em; margin-inline: auto; margin-bottom: 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --- Contact -------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
}
.contact-card .card-icon { margin-bottom: 16px; }
.contact-card h3 { margin-bottom: .3em; }
.contact-card a { font-size: 1.16rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.02em; word-break: break-word; }
.contact-card a:hover { color: var(--teal); }
.contact-card .note { font-size: .9rem; color: var(--muted); margin: 6px 0 0; }
.contact-card .plain { font-size: 1.16rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin: 0; }

/* --- Careers page --------------------------------------------------------- */

.page-hero {
  background:
    radial-gradient(760px 420px at 82% -20%, rgba(55,183,198,.2), transparent 62%),
    var(--cream);
  padding: clamp(48px, 7vw, 78px) 0;
  border-bottom: 1px solid var(--line);
}
.page-hero .lede { max-width: 46em; }

.crumb { font-size: .9rem; color: var(--muted); margin-bottom: 18px; font-weight: 600; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--teal); text-decoration: underline; }

.job {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.job-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.job h2 { font-size: 1.6rem; margin: 0; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.tag {
  background: var(--teal-wash); color: var(--teal); border-radius: 999px;
  padding: 6px 14px; font-size: .84rem; font-weight: 750; letter-spacing: .01em;
}
.tag--orange { background: #FEF1DF; color: var(--orange-dark); }

.job h3 { margin-top: 28px; font-size: 1.05rem; }
.job h3:first-of-type { margin-top: 0; }
.job ul { margin: 0 0 4px; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.job ul li { display: flex; gap: 12px; align-items: flex-start; font-size: .99rem; }
.job ul li::before {
  content: ""; flex: none; width: 7px; height: 7px; margin-top: 10px;
  border-radius: 50%; background: var(--teal-bright);
}

.apply-box {
  background: var(--teal-wash); border: 1px solid var(--teal-light);
  border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); text-align: center;
}
.apply-box h2 { margin-bottom: .35em; }
.apply-box p { max-width: 40em; margin-inline: auto; }
.apply-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }

/* --- Legal page ----------------------------------------------------------- */

.prose { max-width: 720px; }
.prose h2 { font-size: 1.35rem; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose .updated { font-size: .92rem; color: var(--muted); font-weight: 600; }

/* --- Footer --------------------------------------------------------------- */

.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 56px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 9px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: rgba(255,255,255,.6); }
.site-footer p { font-size: .95rem; line-height: 1.7; }
.site-footer h4 {
  color: #fff; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase;
  margin: 0 0 16px; font-weight: 800;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-links a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .96rem; }
.footer-links a:hover { color: var(--teal-bright); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 22px 0 28px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: .88rem; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--teal-bright); }

/* --- Mobile call bar ------------------------------------------------------ */

.call-bar { display: none; }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 940px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 76px; }

  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 18px; margin: 0;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 13px 12px; font-size: 1.02rem; }
  .nav > .btn { display: inline-flex; margin-top: 8px; }

  .trust-list { gap: 12px 26px; }
  .trust-list li { font-size: .88rem; }

  .stat-grid { grid-template-columns: 1fr 1fr; }

  /* Sticky tap-to-call */
  .call-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--line);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }
  .call-bar .btn { width: 100%; }
  body { padding-bottom: 82px; }
}

@media (max-width: 460px) {
  .brand-tag { display: none; }
  .brand img { width: 46px; height: 46px; }
  .hero-actions .btn, .cta-actions .btn, .apply-actions .btn { width: 100%; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media print {
  .site-header, .call-bar, .cta-band, .nav-toggle { display: none !important; }
  body { padding-bottom: 0; }
}
