/*
 * Steve's Towing — stylesheet
 * One shared file, linked from every page. Organized top-to-bottom as:
 * reset -> design tokens -> base elements -> header/nav -> homepage
 * sections -> shared components -> footer -> responsive breakpoints ->
 * inner-page (service/service-area) layout.
 */

/* ----------------------------------------------------------------------
   RESET
   ---------------------------------------------------------------------- */
*:where(:not(iframe,canvas,img,svg,video):not(svg *)) {
  all: unset;
  display: revert;
}

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

ol,
ul {
  list-style: none;
}

img {
  max-width: 100%;
}

table {
  border-collapse: collapse;
}

textarea {
  white-space: revert;
}

/* ----------------------------------------------------------------------
   DESIGN TOKENS (CSS custom properties)
   ---------------------------------------------------------------------- */
:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #072039;
  background-color: #f4f7fb;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #f7fbff;
  --primary: #071a2b;
  --accent: #ffd05a;
  --steel: #476d97;       /* light blue from the top of the logo lettering */
  --steel-dark: #3e5f84;
  --accent-dark: #b8860b;  /* decorative gold: lines, icons (3:1 non-text) */
  --gold-text: #986f00;    /* gold for small text on white: 4.5:1 (WCAG AA) */
  --radius-card: 20px;     /* cards, photos, panels */
  --focus-ring: 3px solid var(--steel-dark);
  --text-dark: #072039;
  --muted: #586873;
  --border: #e6edf3;
}

/* ----------------------------------------------------------------------
   BASE ELEMENT STYLES
   ---------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f9fb 0%, #e9eef4 100%);
  color: var(--text-dark);
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-weight: 700;
}

button,
button a,
.cta-button,
.secondary-button {
  border: none;
  cursor: pointer;
  font: inherit;
}

/* ----------------------------------------------------------------------
   LAYOUT CONTAINER
   ---------------------------------------------------------------------- */
.container {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

/* ----------------------------------------------------------------------
   SITE HEADER & PRIMARY NAVIGATION
   ---------------------------------------------------------------------- */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 1.4rem 0;
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* Scrolled: the navy frame drops away and the header itself becomes the white bar */
.site-header.is-scrolled {
  background: #ffffff;
  padding: 0.7rem 0;
  box-shadow: 0 10px 24px rgba(4, 15, 26, 0.14);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.7rem 0.9rem 0.7rem 1.4rem;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(4, 15, 26, 0.1);
  transition: padding 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease, background-color 0.3s ease;
}

/* Scrolled: the pill flattens into the surrounding white bar, same width so the logo doesn't shift */
.site-header.is-scrolled .header-inner {
  border-radius: 0;
  padding: 0.4rem 0.9rem 0.4rem 1.4rem;
  background: transparent;
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  margin-right: auto;
}

.brand img {
  width: 76px;
  height: auto;
  transition: width 0.3s ease, height 0.3s ease;
}

.site-header.is-scrolled .brand img {
  width: 88px;
  height: auto;
}

.main-nav .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
}

.main-nav .nav-links li {
  list-style: none;
}

.main-nav .nav-links a {
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-size: 1.02rem;
  transition: background-color 0.25s ease, color 0.25s ease;
  color: var(--primary);
  font-weight: 600;
}

.main-nav .nav-links > li > a:hover,
.main-nav .nav-links > li > a:focus-visible {
  background-color: var(--primary);
  color: var(--accent);
}

.main-nav .nav-links > li > a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.main-nav .nav-links a.nav-cta-button {
  background-color: var(--primary);
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.35s ease, background-color 0.25s ease;
}

/* Navy pill on yellow: gold glow matching the button's own text color */
.main-nav .nav-links a.nav-cta-button:hover,
.main-nav .nav-links a.nav-cta-button:focus-visible {
  background-color: #0d2c47;
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 3px rgba(255, 208, 90, 0.45),
    0 0 18px 3px rgba(255, 208, 90, 0.55),
    0 12px 30px rgba(7, 26, 43, 0.3);
}

.main-nav .nav-links li.has-dropdown {
  position: relative;
}

/* Dropdown chevron drawn with borders so it scales with the link text */
.main-nav .nav-links li.has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-left: 0.5rem;
  border-right: 0.16em solid currentColor;
  border-bottom: 0.16em solid currentColor;
  transform: translateY(-0.28em) rotate(45deg);
  transition: transform 0.2s ease;
}

.main-nav .nav-links li.has-dropdown:hover > a::after,
.main-nav .nav-links li.has-dropdown:focus-within > a::after {
  transform: translateY(0.05em) rotate(225deg);
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu li {
  list-style: none;
}

.main-nav .nav-links .dropdown-menu a {
  color: var(--primary);
  font-weight: 600;
}

/* Desktop: dropdown flyout menus */
@media (min-width:769px) {
  .dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 0.15rem;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    padding: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(7, 26, 43, 0.12);
    z-index: 30;
  }

  li.has-dropdown:hover .dropdown-menu,
  li.has-dropdown:focus-within .dropdown-menu {
    display: flex;
  }

  .dropdown-menu a {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    white-space: nowrap;
    transition: background-color 0.15s ease;
  }

  .dropdown-menu a:hover,
  .dropdown-menu a:focus-visible {
    background-color: var(--accent);
  }
}

.nav-toggle {
  display: none;
}

/* Mobile: collapse dropdown submenus into an accordion */
@media (max-width:768px) {
  .dropdown-menu {
    overflow: hidden;
    max-height: 0;
    gap: 0.15rem;
    margin-top: 0.5rem;
    padding: 0 0.4rem;
    background: #ffffff;
    border-radius: 12px;
    transition: max-height 0.25s ease, padding 0.25s ease;
  }

  .has-dropdown.dropdown-open .dropdown-menu {
    max-height: 24rem;
    padding: 0.4rem;
  }

  .dropdown-menu a {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    color: var(--primary);
    transition: background-color 0.15s ease;
  }

  .dropdown-menu a:hover,
  .dropdown-menu a:focus-visible {
    background-color: var(--accent);
    color: var(--light);
  }

  .has-dropdown > a::after {
    display: inline-block;
    transition: transform 0.2s ease;
  }

  .main-nav .nav-links li.has-dropdown.dropdown-open > a::after {
    transform: translateY(0.05em) rotate(225deg);
  }
}

/* ----------------------------------------------------------------------
   HOMEPAGE HERO
   ---------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6.5rem;
  background: linear-gradient(160deg, #051422 0%, #071a2b 55%, #0f2d47 100%);
  color: #ffffff;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  padding-bottom: 3rem;
}

.hero-text {
  display: grid;
  gap: 1.25rem;
  max-width: 34rem;
}

.hero-media img { 
  width: 100%;
  display: block;
  max-height: 380px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 60px rgba(0, 0, 0, 0.4);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 110px;
  z-index: 1;
  display: block;
  line-height: 0;
}

/* ----------------------------------------------------------------------
   SHARED TYPOGRAPHY: eyebrow, headings, hero copy
   ---------------------------------------------------------------------- */
.eyebrow {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin: 0;
}

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

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

.hero h1,
.page-hero h1,
.section-heading h2,
.section h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-heading h2,
.section h2 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-dark);
}

/* Tricolor accent bar under every section title: steel, yellow, navy.
   The title box shrinks to its text, so the bar spans exactly the title's width.
   Left-aligned titles sit left; centered contexts set --bar-mx: auto */
.section-heading h2,
.about-grid h2,
.about-story-copy h2 {
  width: fit-content;
  max-width: 100%;
  margin-left: var(--bar-mx, 0);
  margin-right: var(--bar-mx, 0);
  text-wrap: balance;
}

/* Secondary sections: a short single-colour bar under the title */
.section-heading h2::after,
.about-grid h2::after,
.about-story-copy h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  margin-top: 1.1rem;
  margin-left: var(--bar-mx, 0);
  margin-right: var(--bar-mx, 0);
  border-radius: 999px;
  background: var(--bar-simple, var(--steel));
}

/* Major sections keep the signature tricolor bar, spanning the title:
   the first section after each page banner, the About story, and any
   section marked .section-major. Fixed 10px gaps keep segments crisp. */
.hero + .section .section-heading h2::after,
.page-hero + .section .section-heading h2::after,
.section-major .section-heading h2::after,
.about-story-copy h2::after {
  width: 100%;
  height: 9px;
  margin-top: 1.25rem;
  background: linear-gradient(90deg,
    var(--bar-1, var(--steel)) 0 calc(62% - 5px),
    transparent calc(62% - 5px) calc(62% + 5px),
    var(--bar-2, var(--accent)) calc(62% + 5px) calc(90% - 5px),
    transparent calc(90% - 5px) calc(90% + 5px),
    var(--primary) calc(90% + 5px) 100%);
}

/* Titles may run wide; intro copy stays at a comfortable reading width */
.section-heading > p {
  max-width: 720px;
  margin-left: var(--bar-mx, 0);
  margin-right: var(--bar-mx, 0);
}

/* On yellow sections the yellow segment would vanish: white leads, then steel, then navy */
.section:not(.section-light) {
  --bar-1: #ffffff;
  --bar-2: var(--steel);
  --bar-simple: var(--primary);
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  margin-top: 0.25rem;
  line-height: 1.05;
}

.page-hero h1 {
  color: #ffffff;
}

.hero h1 {
  color: #ffffff;
}

.hero-copy {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 44rem;
}

.hero .hero-copy {
  color: rgba(255, 255, 255, 0.8);
}

.hero .secondary-button {
  background-color: #ffffff;
  color: var(--primary);
  border-color: transparent;
  border-radius: 999px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-hero-content .hero-actions {
  margin-top: 0.75rem;
}

.page-hero .secondary-button {
  background-color: #ffffff;
  color: var(--primary);
  border-color: transparent;
  border-radius: 999px;
  font-weight: 700;
}

/* ----------------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------------- */
.cta-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.35s ease, background-color 0.25s ease, color 0.25s ease;
}

.cta-button {
  background-color: var(--accent);
  color: var(--text-dark);
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  border-radius: 99px;
  box-shadow: 0 12px 30px rgba(2, 42, 64, 0.06);
}

.secondary-button {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
}

.cta-button:hover,
.secondary-button:hover,
.cta-button:focus-visible,
.secondary-button:focus-visible {
  transform: translateY(-2px);
}

/* Glows: a thin same-color ring, a tight bloom, then a wide soft haze */
.cta-button:hover,
.cta-button:focus-visible {
  box-shadow:
    0 0 0 3px rgba(255, 208, 90, 0.35),
    0 0 16px 2px rgba(255, 208, 90, 0.6),
    0 0 44px 8px rgba(255, 208, 90, 0.3);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow:
    0 0 0 3px rgba(7, 26, 43, 0.18),
    0 0 16px 2px rgba(7, 26, 43, 0.25),
    0 0 40px 6px rgba(7, 26, 43, 0.15);
}

/* Yellow sections: solid navy pill with a sliding arrow so it stands out
   against the yellow instead of reading as a thin outline */
.section:not(.section-light) .secondary-button {
  gap: 0.5rem;
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(7, 26, 43, 0.2);
}

.section:not(.section-light) .secondary-button::after {
  content: "\2192";
  transition: transform 0.2s ease;
}

.section:not(.section-light) .secondary-button:hover,
.section:not(.section-light) .secondary-button:focus-visible {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.6),
    0 0 18px 3px rgba(255, 255, 255, 0.55),
    0 12px 30px rgba(7, 26, 43, 0.3);
}

.section:not(.section-light) .secondary-button:hover::after,
.section:not(.section-light) .secondary-button:focus-visible::after {
  transform: translateX(4px);
}

/* White pill on dark heroes: keep navy text on hover (a light-grey fill plus
   the generic white hover text was unreadable) and add a soft white glow */
.hero .secondary-button:hover,
.hero .secondary-button:focus-visible,
.page-hero .secondary-button:hover,
.page-hero .secondary-button:focus-visible {
  background-color: #ffffff;
  color: var(--primary);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.25),
    0 0 16px 2px rgba(255, 255, 255, 0.45),
    0 0 44px 8px rgba(255, 255, 255, 0.2);
}

/* ----------------------------------------------------------------------
   PAGE SECTIONS: light/dark backgrounds & section headings
   ---------------------------------------------------------------------- */
/* Sections alternate the logo colors: .section-light is white, plain
   .section is brand yellow with navy text. */
.section {
  padding: clamp(5.5rem, 11vw, 9rem) 0;
  background: var(--accent);
}

.section-light {
  background: var(--surface);
}

/* Key phrase in a heading: steel-blue text */
.text-highlight {
  position: relative;
  display: inline-block;
  z-index: 0;
  white-space: nowrap;
}

.section h2 .text-highlight {
  color: var(--steel-dark);
}

/* Dark heroes: a yellow highlighter behind the phrase, navy text on top */
.page-hero h1 .text-highlight,
.hero h1 .text-highlight {
  padding: 0.02em 0.25em 0.08em;
  border-radius: 0.2em;
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 0 22px rgba(255, 208, 90, 0.3);
}

/* On yellow sections: a white marker highlight behind the phrase */
.section:not(.section-light) h2 .text-highlight {
  padding: 0.04em 0.28em 0.1em;
  border-radius: 0.22em;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(7, 26, 43, 0.12);
}


.section-heading {
  display: grid;
  gap: 1.25rem;
  max-width: 900px;
  /* Site-wide: section titles, bars and intros are centered */
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  --bar-mx: auto;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

/* A heading with nothing after it shouldn't add empty space to the section */
.section-heading:last-child {
  margin-bottom: 0;
}

/* Opt-in: center a section's heading, copy and badge pills */
.section-centered .section-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  --bar-mx: auto;
}

.awards-section .section-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  --bar-mx: auto;
}

#trust .section-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  --bar-mx: auto;
}

.service-area-page .section-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  --bar-mx: auto;
}

.section-heading p,
.section p,
.testimonial-copy,
.section-note {
  color: var(--muted);
  line-height: 1.75;
}

.section-heading p:has(> .cta-button, > .secondary-button),
.section .hero-actions {
  margin-top: 1rem;
}

/* Muted grey is too low-contrast on yellow, so use solid navy, a touch larger */
.section:not(.section-light) .section-heading p,
.section:not(.section-light) > .container > p,
.section:not(.section-light) .steps-list p,
.section:not(.section-light) .section-note {
  color: var(--text-dark);
  font-size: 1.05rem;
}

/* ----------------------------------------------------------------------
   ABOUT PAGE: two-column grid
   ---------------------------------------------------------------------- */
.about-grid,
.testimonials-panel {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

/* Only go 2-column when there are actually two blocks side by side
   (the About page). The homepage's #trust section reuses .about-grid
   with a single block and must stay full-width/centered instead. */
.about-grid:has(> div + div) {
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
}

.about-grid>div {
  display: grid;
  gap: 1rem;
  align-content: start;
}

/* ----------------------------------------------------------------------
   AWARD HONOR CARDS: navy medal, gold year, title, organization
   ---------------------------------------------------------------------- */
.honors {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  width: 100%;
  max-width: 1040px;
}

.honors-2 {
  max-width: 620px;
}

/* ----------------------------------------------------------------------
   AWARD TIMELINE: tricolor line, a year pill per award, card hanging below.
   Desktop runs left to right; phones switch to a vertical line on the left
   ---------------------------------------------------------------------- */
.honors-timeline {
  position: relative;
  padding-top: 4.25rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.honors-timeline::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--steel) 0 calc(55% - 4px), transparent calc(55% - 4px) calc(55% + 4px), var(--accent) calc(55% + 4px) calc(85% - 4px), transparent calc(85% - 4px) calc(85% + 4px), var(--primary) calc(85% + 4px));
}

/* Year pill sitting on the line */
.honors-timeline .honor-year {
  position: absolute;
  top: -4.25rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
  box-shadow: 0 0 0 4px var(--surface, #fff), 0 6px 14px rgba(7, 26, 43, 0.2);
}

/* Short connector from the pill down to the card */
.honors-timeline .honor::before {
  content: "";
  position: absolute;
  top: -2.05rem;
  left: 50%;
  width: 2px;
  height: 2.05rem;
  transform: translateX(-50%);
  background: rgba(71, 109, 151, 0.45);
}

@media (max-width: 768px) {
  .honors-timeline {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    padding: 0 0 0 2.25rem;
  }

  .honors-timeline::before {
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0.55rem;
    right: auto;
    width: 4px;
    height: auto;
    background: linear-gradient(180deg, var(--steel) 0 calc(55% - 4px), transparent calc(55% - 4px) calc(55% + 4px), var(--accent) calc(55% + 4px) calc(85% - 4px), transparent calc(85% - 4px) calc(85% + 4px), var(--primary) calc(85% + 4px));
  }

  /* Year pill sits on top of each card */
  .honors-timeline .honor {
    padding-top: 2.6rem;
  }

  .honors-timeline .honor-year {
    top: -0.95rem;
  }

  /* Dot on the line, level with the pill */
  .honors-timeline .honor::before {
    top: -0.45rem;
    left: -1.7rem;
    width: 14px;
    height: 14px;
    transform: none;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--primary);
  }
}

.honor > a {
  color: inherit;
  text-decoration: none;
}

.honor,
.honor > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.honor {
  position: relative;
  padding: 2rem 1.25rem 1.6rem;
  background: var(--surface, #fff);
  border-radius: 16px;
  border-top: 4px solid var(--steel);
  box-shadow: 0 0 0 1px rgba(7, 26, 43, 0.06), 0 12px 28px rgba(7, 26, 43, 0.1);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.honor:hover,
.honor:focus-within {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 3px rgba(255, 208, 90, 0.35),
    0 0 24px rgba(255, 208, 90, 0.45),
    0 18px 36px rgba(7, 26, 43, 0.16);
}

.honor-medal {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--accent), 0 0 0 7px rgba(71, 109, 151, 0.35);
}

.honor-medal svg {
  width: 28px;
  height: 28px;
  fill: var(--accent);
}

.honor-year {
  color: var(--gold-text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.honor-title {
  margin-top: 0.35rem;
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.honor-org {
  margin-top: 0.4rem;
  color: var(--muted, #4a5a6a);
  font-size: 0.9rem;
  line-height: 1.4;
}

.honor-link {
  margin-top: 0.9rem;
  color: var(--steel-dark, #3e5f84);
  font-size: 0.85rem;
  font-weight: 700;
}

.honor-linked:hover .honor-link,
.honor-linked:focus-within .honor-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.honor > a:focus-visible {
  outline: none;
}

/* ----------------------------------------------------------------------
   AWARD PHOTO RIBBON + LIGHTBOX MODAL
   ---------------------------------------------------------------------- */
.badge-photo-ribbon {
  position: relative;
  display: inline-flex;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.badge-photo-ribbon img {
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(7, 26, 43, 0.22);
  transition: box-shadow 0.3s ease;
}

.badge-photo-ribbon:hover img,
.badge-photo-ribbon:focus-visible img {
  box-shadow:
    0 0 0 3px rgba(255, 208, 90, 0.35),
    0 0 24px rgba(255, 208, 90, 0.55),
    0 18px 36px rgba(7, 26, 43, 0.25);
}

.badge-photo-ribbon:hover,
.badge-photo-ribbon:focus-visible {
  transform: translateY(-3px);
}

.badge-photo-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(7, 26, 43, 0.75);
  color: #ffffff;
  font-size: 0.85rem;
  animation: badge-hint-pulse 2.4s ease-in-out infinite;
}

@keyframes badge-hint-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }

  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 26, 43, 0.82);
  animation: lightbox-fade 0.2s ease;
}

.lightbox-dialog {
  position: relative;
  max-width: min(90vw, 640px);
  max-height: 90vh;
  /* No overflow clipping: the close button hangs off the corner. The image is
     sized to fit the viewport instead, so the dialog never needs to scroll. */
  overflow: visible;
  background: #ffffff;
  border-radius: 16px;
  padding: 0.75rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  animation: lightbox-pop 0.25s ease;
}

.lightbox-dialog img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(90vh - 1.5rem);
  margin: 0 auto;
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--accent);
  color: var(--primary);
  transform: rotate(90deg);
  box-shadow:
    0 0 0 3px rgba(255, 208, 90, 0.35),
    0 0 18px 2px rgba(255, 208, 90, 0.6);
}

body.lightbox-open,
body.nav-open {
  overflow: hidden;
}

@keyframes lightbox-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes lightbox-pop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion:reduce) {
  .badge-photo-hint {
    animation: none;
  }

  .lightbox-backdrop,
  .lightbox-dialog {
    animation: none;
  }
}

/* ----------------------------------------------------------------------
   HOMEPAGE AWARDS: ribbon images
   ---------------------------------------------------------------------- */
.badge-ribbons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.badge-ribbons img {
  height: 140px;
  width: auto;
}

.awards-section {
  background: var(--surface);
}

/* Awards block, same at every width: ribbons in one row, then a labelled
   "as featured in" press article centered below, then the text pills */
.awards-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  text-align: center;
}

.awards-ribbons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 1.25rem 3rem;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.awards-ribbons > img {
  width: 100%;
  height: auto;
  max-height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(7, 26, 43, 0.18));
  transition: transform 0.25s ease, filter 0.3s ease;
}

.awards-ribbons > img:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 16px 20px rgba(7, 26, 43, 0.26));
}

/* "As featured in" label with a thin rule on each side */
.awards-content .award-feature-label {
  order: 1;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.75rem 0 0.25rem;
  /* Gold text sits on a navy pill so it stays bright and still passes contrast */
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.award-feature-label span {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  white-space: nowrap;
}

.award-feature-label::before,
.award-feature-label::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.award-feature-label::after {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section:not(.section-light) .award-feature-label {
  color: var(--accent);
}

.awards-ribbons .badge-photo-ribbon {
  order: 2;
  grid-column: 1 / -1;
  justify-self: center;
}

.awards-ribbons .badge-photo-ribbon img {
  height: 300px;
  width: auto;
}

.award-feature-caption {
  order: 3;
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  color: var(--text-dark);
  font-size: 0.95rem;
}


/* ----------------------------------------------------------------------
   HOMEPAGE: services grid
   ---------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

/* Heading above the card grid: centered */
.section-heading:has(+ .services-grid) {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  --bar-mx: auto;
}

/* Cards: centered, steel-blue accents at rest; hover flips to steel blue with
   yellow contrast (top edge, icon tile and glow) */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  padding: 2.25rem 1.85rem;
  border-radius: var(--radius-card);
  border-top: 4px solid var(--steel);
  box-shadow: 0 12px 28px rgba(71, 109, 151, 0.12);
  transition: transform 0.25s ease, box-shadow 0.35s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.service-card:has(a:focus-visible) {
  outline: var(--focus-ring);
  outline-offset: 4px;
}

.service-card h3 a:focus-visible {
  outline: none;
}

/* Stretch the title link over the whole card so any part of it is clickable */
.service-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  background-color: var(--steel);
  border-top-color: var(--accent);
  box-shadow:
    0 -6px 22px -4px rgba(255, 208, 90, 0.7),
    0 0 0 3px rgba(71, 109, 151, 0.2),
    0 22px 44px -8px rgba(62, 95, 132, 0.55);
}

.service-card:hover h3,
.service-card:focus-within h3 {
  color: #ffffff;
}

.service-card:hover p,
.service-card:focus-within p {
  color: rgba(255, 255, 255, 0.92);
}

.service-card:hover .service-card-icon,
.service-card:focus-within .service-card-icon {
  color: var(--primary);
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 208, 90, 0.3), 0 0 22px rgba(255, 208, 90, 0.6);
}

.service-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background-color: rgba(71, 109, 151, 0.1);
  border: 2px solid rgba(71, 109, 151, 0.28);
  color: var(--steel-dark);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s ease, color 0.25s ease;
}

/* One icon size and stroke for every card */
.service-card-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.75;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
  color: var(--steel-dark);
}

.service-card h3,
.service-card p {
  transition: color 0.25s ease;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

/* ----------------------------------------------------------------------
   HOMEPAGE: service areas grid
   ---------------------------------------------------------------------- */
/* One large white panel on the yellow section, like the steps panel */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.75rem);
  margin: 0;
  border-radius: var(--radius-card);
  background: #ffffff;
  border-top: 5px solid var(--steel);
  box-shadow: 0 0 0 1px rgba(7, 26, 43, 0.05), 0 22px 48px rgba(7, 26, 43, 0.14);
}

/* Each city is a row between two lines: number, name, arrow badge */
.areas-grid li {
  position: relative;
  list-style: none;
  border-top: 2px solid var(--primary);
  border-bottom: 1px solid rgba(7, 26, 43, 0.12);
  margin-bottom: -1px;
}

.areas-grid li a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1.35rem 0.15rem;
  color: var(--primary);
}

.area-num {
  color: var(--steel-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.area-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.area-arrow {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  font-weight: 800;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

/* Hover: the top rule turns white, the badge flips to white with a glow */
.areas-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.areas-grid li:hover::before,
.areas-grid li:focus-within::before {
  transform: scaleX(1);
}

.areas-grid li {
  transition: background-color 0.25s ease;
}

.areas-grid li:hover,
.areas-grid li:focus-within {
  background: linear-gradient(90deg, rgba(255, 208, 90, 0.22), rgba(255, 208, 90, 0) 85%);
}

.areas-grid li:hover .area-arrow,
.areas-grid li:focus-within .area-arrow {
  background: var(--accent);
  color: var(--primary);
  transform: translateX(3px);
  box-shadow: 0 0 0 3px rgba(255, 208, 90, 0.35), 0 0 18px rgba(255, 208, 90, 0.6);
}

.areas-grid li:hover .area-name,
.areas-grid li:focus-within .area-name {
  color: var(--gold-text);
}

.section-note {
  margin-top: 2.25rem;
  text-align: center;
}

/* ----------------------------------------------------------------------
   HOMEPAGE: testimonials
   ---------------------------------------------------------------------- */
.testimonials-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* Navy feature panel: steel-blue glow top right, warm yellow glow bottom left */
  background:
    radial-gradient(520px circle at 100% 0%, rgba(71, 109, 151, 0.55), transparent 60%),
    radial-gradient(420px circle at 0% 100%, rgba(255, 208, 90, 0.16), transparent 60%),
    var(--primary);
  padding: clamp(2.25rem, 5vw, 3.75rem);
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(71, 109, 151, 0.35),
    0 30px 60px rgba(7, 26, 43, 0.28);
  align-items: center;
  grid-template-columns: 1.6fr 1fr;
  color: #ffffff;
}

/* Subtle dot texture so the navy doesn't read as a flat block */
.testimonials-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
}

/* Yellow accent bar across the top edge */
.testimonials-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(2.25rem, 5vw, 3.75rem);
  width: 96px;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: var(--accent);
}

.testimonials-panel h2 {
  margin: 0 0 1.25rem;
  color: #ffffff;
}

.testimonials-panel .testimonial-stars {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  text-shadow: 0 0 14px rgba(255, 208, 90, 0.45);
}

.testimonials-panel .testimonial-copy {
  position: relative;
  margin: 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--steel);
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.8;
}

/* The quote is a blockquote; reset its default indent */
blockquote.testimonial-copy {
  margin: 0;
}

blockquote.testimonial-copy p {
  margin: 0;
  color: inherit;
}

/* Real Google reviews, 2-3 cards under the panel. Hidden while empty
   (the template inside is an HTML comment, which :empty ignores) */
.review-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
}

.review-cards:empty {
  display: none;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-card);
  border-top: 4px solid var(--steel);
  box-shadow: 0 12px 28px rgba(71, 109, 151, 0.12);
}

.review-card blockquote {
  margin: 0;
}

.review-card blockquote p {
  margin: 0;
  color: var(--text-dark);
  line-height: 1.7;
}

.review-card-stars {
  margin: 0;
  color: var(--accent-dark);
  letter-spacing: 0.12em;
}

.review-card-meta {
  margin: auto 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.review-card-meta cite {
  font-style: normal;
  font-weight: 700;
  color: var(--primary);
}

/* Owner's motto on the homepage: big, bold and a little playful, framed
   by oversized steel quote marks, with "hook you up" highlighted */
.motto {
  position: relative;
  max-width: 720px;
  margin: 0.75rem auto 0;
  padding: 1.75rem 1.5rem 0;
}

.motto::before {
  content: "\201C";
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--steel);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  line-height: 1;
}

.motto blockquote {
  margin: 0;
}

.section .section-heading .motto blockquote p,
.section .motto blockquote p {
  margin: 0;
  color: var(--primary);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* "hook you up": white marker highlight, same as the yellow-section headings */
.motto .text-highlight {
  padding: 0 0.22em 0.04em;
  border-radius: 0.22em;
  background: #ffffff;
  color: var(--steel-dark);
  box-shadow: 0 8px 20px rgba(7, 26, 43, 0.12);
}

.motto figcaption {
  margin-top: 0.85rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.motto figcaption::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  margin-right: 0.6rem;
  vertical-align: middle;
  background: currentColor;
}

/* Footer tagline on every page */
.footer-brand .footer-motto {
  font-weight: 800;
  font-style: italic;
}

/* Review buttons under the quote */
.section .testimonial-actions {
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Outlined white button on the navy panel; fills white with a soft glow on hover */
.testimonials-panel .secondary-button {
  gap: 0.4rem;
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.testimonials-panel .secondary-button:hover,
.testimonials-panel .secondary-button:focus-visible {
  background-color: #ffffff;
  color: var(--primary);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.2),
    0 0 18px 2px rgba(255, 255, 255, 0.3),
    0 0 40px 6px rgba(255, 255, 255, 0.12);
}

.testimonials-panel > div {
  min-width: 0;
}

.testimonial-stats {
  display: grid;
  gap: 1.25rem;
}

.testimonial-stats > div {
  padding: 1.75rem 1.5rem;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

/* Rating tile: brand yellow with navy text */
.testimonial-stats > div:first-child {
  background: var(--accent);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

/* Review-count tile: steel blue with white text */
.testimonial-stats > div:last-child {
  background: var(--steel);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 30px rgba(0, 0, 0, 0.25);
}

.testimonial-stats > div:first-child:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 3px rgba(255, 208, 90, 0.35), 0 0 28px rgba(255, 208, 90, 0.55), 0 18px 36px rgba(0, 0, 0, 0.3);
}

.testimonial-stats > div:last-child:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 3px rgba(71, 109, 151, 0.45), 0 0 28px rgba(120, 165, 215, 0.55), 0 18px 36px rgba(0, 0, 0, 0.3);
}

.testimonial-stats span {
  display: block;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
}

.testimonial-stats > div:last-child span {
  color: #ffffff;
}

.testimonials-panel .testimonial-stats p {
  margin: 0.4rem 0 0;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.testimonials-panel .testimonial-stats > div:last-child p {
  color: rgba(255, 255, 255, 0.9);
}

/* ----------------------------------------------------------------------
   HOMEPAGE: bottom CTA banner
   ---------------------------------------------------------------------- */
.tow-cta-wrap {
  position: relative;
  background: linear-gradient(160deg, #051422 0%, #071a2b 60%, #0f2d47 100%);
  padding: 6.5rem 0 8.5rem;
  overflow: hidden;
}

.tow-cta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.tow-cta-content {
  position: relative;
  z-index: 2;
  max-width: 32rem;
}

.tow-cta-content h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  color: #ffffff;
}

.tow-cta-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.tow-cta .cta-button {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.tow-cta-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 110px;
  z-index: 1;
  display: block;
  line-height: 0;
}

/* ----------------------------------------------------------------------
   SITE FOOTER: brand + awards | quick links | contact + payment | hours.
   Four aligned columns on desktop, two on tablets, one on phones.
   ---------------------------------------------------------------------- */
footer {
  background: var(--accent);
  color: var(--primary);
}

/* The footer runs a little wider than page content so five columns fit */
footer .footer-top,
footer .footer-bottom {
  width: min(1280px, calc(100% - 3rem));
}

.footer-top {
  display: grid;
  /* Brand column is guaranteed room to breathe; the rest size to content */
  grid-template-columns: minmax(300px, 1fr) auto auto auto auto;
  gap: 2.5rem clamp(1.5rem, 3vw, 2.5rem);
  padding: 4.5rem 0 3rem;
  align-items: start;
}

.footer-top > div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

/* Column titles: small caps with a short navy rule */
.footer-top h3 {
  width: fit-content;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.footer-top h3::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 0.6rem;
  border-radius: 999px;
  background: var(--primary);
}

.footer-top h3.footer-subhead {
  margin-top: 0.75rem;
}

.footer-brand {
  align-items: flex-start;
}

.footer-logo {
  width: 200px;
  height: auto;
  display: block;
}

.footer-brand p {
  margin: 0;
  max-width: 38ch;
  line-height: 1.7;
}

.footer-brand .cta-button {
  padding: 0.7rem 1.4rem;
  background-color: var(--primary);
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(7, 26, 43, 0.18);
}

.footer-brand .cta-button:hover,
.footer-brand .cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5), 0 12px 28px rgba(7, 26, 43, 0.28);
}

/* Awards column (far right): Best of Florida ribbons on one row,
   Chamber of Commerce seal on the row below */
.footer-awards-ribbons,
.footer-awards-chamber {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 228px;
  max-width: 100%;
}

.footer-awards-chamber {
  justify-content: center;
}

.footer-awards-ribbons img {
  height: 100px;
  width: auto;
}

.footer-awards-chamber {
  margin-top: 0.25rem;
}

.footer-awards-chamber img {
  height: 108px;
  width: auto;
}

.footer-links-list,
.footer-contact-list,
.footer-hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.footer-links-list {
  gap: 0.7rem;
}

.footer-links-list a,
.footer-contact-list a,
.footer-bottom a {
  color: var(--primary);
  text-underline-offset: 3px;
}

.footer-links-list a {
  text-decoration: none;
  font-weight: 600;
}

.footer-links-list a:hover,
.footer-links-list a:focus-visible,
.footer-contact-list a:hover,
.footer-contact-list a:focus-visible,
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.footer-contact-list {
  gap: 0.85rem;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-wrap: anywhere;
}

.footer-contact-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
}

.footer-contact-icon svg {
  width: 16px;
  height: 16px;
}

.footer-payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.payment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0.4rem 0.6rem;
  background: #ffffff;
  border-radius: 8px;
}

.payment-icon img {
  height: 22px;
  width: auto;
  display: block;
}

/* Hours: day on the left, time on the right, divided rows */
.footer-hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(7, 26, 43, 0.12);
  font-size: 0.95rem;
}

.footer-hours-list li:last-child {
  border-bottom: none;
}

.footer-hours-list li span:first-child {
  font-weight: 700;
}

.footer-hours-list li span {
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid rgba(7, 26, 43, 0.18);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

/* Contact, Hours and Awards are centred in their columns: titles and
   their rules centre, and each list sits as a centred block (rows inside
   keep their own left/right alignment so icons and times still line up) */
.footer-contact,
.footer-hours,
.footer-awards {
  align-items: center;
  text-align: center;
}

.footer-contact-list,
.footer-hours-list {
  width: fit-content;
  max-width: 100%;
  text-align: left;
}

.footer-hours-list {
  min-width: 200px;
}

.footer-payment-icons {
  justify-content: center;
}

/* Below ~1380px five columns would squeeze the brand column, so the brand
   block spans the top and the four columns sit beneath */
@media (max-width:1379px) {
  .footer-top {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr) minmax(0, 1fr) auto;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Tablets: brand across the top, then links | contact, hours | awards */
@media (max-width:1023px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Phones: one column, generous tap targets, centred bottom line */
@media (max-width:767px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 3.25rem 0 2.25rem;
  }

  /* Phones: every column centred, so the stacked footer reads as one */
  .footer-brand,
  .footer-links {
    align-items: center;
    text-align: center;
  }

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-brand .cta-button {
    align-self: center;
  }

  .footer-links-list {
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    column-gap: 2.5rem;
  }

  .footer-links-list a,
  .footer-contact-list a {
    display: inline-block;
    padding: 0.35rem 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Tablet: 2-column services/areas grids */
@media (max-width:960px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

/* Mobile: main breakpoint — nav, hero, and grid layout changes */
@media (max-width:768px) {
  .site-header {
    padding: 0.75rem 0;
  }

  .header-inner {
    position: relative;
    border-radius: 24px;
    padding: 0.85rem 1rem 0.85rem 1.25rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
  }

  .nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.15rem;
    width: auto;
    max-height: min(75vh, 32rem);
    overflow-y: auto;
    background: var(--accent);
    border-radius: 20px;
    padding: 0.75rem;
    box-shadow: 0 20px 45px rgba(4, 15, 26, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 40;
  }

  .main-nav .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav .nav-links a {
    display: block;
    color: var(--primary);
  }

  .main-nav .nav-links a:hover,
  .main-nav .nav-links a:focus-visible {
    background-color: rgba(7, 26, 43, 0.08);
    color: #041826;
  }

  .main-nav .nav-links a.nav-cta-button {
    background-color: var(--primary);
    color: var(--accent);
    text-align: center;
    margin-top: 0.4rem;
  }

  .main-nav .nav-links a.nav-cta-button:hover,
  .main-nav .nav-links a.nav-cta-button:focus-visible {
    background-color: #0d2c47;
    color: var(--accent);
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 6vw, 3rem);
  }

  .hero-text {
    justify-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .section-heading {
    justify-items: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    --bar-mx: auto;
  }

  .testimonials-panel > div:first-child {
    text-align: center;
  }

  .testimonial-stars {
    justify-content: center;
  }

  .tow-cta-content {
    text-align: center;
  }

  .tow-cta {
    flex-direction: column;
    text-align: center;
  }

  .page-hero .page-hero-content.has-media {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-hero-media {
    order: -1;
  }

  .service-card,
  .testimonials-panel {
    border-radius: 20px;
  }

  .services-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* Phones: service cards become compact rows (icon left, copy right, chevron
     on the far right) with the steel accent and yellow glow moved to the left edge */
  .services-grid {
    gap: 1rem;
  }

  .service-card {
    display: block;
    text-align: left;
    padding: 1.25rem 2.75rem 1.25rem 1.25rem;
    border-top: 0;
    border-left: 4px solid var(--steel);
  }

  .service-card:has(.service-card-icon) {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    align-items: center;
  }

  .service-card::after {
    content: "\203A";
    position: absolute;
    top: 50%;
    right: 1.1rem;
    transform: translateY(-50%);
    font-size: 1.75rem;
    line-height: 1;
    color: var(--steel);
    transition: color 0.25s ease, transform 0.25s ease;
  }

  .service-card-icon {
    grid-row: span 2;
    width: 52px;
    height: 52px;
    margin: 0;
  }

  .service-card-icon svg {
    width: 24px;
    height: 24px;
  }

  .service-card h3 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .service-card:hover,
  .service-card:focus-within {
    transform: translateY(-3px);
    border-left-color: var(--accent);
    box-shadow:
      -6px 0 22px -4px rgba(255, 208, 90, 0.7),
      0 0 0 3px rgba(71, 109, 151, 0.2),
      0 16px 32px -8px rgba(62, 95, 132, 0.55);
  }

  .service-card:hover::after,
  .service-card:focus-within::after {
    color: var(--accent);
    transform: translate(3px, -50%);
  }

  /* Phones: two columns of compact rows */
  .areas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    padding: 1.25rem 1.1rem;
  }

  .areas-grid li a {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    padding: 1.1rem 0;
  }

  .area-num {
    display: none;
  }

  .area-name {
    font-size: 1rem;
  }

  .area-arrow {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.85rem;
  }

  .areas-grid + .section-note {
    text-align: center;
  }

  .testimonials-panel {
    grid-template-columns: 1fr;
  }

  .testimonials-panel .testimonial-copy {
    padding: 1rem 0 0;
    border-left: none;
    border-top: 3px solid var(--steel);
  }

  .section .testimonial-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .section .testimonial-actions a {
    flex: 1 1 auto;
  }

  .testimonials-panel::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .testimonials-panel {
    padding: 2.25rem 1.25rem;
  }

  .testimonial-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .testimonial-stats > div {
    padding: 1.25rem 0.75rem;
  }

  .testimonial-stats span {
    font-size: 2.1rem;
  }

  .testimonials-panel .testimonial-stats p {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .awards-content {
    justify-content: center;
    text-align: center;
  }

  /* Phones: same layout as desktop, just tighter and smaller */
  .awards-ribbons {
    gap: 1rem 1rem;
    max-width: 420px;
  }

  .award-feature-label {
    margin-top: 1.25rem;
    font-size: 0.72rem;
  }

  .awards-ribbons .badge-photo-ribbon img {
    height: 240px;
  }
}

/* Mobile: CTA buttons centre in their stacked columns */
@media (max-width:768px) {
  .cta-button {
    align-self: center;
  }
}

/* Small phones: stack hero buttons */
@media (max-width:520px) {
  /* Keep the button pair side by side, sharing the width equally */
  .hero-actions {
    flex-wrap: nowrap;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-actions a {
    flex: 1 1 0;
    padding: 0.85rem 0.9rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  /* Homepage headline on phones: "Towing &" / "Roadside Assistance", with
     the size scaled to the screen so the second line never wraps */
  .hero h1 {
    font-size: clamp(1.6rem, 8vw, 2.25rem);
  }

  .phone-line {
    display: block;
    white-space: nowrap;
  }

  /* Trims long headlines on phones. Visually hidden only, so the full text
     stays in the page for search engines and screen readers. */
  .hide-on-phone {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}

/* ----------------------------------------------------------------------
   SERVICE & SERVICE-AREA PAGE HERO
   ---------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6.5rem;
  background: linear-gradient(160deg, #051422 0%, #071a2b 55%, #0f2d47 100%);
  color: #ffffff;
}

/* Every top banner (homepage + inner pages) shares one height on desktop,
   with its content vertically centered, so pages feel consistent */
.hero,
.page-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--hero-height, 640px);
  box-sizing: border-box;
}

.hero > .container,
.page-hero > .container {
  width: min(1120px, calc(100% - 3rem));
}

/* Tablets and phones: one shared minimum height, and photos capped so pages
   with images don't tower over text-only ones */
@media (max-width: 960px) {
  .hero,
  .page-hero {
    min-height: 600px;
  }

  .hero-media {
    width: min(100%, 420px);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-media img {
    max-height: 230px;
  }

  /* Inner-page banner collages are decorative; stacked above the text they
     made those banners far taller than the rest, so the text carries it */
  .page-hero-media {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero,
  .page-hero {
    min-height: 720px;
  }

  .hero-media {
    width: min(100%, 320px);
  }

  .hero-media img {
    max-height: 190px;
  }
}

.page-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.25rem;
}

.page-hero-content:not(.has-media) > * {
  max-width: 46rem;
}

.page-hero-content.has-media {
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: none;
}

.page-hero-media img {
  width: 100%;
  display: block;
  max-height: 380px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  transform: rotate(2.5deg);
}

.about-story-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.about-story-copy {
  display: grid;
  gap: 1.25rem;
}

.about-collage {
  position: relative;
  aspect-ratio: 1/1;
}

.about-collage-photo {
  position: absolute;
  top: 0;
  left: 0;
  /* Wide frame across the top: the trucks and cars sit high and large,
     clear of the portrait tucked into the bottom right */
  width: 92%;
  height: 74%;
  object-fit: cover;
  object-position: left center;
  border-radius: 28px;
  box-shadow: 0 25px 55px rgba(7, 26, 43, 0.25);
}

.about-collage-portrait {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 48%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 20px;
  border: 6px solid var(--surface);
  box-shadow: 0 20px 45px rgba(7, 26, 43, 0.35);
}

.hero-collage {
  position: relative;
  aspect-ratio: 5/4;
}

.hero-collage img {
  position: absolute;
  width: 62%;
  max-height: none;
}

.hero-collage img.hero-collage-img-back {
  top: 0;
  right: 0;
  transform: rotate(7deg);
  z-index: 1;
}

.hero-collage img.hero-collage-img-front {
  left: 0;
  bottom: 0;
  transform: rotate(-5deg);
  z-index: 2;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.45);
}

.page-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
  z-index: 1;
  display: block;
  line-height: 0;
}

.page-hero .hero-copy {
  max-width: 46rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ----------------------------------------------------------------------
   INNER PAGE CONTENT: photo, feature list, steps, FAQ
   ---------------------------------------------------------------------- */
.content-photo {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(16, 35, 58, 0.18);
  margin-top: 2rem;
}

/* For photos whose subject sits low in the frame, so the wide crop keeps it */
.content-photo-low {
  object-position: center 85%;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.75rem;
}

.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(7, 26, 43, 0.1);
}

/* Feature lists: open two-column rows separated by thin lines, each led by a
   navy check badge; a steel-to-yellow underline sweeps in on hover */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4rem);
  padding: 0;
  margin: 0;
  border-top: 2px solid rgba(7, 26, 43, 0.1);
}

.feature-list li {
  position: relative;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0.25rem;
  border-bottom: 1px solid rgba(7, 26, 43, 0.12);
  color: var(--text-dark);
  font-size: 1.05rem;
  font-weight: 600;
}

/* Odd number of items: a single column reads cleaner than a lopsided pair */
.feature-list:has(> li:last-child:nth-child(odd)) {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Centered sections: keep the single column centered under the heading */
.section-centered .feature-list,
.service-area-page .feature-list {
  margin-left: auto;
  margin-right: auto;
}

/* Photo beside a checklist: image left, list right */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.feature-split-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  /* Keep the truck door with the Steve's logo in frame */
  object-position: 15% center;
  border-radius: 20px;
  box-shadow: 0 0 0 6px var(--surface, #fff), 0 0 0 9px rgba(71, 109, 151, 0.35), 0 24px 50px rgba(16, 35, 58, 0.2);
}

.feature-split .feature-list {
  max-width: none;
}

@media (max-width: 960px) {
  .feature-split {
    grid-template-columns: 1fr;
  }

  .feature-split-photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

/* Check badge: navy circle, yellow tick, steel ring */
.feature-list li::before {
  content: "\2713";
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 0 0 3px rgba(71, 109, 151, 0.25);
  transition: box-shadow 0.25s ease;
}

/* Hover underline, drawn over the divider */
.feature-list li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--steel), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-list li:hover::after {
  transform: scaleX(1);
}

.feature-list li:hover::before {
  box-shadow: 0 0 0 3px rgba(255, 208, 90, 0.45), 0 0 14px rgba(255, 208, 90, 0.45);
}

/* On yellow sections the list sits in a white panel, like the steps and areas */
.section:not(.section-light) .feature-list {
  padding: 0.5rem clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius-card);
  background: #ffffff;
  border-top: 5px solid var(--steel);
  box-shadow: 0 0 0 1px rgba(7, 26, 43, 0.05), 0 22px 48px rgba(7, 26, 43, 0.14);
}

/* No divider under the last row inside the panel */
.section:not(.section-light) .feature-list li:last-child,
.section:not(.section-light) .feature-list:not(:has(> li:last-child:nth-child(odd))) li:nth-last-child(2) {
  border-bottom: none;
}

.steps-list {
  display: grid;
  gap: 2.75rem;
  padding: 0;
  margin: 0;
}

.steps-list li {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.1rem;
}

.section:not(.section-light) .step-number {
  background: var(--primary);
  color: var(--accent);
}

/* Yellow sections: all steps share one white panel. Rows are split by thin
   lines and a steel connector runs down through the numbered badges */
.section .steps-list {
  gap: 0;
  padding: 0.75rem clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius-card);
  background: #ffffff;
  border-top: 5px solid var(--steel);
  box-shadow: 0 0 0 1px rgba(7, 26, 43, 0.05), 0 22px 48px rgba(7, 26, 43, 0.14);
}

.section .steps-list li {
  position: relative;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(7, 26, 43, 0.1);
}

.section .steps-list li:last-child {
  border-bottom: none;
}

/* Connector line: from badge center to badge center */
.section .steps-list li::before {
  content: "";
  position: absolute;
  left: calc(1.5rem - 1px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(71, 109, 151, 0.35);
}

.section .steps-list li:first-child::before {
  top: 50%;
}

.section .steps-list li:last-child::before {
  bottom: 50%;
}

.section .steps-list .step-number {
  background: var(--primary);
  color: var(--accent);
  position: relative;
  z-index: 1;
  width: 3rem;
  height: 3rem;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 0 0 5px #ffffff, 0 0 0 7px rgba(71, 109, 151, 0.3);
  transition: box-shadow 0.25s ease;
}

.section .steps-list li:hover .step-number {
  box-shadow: 0 0 0 5px #ffffff, 0 0 0 7px rgba(255, 208, 90, 0.9), 0 0 18px rgba(255, 208, 90, 0.6);
}

.section .steps-list h3 {
  transition: color 0.2s ease;
}

.section .steps-list li:hover h3 {
  /* Deep gold: readable on white, contrasts with the navy badge */
  color: var(--gold-text);
}

/* Hovered row gets a soft yellow wash fading out to the right */
.section .steps-list li {
  transition: background-color 0.25s ease;
}

.section .steps-list li:hover {
  background: linear-gradient(90deg, rgba(255, 208, 90, 0.22), rgba(255, 208, 90, 0) 75%);
}

/* Process / "How it works" headings are centered above the steps panel */
.section-heading:has(+ .steps-list) {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  --bar-mx: auto;
}

.steps-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.steps-list p {
  margin: 0;
  color: var(--muted);
}

/* FAQ: one white panel, questions separated by divider lines */
.faq-list {
  display: grid;
  padding: 0.5rem clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius-card);
  background: #ffffff;
  border-top: 5px solid var(--steel);
  box-shadow: 0 0 0 1px rgba(7, 26, 43, 0.05), 0 22px 48px rgba(7, 26, 43, 0.14);
  text-align: left;
}

.faq-list details {
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(7, 26, 43, 0.1);
}

.faq-list details:last-child {
  border-bottom: none;
}

.faq-list summary {
  transition: color 0.2s ease;
}

.faq-list summary:hover {
  color: var(--gold-text);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::marker {
  content: "";
}

/* +/- in a navy badge, matching the check and arrow badges */
.faq-list summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
  transition: box-shadow 0.25s ease;
}

.faq-list summary:hover::after {
  box-shadow: 0 0 0 3px rgba(255, 208, 90, 0.45), 0 0 14px rgba(255, 208, 90, 0.5);
}

.faq-list details[open] summary::after {
  content: "\2013";
}

/* Answer sits below a divider line, led by a short steel-to-yellow accent */
.faq-list details p {
  position: relative;
  margin: 1.1rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(7, 26, 43, 0.12);
  color: var(--muted);
}

.faq-list details p::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--steel) 0 50%, var(--accent) 50% 100%);
}

/* Only the first answer paragraph gets the divider */
.faq-list details p + p {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: none;
}

.faq-list details p + p::before {
  content: none;
}

/* ----------------------------------------------------------------------
   INNER PAGE CTA BANNER
   ---------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #071a2b 0%, #041826 100%);
  color: #e8f2f8;
  padding: 6rem 0 8rem;
}

.cta-banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.cta-banner-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
  z-index: 1;
  display: block;
  line-height: 0;
}

.cta-banner h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #ffffff;
  line-height: 1.1;
}

.cta-banner p {
  margin: 0;
  color: rgba(232, 242, 248, 0.78);
  max-width: 40rem;
}

/* Mobile: single-column feature list & centered CTA banner */
@media (max-width:768px) {
  .about-story-grid {
    grid-template-columns: 1fr;
  }

  .about-collage {
    order: -1;
    width: min(380px, 100%);
    margin: 0 auto;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

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

  .cta-banner-inner {
    justify-content: center;
    text-align: center;
  }

  .cta-banner p {
    max-width: none;
  }
}


/* ----------------------------------------------------------------------
   ACCESSIBILITY: screen-reader text, visible keyboard focus, reduced motion
   ---------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Every interactive element gets a clear ring when reached by keyboard */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* On dark backgrounds the ring switches to brand yellow */
:where(.hero, .page-hero, .testimonials-panel, .tow-cta-wrap, .cta-banner, .lightbox-modal, .mobile-call-bar) :focus-visible,
.mobile-call-bar:focus-visible,
.main-nav .nav-links a.nav-cta-button:focus-visible {
  outline-color: var(--accent);
}

/* City rows: ring the whole row */
.areas-grid li:has(a:focus-visible) {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-radius: 6px;
}

.areas-grid li a:focus-visible {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----------------------------------------------------------------------
   STICKY MOBILE CALL BUTTON (phones only)
   Floats above the page bottom once you scroll past the banner; hidden
   over the banner and footer (both have their own call buttons) and while
   the menu or lightbox is open.
   ---------------------------------------------------------------------- */
.mobile-call-bar {
  display: none;
}

@media (max-width:767px) {
  .mobile-call-bar {
    position: fixed;
    z-index: 900;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: var(--primary);
    color: var(--accent);
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 0 0 3px rgba(255, 208, 90, 0.35), 0 14px 30px rgba(7, 26, 43, 0.35);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .mobile-call-bar svg {
    width: 20px;
    height: 20px;
  }

  .mobile-call-number {
    color: #ffffff;
    font-weight: 700;
  }

  .mobile-call-bar.is-hidden,
  body.nav-open .mobile-call-bar,
  body.lightbox-open .mobile-call-bar {
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
  }
}

/* Very small phones (320-400px): let highlighted phrases and the "featured"
   pill wrap instead of pushing past the screen edge */
@media (max-width:400px) {
  .text-highlight,
  .award-feature-label span {
    white-space: normal;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  .award-feature-label::before,
  .award-feature-label::after {
    display: none;
  }

  .award-feature-label {
    justify-content: center;
  }
}

/* Keep a phrase and its trailing punctuation on one line */
.nowrap {
  white-space: nowrap;
}

/* Footer credit: "Promontory Web Designs" in the Best of Florida ribbon blue
   (5.6:1 on the yellow footer), with a soft glow on hover */
.footer-bottom a[href*="promontorywebdesigns"] {
  color: #0a5494;
  font-weight: 700;
  text-decoration: none;
  transition: text-shadow 0.3s ease, color 0.2s ease;
}

.footer-bottom a[href*="promontorywebdesigns"]:hover,
.footer-bottom a[href*="promontorywebdesigns"]:focus-visible {
  color: #0a5494;
  text-decoration: none;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.95),
    0 0 18px rgba(255, 255, 255, 0.75),
    0 0 26px rgba(10, 84, 148, 0.45);
}

/* Compact, centred banner (About page): just an eyebrow and a short headline,
   so it hugs its content instead of using the shared banner height */
.page-hero.page-hero-compact {
  min-height: 0;
  padding: 6rem 0 7rem;
}

/* The section right under the compact banner starts close to the wave,
   so the story reads as continuing from the banner */
.page-hero-compact + .section {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.page-hero-compact .page-hero-content {
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
}

.page-hero-compact .page-hero-content > * {
  max-width: 44rem;
}

.page-hero-compact h1 {
  text-wrap: balance;
}

@media (max-width:767px) {
  .page-hero.page-hero-compact {
    padding: 4.5rem 0 5.5rem;
  }
}

/* Homepage: the first section starts closer to the banner's wave, so the
   awards heading sits nearer the top instead of floating in white space */
.hero + .section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

/* Compact banners with buttons (service-area pages): centre the button pair */
.page-hero-compact .hero-actions {
  justify-content: center;
}

/* Business accounts (services page): centred download button under the steps */
.business-accounts-action {
  margin: 2rem 0 0;
  text-align: center;
}

.business-accounts-meta {
  font-weight: 500;
  opacity: 0.8;
}

/* In-page links (e.g. services.html#business-accounts) stop below the sticky header */
html {
  scroll-padding-top: 96px;
}

/* Service-area town photos: credit line under the image (required by CC BY / CC BY-SA) */
.content-photo-figure {
  margin: 2rem 0 0;
}

.content-photo-figure .content-photo {
  margin-top: 0;
}

.photo-credit {
  margin-top: 0.6rem;
  color: #5b6b7d;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: right;
}

.photo-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.photo-credit a:hover {
  color: var(--gold-text);
}

/* Service-area banners: the photo is a <figure> so its credit line sits under it */
figure.page-hero-media {
  margin: 0;
}

.page-hero-media .photo-credit {
  margin-top: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
}

.page-hero-media .photo-credit a:hover {
  color: var(--accent);
}

/* Text column in banners with a photo: same spacing as the photo-less banners */
.page-hero-text {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

/* Section intros: when they wrap, split into even lines (no lone last word) */
.section-heading > p {
  text-wrap: balance;
}

/* Section intros: one-sentence intros stay on a single line on desktop */
.section-heading > p {
  max-width: 820px;
}

/* Headings with a highlight box: extra line spacing so descenders on the line
   above (the "g" in "Serving") don't dip into the box when it wraps */
.section-heading h2:has(.text-highlight),
.about-grid h2:has(.text-highlight),
.page-hero h1:has(.text-highlight),
.hero h1:has(.text-highlight) {
  line-height: 1.32;
}

/* ----------------------------------------------------------------------
   FOOTER POLISH
   ---------------------------------------------------------------------- */

/* Link hover: the header's navy pill with yellow text. Padding is cancelled
   by a negative margin so the pill grows around the text without moving it */
.footer-links-list a,
.footer-contact-list a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  margin: -0.3rem -0.75rem;
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.footer-links-list a:hover,
.footer-links-list a:focus-visible,
.footer-contact-list a:hover,
.footer-contact-list a:focus-visible {
  background-color: var(--primary);
  color: var(--accent);
  text-decoration: none;
}

/* Payment cards: one tidy row */
.footer-payment-icons {
  flex-wrap: nowrap;
  gap: 0.4rem;
}

.footer-payment-icons .payment-icon {
  height: 36px;
  padding: 0.35rem 0.5rem;
}

/* Hours: styled like the Contact rows beside it - a navy clock badge,
   then the days (small caps) over the time */
.footer-hours-list {
  min-width: 0;
}

.footer-hours-list li {
  display: grid;
  grid-template-columns: 2rem auto;
  grid-template-rows: auto auto;
  column-gap: 0.65rem;
  row-gap: 0.1rem;
  align-items: center;
  padding: 0;
  border: 0;
  text-align: left;
}

.footer-hours-list li::before {
  content: "";
  grid-row: 1 / 3;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd05a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.footer-hours-list li span:first-child {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-dark);
}

.footer-hours-list li span:last-child {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

/* Contact rows: a little more room after each icon so the hover pill
   doesn't touch the icon badge */
.footer-contact-list li {
  gap: 0.95rem;
}

.footer-contact-list a {
  padding: 0.3rem 0.5rem;
  margin: -0.3rem -0.5rem;
}

/* Hours as the last Contact row: days (small caps) over the time */
.footer-hours-text {
  display: grid;
  gap: 0.05rem;
  line-height: 1.25;
}

.footer-hours-days {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-dark);
}

.footer-hours-time {
  font-weight: 700;
}

/* "We Accept" column: centred like Contact and Awards, cards in a 2x2 grid */
.footer-payment {
  align-items: center;
  text-align: center;
}

.footer-payment .footer-payment-icons {
  display: grid;
  grid-template-columns: repeat(2, 84px);
  gap: 0.6rem;
}

.footer-payment .payment-icon {
  width: 100%;
  height: 46px;
  padding: 0.4rem;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(7, 26, 43, 0.08);
}

.footer-payment .payment-icon img {
  height: 26px;
}

/* Amex / Discover artwork sits small inside its square file; scale it up
   so all four cards read at a similar size */
.footer-payment .payment-icon img[alt="American Express"],
.footer-payment .payment-icon img[alt="Discover"] {
  height: 34px;
}

/* Call Now pills (header + footer): hover turns steel blue with white text,
   matching the "224+ Verified Reviews" tile, with its soft blue glow */
.main-nav .nav-links a.nav-cta-button:hover,
.main-nav .nav-links a.nav-cta-button:focus-visible,
.footer-brand .cta-button:hover,
.footer-brand .cta-button:focus-visible {
  background-color: var(--steel);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 3px rgba(71, 109, 151, 0.35),
    0 0 22px rgba(120, 165, 215, 0.5),
    0 12px 28px rgba(7, 26, 43, 0.25);
}

/* Hours row reads on one line like the other Contact rows: "Monday–Sunday: 8AM–12AM" */
.footer-hours-text {
  display: inline;
  line-height: inherit;
}

.footer-hours-days {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
}

.footer-hours-days::after {
  content: ":";
}

.footer-hours-time {
  font-weight: inherit;
}

/* Hours row: days in bold steel blue, hours in navy */
.footer-hours-days {
  font-weight: 700;
  color: var(--steel-dark);
}

.footer-hours-time {
  margin-left: 0.15rem;
  font-weight: 600;
  color: var(--primary);
}

.footer-hours-text {
  white-space: nowrap;
}
