@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3.woff") format("woff");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f4ee;
  --ink: #14202b;
  --navy: #0e2744;
  --navy-deep: #091c32;
  --red: #c41230;
  --red-hover: #a70f29;
  --muted: #4a545c;
  --line: #ddd6c8;
  --sand: #efe8dc;
  --cream: #fffcf6;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --header-h: 4.25rem;
  --shadow: 0 18px 40px rgba(14, 39, 68, 0.12);
  --radius: 1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus {
  outline: none;
}

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

.btn:focus-visible,
.nav-cta:focus-visible,
.mobile-cta a:focus-visible {
  outline-color: var(--cream);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 80;
  padding: 0.7rem 1rem;
  background: var(--red);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
  outline-color: var(--cream);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: grid;
  text-decoration: none;
  line-height: 1;
}

.brand-mark {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.brand-mark .amp {
  color: var(--red);
}

.brand-text {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--cream);
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem var(--gutter) 1.1rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  padding: 0.7rem 0.35rem;
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 0.45rem;
  height: 2.75rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--red-hover);
}

.nav-cta svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav a {
    padding: 0;
    font-size: 0.95rem;
  }

  .site-nav a:hover {
    color: var(--red);
  }

  .nav-cta {
    display: inline-flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-red {
  background: var(--red);
  color: var(--cream);
}

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

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: color-mix(in srgb, var(--sand) 70%, transparent);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--cream) 10%, transparent);
}

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

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

.btn-outline-navy {
  background: transparent;
  color: var(--cream);
  border-color: color-mix(in srgb, var(--sand) 55%, transparent);
}

.btn-outline-navy:hover {
  background: color-mix(in srgb, var(--cream) 10%, transparent);
}

/* Hero */
.hero {
  background-color: var(--navy);
  background-image:
    radial-gradient(1200px 400px at 10% -10%, rgba(196, 18, 48, 0.16), transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--paper);
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.25rem, 6vw, 5.75rem);
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: var(--sand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--red);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.9;
}

.hero-copy {
  margin-top: 1.25rem;
  max-width: 32rem;
  font-size: 1.16rem;
  color: var(--sand);
}

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

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

/* Shared sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.75rem) 0;
}

.section-kicker {
  margin: 0 0 0.65rem;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 0.95;
  color: var(--navy);
}

.lede {
  margin-top: 0.9rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.06rem;
}

/* Services */
.service-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  min-width: 0;
  padding: 1.55rem 1.4rem 1.5rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(14, 39, 68, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.icon-wrap {
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 0.9rem;
  background: var(--sand);
  color: var(--red);
}

.icon-wrap svg {
  width: 1.75rem;
  height: 1.75rem;
}

.service-card h3 {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: var(--navy);
  overflow-wrap: break-word;
}

.service-card p {
  color: var(--ink);
  font-size: 0.98rem;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .service-card {
    padding: 1.4rem 1.15rem 1.3rem;
  }

  .service-card h3 {
    font-size: 1.5rem;
  }
}

/* How it works */
.how {
  background: var(--sand);
}

.how-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.15rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.4rem 1.3rem;
  background: var(--cream);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: var(--radius);
}

.step-num {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
}

.step h3 {
  font-size: 1.08rem;
  color: var(--navy);
}

.step p {
  margin-top: 0.25rem;
  color: var(--ink);
  font-size: 0.98rem;
}

@media (min-width: 860px) {
  .how-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.15rem;
  }

  .step {
    grid-template-columns: 1fr;
    min-height: 100%;
    padding: 1.7rem 1.5rem 1.55rem;
  }
}

/* Areas */
.towns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

.towns li {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sand);
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
}

/* Quote / contact */
.quote {
  background-color: var(--navy);
  background-image:
    radial-gradient(900px 320px at 90% 0%, rgba(196, 18, 48, 0.18), transparent 45%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--paper);
}

.quote h2 {
  color: var(--paper);
}

.quote .lede {
  color: var(--sand);
}

.phone-xl {
  display: inline-block;
  margin-top: 1.6rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--paper);
  text-decoration: none;
}

.quote-note {
  margin-top: 0.45rem;
  color: var(--sand);
  font-size: 0.98rem;
}

.quote-email {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--paper);
  font-weight: 700;
}

.direct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.quote-grid {
  display: grid;
  gap: 2.4rem;
}

@media (min-width: 880px) {
  .quote-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
    align-items: start;
  }
}

.quote-form {
  display: grid;
  gap: 0.95rem;
  padding: 1.4rem;
  background: color-mix(in srgb, var(--cream) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--sand) 22%, transparent);
  border-radius: 1.15rem;
}

.quote-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--paper);
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--cream);
  color: var(--ink);
  padding: 0.8rem 0.9rem;
}

.quote-form input {
  min-height: 3rem;
}

.quote-form textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.form-help {
  margin: 0;
  color: var(--sand);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
}

.form-status {
  margin: 0;
  color: var(--sand);
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0 7.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-name {
  color: var(--navy);
  font-weight: 700;
}

@media (min-width: 800px) {
  .site-footer {
    padding-bottom: 2rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
  }
}

/* Mobile CTA bar */
.mobile-cta {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.mobile-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(14, 39, 68, 0.2);
}

.mobile-cta .call {
  background: var(--red);
  color: var(--cream);
}

.mobile-cta .text {
  background: var(--navy);
  color: var(--cream);
}

@media (min-width: 800px) {
  .mobile-cta {
    display: none;
  }
}

/* Utility used by 404 */
.simple-page {
  min-height: calc(100vh - 8rem);
  display: grid;
  align-content: center;
  padding: 4rem 0;
}

.simple-page h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  color: var(--navy);
  letter-spacing: 0.03em;
  line-height: 0.95;
}

.simple-page p {
  margin-top: 1rem;
  max-width: 32rem;
  color: var(--muted);
}

.simple-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.simple-actions .btn-navy {
  color: var(--cream);
}

.simple-actions .btn-ghost-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--navy);
  color: var(--navy);
}

/* Sticky-header offset */
#top,
#services,
#how,
#areas,
#quote {
  scroll-margin-top: 5.25rem;
}

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

  .service-card:hover {
    transform: none;
  }
}
