/* ============================================================
   NJ Golf Simulators — njgolfsimulators.com
   Design system: deep green / charcoal / off-white / gold
   ============================================================ */

/* ---------- Self-hosted fonts (latin subsets, font-display: swap) ---------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --green: #0B3D2E;
  --green-deep: #082E23;
  --green-soft: #10513E;
  --fairway: #3FA35B;
  --charcoal: #111111;
  --ink: #22271F;
  --muted: #5A6058;
  --cream: #F7F4EA;
  --cream-bright: #FDF9F1;
  --white: #FFFFFF;
  --gold: #C8A951;
  --gold-soft: #D9BC6B;
  --line: #E4DECB;
  --line-dark: rgba(247, 244, 234, 0.16);
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.06), 0 2px 8px rgba(17, 17, 17, 0.05);
  --shadow-md: 0 2px 6px rgba(17, 17, 17, 0.08), 0 12px 32px rgba(17, 17, 17, 0.10);
  --font-head: "Poppins", "Segoe UI", -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", -apple-system, sans-serif;
  --container: 1180px;
  --header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

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

h1, .h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--charcoal);
  line-height: 1.18;
  margin: 0 0 0.6em;
  font-weight: 600;
  text-wrap: balance;
}

h1, .h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.3rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-soft); }

ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: 0.35em; }

strong { color: var(--charcoal); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: var(--cream);
  padding: 10px 18px;
  z-index: 300;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 15px 26px;
  border-radius: 6px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }

/* Gold buttons: dark (green/charcoal) backgrounds only */
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-soft); color: var(--charcoal); }

/* Deep green buttons: light/off-white backgrounds only */
.btn-green { background: var(--green); color: var(--cream-bright); }
.btn-green:hover { background: var(--green-soft); color: var(--white); }

.btn-outline-light {
  border-color: rgba(247, 244, 234, 0.65);
  color: var(--cream-bright);
  background: transparent;
}
.btn-outline-light:hover { border-color: var(--cream-bright); background: rgba(247, 244, 234, 0.10); color: var(--white); }

.btn-outline-green {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}
.btn-outline-green:hover { background: var(--green); color: var(--cream-bright); }

.btn-lg { padding: 17px 32px; font-size: 1.06rem; }
.btn-sm { padding: 10px 15px; min-height: 40px; font-size: 0.94rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--cream-bright);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--header-h);
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 22px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 66px; width: auto; }

.main-nav { margin-left: 8px; }
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item { position: relative; }

.nav-link, .nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 10px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-toggle:hover { background: rgba(11, 61, 46, 0.07); color: var(--green); }

.nav-toggle .caret {
  width: 9px; height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.nav-item.open .nav-toggle .caret { transform: rotate(225deg) translateY(-1px); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  list-style: none;
  margin: 0;
  display: none;
  z-index: 210;
}
/* Invisible bridge over the 6px gap so the pointer never leaves the nav item
   while travelling from the parent label into the open dropdown */
.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.nav-item.open .dropdown { display: block; }
/* No-JS fallback: hover and keyboard focus still open the menus */
.no-js .nav-item:hover .dropdown,
.no-js .nav-item:focus-within .dropdown { display: block; }

.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.97rem;
  font-weight: 500;
}
.dropdown a:hover { background: var(--cream); color: var(--green); }
.dropdown .dropdown-label {
  padding: 10px 14px 4px;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-phone {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.99rem;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header-phone:hover { color: var(--green); }
.header-phone svg { flex-shrink: 0; }

.menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  border-radius: 6px;
}
.menu-btn:hover { background: rgba(11, 61, 46, 0.07); }
.menu-btn .bars { display: block; width: 24px; height: 2px; background: var(--charcoal); position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--charcoal);
}
.menu-btn .bars::before { top: -7px; }
.menu-btn .bars::after { top: 7px; }

.mobile-call {
  display: none;
  padding: 10px;
  border-radius: 6px;
  color: var(--green);
}
.mobile-call:hover { background: rgba(11, 61, 46, 0.07); }

/* Mobile nav panel */
.mobile-nav {
  display: none;
  background: var(--cream-bright);
  border-bottom: 1px solid var(--line);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 10px 18px 22px; }
.mobile-nav li { margin: 0; border-bottom: 1px solid var(--line); }
.mobile-nav li:last-child { border-bottom: 0; }
.mobile-nav a, .mobile-nav .m-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 4px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.mobile-nav .m-group-toggle .caret {
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  margin-right: 6px;
}
.mobile-nav .m-group.open .m-group-toggle .caret { transform: rotate(225deg); }
.mobile-nav .m-sub { display: none; padding: 0 0 8px 14px; }
.mobile-nav .m-group.open .m-sub { display: block; }
.mobile-nav .m-sub a { font-size: 0.99rem; padding: 11px 4px; font-weight: 400; color: var(--ink); }
.mobile-nav .m-cta { padding: 16px 4px 4px; border-bottom: 0; }
.mobile-nav .m-cta .btn { width: 100%; }

/* ---------- Mobile sticky call bar ---------- */

.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 190;
  background: var(--charcoal);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  box-shadow: 0 -4px 18px rgba(17, 17, 17, 0.25);
}
.mobile-cta-bar .btn { flex: 1; padding: 13px 10px; font-size: 0.98rem; }

/* ---------- Hero carousel ---------- */

.hero {
  position: relative;
  background: var(--green-deep);
  color: var(--cream-bright);
  overflow: hidden;
}

.carousel { position: relative; display: grid; }

/* All slides share one grid cell: the hero height stays constant (tallest
   slide wins) and slides cross-fade in place with zero layout shift */
.slide {
  grid-area: 1 / 1;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0s linear 0.7s;
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease;
  pointer-events: auto;
  z-index: 2;
}

.slide-bg {
  position: absolute;
  inset: 0;
}
.slide-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(78deg, rgba(8, 39, 30, 0.93) 0%, rgba(8, 42, 32, 0.82) 34%, rgba(10, 45, 34, 0.42) 62%, rgba(12, 40, 31, 0.22) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(66px, 9vw, 118px) 22px clamp(88px, 10vw, 128px);
}
.slide-content .inner { max-width: 620px; }

.slide-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(200, 169, 81, 0.55);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
  background: rgba(8, 46, 35, 0.55);
}

.hero h1, .hero .h1 {
  color: var(--white);
  margin-bottom: 0.45em;
}
.hero .sub {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: rgba(247, 244, 234, 0.90);
  max-width: 560px;
  margin-bottom: 1.6em;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }

.slide-note {
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(247, 244, 234, 0.72);
  margin: -6px 0 18px;
}

/* Gold CTA text hardening: the hero/page-hero container sets its own light
   `color` for surrounding copy (see `.hero`/`.page-hero` above), so this pins
   the gold button's own text color explicitly in every link state and can't
   be silently flipped by an ancestor's color or a stale cached stylesheet. */
.hero .btn-gold,
.hero .btn-gold:link,
.hero .btn-gold:visited,
.hero .btn-gold:hover,
.hero .btn-gold:focus,
.hero .btn-gold:active,
.page-hero .btn-gold,
.page-hero .btn-gold:link,
.page-hero .btn-gold:visited,
.page-hero .btn-gold:hover,
.page-hero .btn-gold:focus,
.page-hero .btn-gold:active,
.mobile-cta-bar .btn-gold,
.mobile-cta-bar .btn-gold:link,
.mobile-cta-bar .btn-gold:visited,
.mobile-cta-bar .btn-gold:hover,
.mobile-cta-bar .btn-gold:focus,
.mobile-cta-bar .btn-gold:active {
  color: #111111 !important;
  text-shadow: none;
  opacity: 1;
}
.hero .btn-gold *,
.page-hero .btn-gold *,
.mobile-cta-bar .btn-gold * {
  color: #111111 !important;
  opacity: 1;
  text-shadow: none;
}
.hero .btn-gold:focus-visible,
.page-hero .btn-gold:focus-visible,
.mobile-cta-bar .btn-gold:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.carousel-controls {
  position: absolute;
  z-index: 3;
  bottom: 26px;
  left: 0; right: 0;
}
.carousel-controls .container {
  display: flex;
  align-items: center;
  gap: 18px;
}
.carousel-dots { display: flex; gap: 9px; }
.carousel-dots button {
  width: 34px; height: 5px;
  border-radius: 3px;
  border: 0;
  background: rgba(247, 244, 234, 0.32);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease;
}
.carousel-dots button[aria-current="true"] { background: var(--gold); }
.carousel-arrows { display: flex; gap: 8px; margin-left: auto; }
.carousel-arrows button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(247, 244, 234, 0.45);
  background: rgba(8, 46, 35, 0.5);
  color: var(--cream-bright);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.carousel-arrows button:hover { background: rgba(200, 169, 81, 0.9); border-color: var(--gold); color: var(--charcoal); }

/* ---------- Trust chips band ---------- */

.trust-band {
  background: var(--green);
  border-top: 1px solid rgba(200, 169, 81, 0.35);
  padding: 18px 0;
}
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream-bright);
  border: 1px solid var(--line-dark);
  background: rgba(247, 244, 234, 0.06);
  border-radius: 999px;
  padding: 8px 16px;
  margin: 0;
}
.trust-chips li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---------- Sections ---------- */

.section { padding: clamp(58px, 8vw, 96px) 0; }
.section-white { background: var(--white); }
.section-cream { background: var(--cream); }
.section-dark { background: var(--green); color: rgba(247, 244, 234, 0.92); }
.section-charcoal { background: var(--charcoal); color: rgba(247, 244, 234, 0.92); }

.section-dark h2, .section-dark h3, .section-charcoal h2, .section-charcoal h3 { color: var(--white); }
.section-dark a:not(.btn), .section-charcoal a:not(.btn) { color: var(--gold-soft); }
.section-dark strong, .section-charcoal strong { color: var(--white); }

.eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 14px;
}
.section-dark .eyebrow, .section-charcoal .eyebrow, .hero .eyebrow { color: var(--gold); }

.section-head { max-width: 780px; margin-bottom: clamp(30px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.09rem; color: var(--muted); }
.section-dark .section-head p, .section-charcoal .section-head p { color: rgba(247, 244, 234, 0.80); }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.section-white .card { background: var(--cream-bright); }
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--muted); font-size: 0.99rem; }
.card .card-link {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
}
.card .card-link::after { content: " \2192"; }
.card .card-icon { margin-bottom: 16px; color: var(--green); }

.card-img { overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; margin: -28px -26px 22px; position: relative; }
.card-img img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

.dark-card { background: var(--green-soft); border-color: rgba(247, 244, 234, 0.14); box-shadow: none; }
.dark-card h3 { color: var(--white); }
.dark-card p { color: rgba(247, 244, 234, 0.80); }

/* Example Build Style badge */
.example-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(17, 17, 17, 0.72);
  color: var(--cream-bright);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

figure { margin: 0; }
figure.framed { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
figure.framed img { width: 100%; object-fit: cover; }
figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  padding-top: 10px;
}
.section-dark figcaption, .section-charcoal figcaption { color: rgba(247, 244, 234, 0.66); }

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.split.rev > :first-child { order: 2; }
.split.rev > :last-child { order: 1; }

/* ---------- Tier comparison (cage to complete room) ---------- */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.tier {
  background: rgba(247, 244, 234, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.tier .tier-step {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.tier h3 { color: var(--white); font-size: 1.16rem; }
.tier p { font-size: 0.95rem; color: rgba(247, 244, 234, 0.78); }
.tier ul { list-style: none; padding: 0; margin: 14px 0 0; }
.tier li {
  font-size: 0.92rem;
  color: rgba(247, 244, 234, 0.85);
  padding: 7px 0 7px 24px;
  position: relative;
  border-top: 1px solid rgba(247, 244, 234, 0.09);
}
.tier li::before {
  content: "";
  position: absolute;
  left: 2px; top: 14px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.tier .tier-best {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.88rem;
  color: var(--gold-soft);
}

/* ---------- Spec grid (Built Around Your Room) ---------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px 26px;
}

/* Opt-in modifier: centers a ragged last row instead of leaving an empty
   grid cell (e.g. a card count that doesn't divide evenly by the column
   count). Applied alongside .card-grid/.spec-grid, not a replacement. */
.grid-balanced { display: flex; flex-wrap: wrap; justify-content: center; }
.grid-balanced .card { flex: 1 1 290px; max-width: 400px; }
.grid-balanced .spec { flex: 1 1 300px; max-width: 400px; }
.spec {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.spec h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.spec h3::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
  transform: translateY(-1px);
}
.spec p { font-size: 0.94rem; color: var(--muted); margin: 0; }

.note-box {
  border-left: 4px solid var(--gold);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin-top: 30px;
  box-shadow: var(--shadow-sm);
}
.note-box p { margin: 0; font-size: 1rem; }
.section-dark .note-box, .section-charcoal .note-box { background: rgba(247, 244, 234, 0.06); }
.section-dark .note-box p { color: rgba(247, 244, 234, 0.92); }

/* ---------- Process steps ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  counter-increment: step;
}
.process-step h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.process-step h3::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cream-bright);
  background: var(--green);
  border-radius: 6px;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.process-step p { font-size: 0.93rem; color: var(--muted); margin: 0; }

/* ---------- Answer blocks (AI search) ---------- */

.answer-list { display: grid; gap: 16px; }
.answer {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.answer h3 { font-size: 1.06rem; margin-bottom: 6px; }
.answer p { font-size: 0.98rem; color: var(--ink); margin: 0; }
.answer p + p { margin-top: 0.6em; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 860px; }
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--charcoal);
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 24px;
  width: 10px; height: 10px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.faq-list details[open] summary::after { transform: rotate(225deg); top: 29px; }
.faq-list summary:hover { color: var(--green); }
.faq-list .faq-a { padding: 0 22px 20px; color: var(--muted); font-size: 0.99rem; }
.faq-list .faq-a p:last-child { margin-bottom: 0; }

.section-dark .faq-list details { background: rgba(247, 244, 234, 0.05); border-color: var(--line-dark); }
.section-dark .faq-list summary { color: var(--cream-bright); }
.section-dark .faq-list summary::after { border-color: var(--gold); }
.section-dark .faq-list .faq-a { color: rgba(247, 244, 234, 0.78); }

/* ---------- Service areas ---------- */

.area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.area-links li { margin: 0; }
.area-links a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(247, 244, 234, 0.06);
  color: var(--cream-bright);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.area-links a:hover { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }
.area-more { font-size: 0.97rem; color: rgba(247, 244, 234, 0.75); }

/* Light-section variant of the town-link chips (county hubs, index groups) */
.section-cream .area-links a,
.section-white .area-links a {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}
.section-cream .area-links a:hover,
.section-white .area-links a:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--cream-bright);
}

.town-list { columns: 3; column-gap: 34px; font-size: 0.97rem; }
.town-list li { break-inside: avoid; }

/* ---------- Quote form ---------- */

.form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(26px, 4vw, 44px);
}
.section-dark .form-wrap { border: 0; }

/* .form-wrap always has a white card background (see above), independent of
   whatever section (.section-dark, .section-charcoal, etc.) it's placed in.
   `.section-dark h2, .section-dark h3 { color: var(--white); }` is meant for
   headings sitting directly on that dark background, but it also cascades
   into this nested white card and renders the "Request a Free Simulator
   Quote" heading as white-on-white -- invisible. Pin it explicitly here so
   it can never inherit a light color from an ambient dark section again. */
.form-wrap h2,
.form-wrap h3 {
  color: #111111 !important;
}

.form-lede { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }

.form-section {
  border: 0;
  padding: 0;
  margin: 0 0 28px;
}
.form-section:last-of-type { margin-bottom: 0; }
.form-section legend {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  padding: 0 0 10px;
  margin: 0;
  width: 100%;
  border-bottom: 1px solid var(--line);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }

.field[hidden] { display: none; }

.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.field .optional { color: var(--muted); font-weight: 400; font-size: 0.82rem; }

.req-flag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--green);
  vertical-align: middle;
}
.req-flag.optional { color: var(--muted); }
.req-indicator { font-family: var(--font-body); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--green); }
.req-indicator.optional { color: var(--muted); }

.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream-bright);
  border: 1px solid #D8D2BE;
  border-radius: 6px;
  padding: 13px 14px;
  min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(63, 163, 91, 0.35);
  border-color: var(--green);
}
.field input[type="file"] { padding: 10px; background: var(--cream); }

.dim-fields { display: none; }
.dim-fields.visible { display: contents; }
.no-js .dim-fields { display: contents; }

.form-honey {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  left: -9999px;
}

.field-error {
  display: none;
  color: #A33A2E;
  font-size: 0.82rem;
  margin-top: 6px;
}
.field.invalid input,
.field.invalid select {
  border-color: #A33A2E;
  outline: 3px solid rgba(163, 58, 46, 0.15);
}
.field.invalid .field-error { display: block; }

.field-note {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 8px;
}

.form-note {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 16px;
}
.form-trust {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 14px;
}

.form-status { margin-top: 14px; font-weight: 600; }
.form-status.error { color: #A33A2E; }

.form-privacy {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
}

.turnstile-field { margin-top: 18px; }
.turnstile-field .cf-turnstile { min-height: 65px; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(115deg, var(--green-deep) 0%, var(--green) 58%, var(--green-soft) 100%);
  color: var(--cream-bright);
  padding: clamp(48px, 7vw, 80px) 0;
}
.cta-band .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.3em; }
.cta-band p { color: rgba(247, 244, 234, 0.85); margin: 0; max-width: 560px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  background:
    linear-gradient(100deg, rgba(8, 39, 30, 0.97) 0%, rgba(11, 61, 46, 0.92) 55%, rgba(16, 81, 62, 0.85) 100%),
    var(--green-deep);
  color: var(--cream-bright);
  padding: clamp(52px, 7vw, 88px) 0 clamp(46px, 6vw, 74px);
  border-bottom: 3px solid var(--gold);
}
.page-hero.with-image { position: relative; overflow: hidden; }
.page-hero.with-image .ph-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.30;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); max-width: 850px; }
.page-hero .sub { font-size: clamp(1.02rem, 1.7vw, 1.18rem); color: rgba(247, 244, 234, 0.88); max-width: 720px; margin-bottom: 1.5em; }
.page-hero .hero-ctas { margin-bottom: 0; }

.breadcrumbs {
  font-size: 0.86rem;
  margin-bottom: 22px;
  color: rgba(247, 244, 234, 0.72);
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: rgba(247, 244, 234, 0.45); }
.breadcrumbs a { color: rgba(247, 244, 234, 0.85); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-soft); }

/* ---------- Prose / article ---------- */

.prose { max-width: 780px; }
.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.4em; }
.prose > h2:first-child { margin-top: 0; }

.check-list { list-style: none; padding: 0; }
.check-list li { padding: 6px 0 6px 30px; position: relative; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 15px;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--fairway);
  border-bottom: 2.5px solid var(--fairway);
  transform: rotate(-45deg);
}

/* ---------- Cost table ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.cost-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.98rem;
  min-width: 640px;
}
.cost-table th, .cost-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cost-table thead th {
  background: var(--green);
  color: var(--cream-bright);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}
.cost-table tbody tr:last-child td { border-bottom: 0; }
.cost-table td:first-child { font-weight: 600; color: var(--charcoal); }
.cost-table .price { white-space: nowrap; font-weight: 600; color: var(--green); }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.contact-card {
  background: var(--green);
  color: rgba(247, 244, 234, 0.9);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.contact-card h2, .contact-card h3 { color: var(--white); }
.contact-card a:not(.btn) { color: var(--gold-soft); }
.contact-card .big-phone {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  margin: 4px 0 14px;
}
.contact-card .big-phone:hover { color: var(--gold-soft); }
.contact-card hr { border: 0; border-top: 1px solid var(--line-dark); margin: 22px 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-deep);
  color: rgba(247, 244, 234, 0.82);
  padding: clamp(48px, 7vw, 76px) 0 0;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 38px;
  padding-bottom: 44px;
}
.site-footer h3 {
  color: var(--white);
  font-size: 0.86rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a:not(.btn) { color: rgba(247, 244, 234, 0.82); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--gold-soft); }
.footer-brand .footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: 10px;
}
.footer-brand .footer-logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-brand .powered {
  color: var(--gold-soft);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.footer-brand .f-contact { margin-bottom: 6px; display: flex; gap: 9px; align-items: center; }
.footer-brand .f-contact a { font-weight: 600; color: var(--cream-bright); }
.footer-brand .btn { margin-top: 18px; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 22px 0 26px;
  font-size: 0.85rem;
  color: rgba(247, 244, 234, 0.55);
}
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; }
.footer-bottom p { margin: 0; }

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 32px; }
.mb-2 { margin-bottom: 20px; }
.small { font-size: 0.9rem; }
.muted { color: var(--muted); }
.gold-text { color: var(--gold); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 52px); align-items: start; }

/* Rows of framed example figures (homepage detail strip, guide pages) */
.figure-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(26px, 4vw, 44px);
}
.figure-row.triple { grid-template-columns: repeat(3, 1fr); }
.figure-row.single { grid-template-columns: 1fr; max-width: 720px; }

/* Service-areas index: towns grouped by county */
.county-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.county-group h3 { margin-bottom: 10px; }
.county-group h3 a { color: inherit; text-decoration: none; }
.county-group h3 a:hover { color: var(--fairway); text-decoration: underline; }
.section-dark .county-group h3, .section-cream .county-group h3 { color: inherit; }

.inline-links { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-links a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}
.inline-links a:hover { border-color: var(--green); background: var(--green); color: var(--cream-bright); }

/* ---------- Responsive ---------- */

@media (max-width: 1399px) {
  /* Trade the phone number for a compact call icon so the nav keeps room */
  .header-phone { display: none; }
  .mobile-call { display: inline-flex; }
}

@media (max-width: 1269px) {
  /* Tighten the header so logo + nav + actions fit 1150-class laptops */
  .brand img { height: 56px; }
  .nav-link, .nav-toggle { padding: 10px 7px; font-size: 0.92rem; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
}

@media (max-width: 1140px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; margin-left: 4px; }
  .header-inner { gap: 8px; }
  .brand img { height: 60px; }
}

@media (max-width: 900px) {
  .split, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .figure-row, .figure-row.triple { grid-template-columns: 1fr; }
  .county-grid { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .split.rev > :last-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .town-list { columns: 2; }
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 68px; }
  .header-actions .btn { display: none; }
  .mobile-call { margin-left: auto; }
  .menu-btn { margin-left: 0; }
  :root { --header-h: 66px; }
  .brand img { height: 54px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .town-list { columns: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .cta-band .actions { width: 100%; }
  .cta-band .actions .btn { flex: 1; }
  .slide-content { padding-bottom: 104px; }
  .brand img { height: 48px; }
  .carousel-arrows { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, .mobile-cta-bar, .site-footer .btn, .carousel-arrows, .carousel-dots { display: none !important; }
}
