:root {
  --navy: #0f2340;
  --navy-2: #1a3358;
  --navy-deep: #081528;
  --copper: #d4884a;
  --copper-hover: #e39a5d;
  --copper-light: #eab07f;
  --copper-dark: #8a4f1f;
  --copper-tint: #fbefe4;
  --focus: #b8652a;
  --ink: #1b2533;
  --muted: #4a5566;
  --bg-alt: #f3f5f8;
  --line: #d9dee6;
}

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

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
  overflow-wrap: break-word;
}

svg {
  flex-shrink: 0;
}

a {
  color: var(--copper-dark);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  border-radius: 6px;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Sample bar */
.sample-bar {
  background: var(--navy-deep);
  color: #e6ebf2;
  text-align: center;
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.4rem 1rem;
  border-bottom: 2px solid var(--copper);
}

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
}

.brand-name {
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.15;
}

.brand-name span {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #c9d3e0;
}

.site-nav {
  flex-basis: 100%;
  order: 3;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.15rem;
  color: #e6ebf2;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 6px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
}

.btn-call {
  background: var(--copper);
  color: var(--navy);
}

.btn-call:hover {
  background: var(--copper-hover);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-dark:hover {
  background: var(--navy-2);
}

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

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

.btn-big {
  width: 100%;
  min-height: 64px;
  padding: 1rem 1.5rem;
  font-size: 1.375rem;
  font-weight: 800;
}

/* Hidden on phones: the hero button and the fixed call bar cover calling */
.header-call {
  display: none;
  min-height: 44px;
  padding: 0.55rem 1rem;
}

/* Hero */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 2.25rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.hero-kicker {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--copper-light);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

.lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.1875rem;
  color: #d5dde8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-actions .btn-ghost {
  width: 100%;
}

.emergency-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--copper-light);
}

.hours-card {
  background: var(--navy-2);
  border-top: 4px solid var(--copper);
  border-radius: 8px;
  padding: 1.5rem;
}

.hours-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3125rem;
}

.hours-card dl {
  margin: 0;
}

/* Stacked on narrow screens so every row looks the same */
.hours-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hours-row:last-child {
  border-bottom: 0;
}

.hours-row dt {
  font-weight: 600;
}

.hours-row dd {
  margin: 0;
  color: #d5dde8;
}

.hours-emergency dt,
.hours-emergency dd {
  color: var(--copper-light);
  font-weight: 700;
}

/* Side by side only where the card is wide enough for every row */
@media (min-width: 30em) and (max-width: 55.99em), (min-width: 64em) {
  .hours-row {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }

  .hours-row dd {
    white-space: nowrap;
  }
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  line-height: 1.2;
  color: var(--navy);
}

.section h2::before {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-bottom: 0.9rem;
  background: var(--copper);
  border-radius: 2px;
}

.section-intro {
  margin: 0 0 2rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.125rem;
}

/* Services */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--copper-tint);
  color: var(--copper-dark);
}

.service h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--navy);
}

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

/* Emergency */
.emergency-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.tips {
  background: var(--copper-tint);
  border-left: 5px solid var(--copper-dark);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem;
}

.tips h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--navy);
}

.tips ul {
  margin: 0;
  padding-left: 1.2rem;
}

.tips li + li {
  margin-top: 0.75rem;
}

/* Service area */
.towns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.towns li {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: 6px;
  font-weight: 700;
  color: var(--navy);
}

/* Contact */
.section-dark {
  background: var(--navy);
  color: #fff;
}

.section-dark h2 {
  color: #fff;
}

.contact-lead {
  margin: 0 0 1.75rem;
  max-width: 40rem;
  font-size: 1.125rem;
  color: #d5dde8;
}

.contact-email {
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
}

.section-dark a:not(.btn) {
  color: #fff;
  font-weight: 700;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  display: inline-block;
  padding: 0.6rem 0;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #c9d3e0;
  padding: 2.5rem 0;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.footer-name {
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
}

.site-footer a {
  color: #fff;
  display: inline-block;
  padding: 0.55rem 0;
  font-weight: 600;
}

/* Mobile call bar */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 60px;
  padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom));
  background: var(--copper);
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 -2px 12px rgba(8, 21, 40, 0.3);
}

.callbar:focus-visible {
  outline-color: var(--navy);
  outline-offset: -5px;
}

/* Wider screens */
@media (min-width: 36em) {
  .header-call {
    display: inline-flex;
  }

  .header-inner {
    gap: 0.75rem 1.5rem;
    padding-top: 0.9rem;
    padding-bottom: 0.5rem;
  }

  .btn-big,
  .hero-actions .btn-ghost {
    width: auto;
  }

  .hero-actions .btn-ghost {
    min-height: 64px;
    padding: 1rem 1.5rem;
    font-size: 1.1875rem;
  }
}

@media (min-width: 48em) {
  body {
    padding-bottom: 0;
  }

  .callbar {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 2fr 1fr;
  }
}

@media (min-width: 56em) {
  .hero {
    padding: 3.5rem 0 4rem;
  }

  .hero-grid {
    grid-template-columns: 1.6fr 1fr;
    align-items: center;
    gap: 3rem;
  }

  .emergency-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
  }

  .section {
    padding: 4.5rem 0;
  }
}

@media (min-width: 62em) {
  .header-inner {
    flex-wrap: nowrap;
    padding-bottom: 0.9rem;
  }

  .site-nav {
    flex-basis: auto;
    order: 0;
    margin-left: auto;
  }

  .site-nav ul {
    gap: 0 1.25rem;
  }

  .site-nav a {
    font-size: inherit;
  }
}

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

  .btn,
  .site-nav a {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
}
