/* ==========================================================================
   JMitchell Transportation, mobile-first styles
   ========================================================================== */

:root {
  /* Brand: royal purple sampled from the logo (#412383), white, gold accent */
  --purple: #412383;
  --purple-700: #331A6C;
  --purple-900: #1F1147;
  --violet: #6A4BC4;
  --lavender: #EFEAF8;
  --gold: #E4A93C;
  --gold-600: #CF922A;
  --gold-50: #FBF1DE;
  --gold-text: #8A5D0B;
  --bg: #FFFFFF;
  --tint: #F7F4FC;
  --ink: #1E1A2E;
  --muted: #5D5872;
  --line: #E6E0F0;
  --white: #FFFFFF;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(46, 24, 102, .06), 0 2px 8px rgba(46, 24, 102, .05);
  --shadow: 0 2px 4px rgba(46, 24, 102, .05), 0 12px 32px rgba(46, 24, 102, .09);
  --shadow-lg: 0 24px 60px rgba(31, 17, 71, .18);

  --header-h: 68px;
  --bar-h: 72px;
  --container: 1140px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--purple-900); /* overscroll past the footer stays purple */ scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--purple); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
h2 { font-size: clamp(1.85rem, 6vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--purple); color: var(--white); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .75em 1.4em;
  font: 600 1rem/1.2 var(--font-body);
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--purple-900); box-shadow: 0 6px 18px rgba(227, 166, 59, .35); }
.btn--gold:hover { background: var(--gold-600); }
.btn--outline { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn--outline:hover { background: var(--purple); color: var(--white); }
.btn--sm { min-height: 44px; padding: .5em 1em; font-size: .95rem; box-shadow: none; }
.btn--lg { min-height: 56px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__logo { width: 50px; height: 50px; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font: 700 1.2rem/1.05 var(--font-head); color: var(--purple); }
.brand__tag { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); }

.header__actions { display: flex; align-items: center; gap: 8px; }
.header__call-number { display: none; }

.nav-toggle {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); color: var(--purple); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon--close { display: none; }
.nav-open .nav-toggle .icon--open { display: none; }
.nav-open .nav-toggle .icon--close { display: block; }

.nav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 8px 20px 20px;
  display: none;
}
.nav-open .nav { display: block; }
.nav__list a {
  display: block; padding: 14px 4px;
  font-weight: 600; font-size: 1.1rem; color: var(--purple); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav__list li:last-child a { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 36px 0 56px;
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(227, 166, 59, .18), transparent 70%),
    radial-gradient(500px 400px at 0% 100%, rgba(106, 75, 196, .12), transparent 70%),
    var(--bg);
}
.hero__inner { display: grid; gap: 40px; }

.pill {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .45em 1em; margin-bottom: 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: var(--violet);
  box-shadow: var(--shadow-sm);
}
.pill .icon { color: var(--gold-600); fill: var(--gold); stroke: var(--gold-600); width: 1em; height: 1em; }

.hero__title { text-wrap: wrap; font-size: clamp(2.5rem, 10.5vw, 4.4rem); line-height: 1.04; letter-spacing: -.025em; margin-bottom: .4em; }
.hero__title em { font-style: italic; color: var(--violet); }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; margin-bottom: 28px; }
.hero__actions { display: grid; gap: 12px; }
.hero__note { margin: 18px 0 0; font-size: .9rem; color: var(--muted); }

.hero__media { position: relative; }

/* Photo frames */
.photo {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--lavender);
  box-shadow: var(--shadow-lg);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--portrait img { object-position: 50% 30%; }

/* Founders as taped snapshot prints in the hero */
.snapshots {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  max-width: 520px; width: 100%; margin-inline: auto; padding: 18px 6px 10px;
}
.snapshots::before { /* soft lavender blob behind the prints */
  content: ""; position: absolute; inset: 8% -6% -4% -6%; z-index: 0;
  border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%;
  background: var(--lavender);
}
.snapshot {
  position: relative; z-index: 1; margin: 0;
  padding: 10px 10px 0; border-radius: 6px; background: var(--white);
  box-shadow: 0 2px 4px rgba(31, 17, 71, .06), 0 18px 40px rgba(31, 17, 71, .16);
  transform: rotate(-3deg);
}
.snapshot:last-child { transform: rotate(3deg); }
.snapshot::before { /* tape */
  content: ""; position: absolute; top: -12px; left: 50%;
  width: 74px; height: 24px; border-radius: 2px;
  background: rgba(228, 169, 60, .55);
  transform: translateX(-50%) rotate(-4deg);
}
.snapshot img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 2px; background: var(--lavender); }
.snapshot figcaption {
  padding: 12px 4px 16px; text-align: center;
  font: italic 600 clamp(.92rem, 3.6vw, 1.2rem)/1.2 var(--font-head); color: var(--purple);
}


/* ---------- Trust strip ---------- */
.trust { background: var(--purple); color: rgba(255,255,255,.88); }
.trust__list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; padding-block: 26px; }
.trust__list li { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; line-height: 1.35; }
.trust__list .icon { color: var(--gold); width: 24px; height: 24px; margin-top: 1px; }
.trust__list strong { display: block; color: var(--white); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--tint { background: var(--tint); }
.section--purple {
  background:
    radial-gradient(700px 500px at 100% 100%, rgba(228, 169, 60, .16), transparent 70%),
    radial-gradient(600px 500px at 0% 0%, rgba(106, 75, 196, .45), transparent 70%),
    var(--purple-900);
  color: rgba(255,255,255,.85);
}
.section--purple h2 { color: var(--white); }
.section--purple strong { color: var(--white); }

.section__head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section__head--left { text-align: left; margin-left: 0; }
.section__lead { color: var(--muted); font-size: 1.1rem; margin: 0; }

.eyebrow {
  margin: 0 0 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow--light { color: var(--gold); }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.card__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px;
  border-radius: 16px; background: var(--gold-50); color: var(--gold-text);
}
.card__icon .icon { width: 28px; height: 28px; }
.checklist { display: grid; gap: 8px; padding-top: 16px; border-top: 1px dashed var(--line); }
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .95rem; }
.checklist .icon { color: var(--violet); width: 18px; height: 18px; stroke-width: 2.5; }

/* ---------- Destination tiles ---------- */
.tiles { display: grid; gap: 14px; }
.tile {
  background: var(--white); border-radius: var(--radius); padding: 22px;
  border: 1px solid var(--line);
}
.tile__icon { width: 30px; height: 30px; color: var(--violet); margin-bottom: 12px; }
.tile h3 { font-size: 1.15rem; margin-bottom: .3em; }
.tile p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px 24px;
}
.step__num {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px;
  border-radius: 50%; background: var(--purple); color: var(--gold);
  font: 700 1.3rem/1 var(--font-head);
}
.step h3 { font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); }
.step a { font-weight: 600; white-space: nowrap; }

/* ---------- Story ---------- */
.story { display: grid; gap: 36px; align-items: center; }
.story__media { max-width: 460px; width: 100%; margin-inline: auto; }
.story__media .photo { box-shadow: 0 24px 60px rgba(0, 0, 0, .3); border: 6px solid rgba(255,255,255,.08); }
.story__caption { margin: 14px 0 0; text-align: center; font-size: .92rem; color: rgba(255,255,255,.75); }
.story__caption strong { display: block; font: italic 600 1.1rem/1.3 var(--font-head); color: var(--gold); }
.quote {
  margin: 28px 0 0; padding: 22px 24px;
  border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255,255,255,.06);
}
.quote p { margin: 0; font: italic 500 1.2rem/1.5 var(--font-head); color: var(--white); }

/* ---------- Features ---------- */
.features { display: grid; gap: 14px; }
.feature {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.feature__icon {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px;
  border-radius: 14px; background: var(--lavender); color: var(--violet);
}
.feature h3 { font-size: 1.15rem; margin-bottom: .25em; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Hours ---------- */
.hours { display: grid; gap: 8px; }
.hours .section__head { margin-bottom: 24px; }
.hours__card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 8px 22px 22px;
}
.hours__list li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.hours__list .icon { grid-row: span 2; width: 26px; height: 26px; color: var(--gold-text); }
.hours__day { font-weight: 600; color: var(--purple); }
.hours__time { color: var(--muted); }
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 20px 0 0; padding: 14px 16px;
  background: #FDF1EF; border-radius: var(--radius-sm);
  font-size: .95rem; color: #6B2A1F;
}
.notice .icon { color: #B5432F; margin-top: 2px; }
.notice strong { color: #6B2A1F; }

/* ---------- Contact ---------- */
.contacts { display: grid; gap: 18px; max-width: 820px; margin-inline: auto; }
.contact-card {
  text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 24px 26px; box-shadow: var(--shadow-sm);
}
.contact-card__avatar {
  width: 112px; height: 112px; margin: 0 auto 18px;
  border-radius: 50%; object-fit: cover; object-position: 50% 18%;
  background: var(--lavender);
  box-shadow: 0 0 0 5px var(--white), 0 0 0 7px var(--lavender), var(--shadow);
}
.contact-card h3 { margin-bottom: .2em; }
.contact-card__role { color: var(--muted); margin-bottom: 12px; }
.contact-card__number {
  display: inline-block; margin-bottom: 20px;
  font: 600 1.6rem/1.2 var(--font-head); color: var(--purple); text-decoration: none;
}
.contact-card__number:hover { color: var(--violet); }
.contact-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contacts__area {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 32px 0 0; color: var(--muted); font-weight: 500; text-align: center;
}
.contacts__area .icon { color: var(--violet); }

/* ---------- Footer ---------- */
.site-footer { background: var(--tint); color: var(--muted); font-size: .95rem; border-top: 4px solid var(--gold); }
.footer__main { display: grid; justify-items: center; gap: 20px; padding-block: 32px 28px; text-align: center; }
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; }
.footer__logo { width: 60px; height: 60px; border-radius: 50%; box-shadow: var(--shadow); }
.footer__name { display: block; font: 600 1.3rem/1.2 var(--font-head); color: var(--purple); }
.footer__tag { display: block; margin-top: 2px; font: italic 600 .98rem/1.3 var(--font-head); color: var(--gold-text); }

.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.footer__nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  color: var(--purple); font-weight: 600; font-size: .88rem; text-decoration: none;
  transition: border-color .2s, background-color .2s, color .2s;
}
.footer__nav a:hover { border-color: var(--purple); background: var(--purple); color: var(--white); }

.footer__bottom {
  background: var(--purple-900); color: rgba(255,255,255,.72); font-size: .82rem;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); /* room for the mobile action bar, kept purple */
}
.footer__bottom-inner { display: grid; justify-items: center; gap: 18px; padding-block: 20px 24px; text-align: center; }
.footer__legal p { margin: 0; line-height: 1.55; }
.footer__legal strong { color: var(--gold); }

/* CDP maker mark, tuned for the purple bar (base styles: css/cdp-agency-credit.css) */
.site-footer .cdp-credit { --cdp-static-color: rgba(255,255,255,.6); --cdp-hover-color: var(--white); }
.site-footer .cdp-credit__logo {
  -webkit-mask-image: url("../images/cdp-logo.png"); mask-image: url("../images/cdp-logo.png");
  flex-basis: 40px; width: 40px; height: 40px;
}
.site-footer .cdp-credit__divider { height: 36px; }
.site-footer .cdp-credit__services { letter-spacing: .08em; }
.site-footer .cdp-credit:focus-visible { outline-color: var(--gold); }

@media (min-width: 720px) {
  .footer__bottom-inner { grid-template-columns: 1fr auto; justify-items: stretch; align-items: center; text-align: left; padding-block: 16px; }
  .site-footer .cdp-credit__logo { flex-basis: 48px; width: 48px; height: 48px; }
  .site-footer .cdp-credit__divider { height: 42px; }
  .site-footer .cdp-credit__services { letter-spacing: .12em; }
}

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(46, 24, 102, .1);
}
.action-bar__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; border-radius: 14px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
}
.action-bar__btn--call { background: var(--gold); color: var(--purple-900); }
.action-bar__btn--text { background: var(--purple); color: var(--white); }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   ≥ 640px
   ========================================================================== */
@media (min-width: 640px) {
  .container { padding-inline: 28px; }
  .hero__actions { display: flex; flex-wrap: wrap; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .contacts { grid-template-columns: 1fr 1fr; }
  .trust__list { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   ≥ 900px (desktop nav, no action bar)
   ========================================================================== */
@media (min-width: 900px) {
  :root { --header-h: 80px; }
  body { font-size: 1.0625rem; }
  .action-bar { display: none; }
  .footer__bottom { padding-bottom: 0; }

  .nav-toggle { display: none; }
  .nav {
    position: static; display: block;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav__list { display: flex; gap: 4px; }
  .nav__list a {
    padding: 8px 14px; border: 0; border-radius: 999px;
    font-size: .98rem; font-weight: 500;
  }
  .nav__list a:hover { background: var(--white); color: var(--violet); }
  .header__call-label { display: none; }
  .header__call-number { display: inline; }
  .header__actions { margin-left: 12px; }

  .hero { padding: 72px 0 96px; }
  .hero__inner { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }

  .section { padding: 104px 0; }
  .section__head { margin-bottom: 56px; }

  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(4, 1fr); }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
  .steps::before { /* connector line */
    content: ""; position: absolute; top: 50px; left: 12%; right: 12%;
    border-top: 2px dashed var(--line); z-index: 0;
  }
  .step { z-index: 1; }

  .story { grid-template-columns: 1fr 1.15fr; gap: 72px; }
  .story__media { margin: 0; }

  .hours { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
  .hours .section__head { margin-bottom: 0; }
  .hours__card { padding: 12px 32px 32px; }

  .footer__main { grid-template-columns: auto 1fr; justify-items: stretch; align-items: center; text-align: left; padding-block: 28px; }
  .footer__brand { flex-direction: row; gap: 14px; }
  .footer__nav { justify-content: flex-end; }
}

/* ==========================================================================
   ≥ 1200px
   ========================================================================== */
@media (min-width: 1200px) {
  .container { padding-inline: 32px; }
  .hero__title { font-size: 4.6rem; }
}
