/*
 * A&T Inland Services: public website styles.
 *
 * Contents
 *   1. Tokens          5. Hero and quote ticket     9. Inner pages
 *   2. Base            6. Sections and route steps  10. Coverage table
 *   3. Buttons, forms  7. Leadership and purpose    11. Contact
 *   4. Header          8. Closing band and footer   12. Responsive, motion
 *                                                   14. News
 *
 * Colours are taken from the logo. The forward slant on photos and the red stripe
 * echo its speed lines; the red and white strip above the footer is trailer
 * conspicuity tape. Class names that start with "p-" belong to the portal
 * (app/portal/portal.css), not to this file.
 */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  --navy: #0b2c6b;
  --navy-deep: #071d49;
  --navy-mid: #12397f;
  --red: #e01b24;
  --red-dark: #b9141c;
  --ink: #1c2434;
  --muted: #566176;
  --mist: #f1f4f9;
  --line: #d6ddea;
  --line-strong: #aeb9cf;
  /* Borders that identify a control (inputs, outlined buttons) keep at least 3:1 against white. */
  --control-border: #7a879f;
  --white: #fff;
  --amber: #f2a100;

  --font-display: "TeX Gyre Heros Cn", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --section-y: clamp(56px, 7.5vw, 104px);
}

/* 2. Base --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }

h1, h2, h3 {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  text-wrap: balance;
}

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--red-dark); }

button, input, select, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
/* On navy surfaces the ring switches to amber, the colour of a cab's marker lights. */
.hero :focus-visible,
.page-intro :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible { outline-color: var(--amber); }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.lead { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.5; }

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 60;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--white);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

/* 3. Buttons and forms -------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 11px 24px;
  border: 2px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.button:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.button:disabled { cursor: default; opacity: 0.55; }

.button.primary { background: var(--red); border-color: var(--red); }
.button.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.button.secondary { background: var(--white); border-color: var(--control-border); color: var(--navy); }
.button.secondary:hover { background: var(--mist); border-color: var(--navy); color: var(--navy); }

.button.on-dark { background: transparent; border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.button.on-dark:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.quote-form label,
.contact-form label,
.coverage-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.quote-form input:not([type="checkbox"]),
.contact-form input,
.contact-form textarea,
.coverage-toolbar input {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 16px;
  border: 2px solid var(--control-border);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}
.contact-form textarea { height: auto; min-height: 160px; padding: 14px 16px; resize: vertical; line-height: 1.5; }

.quote-form input:not([type="checkbox"]):focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.coverage-toolbar input:focus-visible { border-color: var(--navy); outline-offset: 2px; }

/* The calendar button inside the date field gets the same ring as every other stop. */
.quote-form input[type="date"]::-webkit-calendar-picker-indicator { border-radius: 3px; cursor: pointer; }
.quote-form input[type="date"]::-webkit-calendar-picker-indicator:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.quote-form input::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder,
.coverage-toolbar input::placeholder { color: #667289; opacity: 1; }

.form-hint, .form-note { color: var(--muted); font-size: 16px; line-height: 1.45; }

.form-result {
  margin-top: 24px;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--mist);
}
.form-result h3 { font-size: 24px; }
.form-result p + p { margin-top: 10px; }
.form-result .button { margin-top: 20px; }
.form-result.is-error {
  border-color: #efb4b7;
  border-left: 5px solid var(--red);
  background: #fff4f4;
  color: #84141a;
  font-weight: 600;
}
/* While empty, a result region stays in the accessibility tree (visually hidden) so the
   message that arrives later is announced reliably by screen readers. */
.form-result[hidden] {
  display: block !important;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}
.quote-form input[aria-invalid="true"],
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] { border-color: var(--red-dark); box-shadow: inset 0 0 0 1px var(--red-dark); }

/* 4. Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 126px; height: 52px; }

.main-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 28px; margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.1vw, 30px); margin: 0; padding: 0; list-style: none; }
.nav-links a {
  position: relative;
  display: block;
  padding: 10px 0;
  color: var(--navy);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  inset: auto 0 2px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; gap: 10px; }
.nav-actions .button { min-height: 44px; padding: 8px 18px; font-size: 16px; white-space: nowrap; }

.menu-toggle { display: none; }

/* 5. Hero and quote ticket ---------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
}
.hero-media { position: absolute; inset: 0 0 0 auto; z-index: -1; width: 56%; }
.hero-photo { position: absolute; inset: 0; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
.hero-stripe {
  position: absolute;
  inset: 0;
  background: var(--red);
  clip-path: polygon(18% 0, calc(18% + 10px) 0, 10px 100%, 0 100%);
  transform: translateX(-24px);
}
.hero-copy { max-width: min(560px, 40vw); padding-block: clamp(64px, 8vw, 116px) clamp(150px, 15vw, 196px); }
.hero h1 { color: var(--white); font-size: clamp(54px, 7.2vw, 104px); line-height: 0.92; letter-spacing: -0.01em; }
.hero .lead { max-width: 23em; margin-top: 24px; color: #dbe3f3; font-size: clamp(19px, 1.6vw, 22px); }

.quote-section { position: relative; z-index: 2; margin-top: clamp(-120px, -9vw, -84px); }
.ticket {
  padding: clamp(22px, 3vw, 36px);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 32px 60px -32px rgba(7, 29, 73, 0.5), 0 0 0 1px rgba(7, 29, 73, 0.07);
}
.ticket-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 22px; }
.ticket-head h2 { font-size: clamp(30px, 2.8vw, 38px); }
.ticket-head .form-hint { max-width: 56ch; }

.lane-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) minmax(0, 1.15fr) auto;
  align-items: end;
  gap: 0 16px;
}
.lane-fields .button { min-height: 56px; padding-inline: 30px; font-size: 18px; }

.zip-field input:not([type="checkbox"]) {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.zip-field input::placeholder { font-family: var(--font-text); font-size: 18px; font-weight: 400; letter-spacing: 0; }

/* The lane: red origin dot, navy road, arrow into the destination. */
.lane {
  position: relative;
  height: 56px;
  background: radial-gradient(circle at 7px 50%, var(--red) 0 6.5px, transparent 7px);
}
.lane::before {
  content: "";
  position: absolute;
  inset: 50% 9px auto 17px;
  height: 3px;
  background: var(--navy);
  transform: translateY(-50%);
}
.lane::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  border-block: 7px solid transparent;
  border-left: 11px solid var(--navy);
  transform: translateY(-50%);
}

.quote-form .checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 44px;
  margin-top: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 400;
}
.checkbox input { flex: none; width: 20px; height: 20px; accent-color: var(--navy); }

.result-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; gap: 24px 48px; }
.rate-amount {
  margin-top: 6px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(54px, 6vw, 84px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.result-lane { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--navy); font-family: var(--font-display); font-size: 22px; letter-spacing: 0.05em; }
.result-lane .lane { flex: 1; max-width: 180px; height: 16px; }
.quote-summary { margin: 0; font-size: 17px; }
.quote-summary > div { display: flex; gap: 20px; padding: 9px 0; border-top: 1px solid var(--line); }
.quote-summary > div:first-child { border-top: 0; padding-top: 0; }
.quote-summary dt { flex: none; width: 190px; color: var(--muted); }
.quote-summary dd { font-weight: 600; }
.result-text { margin-top: 20px; max-width: 70ch; }

/* 6. Sections and route steps ------------------------------------------- */
.section { padding-block: var(--section-y); }
.section-mist { background: var(--mist); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 16px 48px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head h2 { font-size: clamp(38px, 4.4vw, 58px); }
.section-head p { max-width: 32em; color: var(--muted); font-size: 20px; line-height: 1.5; }

/* A real sequence, so it is numbered: stops along one road. */
.route-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.route-steps::before {
  content: "";
  position: absolute;
  inset: 21px 10px auto 0;
  height: 3px;
  background: var(--navy);
}
.route-steps::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 0;
  border-block: 7.5px solid transparent;
  border-left: 12px solid var(--navy);
}
.route-steps li { position: relative; padding-top: 70px; padding-right: 8px; }
.route-steps .stop {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
}
.route-steps li:first-child .stop { border-color: var(--red); background: var(--red); color: var(--white); }
.route-steps h3 { margin-bottom: 10px; font-size: 28px; }
.route-steps + .button { margin-top: 44px; }

.link-row { display: flex; flex-wrap: wrap; gap: 4px 36px; margin-top: 36px; font-weight: 600; }
.link-row a { display: inline-block; padding-block: 9px; }

/* 7. Leadership and purpose --------------------------------------------- */
.leadership { padding-block: var(--section-y); background: var(--mist); }
.leader {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5.5vw, 80px);
}
.leader + .leader { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.leader:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
.leader:nth-child(even) .portrait { order: 2; }

.portrait { position: relative; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
/* Placeholder notice, kept on the photo itself until real portraits are supplied. */
.portrait figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px 6px;
  border-radius: 4px;
  background: rgba(7, 29, 73, 0.9);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.leader-copy { max-width: 52em; }
.leader-copy h2 { margin-bottom: 22px; font-size: clamp(34px, 3.6vw, 48px); }
.leader-copy p + p { margin-top: 16px; }
.leader-copy h2 + p { color: var(--navy-deep); font-size: clamp(19px, 1.6vw, 21px); line-height: 1.55; }

.signature { display: flex; flex-direction: column; gap: 2px; margin-top: 28px; padding-top: 20px; border-top: 3px solid var(--red); width: fit-content; min-width: min(280px, 100%); color: var(--muted); font-size: 16px; line-height: 1.4; }
.signature strong { margin-bottom: 4px; color: var(--navy); font-family: var(--font-display); font-size: 28px; line-height: 1.05; }

.purpose { padding-block: var(--section-y); }
.purpose-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 7vw, 104px); }
.purpose-pair article { padding-top: 24px; border-top: 4px solid var(--navy); }
.purpose-pair h2 { margin-bottom: 16px; font-size: clamp(34px, 3.6vw, 48px); }
.purpose-pair p { font-size: clamp(19px, 1.6vw, 21px); line-height: 1.55; }

.values { margin-top: clamp(56px, 7vw, 96px); }
.values h2 { margin-bottom: 24px; font-size: clamp(34px, 3.6vw, 48px); }
.values dl { margin: 0; }
.value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 8px clamp(40px, 7vw, 104px);
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.value:last-child { border-bottom: 1px solid var(--line); }
.value dt { color: var(--navy); font-family: var(--font-display); font-size: 27px; font-weight: 700; line-height: 1.1; }
.value dd { font-size: 19px; line-height: 1.55; }

/* 8. Closing band and footer -------------------------------------------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--white); }
.cta-grid { display: grid; min-height: 320px; align-items: center; }
.cta-copy { max-width: 520px; padding-block: 56px; }
.cta-copy h2 { color: var(--white); font-size: clamp(36px, 4vw, 54px); }
.cta-copy p { margin-top: 14px; color: #dbe3f3; font-size: 20px; }
.cta-photo {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: 48%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.site-footer { background: var(--navy-deep); color: #cdd7ea; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
/* Trailer conspicuity tape: red and white blocks in the regulation 11:7 ratio. */
.tape { height: 16px; border-top: 4px solid var(--navy-deep); background: repeating-linear-gradient(90deg, var(--red) 0 88px, var(--white) 88px 144px); box-sizing: content-box; }

.footer-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px clamp(40px, 7vw, 104px); padding-block: clamp(48px, 6vw, 72px) 48px; }
.footer-authority h2 { color: #cdd7ea; font-family: var(--font-text); font-size: 17px; font-weight: 600; line-height: 1.4; }
.footer-authority .authority { max-width: 34em; margin-top: 10px; color: var(--white); font-size: 19px; line-height: 1.5; }
/* Set like the lettering on a truck door. */
.identifiers {
  margin-top: 26px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.05;
}
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-nav h3 { margin-bottom: 14px; color: #cdd7ea; font-family: var(--font-text); font-size: 17px; font-weight: 600; line-height: 1.4; }
.footer-nav ul, .footer-bottom ul { margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-block; padding-block: 6px; font-size: 17px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
  padding-block: 22px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 15px;
}
.footer-bottom p { margin-right: auto; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-bottom a { display: inline-block; padding-block: 6px; }

/* 9. Inner pages -------------------------------------------------------- */
.page-intro { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-deep); color: var(--white); }
.page-intro::before,
.page-intro::after { content: ""; position: absolute; inset: 0 0 0 auto; z-index: -1; width: 36%; }
.page-intro::before { background: var(--navy); clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%); }
.page-intro::after { background: var(--red); clip-path: polygon(26% 0, calc(26% + 8px) 0, 8px 100%, 0 100%); transform: translateX(-22px); }
.page-intro-grid { display: grid; align-items: center; gap: 32px 56px; padding-block: clamp(48px, 6.5vw, 92px); }
.page-intro.has-aside .page-intro-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); }
.page-intro-copy { max-width: min(680px, 56vw); }
.page-intro.has-aside .page-intro-copy { max-width: none; }
.page-intro h1 { color: var(--white); font-size: clamp(44px, 5.6vw, 80px); line-height: 0.96; }
.page-intro .lead { max-width: 36em; margin-top: 20px; color: #dbe3f3; }

/* Rate-sheet facts, lettered like the data panel on a container door. */
.door-panel { margin: 0; padding: 4px 22px; border: 2px solid rgba(255, 255, 255, 0.9); border-radius: 4px; background: var(--navy-deep); }
.door-panel > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.door-panel > div:first-child { border-top: 0; }
.door-panel dt { color: #dbe3f3; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.door-panel dd { color: var(--white); font-family: var(--font-display); font-size: 34px; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: 0.04em; line-height: 1; }

.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(32px, 5.5vw, 80px); }
.feature-image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }

.prose { max-width: 40em; }
.prose h2 { margin: 44px 0 12px; font-size: clamp(30px, 2.9vw, 38px); }
.prose > h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 16px; }
.prose .button { margin-top: 30px; }
.text-section h2 { margin-top: 0; }
.text-section + .text-section { margin-top: 40px; }

/* 10. Coverage table ---------------------------------------------------- */
.coverage-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 32px; }
.coverage-toolbar label { width: min(480px, 100%); }
#coverage-count { color: var(--navy); font-weight: 600; }
.coverage-toolbar + .form-hint { margin-top: 14px; max-width: 70ch; }

.table-scroll { margin-top: 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.rate-table { width: 100%; border-collapse: collapse; font-size: 17px; font-variant-numeric: tabular-nums; text-align: left; }
.rate-table thead th { padding: 14px 20px; background: var(--navy-deep); color: var(--white); font-size: 15px; font-weight: 600; white-space: nowrap; }
.rate-table tbody th,
.rate-table tbody td { padding: 12px 20px; border-top: 1px solid var(--line); }
.rate-table tbody tr:nth-child(even) { background: #f7f9fc; }
.rate-table tbody th { color: var(--navy); font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: 0.05em; }
.rate-table .num, .rate-table .c-miles, .rate-table .c-rate { text-align: right; }
.rate-table .c-rate { color: var(--navy); font-weight: 600; }
.rate-table .c-message { padding-block: 28px; color: var(--muted); }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.pagination p { color: var(--muted); font-size: 16px; }
.pagination .button { min-height: 46px; }

/* 11. Contact ----------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(32px, 6vw, 88px); }
.contact-info h2 { margin-bottom: 14px; font-size: clamp(32px, 3.2vw, 42px); }
.contact-address {
  display: inline-block;
  margin-top: 22px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.16em;
}
.support-box { margin-top: 44px; padding: 26px 28px; border-left: 5px solid var(--navy); border-radius: 0 8px 8px 0; background: var(--mist); }
.support-box h3 { margin-bottom: 12px; font-size: 26px; }
.support-box p + p { margin-top: 10px; }
.support-box a { display: inline-block; margin-top: 8px; padding-block: 9px; font-weight: 600; }

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 32px 60px -40px rgba(7, 29, 73, 0.35);
}
.contact-form h2 { font-size: clamp(30px, 2.8vw, 36px); }
.contact-form .form-result { margin-top: 0; }

/* 12. Responsive -------------------------------------------------------- */
@media (max-width: 1200px) {
  :root { --header-h: 68px; }
  .brand img { width: 112px; height: 46px; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin-left: auto;
    padding: 8px 14px;
    border: 2px solid var(--control-border);
    border-radius: 6px;
    background: var(--white);
    color: var(--navy);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
  }
  .menu-toggle-icon,
  .menu-toggle-icon::before,
  .menu-toggle-icon::after { display: block; width: 20px; height: 2px; border-radius: 1px; background: currentColor; transition: transform 0.18s, background-color 0.18s; }
  .menu-toggle-icon { position: relative; }
  .menu-toggle-icon::before,
  .menu-toggle-icon::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-icon::before { transform: translateY(-6px); }
  .menu-toggle-icon::after { transform: translateY(6px); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { transform: rotate(-45deg); }

  .main-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    max-height: calc(100dvh - var(--header-h));
    margin: 0;
    padding: 4px var(--gutter) 24px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 24px 32px -24px rgba(7, 29, 73, 0.45);
  }
  .main-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 19px; }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { padding-left: 14px; box-shadow: inset 4px 0 0 var(--red); }
  .nav-actions { flex-direction: column; }
  .nav-actions .button { min-height: 50px; font-size: 17px; }
}

@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; }
  .hero-media { position: relative; inset: auto; order: 2; width: 100%; aspect-ratio: 16 / 10; }
  .hero-photo { clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%); }
  .hero-photo img { object-position: 70% 50%; }
  .hero-stripe { clip-path: polygon(0 16%, 100% 0, 100% 7px, 0 calc(16% + 7px)); transform: translateY(-16px); }
  .hero-copy { max-width: none; padding-block: 44px 36px; }
  .quote-section { margin-top: -64px; }

  .lane-fields { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 16px 10px; }
  .lane-fields .date-field,
  .lane-fields .button { grid-column: 1 / -1; }
  .result-grid { grid-template-columns: minmax(0, 1fr); }

  .section-head { grid-template-columns: minmax(0, 1fr); }

  .route-steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .route-steps::before { inset: 0 auto 12px 21px; width: 3px; height: auto; }
  .route-steps::after { top: auto; right: auto; bottom: 0; left: 15px; border-block: 0; border-inline: 7.5px solid transparent; border-top: 12px solid var(--navy); border-left-color: transparent; }
  .route-steps li { padding: 4px 0 0 68px; }
  .route-steps li:last-child { padding-bottom: 28px; }

  .leader,
  .leader:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .leader:nth-child(even) .portrait { order: 0; }
  .portrait { max-width: 420px; }
  .portrait img { aspect-ratio: 5 / 4; object-position: 50% 22%; }

  .purpose-pair { grid-template-columns: minmax(0, 1fr); }
  .value { grid-template-columns: minmax(0, 1fr); }

  .cta-band { display: flex; flex-direction: column; }
  .cta-grid { min-height: 0; }
  .cta-copy { max-width: none; padding-block: 48px 40px; }
  .cta-photo { position: static; order: 2; width: 100%; height: auto; aspect-ratio: 2.4; clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }

  .page-intro-copy { max-width: none; }
  .page-intro-grid { padding-bottom: calc(clamp(48px, 6.5vw, 92px) + 20px); }
  .page-intro::before,
  .page-intro::after { inset: auto 0 -1px; width: auto; height: 26px; }
  .page-intro::before { background: var(--white); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
  .page-intro::after { clip-path: polygon(0 100%, 100% 0, 100% 6px, 0 calc(100% + 6px)); transform: translateY(-13px); }
  .page-intro.has-aside .page-intro-grid { grid-template-columns: minmax(0, 1fr); }
  .door-panel { max-width: 420px; }

  .feature-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero h1 { font-size: clamp(46px, 14.5vw, 64px); }
  .ticket { border-radius: 14px; }
  .ticket-head .form-hint { font-size: 15px; }
  .zip-field input:not([type="checkbox"]) { padding-inline: 12px; font-size: 26px; }
  .quote-summary > div { display: block; }
  .quote-summary dt { width: auto; font-size: 15px; }

  .route-steps h3 { font-size: 26px; }
  .value dt { font-size: 25px; }
  .footer-nav { gap: 24px; }
  .footer-nav a,
  .footer-bottom a { padding-block: 10px; }
  .footer-bottom p { margin-right: 0; width: 100%; }
  .contact-address { padding-block: 5px; }

  /* The rate table becomes a list: ZIP, place and rate on one line; county and miles below. */
  .rate-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rate-table tbody tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "zip city rate" "zip county miles";
    align-items: baseline;
    gap: 0 14px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
  }
  .rate-table tbody tr:first-child { border-top: 0; }
  .rate-table tbody th,
  .rate-table tbody td { padding: 0; border: 0; }
  .rate-table .c-zip { grid-area: zip; align-self: center; }
  .rate-table .c-city { grid-area: city; font-weight: 600; }
  .rate-table .c-county { grid-area: county; color: var(--muted); font-size: 15px; }
  .rate-table .c-county::after { content: " County"; }
  .rate-table .c-rate { grid-area: rate; }
  .rate-table .c-miles { grid-area: miles; color: var(--muted); font-size: 15px; }
  .rate-table .c-miles::after { content: " mi"; }
  .rate-table .c-message { grid-column: 1 / -1; padding: 16px 0; }
  .pagination .button { padding-inline: 16px; }
  .pagination p { font-size: 15px; text-align: center; }
}

/* Motion: only in answer to an action (a result arriving), never on load. */
@media (prefers-reduced-motion: no-preference) {
  .form-result:not([hidden]) { animation: result-in 0.28s ease-out; }
  .result-lane .lane::before { transform-origin: left; animation: lane-draw 0.6s 0.1s ease-out backwards; }
}
@keyframes result-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes lane-draw { from { transform: translateY(-50%) scaleX(0); } }

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

/* 13. Interaction and motion ---------------------------------------------
   Everything here answers the visitor: a page arriving, a section being reached,
   a ZIP being typed, a pointer over a control. It all sits on top of a page that
   is complete without it, and it is switched off for "reduce motion".            */

/* Header and buttons */
.site-header { transition: box-shadow 0.2s; }
.site-header.is-scrolled { box-shadow: 0 12px 26px -20px rgba(7, 29, 73, 0.6); }

.button { transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 18px -12px rgba(7, 29, 73, 0.7); }
.button:active:not(:disabled) { transform: none; box-shadow: none; }

/* Quote tool: the place behind a ZIP, and a dot that runs the lane when it is recognised */
.ticket { transition: box-shadow 0.2s; }
.ticket:focus-within { box-shadow: 0 32px 60px -32px rgba(7, 29, 73, 0.55), 0 0 0 2px rgba(11, 44, 107, 0.3); }
.zip-hint { min-height: 1.5em; margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.zip-hint.is-known { color: var(--navy); font-weight: 600; }
.zip-hint.is-known::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--red); }
.lane-dot { position: absolute; top: 50%; left: 7px; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--red); opacity: 0; }

/* Optional hero clip */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }

/* Coverage: county filter, sortable columns, ZIPs that start a quote */
.coverage-toolbar { gap: 14px 20px; justify-content: flex-start; }
.coverage-toolbar .county-field { width: min(280px, 100%); }
#coverage-count { margin-left: auto; }
.coverage-toolbar select {
  width: 100%;
  height: 56px;
  padding: 0 42px 0 14px;
  border: 2px solid var(--control-border);
  border-radius: 6px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b2c6b' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: var(--ink);
  font-size: 18px;
  font-weight: 400;
  appearance: none;
  cursor: pointer;
}
.coverage-toolbar select:focus-visible { border-color: var(--navy); outline-offset: 2px; }

.rate-table .sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -6px -8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.rate-table .sort::after { content: ""; border-inline: 5px solid transparent; border-top: 6px solid rgba(255, 255, 255, 0.4); }
.rate-table th[aria-sort="ascending"] .sort::after { border-top: 0; border-bottom: 6px solid var(--white); }
.rate-table th[aria-sort="descending"] .sort::after { border-top-color: var(--white); }
.rate-table .sort:hover { background: rgba(255, 255, 255, 0.12); }
.rate-table .sort:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.zip-link { display: inline-block; padding: 5px 0; color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.zip-link:hover { color: var(--red-dark); }
.rate-table tbody tr { transition: background-color 0.12s; }
.rate-table tbody tr:hover { background: #e9eff9; }

/* Floating shortcut to the quote tool: small screens only, shown by site.js */
.sticky-cta { display: none; }

/* Sections arriving. site.js adds .reveal only to elements still below the fold. */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* The route draws itself, then each stop arrives in order. */
.route-steps.reveal { opacity: 1; transform: none; }
.route-steps.reveal::before { transform: scaleX(0); transform-origin: left; }
.route-steps.reveal::after { opacity: 0; }
.route-steps.reveal li { opacity: 0; transform: translateY(18px); }
.route-steps.reveal.is-in::before { transform: scaleX(1); transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1); }
.route-steps.reveal.is-in::after { opacity: 1; transition: opacity 0.2s 1.05s; }
.route-steps.reveal.is-in li { opacity: 1; transform: none; transition: opacity 0.5s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.route-steps.reveal.is-in li:nth-child(2) { transition-delay: 0.3s; }
.route-steps.reveal.is-in li:nth-child(3) { transition-delay: 0.6s; }

@media (max-width: 900px) {
  .route-steps.reveal::before { transform: scaleY(0); transform-origin: top; }
  .route-steps.reveal.is-in::before { transform: scaleY(1); }

  .sticky-cta {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 35;
    display: inline-flex;
    min-height: 52px;
    padding-inline: 26px;
    border-radius: 28px;
    box-shadow: 0 16px 28px -12px rgba(7, 29, 73, 0.7);
    visibility: hidden;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  }
  .sticky-cta.is-visible { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s, transform 0.2s; }

  .coverage-toolbar .county-field { width: 100%; }
  .coverage-toolbar label { width: 100%; }
  #coverage-count { margin-left: 0; }
}

@media (max-width: 640px) {
  .zip-link { padding: 10px 0; }
}

/* A page arriving: headline, photo and quote ticket come in as one short sequence. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero .lead { animation: rise 0.7s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-photo { animation: photo-wipe 1s 0.05s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
  .hero-photo img,
  .hero-video { animation: photo-settle 2.6s ease-out both; }
  .hero-stripe { animation: fade-in 0.6s 0.6s ease-out both; }
  .ticket { animation: rise 0.7s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .page-intro h1 { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .page-intro .lead { animation: rise 0.6s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .page-intro .door-panel,
  .page-intro .button-row { animation: rise 0.6s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .lane.is-live .lane-dot { animation: lane-run 0.9s cubic-bezier(0.5, 0, 0.3, 1); }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes photo-wipe { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } }
@keyframes photo-settle { from { transform: scale(1.08); } }
@keyframes lane-run {
  0% { left: 7px; opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 12px); opacity: 0; }
}

/* 14. News ---------------------------------------------------------------
   Cards for the home page teaser, the /news/ index and "More news" under an
   article. The category label keeps the logo's forward slant; the whole card
   is one link, reached through its headline.                                  */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.news-grid.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-grid > li { display: flex; }

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(7, 29, 73, 0.09), 0 26px 44px -34px rgba(7, 29, 73, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(7, 29, 73, 0.14), 0 34px 48px -30px rgba(7, 29, 73, 0.6); }

.news-card-media { position: relative; flex: none; overflow: hidden; aspect-ratio: 3 / 2; background: var(--navy-deep); }
.news-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.news-card:hover .news-card-media img { transform: scale(1.05); }
.news-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 9px 28px 8px 16px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.news-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 24px 24px; }
.news-date { color: var(--muted); font-size: 15px; font-weight: 600; line-height: 1.3; }
.news-card h2,
.news-card h3 { font-size: 27px; line-height: 1.08; }
.news-card h2 a,
.news-card h3 a { color: inherit; text-decoration: none; }
/* The headline link covers the card, so the photo and the text are one target. */
.news-card h2 a::after,
.news-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 10px; }
.news-card h2 a:focus-visible,
.news-card h3 a:focus-visible { outline: none; }
.news-card h2 a:focus-visible::after,
.news-card h3 a:focus-visible::after { outline: 3px solid var(--navy); outline-offset: -3px; }
.news-card:hover h2,
.news-card:hover h3 { color: var(--red-dark); }
.news-card p { font-size: 17px; line-height: 1.5; }
.news-more { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; color: var(--navy); font-size: 17px; font-weight: 600; }
.news-more::after { content: ""; border-block: 6px solid transparent; border-left: 9px solid var(--red); transition: transform 0.2s; }
.news-card:hover .news-more::after { transform: translateX(5px); }

/* Lead story on the index: photo beside the text. */
.news-card.is-featured { flex-direction: row; margin-bottom: clamp(24px, 3vw, 40px); }
.news-card.is-featured .news-card-media { flex: 0 0 56%; aspect-ratio: auto; min-height: 380px; }
.news-card.is-featured .news-card-body { justify-content: center; gap: 14px; padding: clamp(24px, 3.6vw, 48px); }
.news-card.is-featured h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.02; }
.news-card.is-featured p { font-size: 19px; }
.news-card.is-featured .news-more { margin-top: 6px; }
.news-card.is-featured .news-tag { padding: 11px 32px 10px 20px; font-size: 14px; }

/* Article page */
.news-intro h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1; }
.news-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-bottom: 18px;
  color: #dbe3f3;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}
.news-kicker a { display: inline-block; padding-block: 8px; color: var(--white); }
.news-kicker a:hover { color: var(--white); text-decoration-thickness: 2px; }
.news-kicker .news-date { color: inherit; font-size: inherit; }
.news-kicker > * + * { display: inline-flex; align-items: center; gap: 14px; }
.news-kicker > * + *::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.news-back { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 600; }
.news-back a { display: inline-block; padding-block: 9px; }
.news-back a::before { content: ""; display: inline-block; margin-right: 10px; border-block: 6px solid transparent; border-right: 9px solid var(--red); }

.news-grid > li.reveal.is-in:nth-child(2) { transition-delay: 0.12s; }
.news-grid > li.reveal.is-in:nth-child(3) { transition-delay: 0.24s; }
/* The lead card is revealed itself, so it keeps its hover timing once it is in. */
.news-card.is-featured.reveal.is-in { transition: opacity 0.6s ease, transform 0.2s, box-shadow 0.2s; }

@media (max-width: 900px) {
  /* One column; each card lies on its side, photo first. */
  .news-grid,
  .news-grid.is-pair { grid-template-columns: minmax(0, 1fr); }
  .news-grid .news-card { flex-direction: row; }
  .news-grid .news-card-media { flex: 0 0 40%; aspect-ratio: auto; min-height: 210px; }
  .news-card.is-featured .news-card-media { flex-basis: 44%; min-height: 300px; }
  .news-grid > li.reveal.is-in:nth-child(n) { transition-delay: 0s; }
}

@media (max-width: 640px) {
  .news-grid .news-card,
  .news-card.is-featured { flex-direction: column; }
  .news-grid .news-card-media,
  .news-card.is-featured .news-card-media { flex: none; aspect-ratio: 3 / 2; min-height: 0; }
  .news-card-body { padding: 20px 20px 22px; }
  .news-card h2,
  .news-card h3 { font-size: 25px; }
  .news-card.is-featured h2 { font-size: 30px; }
  .news-card.is-featured p { font-size: 17px; }
}

@media (prefers-reduced-motion: no-preference) {
  .page-intro .news-kicker { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
  .news-card:hover,
  .news-card:hover .news-card-media img,
  .news-card:hover .news-more::after { transform: none; }
}

.news-source { margin-top: 30px; color: var(--muted); font-size: 16px; }
.news-source + .news-back { margin-top: 18px; }
.news-source-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 15. Coverage map -------------------------------------------------------
   Florida with one dot per destination ZIP. No prices: a ZIP leads to the
   quote tool. The list beside the map holds the same ZIPs as links.          */
.coverage-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 4vw, 56px); margin-top: 28px; }

.coverage-map { position: relative; padding: clamp(14px, 2vw, 24px); border: 1px solid var(--line); border-radius: 12px; background: var(--mist); }
.coverage-map svg { display: block; width: 100%; height: auto; touch-action: manipulation; cursor: crosshair; }
.map-land { fill: var(--white); stroke: var(--line-strong); stroke-width: 2; stroke-linejoin: round; }
.map-dot { fill: var(--navy); stroke: var(--white); stroke-width: 1.2; opacity: 0.85; transition: opacity 0.15s, fill 0.15s; }
/* While a search or county filter is on, matches stay strong and the rest step back. */
.coverage-map svg.is-filtered .map-dot { fill: var(--line-strong); opacity: 0.5; }
.coverage-map svg.is-filtered .map-dot.is-match { fill: var(--navy); opacity: 1; }
.coverage-map svg .map-dot.is-active,
.coverage-map svg .map-dot.is-chosen { fill: var(--red); stroke-width: 2.5; opacity: 1; r: 9px; }
.map-origin circle { fill: var(--red); }
.map-origin .map-origin-ring { fill: none; stroke: var(--red); stroke-width: 3; }
.map-origin text { fill: var(--navy-deep); font-family: var(--font-text); font-size: 26px; font-weight: 600; paint-order: stroke; stroke: var(--white); stroke-width: 6px; stroke-linejoin: round; }
.map-origin { pointer-events: none; }

.map-tip {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--navy-deep);
  color: var(--white);
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
}
.map-tip strong { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.05em; }

.coverage-map figcaption { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 12px; color: var(--muted); font-size: 15px; }
.map-key { display: inline-flex; align-items: center; gap: 8px; }
.map-key-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--navy); }
.map-key-dot.is-origin { background: var(--red); box-shadow: 0 0 0 2px var(--mist), 0 0 0 4px var(--red); }

.map-selected { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 14px; padding: 14px 16px; border-left: 5px solid var(--red); border-radius: 0 8px 8px 0; background: var(--white); }
.map-selected p { display: flex; flex-direction: column; line-height: 1.3; }
.map-selected strong { color: var(--navy); font-family: var(--font-display); font-size: 28px; letter-spacing: 0.05em; }
.map-selected .button { min-height: 46px; }

.coverage-results h2 { margin-bottom: 8px; font-size: clamp(28px, 2.6vw, 34px); }
.coverage-list { margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.coverage-list li { border-bottom: 1px solid var(--line); }
.coverage-item { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; min-height: 56px; padding: 8px 10px; color: var(--ink); text-decoration: none; transition: background-color 0.12s; }
.coverage-item:hover,
.coverage-item:focus-visible { background: #e9eff9; color: var(--ink); }
.coverage-item strong { color: var(--navy); font-family: var(--font-display); font-size: 23px; letter-spacing: 0.05em; }
.coverage-item em { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-size: 16px; font-style: normal; font-weight: 600; white-space: nowrap; }
.coverage-item em::after { content: ""; border-block: 6px solid transparent; border-left: 9px solid var(--red); }
.coverage-empty { padding: 20px 10px; color: var(--muted); }

@media (max-width: 900px) {
  .coverage-layout { grid-template-columns: minmax(0, 1fr); }
  .map-origin text { font-size: 34px; }
  .map-dot { r: 6.5px; }
}
@media (max-width: 640px) {
  .coverage-item { grid-template-columns: 74px minmax(0, 1fr); }
  .coverage-item em { grid-column: 2; font-size: 15px; }
  .map-selected .button { width: 100%; }
}

/* 16. Team message (About page) ------------------------------------------ */
.team-photo { position: relative; }
.team-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
/* Placeholder notice, kept on the photo itself until the real team photo is supplied. */
.team-photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px 6px;
  border-radius: 4px;
  background: rgba(7, 29, 73, 0.9);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}
.team-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; gap: 20px clamp(32px, 5.5vw, 80px); }
.team-copy h2 { font-size: clamp(34px, 3.6vw, 48px); }
.team-text { max-width: 40em; }
.team-text p + p { margin-top: 16px; }
.team-text p:first-child { color: var(--navy-deep); font-size: clamp(19px, 1.6vw, 21px); line-height: 1.55; }
@media (max-width: 900px) {
  .team-copy { grid-template-columns: minmax(0, 1fr); }
  .team-photo img { aspect-ratio: 3 / 2; }
}

/* 17. Reasons (home page) and "After you book" (services) ---------------- */
.reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.reasons.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reasons li { padding: 26px 24px 28px; border-top: 4px solid var(--navy); border-radius: 0 0 8px 8px; background: var(--white); }
.reasons li:first-child { border-top-color: var(--red); }
.reason-figure { margin-bottom: 10px; color: var(--navy); font-family: var(--font-display); font-size: clamp(44px, 4.4vw, 60px); font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1; }
.reasons h3 { margin-bottom: 10px; font-size: 26px; }
.reasons li > p:last-child { color: var(--muted); }
.reasons + .button { margin-top: 44px; }
@media (max-width: 1100px) {
  .reasons, .reasons.is-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .reasons, .reasons.is-three { grid-template-columns: minmax(0, 1fr); }
}

/* Extra photos under a news article */
.news-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; list-style: none; }
.news-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
