/* ============================================================
   BST Theme - app.css
   Source: DESIGN_REVIEW_v2.md "Developer appendix" + design/home-v1
   ============================================================ */

/* ---------- Fonts ---------- */

@font-face {
  font-family: 'MuseoModerno';
  src: url('../fonts/MuseoModerno-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-VariableFont_wght.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  /* Palette (canonical, from from-designer/colorpallete.pdf) */
  --color-primary: #1F3A5F;
  --color-secondary: #6FA8DC;
  --color-bg: #F7F6F2;
  --color-green: #4CAF50;
  --color-orange: #F4A261;
  --color-text: #2B2B2B;

  /* Extended (used in design) */
  --color-text-gray: #5C6B7A;
  --color-text-card: #555555;
  --color-eyebrow-dark: #A8C4E0; /* eyebrow on navy panels */
  --color-card-border: rgba(31, 58, 95, 0.10);
  --color-shadow-soft: rgba(17, 24, 39, 0.08);

  /* Type families */
  --font-display: 'MuseoModerno', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* Spacing scale */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;

  /* Layout */
  --max-content: 1240px;
  --page-pad-x: 80px;
  /* Reading measure for text blocks. Already the cap on .prose and the page
     hero column; named here so the section pages can share one number. */
  --measure-text: 720px;
}

/* ---------- Base ---------- */

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

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Brand emphasize helper (bst_brand_emphasize wraps \bBST\b) */
.brand {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.01em;
}

/* ---------- Eyebrow + accent rule ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  display: block;
  margin: 0;
}

.eyebrow-rule {
  width: 40px;
  height: 3px;
  background: var(--color-orange);
  margin: 8px 0 16px;
  border: none;
}

.dark-surface .eyebrow { color: var(--color-eyebrow-dark); }

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

.site-header {
  background: var(--color-primary);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(111, 168, 220, 0.35);
  transition: padding 200ms ease, box-shadow 200ms ease;
}

/* Scrolled state: toggled by main.js once the page is scrolled. */
.site-header.is-scrolled {
  padding: 10px 0;
  border-bottom-color: transparent;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.site-logo__image {
  height: 56px;
  width: auto;
  display: block;
}

/* On desktop the collapse wrapper is transparent (display:contents) so nav and
   actions sit directly in .container; on mobile it becomes the dropdown panel. */
.site-header__collapse { display: contents; }

.site-nav {
  display: flex;
  gap: var(--space-24);
  align-items: center;
}

/* wp_nav_menu emits <ul class="site-nav__list"><li><a>; let .site-nav own the
   flex layout so static fallback nav and dynamic menu both render the same. */
.site-nav__list,
.site-nav__list li {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.80);
  padding-bottom: 3px;
  border-bottom: 3px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
.site-nav a:hover {
  color: #fff;
  border-bottom-color: var(--color-eyebrow-dark);    /* light-blue underline, distinct from active orange */
}
.site-nav a.is-active {
  color: #fff;
  font-weight: 700;
  border-bottom-color: var(--color-orange);          /* orange underline */
}

.site-actions {
  display: flex;
  align-items: center;
  gap: var(--space-20);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-orange);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 9px 20px;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: filter 180ms ease;
}
.nav-cta:hover { filter: brightness(0.85); }
.nav-cta:active { filter: brightness(0.75); transition-duration: 60ms; }
.nav-cta:focus-visible {
  outline: none;
  border-color: var(--color-bg);
  box-shadow: 0 0 0 3px var(--color-orange);
}

/* ---------- Hamburger toggle (mobile only) ---------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.site-header.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  background: var(--color-primary);
  color: #fff;
  padding: 96px 0 80px;
  position: relative;
}

.hero-content {
  max-width: 640px;
}

.hero-eyebrow { color: var(--color-eyebrow-dark); }

.hero-headline {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-eyebrow-dark);
  max-width: 520px;
  margin: 20px 0 0;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-20);
  margin-top: 40px;
  flex-wrap: wrap;
}

.cta-box {
  background: var(--color-orange);
  border-radius: 6px;
  padding: 14px 24px;
  text-align: center;
  display: inline-block;
  transition: filter 180ms ease;
}
.cta-box:hover { filter: brightness(0.85); }
.cta-box:active { filter: brightness(0.75); transition-duration: 60ms; }
.cta-box .cta-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  display: block;
  margin-bottom: 3px;
}
.cta-box .cta-number {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.01em;
  display: block;
}

/* ---------- Section base ---------- */

.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-primary);
  margin: 0 0 var(--space-32);
}

/* ---------- Services (4 cards, no photos) ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-16);
}

.service-card {
  background: #fff;
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--color-primary);
  opacity: 0.25;
}
.service-card:hover {
  box-shadow: 0 4px 16px var(--color-shadow-soft);
  transform: translateY(-2px);
  cursor: pointer;
}
.service-card:hover::before { opacity: 0.5; }

.service-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 8px;
}
.service-card__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.service-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.service-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}

.service-desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-card);
  line-height: 1.5;
  margin: 0;
}

.services-cta-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: var(--space-24);
  display: inline-block;
  transition: color 150ms ease;
}
.services-cta-link:hover { color: var(--color-secondary); }

/* ---------- Why BST (pillars) ---------- */

.why-bst {
  background: var(--color-bg);
}

.pillars {
  display: grid;
  gap: 0;
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-card-border);
}
.pillar:last-child { border-bottom: none; }

.pillar-icon-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.pillar-heading {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}

.pillar-body {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-card);
  line-height: 1.5;
  margin: 0;
}

/* ---------- Reassurance strip ---------- */

.reassurance {
  background: var(--color-primary);
  border-radius: 6px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0 0;
  color: #fff;
}

.reassurance-icon {
  width: 22px;
  height: 22px;
  color: var(--color-green);
  flex-shrink: 0;
}

.reassurance-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0;
}

/* ---------- Closing CTA section ---------- */

.closing-cta {
  background: var(--color-primary);
  color: #fff;
  padding: 80px 0;
}
.closing-cta .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-48);
  align-items: center;
}

/* Dual CTA in the closing section (used on the Event-rates price sheet): the
   solid orange phone box stays primary, "Get a Quote" is a secondary outline
   button below it. Surfaces a Get a Quote on mobile, where the header one is
   hidden in the hamburger. No new colors (orange + navy only). */
.closing-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-12);
}
.closing-cta__quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-orange);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 12px 20px;
  border: 2px solid var(--color-orange);
  border-radius: 4px;
  text-align: center;
  transition: background-color 180ms ease, color 180ms ease;
}
.closing-cta__quote:hover { background: var(--color-orange); color: var(--color-primary); }
.closing-cta__quote:active { filter: brightness(0.85); transition-duration: 60ms; }
.closing-cta__quote:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-orange);
}

.closing-cta__title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 var(--space-16);
}
.closing-cta__body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-eyebrow-dark);
  line-height: 1.55;
  margin: 0;
}

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

.site-footer {
  background: var(--color-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0;
  color: var(--color-eyebrow-dark);
  font-family: var(--font-body);
  font-size: 13px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-24);
}

.site-footer__left,
.site-footer__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-footer__copyright,
.site-footer__address {
  color: var(--color-eyebrow-dark);
}

.site-footer__links {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
}
.site-footer__sep {
  color: var(--color-secondary);
  opacity: 0.5;
}

.site-footer__privacy,
.site-footer__careers,
.site-footer__email {
  color: var(--color-secondary);
  text-decoration: none;
}
.site-footer__privacy:hover,
.site-footer__careers:hover,
.site-footer__email:hover {
  color: var(--color-orange);
  text-decoration: underline;
}

/* Address is a muted info link (opens maps); not styled like the action links. */
.site-footer__address { text-decoration: none; }
.site-footer__address:hover { color: var(--color-orange); }

.site-footer__privacy:focus-visible,
.site-footer__careers:focus-visible,
.site-footer__email:focus-visible,
.site-footer__address:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
}

/* Mobile: single left-aligned column, contact-first order, comfortable taps. */
@media (max-width: 768px) {
  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-16);
  }
  .site-footer__left,
  .site-footer__right {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-8);
  }
  .site-footer__right { order: 1; gap: var(--space-4); }
  .site-footer__left  { order: 2; }
  .site-footer__links     { order: 1; }
  .site-footer__copyright { order: 2; }
  .site-footer__privacy,
  .site-footer__careers,
  .site-footer__email,
  .site-footer__address { padding-block: 8px; }
}

/* ---------- Responsive (light pass) ---------- */

@media (max-width: 1024px) {
  :root { --page-pad-x: 40px; }
  .hero-headline { font-size: 48px; }
  .section-title, .closing-cta__title { font-size: 32px; }
}

@media (max-width: 768px) {
  :root { --page-pad-x: 24px; }
  .hero { padding: 64px 0 56px; }
  .hero-headline { font-size: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .closing-cta .container { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* ---------- WP admin bar (logged-in users) ---------- */
/* Without this the WP admin bar overlaps the header for logged-in users.
   See CLAUDE.md gotcha + skill pitfall #18. */

.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ---------- Mobile header: hamburger + dropdown panel ---------- */

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  /* Collapse wrapper becomes the dropdown panel, anchored under the bar. */
  .site-header__collapse {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
    padding: 8px 0 16px;
  }
  .site-header.nav-open .site-header__collapse { display: flex; }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .site-nav a {
    padding: 13px var(--page-pad-x);
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  .site-nav a:hover { border-left-color: var(--color-eyebrow-dark); }
  .site-nav a.is-active {
    border-bottom-color: transparent;
    border-left-color: var(--color-orange);
  }

  .site-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 8px;
    padding: 14px var(--page-pad-x) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav-cta { text-align: center; padding: 12px 16px; }
}

/* ============================================================
   Inner pages (about / services / industries / coverage / faq /
   quote / contact / privacy)
   ============================================================ */

/* ---------- Container width variants ---------- */

.container--narrow {
  max-width: 880px;
}

/* One horizontal anchor per page. The section keeps the wide container's left
   edge (the same edge the page hero uses) and the reading measure is capped on
   the blocks themselves. This replaces .container--narrow on the section pages:
   for prose it never shortened a line (.prose carries its own cap), it only
   re-centered an already-capped column 180px to the right above 1240px, so
   headings of neighbouring sections did not line up. Blocks that had NO cap of
   their own (.pillars, .faq-list, .booking-steps, .spoke-section) do get one
   here for the first time - that is the same fix, not a side effect.
   The cap engages once the content box passes the measure, i.e. from a 801px
   viewport (720 + 2 x 40px padding); at or below 768px the content box is at
   most 720px, so it never engages and mobile renders identically.
   Specificity is (0,1,0): a later single-class rule setting max-width on a
   direct child wins over this one (.faq-list and .booking-steps are later and
   carry the same value on purpose).
   .container--narrow stays for single-document pages (/faq/, /privacy/), which
   have no wide sibling sections to misalign against. */
.container--measure > * {
  max-width: var(--measure-text, 720px);
}

/* ---------- Page hero (inner pages, single column) ---------- */

.page-hero {
  background: var(--color-primary);
  color: #fff;
  padding: 80px 0 64px;
}

.page-hero__content {
  max-width: var(--measure-text, 720px);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
}

.page-hero__text {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-eyebrow-dark);
  max-width: 600px;
  margin: 20px 0 0;
}

@media (max-width: 1024px) {
  .page-hero__title { font-size: 44px; }
}

@media (max-width: 768px) {
  .page-hero { padding: 56px 0 48px; }
  .page-hero__title { font-size: 34px; }
}

/* ---------- Prose blocks (body paragraphs) ---------- */

.prose p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0 0 16px;
  max-width: var(--measure-text, 720px);
}
.prose p:last-child { margin-bottom: 0; }

.prose strong {
  font-weight: 700;
  color: var(--color-primary);
}

/* ---------- Services detail page ---------- */

.services-detail-section .service-detail {
  border-top: 1px solid var(--color-card-border);
  padding: 40px 0;
}
.services-detail-section .service-detail:first-child { border-top: none; padding-top: 0; }
.services-detail-section .service-detail:last-child { padding-bottom: 0; }

/* Anchor targets: offset the scroll landing so the sticky header (~88px) does
   not cover the service title when arriving via /services/#service-... */
.service-detail { scroll-margin-top: 100px; }
.admin-bar .service-detail { scroll-margin-top: 132px; }
@media screen and (max-width: 782px) {
  .admin-bar .service-detail { scroll-margin-top: 146px; }
}

.service-detail__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.service-detail__icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.service-detail__icon-wrap .service-icon {
  width: 24px;
  height: 24px;
  color: #fff;
  margin: 0;
}

.service-detail__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: 0;
}

.service-detail__summary {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 16px;
  max-width: 720px;
}

.service-detail__body p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-card);
  margin: 0 0 12px;
  max-width: 720px;
}

.service-detail__items {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  max-width: 720px;
}
.service-detail__items li {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.5;
}
.service-detail__items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
}

/* Optional "detail page" link under a service block's bullets (only renders
   when the more_page/more_label sub-fields are set - currently the Event
   Transportation block linking to the /event-transportation/ hub). New class
   on purpose: .services-cta-link is a Zaraz trigger selector (event 8).
   Styled as a CONTEXTUAL link (regular weight, no arrow) so it reads a tier
   below the bold Get-a-Quote CTA that follows it. */
.service-detail__more {
  margin: 16px 0 0;
}
.service-detail__more-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 150ms ease;
}
.service-detail__more-link:hover { color: var(--color-secondary); }

.service-detail__cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 8px;
  transition: color 150ms ease;
}
.service-detail__cta:hover { color: var(--color-secondary); }

@media (max-width: 768px) {
  .service-detail__items { grid-template-columns: 1fr; }
  .service-detail__title { font-size: 24px; }
}

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

.positions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
  /* Cards must not stretch to the tallest sibling: a closed card next to an
     open one would render as a tall empty box that reads as a broken card. */
  align-items: start;
}
@media (min-width: 768px) {
  .positions-grid { grid-template-columns: 1fr 1fr; }
}

.position-card {
  background: #fff;
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
  /* Deep-link anchor target (#position-...) clears the sticky header. */
  scroll-margin-top: 100px;
}
.admin-bar .position-card { scroll-margin-top: 132px; }
@media screen and (max-width: 782px) {
  .admin-bar .position-card { scroll-margin-top: 146px; }
}
.position-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--color-primary);
  opacity: 0.25;
}
.position-card:hover {
  box-shadow: 0 4px 16px var(--color-shadow-soft);
  transform: translateY(-2px);
}
.position-card:hover::before { opacity: 0.5; }
.position-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.position-card__head .service-title { margin: 0; }
.position-card__type {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(31, 58, 95, 0.08);
  border-radius: 4px;
  padding: 2px 8px;
}
.position-card__meta {
  font-size: 14px;
  color: var(--color-text-gray);
  margin: 0 0 8px;
}
.position-card__desc {
  color: var(--color-text-card);
  margin: 0 0 12px;
}

.position-card__body { margin-top: 4px; }
.position-card__para {
  color: var(--color-text-card);
  line-height: 1.5;
  margin: 0 0 12px;
}
.position-card__subhead {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin: 16px 0 8px;
}
.position-card__list {
  margin: 0 0 12px;
  padding-left: 18px;
}
.position-card__list li {
  color: var(--color-text-card);
  line-height: 1.45;
  margin-bottom: 4px;
}

/* Accordion (collapsible posting), same idiom as the FAQ details/summary. */
.position-card__summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.position-card__summary::-webkit-details-marker { display: none; }
.position-card__summary::after {
  content: '+';
  position: absolute;
  top: 0;
  right: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-orange);
}
.position-card__details[open] .position-card__summary::after { content: '\2212'; }
.position-card__intro { margin-top: 8px; }
.position-card__intro .position-card__para:last-child { margin-bottom: 0; }
.position-card__panel { margin-top: 4px; }

.position-card__apply {
  display: inline-block;
  margin-top: var(--space-16);
  background: var(--color-orange);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 4px;
  transition: filter 180ms ease;
}
.position-card__apply:hover { filter: brightness(0.85); }
.position-card__apply:active { filter: brightness(0.75); transition-duration: 60ms; }
.position-card__apply:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* In-page anchor offset for the sticky header (see CLAUDE.md gotcha).
   #apply sits on the .contact-form-block (the form column), NOT the section -
   so on mobile (where the NAP block stacks above the form) Apply Now lands on
   the form, not the NAP card. The target is real content (no internal top
   padding), so it uses the standard header-clear offset like .service-detail. */
#apply { scroll-margin-top: 100px; }
.admin-bar #apply { scroll-margin-top: 132px; }
@media screen and (max-width: 782px) {
  .admin-bar #apply { scroll-margin-top: 146px; }
}

.careers-requirements { background: var(--color-bg); }
.careers-requirements__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 24px;
}
@media (min-width: 768px) {
  .careers-requirements__cols { grid-template-columns: 1fr 1fr; }
}
.careers-requirements__heading {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-card-border);
}
.careers-requirements__col--primary .careers-requirements__heading {
  border-bottom-color: var(--color-orange);
}
.careers-requirements__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.careers-requirements__list li {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.5;
}
.careers-requirements__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
}

/* ---------- Industries grid ---------- */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.industry-card {
  background: #fff;
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.industry-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--color-orange);
  opacity: 0.6;
}
.industry-card:hover {
  box-shadow: 0 4px 16px var(--color-shadow-soft);
  transform: translateY(-2px);
}

.industry-card__title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}

.industry-card__body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-card);
  margin: 0;
}

@media (max-width: 768px) {
  .industries-grid { grid-template-columns: 1fr; }
}

/* ---------- Coverage ---------- */

.coverage-intro { padding-bottom: 32px; }
.coverage-regions { padding-top: 0; }

.coverage-list {
  display: grid;
  gap: 0;
}

.coverage-region {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-card-border);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}
.coverage-region:first-child { padding-top: 0; }
.coverage-region:last-child { border-bottom: none; }

.coverage-region__title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  letter-spacing: -0.005em;
}

.coverage-region__cities {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

@media (max-width: 768px) {
  .coverage-region {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

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

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  /* Own cap, like .prose and .page-hero__content: the partial is shared and
     must keep its measure wherever it is dropped, not only inside
     .container--measure. */
  max-width: var(--measure-text, 720px);
}

.faq-item {
  border-bottom: 1px solid var(--color-card-border);
}
.faq-item:first-child { border-top: 1px solid var(--color-card-border); }

.faq-details {
  padding: 0;
}

.faq-question {
  cursor: pointer;
  padding: 20px 28px 20px 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
  letter-spacing: -0.005em;
  position: relative;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 18px;
  font-size: 24px;
  font-weight: 400;
  color: var(--color-orange);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-details[open] .faq-question::after {
  content: '-';
  transform: translateY(-1px);
}

.faq-answer {
  padding: 0 28px 20px 0;
}
.faq-answer p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-card);
  margin: 0;
}

/* ---------- Form section (quote, contact) ---------- */

.form-section__intro {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-card);
  margin: 0 0 24px;
  max-width: 720px;
}

.form-section__form {
  margin-top: 24px;
}

.form-section__fallback {
  background: #fff;
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 24px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

.form-section__phone {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

/* ---------- Quote page: service tiles (v2.7.0) ---------- */
/* Tiles are plain links (?service=key#quote-form): the server marks the chosen
   one with aria-current="true" and renders only its form below. Selection is
   signalled by border weight, the accent bar AND a text badge, not color alone.
   UCSS: [aria-current="true"], .quote-tile__badge and .quote-tiles__subswitch*
   are absent from the unselected /quote/ HTML that QUIC.cloud learns from. They
   survive only because /quote/ is excluded from UCSS (optm-ucss_exc, deploy
   2026-09-11). If that exclusion is ever lifted, whitelist them. */
/* The tiles section and the form section are adjacent .section blocks; drop
   the stacked 80px + 80px so the form sits right under the tiles. */
.quote-tiles { padding-bottom: 0; }
.quote-tiles + .form-section { padding-top: var(--space-40); }

.quote-tiles__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-12);
  margin-top: var(--space-32);
}
@media (min-width: 768px) {
  .quote-tiles__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-16);
  }
}

.service-card--tile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 14px 16px 14px 20px;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}
.service-card--tile .service-title { margin: 0; }
/* Selected = orange accent bar + the "Selected" badge (owner 2026-09-11: no full
   outline). The border stays 1px, so nothing shifts between states. */
.service-card--tile[aria-current="true"]::before {
  background: var(--color-orange);
  opacity: 1;
  width: 4px;
}
.service-card--tile:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.quote-tile__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(31, 58, 95, 0.08);
  border-radius: 4px;
  padding: 2px 8px;
}

/* School sub-choice: a captioned segmented pair under the tile row, sized as a
   sub-control (13px) so it reads as part of the School tile, not a page tab bar. */
.quote-tiles__subswitch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-12);
  margin-top: var(--space-16);
}
.quote-tiles__subswitch-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-gray);
}
.quote-tiles__subswitch-links {
  display: flex;
  flex: 1 1 320px;
  max-width: 480px;
}
.quote-tiles__subswitch-links a {
  flex: 1;
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: #fff;
  border: 1px solid var(--color-card-border);
  padding: 10px 8px;
  line-height: 1.3;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote-tiles__subswitch-links a:first-child { border-radius: 4px 0 0 4px; }
.quote-tiles__subswitch-links a:last-child { border-radius: 0 4px 4px 0; border-left: none; }
.quote-tiles__subswitch-links a[aria-current="true"] {
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
}
.quote-tiles__subswitch-links a:hover { filter: brightness(0.95); }
.quote-tiles__subswitch-links a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  position: relative;
  z-index: 1;
}

/* Reload lands on the form column, clear of the sticky header. */
#quote-form { scroll-margin-top: 100px; }
.admin-bar #quote-form { scroll-margin-top: 132px; }
@media screen and (max-width: 782px) {
  .admin-bar #quote-form { scroll-margin-top: 146px; }
}

/* ---------- NAP block + 2-column grid (contact + quote) ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}

.nap-block {
  background: #fff;
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 28px;
  position: sticky;
  /* Clear the sticky site-header (~77px scrolled) + a 23px gap. */
  top: 100px;
}
/* Logged-in admin bar (32px desktop) pushes the header down — match it. */
.admin-bar .nap-block { top: 132px; }

.nap-block__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--color-primary);
  margin: 0 0 20px;
}

.nap-block__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 16px;
}
.nap-block__group:last-child { margin-bottom: 0; }

.nap-block__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
}

.nap-block__value {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  font-style: normal;
  line-height: 1.5;
}
a.nap-block__value:hover { color: var(--color-primary); }

.contact-form-block__intro {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-card);
  margin: 0 0 24px;
}

.contact-form-block__fallback {
  background: #fff;
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 20px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-card);
  margin: 0;
}

.contact-map {
  margin-top: 48px;
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  overflow: hidden;
}
.contact-map iframe {
  width: 100%;
  height: 360px;
  display: block;
  border: 0;
}

@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .nap-block { position: static; }
  /* When stacked, put the form first so visitors reach it without scrolling
     past the NAP block. CSS order only — DOM order stays NAP-then-form, so
     Zaraz selectors, the careers #apply anchor, and tab order are unchanged. */
  .contact-grid .contact-form-block { order: -1; }
}

/* ---------- Privacy / policy page ---------- */

.policy-page__meta {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-gray);
  margin: 0 0 32px;
}

.policy-section {
  margin: 0 0 32px;
}
.policy-section:last-child { margin-bottom: 0; }

.policy-section__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: 0 0 12px;
}

.policy-section__body p,
.policy-section__body ul,
.policy-section__body ol {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0 0 12px;
}
.policy-section__body ul,
.policy-section__body ol {
  padding-left: 20px;
}
.policy-section__body li {
  margin: 0 0 4px;
}
.policy-section__body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- DevFlow Forms styling ---------- */

.devflow-form {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
}

.devflow-field {
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.devflow-field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

/* Required-field marker (plugin renders it inside the label). */
.devflow-field__required {
  color: var(--color-orange);
  font-weight: 700;
}

.devflow-form input[type="text"],
.devflow-form input[type="email"],
.devflow-form input[type="tel"],
.devflow-form input[type="number"],
.devflow-form input[type="date"],
.devflow-form input[type="url"],
.devflow-form select,
.devflow-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-card-border);
  border-radius: 6px;
  padding: 10px 14px;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
/* Enumerated, not a bare `input:focus`: that also caught checkboxes and radios
   and left them wearing a rectangular ring after a mouse click. */
.devflow-form input[type="text"]:focus,
.devflow-form input[type="email"]:focus,
.devflow-form input[type="tel"]:focus,
.devflow-form input[type="number"]:focus,
.devflow-form input[type="date"]:focus,
.devflow-form input[type="url"]:focus,
.devflow-form select:focus,
.devflow-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.12);
}

.devflow-form textarea { min-height: 120px; resize: vertical; }

.devflow-form__submit {
  background: var(--color-orange);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: auto;
  align-self: flex-start;
  transition: filter 180ms ease;
}
.devflow-form__submit:hover { filter: brightness(0.85); }
.devflow-form__submit:active { filter: brightness(0.75); transition-duration: 60ms; }

.devflow-field__error {
  color: #c0392b;
  font-size: 13px;
}
.devflow-field--invalid input,
.devflow-field--invalid select,
.devflow-field--invalid textarea {
  border-color: #c0392b;
}

/* ---------- Choice groups (checkbox + radio) ---------- */
/* Markup comes from DevFlow Forms 0.3.3 and is fixed; these are its classes,
   not theme-invented ones. .devflow-field__control is NOT usable as a hook - it
   is on text inputs and the submit button too, so every rule below keys on the
   input type. Choice fields exist only in the five quote forms. */

/* The plugin wraps the fieldset in .devflow-field, which already owns the 18px
   rhythm and the 6px gap down to the error line, so the fieldset itself must
   stay flat. min-inline-size:0 is a separate fix from the minmax(0,1fr) below:
   the UA puts min-inline-size:min-content on fieldset, which would stop the
   grid shrinking on a phone and push the page into horizontal overflow.
   Do NOT give this rule display:flex or grid - the legend below is floated and
   the float plus its clear both stop working inside a flex/grid container. */
.devflow-field__group {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

/* Floated out of the legend slot so it behaves as a plain block: a rendered
   legend honours width and margin inconsistently, and floating kills the notch
   for good rather than only while border:0 holds. Typography is inherited from
   .devflow-field__label, so it matches every other field label. */
.devflow-field__group > .devflow-field__label {
  display: block;
  float: left;
  width: 100%;
  padding: 0;
  margin: 0;
  line-height: 1.3;
}

/* Columns instead of one cramped row: 5 weekdays read as 3+2, a 3-option radio
   as one row. One per row on a phone so each is a full-width target.
   The breakpoints guard the FORM COLUMN, which does not grow with the viewport:
   .contact-grid keeps its 320px sidebar down to 1024px, so the column is at its
   narrowest (~490px) just above that, and jumps to ~865px once the sidebar
   drops. Hence 2 columns already at 1100px, not at 768px. */
.devflow-field__group .devflow-field__control-wrap {
  clear: left;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4) var(--space-24);
}
@media (max-width: 1100px) {
  .devflow-field__group .devflow-field__control-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 479px) {
  .devflow-field__group .devflow-field__control-wrap {
    grid-template-columns: 1fr;
  }
}

/* The label takes the rest of the row, so the text is the target alongside the
   box. The plugin wraps each choice in a <span>, not a <label>, so the 10px gap
   and any empty space past a short label are NOT clickable - a full-row target
   would need a plugin-side markup change. flex-start pins the box to the first
   line when a label wraps. */
.devflow-field__choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
}
.devflow-field__choice-label {
  flex: 1 1 auto;
  padding: 12px 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--color-text);
  cursor: pointer;
}

/* appearance:none on the REAL control rather than a hidden input plus a fake
   box: the native control stays in the a11y tree, stays keyboard operable and
   takes the focus ring itself. Scoped by type because .devflow-field__control
   is also on text inputs and on the submit button. */
.devflow-form input[type="checkbox"],
.devflow-form input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 12px 0 0;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  /* Navy at 62% = 3.5:1 on white. The WCAG floor for a control boundary is 3:1;
     the extra margin is for antialiasing on a 1px edge. The card border used on
     text fields is invisible at this size. */
  border: 1px solid rgba(31, 58, 95, 0.62);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}
.devflow-form input[type="checkbox"] { border-radius: 4px; }
.devflow-form input[type="radio"] { border-radius: 50%; }

/* Checked reads the same in both, so the square/round shape alone carries the
   one-vs-many signal. Marks are background images: generated content on a
   replaced element is not something to build on. */
.devflow-form input[type="checkbox"]:checked,
.devflow-form input[type="radio"]:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
.devflow-form input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.6 8.4l2.9 2.9 5.9-6' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px 14px;
}
.devflow-form input[type="radio"]:checked {
  background-image: radial-gradient(circle at center, #ffffff 0 3.5px, rgba(255, 255, 255, 0) 3.6px);
}

/* Driven from the row so pointing at the label lights the box too. Checked
   hover derives from navy with brightness, no second hex: brightness clamps at
   white, so the mark itself does not wash out. */
.devflow-field__choice:hover input[type="checkbox"],
.devflow-field__choice:hover input[type="radio"] {
  border-color: var(--color-primary);
}
.devflow-form .devflow-field__choice:hover input[type="checkbox"]:checked,
.devflow-form .devflow-field__choice:hover input[type="radio"]:checked {
  filter: brightness(1.15);
}

.devflow-form input[type="checkbox"]:focus-visible,
.devflow-form input[type="radio"]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Not colour-only: the boundary also goes 1px -> 2px (no layout shift,
   box-sizing is border-box) and .devflow-field__error states it in words.
   The plugin's JS puts --invalid on the .devflow-field wrapper, an ancestor of
   the input, so this matches. Specificity here TIES the :checked and :hover
   rules above (all 0,3,1): it wins on declaration order alone, so this block
   must stay last. Do not move it up next to the other --invalid rules. */
.devflow-form .devflow-field--invalid input[type="checkbox"],
.devflow-form .devflow-field--invalid input[type="radio"] {
  border-color: #c0392b;
  border-width: 2px;
}

/* Forced colors drops background-images that are not url-based and repaints
   background-color, which would erase the radio dot (a gradient) and leave a
   checked radio identical to an unchecked one. Hand both controls back to the
   OS there; it draws a correct control in every high-contrast theme. */
@media (forced-colors: active) {
  .devflow-form input[type="checkbox"],
  .devflow-form input[type="radio"] {
    appearance: auto;
    -webkit-appearance: auto;
  }
}

/* The submit is a <button>, so the input-only focus rule never gave it a
   keyboard ring. */
.devflow-form__submit:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.devflow-form__response {
  font-size: 14px;
  margin: 16px 0 0;
}
.devflow-form__response.is-sent,
.devflow-form__response.is-failed,
.devflow-form__response.is-invalid,
.devflow-form__response.is-spam {
  border: 1px solid var(--color-card-border);
  border-radius: 6px;
  padding: 12px 16px;
}
.devflow-form__response.is-failed,
.devflow-form__response.is-invalid,
.devflow-form__response.is-spam {
  border-color: #c0392b;
  color: #c0392b;
  background: rgba(192, 57, 43, 0.06);
}
.devflow-form__response.is-sent {
  border-color: var(--color-green);
  color: var(--color-green);
  background: rgba(76, 175, 80, 0.08);
}

/* ---------- Event Rates (hidden price sheet) ---------- */

.rates-section__title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-primary);
  margin: 0 0 var(--space-16);
}
.rates-section__intro {
  max-width: 720px;
  color: var(--color-text-gray);
  margin: 0 0 var(--space-40);
}

.rate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-24);
}

.rate-card {
  background: #fff;
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: var(--space-32);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rate-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--color-primary);
  opacity: 0.25;
}
.rate-card--accessible::before { background: var(--color-orange); opacity: 0.9; }

.rate-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}
.rate-card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
}
.rate-card__icon { display: inline-flex; opacity: 0.9; }
.rate-card__svg { width: 30px; height: 30px; }

.rate-card__title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--color-primary);
  margin: 0 0 var(--space-8);
}
.rate-card__desc {
  color: var(--color-text-card);
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 var(--space-24);
}

/* Fare formula: base fare + per-mile, with an orange connector. */
.rate-fare { margin-top: auto; }
.rate-fare__item { display: flex; flex-direction: column; }

.rate-fare__price {
  display: flex;
  align-items: flex-start;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.rate-fare__cur { font-size: 20px; padding-top: 4px; }
.rate-fare__int { font-size: 44px; }
.rate-fare__dec { font-size: 24px; padding-top: 4px; }

.rate-fare__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-gray);
  margin-top: 6px;
}

.rate-fare__plus {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  margin: var(--space-12) 0;
}
.rate-fare__plus-sign {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 800;
  color: var(--color-orange);
  line-height: 1;
}
.rate-fare__plus-line {
  flex: 1;
  height: 1px;
  background: var(--color-card-border);
}

.rate-fare__total {
  margin: var(--space-20) 0 0;
  padding-top: var(--space-12);
  border-top: 1px dashed var(--color-card-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-gray);
}
.rate-fare__total strong { color: var(--color-primary); font-weight: 800; }

.rate-note {
  margin: var(--space-32) 0 0;
  padding: var(--space-20) var(--space-24);
  background: rgba(31, 58, 95, 0.04);
  border-left: 3px solid var(--color-secondary);
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  color: var(--color-text-gray);
}

.rates-cta__email { margin: var(--space-16) 0 0; }
.rates-cta__email a {
  color: var(--color-eyebrow-dark);
  text-decoration: none;
  font-weight: 600;
}
.rates-cta__email a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 768px) {
  .rate-grid { grid-template-columns: 1fr; }
  .rates-section__title { font-size: 32px; }
}

/* ---------- 404 / page not found ---------- */

.error-404 { position: relative; overflow: hidden; }
.error-404 .container { position: relative; z-index: 1; }

.error-404__ghost {
  position: absolute;
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 220px;
  line-height: 1;
  color: #fff;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.error-404__recovery { text-align: center; }
.error-404__heading {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 var(--space-32);
}

.error-404__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-32);
  margin-bottom: var(--space-40);
}
.error-404__link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 2px;
  transition: border-color 180ms ease;
}
.error-404__link:hover { border-bottom-color: var(--color-orange); }
.error-404__link:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

.error-404__cta { margin: 0 auto; }

@media (max-width: 768px) {
  .error-404__ghost {
    top: auto;
    bottom: 8px;
    right: 50%;
    transform: translateX(50%);
    font-size: 140px;
    opacity: 0.04;
  }
  .error-404__nav {
    flex-direction: column;
    gap: var(--space-24);
    align-items: center;
  }
}

/* Contextual in-body note linking sibling pages (industries, coverage). */
.section-note {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-gray);
  margin-top: var(--space-32);
  text-align: center;
}
.section-note__link {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 150ms ease;
}
.section-note__link:hover {
  color: var(--color-secondary);
}

/* ============================================================
   Event section: hub /event-transportation/ + 3 spoke pages
   (wedding-transportation / corporate-transportation / other-event-transportation)
   ============================================================ */

/* Inline links inside prose paragraphs and FAQ answers (rendered by
   bst_render_inline_links). Same treatment as .section-note__link. */
.prose a,
.faq-answer a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 150ms ease;
}
.prose a:hover,
.faq-answer a:hover { color: var(--color-secondary); }

/* Hub cards reuse .service-card; the --hub modifier only adds room for the
   longer descriptions. Whole card is clickable via .service-card__link.
   .event-types-grid = event hub (3 cards across the full row).
   .hub-cards-grid = school hub, where the cards live inside one column of
   .hub-audiences, so they stack in that column instead of forming a row. */
.event-types-grid,
.hub-cards-grid {
  display: grid;
  gap: var(--space-16);
}
.event-types-grid { grid-template-columns: repeat(3, 1fr); }
.hub-cards-grid { grid-template-columns: 1fr; }
@media (max-width: 1024px) {
  .event-types-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .event-types-grid { grid-template-columns: 1fr; }
}

.service-card--hub { padding: 28px 24px; }

/* School hub: the two audiences in one band (see page-school-transportation.php).
   Families leans slightly wider - it is the column that converts - and the
   columns are top-aligned so both headings share a baseline. */
.hub-audiences__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  column-gap: var(--space-64);
  align-items: start;
}
/* Column headings sit one step below the page's other section titles (38px):
   they label halves of one band, not sections of their own. 32px is the step
   the type scale already uses at <= 1024px, so nothing new is introduced and
   the mobile size stays exactly what it was. */
.hub-audiences .section-title {
  font-size: 32px;
  margin-bottom: var(--space-16);
}
/* districts_text has an EMPTY default, so clearing it in wp-admin really does
   drop that column. The survivor then spans the row but keeps the reading
   measure, instead of stretching one card across the full 1080px. */
.hub-audiences__col:only-child {
  grid-column: 1 / -1;
  max-width: var(--measure-text, 720px);
}

/* Stacked below 900px: under that the two columns are too narrow to hold a
   heading on one line, and they desync. */
@media (max-width: 900px) {
  .hub-audiences__grid {
    grid-template-columns: 1fr;
    /* Reproduces the gap the two separate sections used to make (56px of
       .section padding on each side of the old boundary). Revisit if that
       mobile padding ever changes. */
    row-gap: 112px;
  }
}

/* Tighten the vertical rhythm: hero already opens the page, so the intro
   does not need the full 80px section padding below it. */
.event-intro,
.hub-intro { padding-bottom: 0; }

/* Districts block on the school hub: prose plus one outline button. Navy
   outline on the light surface (the orange outline of .closing-cta__quote
   is tuned for the dark CTA band). Own class on purpose: a Zaraz decision
   for it is separate from event 23. */
.hub-districts__action { margin: var(--space-24) 0 0; }
.hub-districts__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 12px 20px;
  border: 2px solid var(--color-primary);
  border-radius: 4px;
  text-align: center;
  transition: background-color 180ms ease, color 180ms ease;
}
.hub-districts__cta:hover { background: var(--color-primary); color: #fff; }
.hub-districts__cta:active { filter: brightness(0.85); transition-duration: 60ms; }
.hub-districts__cta:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Lists inside prose (bst_render_prose): steps and checklists on the
   school pages. Same type and measure as .prose p. */
.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 24px;
  max-width: var(--measure-text, 720px);
}
.prose ul:last-child,
.prose ol:last-child { margin-bottom: 0; }
.prose li {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 8px;
}
.prose li:last-child { margin-bottom: 0; }

/* Titled prose sections on the spoke pages (template-parts/spoke.php). */
.spoke-section + .spoke-section { margin-top: var(--space-48); }

.spoke-section__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: 0 0 var(--space-16);
}

/* Numbered booking steps on the hub. */
.booking-steps {
  list-style: none;
  counter-reset: bst-step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-24);
}

.booking-steps__item {
  counter-increment: bst-step;
  position: relative;
  padding-left: 56px;
}
.booking-steps__item::before {
  content: counter(bst-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-steps__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}

/* ============================================================
   Floating contact button, phones only (theme 2.9.0, v2 in 2.10.0)
   Design approved 2026-11-03 (v2 the same day), status/design.md.
   Markup: template-parts/contact-fab.php, rendered by footer.php.
   - The menu is a native popover: the browser hides it with
     [popover]:not(:popover-open) { display: none }. Never set
     `display` on .contact-fab__menu, an author rule would beat
     that and leave the menu always open. The menu carries only its
     corner placement (inset); the layout lives on .contact-fab__panel.
   - The wrapper carries `hidden`; the phone rule below overrides
     the UA [hidden] display, so without this stylesheet nothing
     shows.
   - The only JS-added class is .contact-fab--compact. `.contact-fab`
     is in the LiteSpeed optm-ucss_whitelist (it matches every
     .contact-fab* rule, CLAUDE.md gotchas).
   - Load-bearing for Zaraz: a.contact-fab__call, a.contact-fab__quote.
   ============================================================ */

.contact-fab { display: none; }

@media (max-width: 768px) {
  .contact-fab {
    /* One source for the offsets, so the X of the open menu sits on the
       button's exact spot. On iOS 26 Safari (floating toolbar) a fixed
       bottom is measured from the top of the toolbar, which already lifts
       the button off the screen edge (owner's iPhone, 2026-11-03: the
       earlier 60px read high); the same holds for Chrome Android with its
       address bar at the bottom. env() stays 0 until the viewport meta
       gets viewport-fit=cover. */
    --fab-right: 16px;
    --fab-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    display: block;
    position: fixed;
    right: var(--fab-right);
    bottom: var(--fab-bottom);
    z-index: 90; /* under the sticky header (100) */
  }

  /* The hamburger panel wins while it is open. visibility, not display:
     display: none would restart the pulse every time the panel closes. */
  .site-header.nav-open ~ .contact-fab { visibility: hidden; }

  /* At the page end the last footer line stays clear of the button:
     28px footer padding + 56px button + 16px offset. */
  .site-footer:has(~ .contact-fab) { padding-bottom: 100px; }

  /* Full: an orange pill with a light rim, the phone in a navy disc, the
     label in capitals. A fixed width, so it can animate to the round
     state (auto cannot). The ::after is the pulse ring. */
  .contact-fab__toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    width: 212px; /* fits "CALL OR QUOTE" (about 125px) with room; a translation needs its own width */
    height: 56px;
    padding: 0 14px 0 4px;
    border: 2px solid var(--color-bg);
    border-radius: 28px;
    background: var(--color-orange);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(31, 58, 95, 0.35), 0 2px 4px rgba(31, 58, 95, 0.22);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .contact-fab__toggle::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    pointer-events: none;
  }
  .contact-fab__toggle:active { filter: brightness(0.75); }
  /* Two tones, so the ring shows over navy and light sections alike. */
  .contact-fab__toggle:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 0;
    box-shadow: 0 0 0 6px var(--color-bg), 0 6px 18px rgba(31, 58, 95, 0.35);
  }

  .contact-fab__disc {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-bg);
  }

  .contact-fab__icon {
    width: 22px;
    height: 22px;
    flex: none;
  }

  .contact-fab__label {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis; /* large text settings: an ellipsis, not a cut letter */
    text-align: center;
  }

  /* Round while the visitor scrolls down (main.js): the light rim stays,
     the ring inside it turns light blue and the disc orange with a navy
     phone (owner 2026-11-03: a navy disc vanished on the navy footer).
     4px padding + 2px border on both sides center the 44px disc in 56px.
     The toggle's aria-label keeps its name when the label fades out. */
  .contact-fab--compact .contact-fab__toggle {
    width: 56px;
    gap: 0;
    padding-right: 4px;
    background: var(--color-secondary);
  }
  .contact-fab--compact .contact-fab__disc {
    background: var(--color-orange);
    color: var(--color-primary);
  }
  .contact-fab--compact .contact-fab__label { opacity: 0; }

  /* Open: the dim is ::backdrop, the menu box holds only the panel, in the
     button's corner (2.10.1, like basslynn.com).
     - The strip under the floating iOS 26 Safari toolbar stayed light in
       2.9.x-2.10.1. 2.10.1 moved the full-screen tap layer off the bottom
       edge on a guess (Safari colors that strip from a fixed box at the
       edge); that alone did not help. The confirmed cause was the fade-in
       of the dim (see the reduced-motion block below; owner's iPhone,
       2026-11-03). Whether a box at the edge matters too is not known; the
       corner box stays, as on basslynn.com.
     - The UA stylesheet gives :popover-open::backdrop pointer-events: none
       !important (HTML spec, Rendering), so a tap on the dim reaches the
       page. The browser closes the menu on it (light dismiss) and main.js
       swallows the tap, so the link or button under it does not react,
       and stops the page scrolling under the dim.
     - The menu box takes no taps either (pointer-events: none, inherited
       by the panel): a tap on the hours line or between the actions is a
       tap on the dim. Only the actions and the X take them.
     - The X sits exactly on the button's spot, the actions above it: the
       box is placed against the viewport with the button's own offsets
       (inherited custom properties). overflow stays visible, or the
       shadows of the actions would be cut at the box edge. */
  .contact-fab__menu {
    inset: auto var(--fab-right) var(--fab-bottom) auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-primary);
    overflow: visible;
    pointer-events: none;
  }
  .contact-fab__menu::backdrop { background: rgba(31, 58, 95, 0.72); }

  /* The X takes the button's place: while the menu is open the button
     itself is see-through, or the wide pill would show dimmed beside the
     X. opacity, not visibility: a hidden element loses focus, and a
     screen reader cursor would drop to the page (CMS Developer review).
     A tap on the see-through pill beside the X closes the menu: the
     button is the menu's invoker, so the browser counts it as inside and
     its own click hides the menu. */
  .contact-fab:has(.contact-fab__menu:popover-open) .contact-fab__toggle { opacity: 0; }

  /* Keyboard: focus stays on the see-through button when the menu opens
     (and comes back to it on Shift+Tab), so its ring is invisible. The X
     on its spot shows the ring instead; Enter on the button closes the
     menu like the X. Reachable on a desktop at 200% zoom, which gets the
     phone layout (CMS Developer review). */
  .contact-fab:has(.contact-fab__toggle:focus-visible) .contact-fab__close {
    outline: 3px solid var(--color-orange);
    outline-offset: 3px;
  }

  .contact-fab__panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-12);
  }

  .contact-fab__hours {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-bg);
    text-align: right;
  }

  .contact-fab__action {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    box-sizing: border-box;
    width: 240px;
    min-height: 56px;
    padding: 0 var(--space-20);
    border-radius: 28px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.25);
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .contact-fab__quote,
  .contact-fab__quote:hover { background: var(--color-bg); color: var(--color-primary); }
  .contact-fab__call,
  .contact-fab__call:hover { background: var(--color-orange); color: var(--color-primary); }
  .contact-fab__action:active { filter: brightness(0.75); }

  .contact-fab__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.25);
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .contact-fab__action:focus-visible,
  .contact-fab__close:focus-visible {
    outline: 3px solid var(--color-orange);
    outline-offset: 3px;
  }
}

/* Hover tint only where a pointer can hover: iOS keeps :hover on the last
   tapped element, which would leave the closed button dimmed. */
@media (max-width: 768px) and (hover: hover) {
  .contact-fab__toggle:hover,
  .contact-fab__action:hover { filter: brightness(0.85); }
}

/* No Popover API (iOS 16 and older): the menu would render open over the
   page until main.js removes the button, and for good if the JS fails. */
@supports not selector(:popover-open) {
  .contact-fab { display: none; }
}

@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  /* Two calm pulses 3s after the button first shows, then still (owner
     2026-11-03, "no pulsation like BASS"). A spread shadow, so the ring
     follows the pill and the circle alike. If UCSS drops the keyframes the
     ring just never shows. */
  .contact-fab__toggle::after { animation: contact-fab-pulse 1.4s ease-out 3s 2; }

  /* Full <-> round: the pill narrows, the label fades out first and back
     in after the pill opens. The button is fixed, so only its own box
     re-lays out. */
  .contact-fab__toggle { transition: width 240ms cubic-bezier(0.2, 0, 0, 1), gap 240ms cubic-bezier(0.2, 0, 0, 1), padding 240ms cubic-bezier(0.2, 0, 0, 1), background-color 240ms ease; }
  .contact-fab__disc { transition: background-color 240ms ease, color 240ms ease; }
  .contact-fab__label { transition: opacity 140ms linear 100ms; }
  .contact-fab--compact .contact-fab__label { transition: opacity 100ms linear; }

  /* Animations restart every time the popover goes from display:none to shown.
     The dim (::backdrop) has none on purpose: iOS 26 Safari takes the color of
     the strip under its floating toolbar from the dim at the moment it shows
     and does not update it, so a fade-in from transparent left that strip light
     (owner's iPhone 2026-11-03, confirmed with Reduce Motion on; basslynn.com
     shows its dim at once). Do not add a fade back. */
  .contact-fab__call,
  .contact-fab__quote,
  .contact-fab__hours { animation: contact-fab-rise 200ms ease-out both; }
  .contact-fab__quote { animation-delay: 50ms; }
  .contact-fab__hours { animation-delay: 100ms; }
}

@keyframes contact-fab-pulse {
  from { box-shadow: 0 0 0 0 rgba(244, 162, 97, 0.9); }
  to { box-shadow: 0 0 0 18px rgba(244, 162, 97, 0); }
}

@keyframes contact-fab-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media print {
  .contact-fab { display: none; }
}
