:root {
  --bg: #ebe7de;
  --surface: #f8f4ec;
  --surface-strong: #fffdfa;
  --ink: #151922;
  --muted: #5c6672;
  --brand: #17324d;
  --brand-deep: #0d2237;
  --accent: #eea928;
  --accent-deep: #d46f21;
  --signal: #c74c2d;
  --line: rgba(21, 25, 34, 0.1);
  --shadow: 0 20px 40px rgba(13, 34, 55, 0.12);
  --radius: 8px;
  --content: min(1120px, calc(100% - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(238, 169, 40, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(23, 50, 77, 0.12), transparent 32%),
    linear-gradient(180deg, #f8f5ef 0%, var(--bg) 100%);
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

a,
button,
.button,
.header-phone,
.brand-mark,
.hero-points li,
.feature-grid article,
.service-grid article,
.local-grid article,
.contact-panel,
.info-panel,
.zone-card {
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background-color 0.24s ease,
    color 0.24s ease,
    opacity 0.24s ease;
}

p,
li {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(248, 244, 236, 0.9);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.content,
.footer-inner {
  width: var(--content);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--brand-deep);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--accent) 0%, #f4c55f 100%);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.brand-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand-subtitle {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

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

.main-nav a {
  font-size: 0.95rem;
  color: var(--brand);
  position: relative;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--signal);
}

.main-nav a[aria-current="page"] {
  color: var(--signal);
  font-weight: 700;
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-deep);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--brand-deep);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
}

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

.page-shell {
  padding-bottom: 4rem;
}

.hero,
.page-hero {
  width: var(--content);
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: stretch;
}

.page-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2rem;
  align-items: stretch;
}

.local-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  gap: 2rem;
  align-items: stretch;
}

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

.eyebrow::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--accent-deep);
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  color: var(--ink);
  font-family: "Gill Sans", "Trebuchet MS", sans-serif;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.7rem, 2vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

.hero-copy > p,
.page-hero > p,
.page-hero-copy > p,
.lead {
  max-width: 62ch;
  font-size: 1.05rem;
}

.cta-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.small {
  font-size: 0.92rem;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--brand-deep);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--brand);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(23, 50, 77, 0.24);
  background: rgba(255, 255, 255, 0.96);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 30px rgba(212, 111, 33, 0.24);
}

.button:focus-visible,
.header-phone:focus-visible,
.main-nav a:focus-visible {
  outline: 3px solid rgba(238, 169, 40, 0.4);
  outline-offset: 3px;
}

.signal-tape {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.44);
  border-bottom: 1px solid rgba(21, 25, 34, 0.08);
  background: rgba(255, 253, 250, 0.7);
}

.signal-tape__track {
  display: flex;
  width: max-content;
  animation: tape-scroll 26s linear infinite;
}

.signal-tape__group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0.75rem;
}

.signal-tape__item {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 50, 77, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.signal-tape__item--accent {
  background: rgba(238, 169, 40, 0.18);
  color: var(--brand-deep);
}

.signal-tape:hover .signal-tape__track,
.signal-tape:focus-within .signal-tape__track {
  animation-play-state: paused;
}

.quick-trust {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin: 0 0 1.2rem;
  list-style: none;
}

.quick-trust li {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.82);
  box-shadow: var(--shadow);
  color: var(--brand-deep);
  font-weight: 700;
}

.quick-trust span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
}

.hero-points,
.stat-list,
.pill-list,
.zone-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-points li,
.feature-grid article,
.service-grid article,
.zone-card,
.contact-panel,
.info-panel,
.local-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.88);
  box-shadow: var(--shadow);
}

.hero-points li {
  padding: 1rem;
}

.hero-points strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brand-deep);
}

.hero-media {
  position: relative;
  min-height: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--brand-deep);
}

.page-hero-media {
  position: relative;
  min-height: 100%;
}

.local-hero-media {
  position: relative;
  min-height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 34, 55, 0.1) 0%, rgba(13, 34, 55, 0.7) 100%);
}

.hero-badge {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 1;
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.hero-badge strong {
  color: var(--brand-deep);
}

.media-carousel {
  position: relative;
  height: 100%;
  min-height: 540px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--brand-deep);
}

.page-hero-media .media-carousel {
  min-height: 100%;
}

.media-carousel__viewport {
  position: relative;
  height: 100%;
}

.media-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.7s ease;
  pointer-events: none;
}

.media-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.media-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 34, 55, 0.06) 0%, rgba(13, 34, 55, 0.72) 100%);
}

.media-slide__overlay {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 4.6rem;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
}

.media-slide__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.18);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.media-slide__title {
  color: #fff;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.08;
}

.media-slide__text {
  max-width: 30ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
}

.media-carousel__controls {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.media-carousel__button {
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(13, 34, 55, 0.46);
  color: #fff;
  cursor: pointer;
}

.media-carousel__button:hover,
.media-carousel__button:focus-visible {
  background: rgba(13, 34, 55, 0.72);
  transform: translateY(-1px);
}

.media-carousel__dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.media-carousel__dot {
  width: 0.75rem;
  height: 0.75rem;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.media-carousel__dot[aria-pressed="true"] {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(238, 169, 40, 0.16);
}

.media-card {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  max-width: 240px;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
}

.media-card strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--brand-deep);
}

.media-card p {
  margin: 0;
  font-size: 0.92rem;
}

.local-spotlight {
  position: relative;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--brand-deep);
}

.local-spotlight img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.local-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 34, 55, 0.04) 0%, rgba(13, 34, 55, 0.76) 100%);
}

.local-spotlight__content {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 1;
  display: grid;
  gap: 0.6rem;
}

.local-spotlight__content strong,
.local-spotlight__content span,
.local-spotlight__content p {
  color: #fff;
}

.local-spotlight__content strong {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.08;
}

.local-spotlight__content p {
  max-width: 34ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.local-hero-stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.1rem;
}

.local-hero-stats article {
  padding: 0.95rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.84);
  box-shadow: var(--shadow);
}

.local-hero-stats strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--brand-deep);
  font-size: 1rem;
}

.local-hero-stats p {
  margin: 0;
  font-size: 0.92rem;
}

.hero-points li:hover,
.feature-grid article:hover,
.service-grid article:hover,
.local-grid article:hover,
.contact-panel:hover,
.info-panel:hover,
.zone-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 50, 77, 0.18);
}

.content section {
  padding: 2.2rem 0;
}

.section-band {
  background: rgba(255, 253, 250, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(21, 25, 34, 0.06);
}

.feature-grid,
.service-grid,
.local-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article,
.service-grid article,
.local-grid article,
.contact-panel,
.zone-card,
.info-panel {
  padding: 1.2rem;
}

.service-grid p,
.feature-grid p,
.local-grid p {
  margin-bottom: 0;
}

.service-grid a,
.local-grid a {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--signal);
}

.split-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: start;
}

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

.zone-list li,
.pill-list li,
.stat-list li {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: rgba(23, 50, 77, 0.08);
  color: var(--brand);
}

.pill-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.cta-band {
  padding: 1.5rem;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 60%, #33516d 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-band h2,
.cta-band p,
.cta-band a {
  color: #fff;
}

.contact-grid,
.legal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
}

.contact-panel strong,
.info-panel strong,
.zone-card strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--brand-deep);
}

.contact-list,
.legal-list {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-list li,
.legal-list li {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child,
.legal-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  background: rgba(13, 34, 55, 0.04);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-meta {
  display: grid;
  gap: 0.35rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.kicker {
  margin: 0 0 0.6rem;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
}

.page-hero {
  display: grid;
  gap: 1rem;
}

.page-hero-copy {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.page-hero h1 {
  max-width: 14ch;
}

.page-note {
  max-width: 72ch;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--accent-deep);
  background: rgba(255, 255, 255, 0.65);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.5s ease var(--reveal-delay, 0ms),
    transform 0.5s ease var(--reveal-delay, 0ms);
}

.reveal.is-visible,
.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-callbar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: none;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid rgba(23, 50, 77, 0.12);
  border-radius: 12px;
  background: rgba(255, 253, 250, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 40px rgba(13, 34, 55, 0.18);
}

.mobile-callbar a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}

.mobile-callbar__primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--brand-deep);
}

.mobile-callbar__secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand);
}

.call-feedback {
  position: fixed;
  right: 1rem;
  bottom: 6.4rem;
  z-index: 21;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(13, 34, 55, 0.96);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.call-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-engaged {
  box-shadow: 0 0 0 5px rgba(238, 169, 40, 0.18);
}

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

@keyframes tape-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .hero-layout,
  .page-hero-layout,
  .local-hero-layout,
  .split-layout,
  .contact-grid,
  .legal-grid,
  .feature-grid,
  .service-grid,
  .local-grid {
    grid-template-columns: 1fr;
  }

  .hero-points,
  .zone-list,
  .quick-trust,
  .local-hero-stats {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 14ch;
  }

  .media-carousel {
    min-height: 420px;
  }

  .local-spotlight {
    min-height: 380px;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .header-inner {
    padding: 0.9rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .header-phone {
    width: 100%;
  }

  .hero,
  .page-hero {
    padding-top: 2rem;
  }

  .media-slide__overlay {
    bottom: 4.2rem;
  }

  .media-slide__text {
    max-width: none;
  }

  .media-card {
    max-width: none;
    left: 1rem;
    right: 1rem;
    top: 1rem;
  }

  .signal-tape__group {
    padding: 0.75rem 0.55rem;
  }

  .page-shell {
    padding-bottom: 7.5rem;
  }

  .mobile-callbar {
    display: grid;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.3rem);
  }
}

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

  .signal-tape__track {
    animation: none;
  }
}
