:root {
  --black: #030404;
  --white: #ffffff;
  --teal: #0085CA;
  --red: #C8102E;
  --cream: #e8e1d6;
  --ink: #15120f;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --gold: #c7aa72;
  --line: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: "Inter", Arial, sans-serif;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 86px;
  padding: 16px clamp(24px, 4vw, 62px);
  background: rgba(0, 0, 0, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 250px;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--teal);
  border: 2px solid var(--teal);
  border-radius: 50%;
  font-weight: 900;
}

.brand strong,
h1,
h2,
h3,
.site-nav,
.button,
.call-button,
.service-card a,
.town-grid a,
.county-back-link {
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand strong {
  display: block;
  font-size: 38px;
  line-height: 0.86;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.site-nav {
  display: flex;
  gap: clamp(10px, 1.7vw, 24px);
  align-items: center;
  font-size: 15px;
}

.site-nav a,
.call-button,
.button,
.site-footer a,
.service-card a,
.town-grid a,
.county-back-link {
  text-decoration: none;
}

.nav-item {
  position: relative;
}

.has-menu > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: grid;
  min-width: 210px;
  padding: 12px 0;
  background: rgba(3, 4, 4, 0.96);
  border: 1px solid rgba(53, 184, 196, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-menu a {
  padding: 10px 16px;
  white-space: nowrap;
}

.has-menu:hover .nav-menu,
.has-menu:focus-within .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.call-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 20px;
}

.call-button {
  border-color: var(--red);
}

.call-button img,
.button img,
.cta-icon img {
  width: 21px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(96%) saturate(3432%) hue-rotate(345deg) brightness(95%) contrast(93%);
}

.county-hero {
  position: relative;
  min-height: 636px;
  overflow: hidden;
  background: #030404;
}

.county-hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
}

.county-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: none;
  image-rendering: auto;
}

.county-hero::before {
  content: none;
  display: none;
}

.county-hero-copy {
  position: relative;
  z-index: 2;
  width: min(520px, calc(100% - 48px));
  padding: 154px 0 64px;
  margin-left: clamp(24px, 4.8vw, 72px);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.78);
}

.town-page .county-hero-copy {
  width: min(1040px, calc(100% - 48px));
  padding: 138px 0 44px;
  margin-left: clamp(24px, 4.8vw, 72px);
  margin-top: 0;
  background: transparent;
  border-left: 0;
  box-shadow: none;
  text-shadow: none;
}

.town-page .county-hero {
  display: flex;
  flex-direction: column-reverse;
  min-height: 0;
  background: #030404;
}

.town-page .county-hero-media {
  position: relative;
  inset: auto;
  width: 100%;
  height: clamp(330px, 48vw, 620px);
}

.hartland-page .county-hero-media {
  height: clamp(430px, 58vw, 780px);
}

.ellington-page .county-hero-media {
  height: clamp(640px, 67vw, 980px);
}

.union-page .county-hero-media {
  height: clamp(440px, 58vw, 780px);
}

.willington-page .county-hero-media {
  height: clamp(440px, 58vw, 780px);
}

.town-page .county-hero-copy p:not(.eyebrow) {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(58px, 8vw, 102px);
  font-weight: 400;
  line-height: 0.96;
}

.hero-brush-line {
  display: block;
  width: 430px;
  max-width: 92%;
  height: 20px;
  margin: 14px 0 22px;
  background: url("instinct-brush-line.png") left center / 100% 100% no-repeat;
}

.town-page .hero-brush-line {
  display: none;
}

.county-hero-copy p:not(.eyebrow) {
  max-width: 400px;
  margin: 0;
  color: #f4f5f5;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.75;
}

.identity-section,
.town-section,
.properties-section {
  padding: clamp(58px, 7vw, 86px) clamp(24px, 8vw, 112px);
}

.identity-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: 56px;
  align-items: start;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(199, 170, 114, 0.10), transparent 36%),
    #050606;
  border-top: 1px solid rgba(199, 170, 114, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.section-heading h2,
.identity-copy h2,
.town-section h2,
.services-section h2,
.properties-section h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 400;
  line-height: 0.95;
}

.red-rule {
  display: block;
  width: 42px;
  height: 3px;
  margin: 20px 0 24px;
  background: var(--red);
}

.identity-copy p,
.town-intro,
.properties-section p {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
}

.identity-copy p {
  color: #f0f2f0;
}

.identity-copy p + p {
  margin-top: 20px;
}

.services-section {
  padding: clamp(58px, 7vw, 86px) clamp(24px, 8vw, 112px);
  background: #050606;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.service-card {
  overflow: hidden;
  background: #0b0d0d;
  color: var(--white);
  border: 1px solid rgba(199, 170, 114, 0.18);
}

.service-card img {
  width: 100%;
  aspect-ratio: 1.24 / 1;
  object-fit: cover;
}

.service-card div {
  padding: 24px;
}

.service-card h3 {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 34px;
  font-weight: 400;
  line-height: 0.98;
}

.service-card p {
  margin: 0 0 16px;
  color: #e5e9e9;
  font-size: 16px;
  line-height: 1.6;
}

.service-card a {
  color: #0f6c75;
  font-size: 20px;
}

.why-choose-section {
  padding: clamp(58px, 7vw, 86px) clamp(24px, 8vw, 112px);
  color: var(--white);
  background:
    radial-gradient(circle at 20% 0%, rgba(53, 184, 196, 0.10), transparent 32%),
    #060707;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: rgba(199, 170, 114, 0.18);
}

.why-choose-grid article {
  min-height: 176px;
  padding: 26px;
  background: #0b0d0d;
}

.why-choose-grid h3 {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.why-choose-grid p {
  margin: 0;
  color: #e5e9e9;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
}

.town-section {
  color: var(--white);
  background: #050606;
}

.town-intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.town-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 22px;
}

.town-grid a {
  padding: 0 0 8px;
  color: #f0f4f4;
  background: transparent;
  border: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.town-grid a:hover {
  color: var(--red);
}

.properties-section {
  color: var(--white);
  background: #0a0c0c;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.18);
}

.properties-grid article {
  min-height: 168px;
  padding: 26px;
  background: #050606;
}

.properties-grid h3 {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.properties-grid p {
  color: #eef2f2;
  font-size: 16px;
  line-height: 1.65;
}

.local-detail-section {
  padding: clamp(58px, 7vw, 86px) clamp(24px, 8vw, 112px);
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    #060707;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.local-detail-section.dark {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(199, 170, 114, 0.09), transparent 34%),
    #050606;
}

.feature-list-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list-grid li {
  padding: 14px 16px;
  color: #ffffff;
  background: var(--panel);
  border: 1px solid rgba(199, 170, 114, 0.20);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.feature-list-grid a {
  color: inherit;
  text-decoration: none;
}

.feature-list-grid a:hover {
  color: var(--red);
}

.local-detail-section.dark .feature-list-grid li {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(53, 184, 196, 0.34);
}

.local-detail-section:not(.dark):not(.nearby-section) .feature-list-grid {
  gap: 10px 22px;
}

.local-detail-section:not(.dark):not(.nearby-section) .feature-list-grid li {
  padding: 0 0 8px;
  background: transparent;
  border: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.nearby-section .feature-list-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 22px;
}

.nearby-section .feature-list-grid li {
  padding: 0 0 8px;
  background: transparent;
  border: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.landmark-overview-grid {
  display: block;
  margin-top: 28px;
}

.landmark-overview-grid article {
  display: none;
  padding: 0 0 0 18px;
  background: transparent;
  border: 0;
  border-left: 3px solid rgba(226, 30, 37, 0.56);
}

.landmark-overview-grid article:target {
  display: block;
  max-width: 860px;
}

.landmark-overview-grid.js-landmark-accordion article,
.landmark-overview-grid.js-landmark-accordion article:target {
  display: none;
}

.landmark-overview-grid.js-landmark-accordion article.is-open {
  display: block;
  max-width: 860px;
}

.landmark-overview-grid figure {
  margin: -22px -22px 18px;
}

.landmark-overview-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.landmark-overview-grid h3 {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.landmark-overview-grid p {
  margin: 0;
  color: #e6eaea;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

.county-back-link {
  display: inline-flex;
  margin-top: 30px;
  color: var(--teal);
  font-size: 22px;
}

.serve-cta {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 28px clamp(24px, 7vw, 90px);
  background: #050606;
  border-bottom: 1px solid var(--line);
}

.cta-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 2px solid var(--teal);
  border-radius: 50%;
}

.serve-cta p {
  margin: 0;
  color: #f0f4f4;
  font-size: 16px;
  line-height: 1.5;
}

.serve-cta p span {
  color: var(--teal);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.button.primary {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--red);
}

.button.outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1180px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav,
  .hero-actions {
    flex-wrap: wrap;
  }

  .county-hero-copy {
    padding-top: 72px;
    margin-left: 24px;
  }

  .town-page .county-hero-copy {
    width: calc(100% - 48px);
    padding: 64px 0 34px;
    margin-top: 0;
  }

  .county-hero-media {
    width: 100%;
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .identity-section,
  .service-grid,
  .town-grid,
  .feature-list-grid,
  .landmark-overview-grid,
  .why-choose-grid,
  .properties-grid,
  .serve-cta {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .call-button,
  .button {
    width: 100%;
  }
}
