:root {
  --ink: #172033;
  --navy: #1b2441;
  --blue: #2e5f9e;
  --gold: #d8aa48;
  --paper: #f6f7f3;
  --line: rgba(23, 32, 51, 0.12);
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
}

.site-nav {
  background: rgba(27, 36, 65, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.navbar-brand img {
  display: block;
  width: min(300px, 58vw);
  height: auto;
}

.navbar-brand {
  padding: 0;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.navbar .nav-link:focus,
.navbar .nav-link:hover {
  color: #fff;
}

.nav-phone {
  align-items: center;
  white-space: nowrap;
}

.site-nav .btn {
  align-items: center;
}

.mobile-contact-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 1rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(19, 28, 51, 0.98);
}

.mobile-contact-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-contact-bar a:first-child {
  background: rgba(255, 255, 255, 0.22);
}

.hero {
  position: relative;
  width: 100%;
  min-height: 720px;
  padding-top: 0;
  background: var(--paper);
  color: var(--navy);
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  background: #0f1628;
}

.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 100%;
}

.hero-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.02);
}

.hero::after {
  display: none;
}

.hero-copy {
  position: absolute;
  inset-inline: 0;
  bottom: 5rem;
  z-index: 2;
  opacity: 1;
  transition: opacity 420ms ease;
}

.hero-copy.is-fading {
  opacity: 0;
}

.hero-copy .container {
  padding-inline: 2rem;
}

.hero-copy,
.hero-copy * {
  color: var(--navy) !important;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--navy) !important;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.75);
}

.hero .lead {
  max-width: 420px;
  color: var(--navy) !important;
  font-size: 1.12rem;
  font-weight: 700;
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.7);
}

.eyebrow,
.section-kicker {
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--navy);
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.7);
}

.carousel-indicators {
  bottom: 0.35rem;
  z-index: 3;
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 3;
}

.section {
  padding: 5.5rem 0;
}

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

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
}

p {
  font-size: 1.05rem;
  line-height: 1.68;
}

.town-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1.1rem;
  padding-left: 0;
  list-style: none;
}

.town-list li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.town-list li::before {
  content: "\f14a";
  color: var(--navy);
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
}

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

.stats-grid > div {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 1rem;
  align-items: center;
}

.section-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.1);
}

.stats-grid > div,
.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.08);
}

.stats-grid > div {
  padding: 1.05rem 1.1rem;
}

.stats-grid i,
.service-card i {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: var(--navy);
  background: rgba(216, 170, 72, 0.22);
}

.stats-grid i {
  margin-bottom: 0;
  grid-row: span 2;
}

.service-card i {
  margin-bottom: 1.2rem;
}

.stats-grid strong,
.stats-grid span {
  display: block;
}

.stats-grid strong {
  font-size: 1.18rem;
  line-height: 1.2;
}

.stats-grid span {
  font-size: 0.98rem;
  line-height: 1.35;
  color: #626a79;
}

.service-card {
  height: 100%;
  padding: 1.7rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(23, 32, 51, 0.14);
}

.service-card h3 {
  font-size: 1.22rem;
  font-weight: 800;
}

.service-card p {
  margin-bottom: 0;
  color: #626a79;
}

.service-card-accent {
  background: var(--navy);
  color: #fff;
}

.service-card-accent p {
  color: rgba(255, 255, 255, 0.78);
}

.service-card-accent i {
  color: #fff;
  background: rgba(216, 170, 72, 0.28);
}

.quality-section {
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}

.quality-banner {
  display: block;
  width: 100%;
}

.btn-primary {
  --bs-btn-bg: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-bg: #131c33;
  --bs-btn-hover-border-color: #131c33;
  --bs-btn-active-bg: #131c33;
  --bs-btn-active-border-color: #131c33;
  font-weight: 800;
}

.contact-section {
  background: #fff;
}

.contact-actions {
  display: grid;
  justify-content: flex-lg-end;
  gap: 0.8rem;
}

.contact-actions .btn {
  min-width: min(100%, 300px);
}

.btn-outline-primary {
  --bs-btn-color: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-bg: var(--navy);
  --bs-btn-hover-border-color: var(--navy);
  --bs-btn-active-bg: var(--navy);
  --bs-btn-active-border-color: var(--navy);
  font-weight: 800;
}

.site-footer {
  padding: 3rem 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy);
}

.footer-logo {
  width: min(330px, 82vw);
  height: auto;
}

@media (max-width: 991.98px) {
  .hero {
    min-height: 620px;
  }

  .hero-copy {
    bottom: 4rem;
  }
}

@media (max-width: 575.98px) {
  p {
    font-size: 1.12rem;
    line-height: 1.65;
  }

  .site-nav,
  .hero,
  main,
  .site-footer {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .navbar-brand img {
    width: min(248px, 68vw);
  }

  .hero {
    min-height: 500px;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .hero-carousel {
    width: 100%;
    max-width: 100%;
  }

  .hero-carousel img {
    object-position: center center;
  }

  .hero-copy {
    position: absolute;
    inset-inline: 0;
    bottom: 2.75rem;
  }

  .hero-copy .container {
    padding-inline: 1.65rem;
  }

  .section {
    padding: 4rem 0;
  }

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

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

  .stats-grid > div {
    grid-template-columns: 42px 1fr;
    column-gap: 0.9rem;
    padding: 0.95rem 1rem;
  }

  .stats-grid i {
    width: 42px;
    height: 42px;
    margin-bottom: 0;
    grid-row: span 2;
  }

  .stats-grid strong {
    font-size: 1.28rem;
    line-height: 1.2;
  }

  .stats-grid span {
    font-size: 1.08rem;
    line-height: 1.35;
  }

  .service-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 0.95rem;
    align-items: center;
    padding: 1.05rem 1rem;
  }

  .service-card i {
    width: 42px;
    height: 42px;
    margin-bottom: 0;
    grid-row: span 2;
  }

  .service-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.28rem;
    line-height: 1.22;
  }

  .service-card p {
    font-size: 1.08rem;
    line-height: 1.38;
  }

  .site-footer {
    text-align: center;
  }

  .contact-actions {
    display: grid;
  }
}
