/* ==========================================================================
   Arrowline Same-Day Courier — one shared stylesheet for all four pages.
   Fictional demo business. No frameworks, no webfonts, no JavaScript.

   Palette: deep slate navy (#1c2b3a) base, safety orange (#c2410c on light,
   #ff7a1a on dark), system font stack, monospaced numerals for phone
   numbers, times and prices. Mobile-first, large tap targets, WCAG AA.
   ========================================================================== */

/* ---------- 1. Tokens & reset ---------- */

:root {
  --navy: #1c2b3a;
  --navy-deep: #141f2b;
  --navy-line: #2e4053;
  --ink: #2e3946;
  --muted: #5b6774;
  --accent: #c2410c;        /* safety orange, AA on white */
  --accent-hover: #99330b;
  --accent-bright: #ff7a1a; /* orange for dark backgrounds */
  --cream: #ffeee2;
  --paper: #ffffff;
  --page: #f4f5f7;
  --line: #dbe1e8;
  --line-strong: #aeb9c4;
  --shadow: 0 1px 2px rgba(20, 31, 43, 0.05), 0 6px 18px rgba(20, 31, 43, 0.08);
  --radius: 12px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
}

[id] { scroll-margin-top: 5.5rem; } /* clear the sticky header on anchor jumps */

svg { display: inline-block; vertical-align: middle; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: #1b2733;
}
h1 { font-size: clamp(2rem, 5.5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 4vw, 2.05rem); }
h3 { font-size: 1.12rem; }

p { margin: 0 0 1em; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.mono { font-family: var(--mono); }

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

.skip {
  position: absolute;
  left: -100vw;
  top: 0;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--paper);
  color: var(--navy);
  border-radius: 0 0 10px 0;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { left: 0; color: var(--navy); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.dark :focus-visible,
.cta-band :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: #ffffff; }

/* ---------- 2. Layout helpers ---------- */

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 1.25rem; }

.section { padding-block: 2.75rem; }

.section-head { max-width: 62ch; margin-block-end: 1.9rem; }
.section-head h2 + p { margin: 0; color: var(--muted); }

.eyebrow {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- 3. Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.8rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn .mono { font-size: 0.98em; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { font-size: 1.12rem; padding: 0.95rem 1.6rem; }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }

.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.07); color: #fff; }

.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { background: var(--cream); color: var(--accent-hover); }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ---------- 4. Sticky header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 26, 36, 0.3);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
}
.brand:hover { color: #fff; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.brand-name small {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9fb0c0;
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  text-align: left;
}
.header-call:hover { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.header-call svg { width: 20px; height: 20px; color: var(--accent-bright); flex: none; }
.header-call strong { display: block; font-family: var(--mono); font-size: 0.98rem; line-height: 1.25; }
.header-call small { display: block; font-size: 0.68rem; color: #9fb0c0; line-height: 1.3; }

@media (max-width: 400px) {
  .brand-name small { display: none; }
  .header-call small { display: none; }
}

.site-nav { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.15rem 0.5rem;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-bottom: 3px solid transparent;
  color: #c2ceda;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--accent-bright);
}

/* ---------- 5. Fixed click-to-call bar (mobile) ---------- */

.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--navy-deep);
  border-top: 2px solid var(--accent-bright);
  box-shadow: 0 -8px 20px rgba(16, 26, 36, 0.35);
}
.call-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 56px;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
}
.call-bar svg { width: 20px; height: 20px; flex: none; }
.call-main { flex: 2; background: var(--accent); color: #fff; }
.call-main:hover { background: var(--accent-hover); color: #fff; }
.call-alt { flex: 1; border: 1.5px solid rgba(255, 255, 255, 0.3); color: var(--accent-bright); }
.call-alt:hover { border-color: rgba(255, 255, 255, 0.65); color: var(--accent-bright); }
.stack { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.stack small { font-size: 0.68rem; font-weight: 600; opacity: 0.85; }
.stack strong { font-size: 0.95rem; font-family: var(--mono); }
.call-alt .stack strong { font-size: 0.85rem; }

@media (max-width: 899px) { body { padding-bottom: 86px; } } /* keep the bar off the footer */
@media (min-width: 900px) { .call-bar { display: none; } }

/* ---------- 6. Dark sections (hero, panels, page heads) ---------- */

.dark { background: var(--navy); color: #c9d4de; }
.dark a { color: var(--accent-bright); }
.dark a:hover { color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: var(--accent-bright); }
.dark .stars .full { color: var(--accent-bright); }

/* ---------- 7. Hero (home) ---------- */

.hero { background: var(--navy); border-bottom: 4px solid var(--accent); }
.hero .wrap { padding-block: 2.6rem 3rem; }
.hero h1 { color: #fff; max-width: 17ch; margin-bottom: 0.6rem; }
.hero-lede { max-width: 54ch; font-size: 1.06rem; color: #c9d4de; }
.hero-actions { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.6rem; }

.route { display: flex; align-items: center; gap: 0.6rem; margin-top: 2.2rem; }
.route-stop { display: flex; align-items: center; gap: 0.55rem; }
.route-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.25);
  flex: none;
}
.route-dot.dot-open { background: var(--navy); border: 3px solid var(--accent-bright); box-shadow: none; }
.route-line { position: relative; flex: 1; min-width: 1.2rem; border-top: 3px dashed #43566a; align-self: center; }
.route-line svg {
  position: absolute;
  top: -9px;
  right: -4px;
  width: 18px;
  height: 18px;
  color: var(--accent-bright);
  background: var(--navy);
}
.route-text { display: flex; flex-direction: column; line-height: 1.3; }
.route-text strong { color: #fff; font-size: 0.95rem; }
.route-text span { color: #9fb0c0; font-size: 0.8rem; }
.route-note { margin: 1rem 0 0; max-width: 52ch; font-size: 0.92rem; color: #9fb0c0; }
.route-note strong { color: #fff; font-weight: 700; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 2.2rem; }
.stat {
  padding: 0.9rem 0.6rem;
  border: 1px solid var(--navy-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}
.stat strong { display: block; font-family: var(--mono); font-size: 1.35rem; color: var(--accent-bright); line-height: 1.2; }
.stat span { display: block; margin-top: 0.2rem; font-size: 0.78rem; color: #9fb0c0; line-height: 1.35; }

/* ---------- 8. Inner page head ---------- */

.page-head { background: var(--navy); border-bottom: 4px solid var(--accent); color: #c9d4de; }
.page-head .wrap { padding-block: 2.1rem 2.3rem; }
.page-head h1 { color: #fff; margin-bottom: 0.4rem; }
.page-head .lede { margin: 0; max-width: 62ch; }
.page-head .page-head-call { margin: 1.1rem 0 0; font-size: 1.02rem; }
.page-head-call a {
  color: var(--accent-bright);
  font-family: var(--mono);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 122, 26, 0.4);
}
.page-head-call a:hover { color: #fff; border-bottom-color: #fff; }

.page-head .rating-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem; margin: 1.1rem 0 0; font-size: 0.95rem; }
.rating-value { font-family: var(--mono); font-size: 2rem; font-weight: 800; color: var(--accent-bright); line-height: 1; }

/* ---------- 9. Cards & grids ---------- */

.grid { display: grid; gap: 1.1rem; }
.grid-more { margin: 1.6rem 0 0; }

.card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card .icon { display: block; width: 42px; height: 42px; color: var(--accent); }
.card h3 { margin: 0.7rem 0 0.4rem; }
.card p { margin-bottom: 0.9rem; font-size: 0.97rem; }
.card .more { margin-top: auto; padding-top: 0.6rem; font-weight: 700; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.good-for {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.87rem;
  color: var(--muted);
}
.good-for strong { color: var(--ink); }

@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-services { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 10. Dark panel + check list ---------- */

.panel { border-radius: var(--radius); padding: 1.6rem 1.5rem; }
.panel-dark { background: var(--navy); }
.panel-dark .section-head { margin-block-end: 1.2rem; }
.panel-dark .section-head h2 + p { color: #c9d4de; }

.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 0.85rem; padding: 1.05rem 0; border-top: 1px solid var(--navy-line); }
.check-list li:first-child { padding-top: 0.35rem; }
.check-list li:last-child { padding-bottom: 0; }
.check-list .icon { width: 26px; height: 26px; flex: none; margin-top: 0.2rem; color: var(--accent-bright); }
.check-list h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.check-list p { margin: 0; font-size: 0.95rem; }

/* ---------- 11. Quotes, reviews, stars ---------- */

.quote {
  margin: 0;
  padding: 1.3rem 1.4rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quote .stars { margin-bottom: 0.65rem; }
.quote blockquote { margin: 0 0 0.85rem; font-size: 0.99rem; }
.quote figcaption { color: var(--muted); font-size: 0.88rem; }
.quote figcaption strong { color: var(--ink); font-weight: 700; }

.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 17px; height: 17px; }
.stars .full { color: var(--accent); }
.stars .empty { color: #c3ccd6; }

/* ---------- 12. Tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
table { border-collapse: collapse; width: 100%; }
.table-wide { min-width: 36rem; }
th, td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
thead th {
  background: var(--navy);
  color: #e8eef4;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
tbody th[scope="row"] { font-weight: 700; color: #1b2733; white-space: nowrap; }
tbody tr:nth-child(even) { background: #fafbfc; }
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }
td.mono, th.mono { font-family: var(--mono); white-space: nowrap; }

/* ---------- 13. Rate list & callouts ---------- */

.rate-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.rate-list li { display: flex; gap: 0.8rem; }
.rate-list .icon { width: 24px; height: 24px; flex: none; margin-top: 0.25rem; color: var(--accent); }
.rate-list p { margin: 0; font-size: 0.96rem; }
.rate-list strong { display: block; font-size: 1rem; color: #1b2733; }

.callout {
  padding: 1.05rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.99rem;
}
.callout p { margin: 0; }

/* ---------- 14. Contact cards ---------- */

.contact-grid { display: grid; gap: 1.1rem; }
.contact-card {
  padding: 1.35rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-card .icon { width: 30px; height: 30px; color: var(--accent); }
.contact-card h3 { margin: 0.6rem 0 0.35rem; font-size: 1.05rem; }
.contact-card p { margin: 0.35rem 0 0; font-size: 0.92rem; color: var(--muted); }
.big {
  display: block;
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.3;
  text-decoration: none;
}
.big:hover { color: var(--accent-hover); text-decoration: underline; }
.big-sm { display: block; font-family: var(--mono); font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.45; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 15. Service area & zone diagram ---------- */

.area-grid { display: grid; gap: 2rem; align-items: center; }
.map { margin: 0; }
.map-svg { width: 100%; height: auto; }
.map-caption { margin-top: 0.7rem; font-size: 0.82rem; color: var(--muted); }
.map-legend { margin: 1.1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; font-size: 0.92rem; color: var(--muted); }
.map-legend li { display: flex; align-items: center; gap: 0.6rem; }
.chip { width: 15px; height: 15px; flex: none; border-radius: 50%; }
.chip-orange { background: var(--accent-bright); }
.chip-dot { background: #c9d4de; }
.chip-ring { background: transparent; border: 2px dashed var(--accent); }
@media (min-width: 860px) { .area-grid { grid-template-columns: 1.15fr 1fr; } }

/* ---------- 16. CTA band ---------- */

.cta-band { background: var(--accent); color: #fff; }
.cta-band .wrap { padding-block: 2.9rem; }
.cta-band .eyebrow { color: var(--cream); }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--cream); max-width: 62ch; }
.cta-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.cta-note { margin: 1.3rem 0 0; font-size: 0.9rem; }
.cta-note a { color: #fff; font-family: var(--mono); }
.cta-note a:hover { color: var(--cream); }

/* ---------- 17. Footer ---------- */

.site-footer { background: var(--navy-deep); color: #b9c6d4; }
.footer-grid { display: grid; gap: 2rem; padding-block: 2.8rem 1.5rem; }
.footer-brand p { margin: 0.9rem 0 0; font-size: 0.92rem; max-width: 34ch; }
.site-footer h2 {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; font-size: 0.92rem; }
.site-footer a { color: var(--accent-bright); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: grid;
  gap: 0.35rem;
  padding-block: 1.3rem 1.6rem;
  border-top: 1px solid var(--navy-line);
  font-size: 0.8rem;
  color: #8fa1b3;
}
.footer-bottom p { margin: 0; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
}

/* ---------- 18. Form ---------- */

.form {
  padding: 1.5rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 1.05rem; }
.field { margin: 0; }
.field-pair { display: grid; gap: 1.05rem; }
label { display: block; margin-bottom: 0.35rem; font-size: 0.92rem; font-weight: 700; color: #1b2733; }
input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
}
textarea { min-height: 132px; resize: vertical; }
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--accent);
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}
.hint { display: block; margin: 0.35rem 0 0; font-size: 0.84rem; color: var(--muted); }
.form-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.9rem; margin-top: 1.35rem; }
.form-foot { margin: 0; font-size: 0.9rem; color: var(--muted); }
.demo-note {
  display: block;
  margin-bottom: 1.1rem;
  padding: 0.9rem 1.1rem;
  background: #fff7ed;
  border: 1px solid #fdba8c;
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  color: #7c2d12;
  font-size: 0.92rem;
}
.demo-note strong { font-weight: 800; }
@media (min-width: 640px) {
  .field-pair { grid-template-columns: 1fr 1fr; }
  .form-actions { align-items: flex-start; }
}

/* ---------- 19. Wider-screen tweaks ---------- */

@media (min-width: 640px) {
  .hero-actions,
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- 20. Spacing fix for last children ---------- */

.section > .wrap > :last-child,
.card > :last-child,
.panel > :last-child,
.quote > :last-child,
.form > :last-child { margin-bottom: 0; }
