/* =========================================================
   Boundary Bros Fencing  -  Bold Modern
   Light theme locked. Accent #D64C1E (boundary orange) +
   slate navy #2C3E50. Sora display / Work Sans body.
   Motif: the surveyed line / marked boundary.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --accent: #D64C1E;
  --accent-deep: #B73C12;
  --accent-soft: #FBEAE2;
  --navy: #2C3E50;
  --navy-700: #233140;
  --navy-900: #1A2531;
  --ink: #171A1D;
  --paper: #FFFFFF;

  --bg: #FFFFFF;
  --bg-alt: #F6F7F8;
  --bg-tint: #FBF4F1;
  --line: #E5E7EA;
  --line-strong: #D2D6DB;

  --text: #171A1D;
  --text-soft: #4B5560;
  --text-mute: #6C7681;
  --on-dark: #F4F6F8;
  --on-dark-soft: #AEB9C4;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(23,26,29,.06), 0 2px 6px rgba(23,26,29,.05);
  --shadow-md: 0 10px 30px -12px rgba(44,62,80,.28);
  --shadow-lg: 0 30px 60px -22px rgba(44,62,80,.40);
  --shadow-accent: 0 14px 30px -12px rgba(214,76,30,.55);

  --shell: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 72px;

  --font-display: "Sora", system-ui, -apple-system, sans-serif;
  --font-body: "Work Sans", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }  /* NAV-SAFETY: never outranked */

* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; letter-spacing: -0.02em; font-weight: 700; }

::selection { background: var(--accent); color: #fff; }

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

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(64px, 9vw, 120px); }

.section__head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 60px); }
.section__head--center { margin-inline: auto; text-align: center; }

.section__title {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 800;
  color: var(--ink);
}
.section__title--light { color: var(--on-dark); }

.section__lede {
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--text-soft);
  max-width: 60ch;
}
.section__head--center .section__lede { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.eyebrow--light { color: #FFB99E; }
.eyebrow--light::before { background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 13px;
  --btn-pad-x: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease);
  border: 2px solid transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--lg { --btn-pad-y: 16px; --btn-pad-x: 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover { background: #A33410; transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(214,76,30,.6); }

.btn--ghost-light {
  background: rgba(255,255,255,.06);
  color: var(--on-dark);
  border-color: rgba(255,255,255,.32);
}
.btn--ghost-light:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); transform: translateY(-2px); }

.btn--ghost-dark {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--ghost-dark:hover { background: var(--accent); color: #fff; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav.is-scrolled {
  box-shadow: 0 6px 24px -16px rgba(23,26,29,.4);
  border-bottom-color: var(--line);
  background: rgba(255,255,255,.94);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
  transition: height .3s var(--ease);
}
.nav.is-scrolled .nav__inner { height: 62px; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.wordmark__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--accent);
  flex: none;
  transition: transform .25s var(--ease);
}
.wordmark:hover .wordmark__mark { transform: rotate(-4deg); }
.wordmark__bros { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  margin-right: 8px;
}
.nav__links a {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--text-soft);
  padding-block: 6px;
  transition: color .18s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--line-strong);
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}
.phone-cta svg { color: var(--accent); }
.phone-cta:hover { border-color: var(--accent); background: var(--accent-soft); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  border: 2px solid var(--line-strong);
  padding: 0 11px;
}
.nav__toggle-bar {
  height: 2.5px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 16px 24px 26px;
  box-shadow: var(--shadow-md);
  animation: menuDrop .28s var(--ease);
}
@keyframes menuDrop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu__links { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--ink);
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__cta { border-bottom: none !important; margin-top: 12px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--on-dark);
  overflow: hidden;
  padding-top: clamp(56px, 8vw, 88px);
  padding-bottom: clamp(56px, 8vw, 96px);
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__mesh {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(48% 55% at 82% 12%, rgba(214,76,30,.32), transparent 60%),
    radial-gradient(40% 50% at 6% 88%, rgba(44,62,80,.85), transparent 55%),
    radial-gradient(60% 60% at 50% 120%, rgba(214,76,30,.10), transparent 60%),
    linear-gradient(160deg, #1F2C3A 0%, #16202B 60%, #131B24 100%);
}
/* surveyed boundary line motif */
.hero__line {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 64px);
  mask-image: radial-gradient(120% 100% at 70% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 70% 30%, #000 30%, transparent 78%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__title {
  font-size: clamp(1.95rem, 7.4vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 22px;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
.hero__accent {
  color: var(--accent);
  position: relative;
  display: inline-block;
}
/* keep the marked line on one tidy row only where it comfortably fits */
@media (min-width: 480px) {
  .hero__accent { white-space: nowrap; }
}
/* hand-drawn underline = "marking the line" */
.hero__accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 8px;
  background: var(--accent);
  border-radius: 6px;
  transform: scaleX(0);
  transform-origin: left;
  opacity: .65;
  animation: lineMark 1s var(--ease) .35s forwards;
}
@keyframes lineMark { to { transform: scaleX(1); } }

.hero__sub {
  font-size: clamp(1.04rem, 1.5vw, 1.22rem);
  color: var(--on-dark-soft);
  max-width: 52ch;
  margin-bottom: 30px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--on-dark-soft);
}
.hero__trust svg { color: var(--accent); flex: none; }

/* Hero visual */
.hero__visual { position: relative; }
.hero__panel {
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  padding: 16px;
  box-shadow: var(--shadow-lg);
}
.hero__panel-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, #33414f, #232e39);
}
.hero__fence-art { width: 100%; height: 100%; opacity: .9; }
.hero__panel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero__panel-tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--on-dark);
  background: rgba(19,27,36,.72);
  border: 1px solid rgba(255,255,255,.16);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}
.hero__panel-stat {
  display: flex;
  flex-direction: column;
  padding: 14px 8px 6px;
}
.hero__panel-stat strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero__panel-stat span { font-size: 0.9rem; color: var(--on-dark-soft); }

.hero__floater {
  position: absolute;
  left: -24px;
  bottom: -68px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-deep);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-accent);
  max-width: 250px;
  animation: floatY 5s ease-in-out infinite;
}
.hero__floater-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  flex: none;
}
.hero__floater-text { font-size: 0.86rem; line-height: 1.3; font-weight: 500; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* =========================================================
   STATS BAR
   ========================================================= */
.stats {
  background: var(--ink);
  color: #fff;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 34px;
}
.stat {
  text-align: center;
  padding: 8px 18px;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,.14);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: 9px;
  font-size: 0.88rem;
  color: var(--on-dark-soft);
}

/* =========================================================
   SERVICES
   ========================================================= */
.services { background: var(--bg); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 30px;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.svc-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s var(--ease);
}
.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.svc-card:hover::before { transform: scaleY(1); }
.svc-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.svc-card:hover .svc-card__icon { background: var(--accent); color: #fff; }
.svc-card__title {
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.svc-card p { color: var(--text-soft); font-size: 0.99rem; }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how { background: var(--bg-alt); }
.how__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
  counter-reset: step;
}
.how__step {
  position: relative;
  padding-top: 18px;
}
.how__step::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 56px;
  right: -22px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px);
}
.how__step:last-child::before { display: none; }
.how__index {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--bg-alt);
}
.how__title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 9px;
}
.how__step p { color: var(--text-soft); font-size: 0.97rem; }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { background: var(--bg); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.ph {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ph:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 30%, rgba(23,26,29,.66) 100%);
}
/* real photos sit above the placeholder gradient, below the legibility overlay + caption */
.ph-img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph--a::before { background: linear-gradient(150deg, #3a4b5c, #222d38); }
.ph--b::before { background: linear-gradient(150deg, #4a3326, #2c1f17); }
.ph--c::before { background: linear-gradient(150deg, #35434f, #283139); }
.ph--d::before { background: linear-gradient(150deg, #52443a, #34302a); }
.ph--e::before { background: linear-gradient(150deg, #2f4750, #20323a); }

/* subtle slat texture on placeholders */
.ph::before {
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 26px);
}

.ph--tall { grid-row: span 2; }
.ph--wide { grid-column: span 2; }

.ph__chrome {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 1;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  backdrop-filter: blur(4px);
}
.ph figcaption {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  color: #fff;
}

/* =========================================================
   MISSED-CALL TEXTBACK  (OP Digital product, woven in)
   ========================================================= */
.textback {
  background: var(--navy-900);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.textback::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46% 60% at 90% 8%, rgba(214,76,30,.26), transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgba(44,62,80,.7), transparent 60%);
}
.textback__grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.textback__lede {
  margin-top: 18px;
  color: var(--on-dark-soft);
  font-size: 1.08rem;
  max-width: 54ch;
}
.textback__points { margin-top: 26px; display: grid; gap: 14px; }
.textback__points li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 500;
  color: var(--on-dark);
}
.textback__tick {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  flex: none;
}

/* Quote form card */
.textback__formwrap { position: relative; }
.quote-form {
  position: relative;
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-lg);
}
.quote-form__title { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.quote-form__sub { color: var(--text-soft); margin-top: 6px; margin-bottom: 22px; font-size: 0.98rem; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.field__opt { color: var(--text-mute); font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: #6B7480; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 56px; }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #C8401C;
  box-shadow: 0 0 0 4px rgba(200,64,28,.12);
}
.field__error {
  font-size: 0.82rem;
  color: #B5350F;
  font-weight: 500;
  min-height: 0;
}

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; }
.select-wrap__chev {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  pointer-events: none;
}

.quote-form button[type="submit"] { margin-top: 6px; }
.quote-form__fineprint {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-mute);
  text-align: center;
}

.quote-form__success {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px;
  gap: 8px;
  animation: successIn .4s var(--ease);
}
@keyframes successIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
.quote-form__success-icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 8px;
}
.quote-form__success h3 { font-size: 1.5rem; color: var(--ink); }
.quote-form__success p { color: var(--text-soft); max-width: 36ch; }
.quote-form__success .btn { margin-top: 14px; }

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews { background: var(--bg-alt); }
.reviews__rating { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.reviews__stars { display: inline-flex; gap: 2px; color: #F5A623; }
.reviews__rating-text { font-size: 0.98rem; color: var(--text-soft); }
.reviews__rating-text strong { color: var(--ink); font-family: var(--font-display); font-weight: 800; }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review blockquote {
  font-size: 1.06rem;
  color: var(--text);
  line-height: 1.55;
  font-weight: 400;
}
.review figcaption { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.review__avatar {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  flex: none;
}
.review__who { display: flex; flex-direction: column; line-height: 1.3; }
.review__who strong { font-weight: 700; color: var(--ink); }
.review__who span { font-size: 0.88rem; color: var(--text-mute); }

/* =========================================================
   SERVICE AREAS
   ========================================================= */
.areas { background: var(--bg); }
.areas__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.areas__intro .btn { margin-top: 26px; }
.areas__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.areas__list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.areas__list li:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateX(3px); }
.areas__list svg { color: var(--accent); flex: none; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent-deep) 58%, #A8350F 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 80% -10%, rgba(255,255,255,.16), transparent 60%);
}
.final-cta__inner {
  position: relative;
  text-align: center;
  padding-block: clamp(64px, 9vw, 110px);
}
.final-cta__line {
  width: 64px;
  height: 5px;
  background: rgba(255,255,255,.85);
  border-radius: 4px;
  margin: 0 auto 26px;
}
.final-cta__title {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
}
.final-cta__sub {
  margin: 18px auto 0;
  max-width: 50ch;
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  color: #fff;
}
.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}
.final-cta .btn--primary {
  background: #fff;
  color: var(--accent-deep);
  box-shadow: 0 16px 34px -14px rgba(0,0,0,.4);
}
.final-cta .btn--primary:hover { background: var(--ink); color: #fff; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: var(--on-dark-soft); padding-top: clamp(56px, 7vw, 80px); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.wordmark--footer { color: #fff; margin-bottom: 18px; }
.wordmark--footer .wordmark__mark { background: #fff; color: var(--accent); }
.footer__blurb { font-size: 0.96rem; max-width: 38ch; color: var(--on-dark-soft); }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.footer__social a:hover { background: var(--accent); transform: translateY(-2px); }

.footer__col h3 {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer__list { display: flex; flex-direction: column; gap: 11px; font-size: 0.96rem; }
.footer__list a { transition: color .18s var(--ease); }
.footer__list a:hover { color: var(--accent); }
.footer__list--hours li { display: flex; justify-content: space-between; gap: 16px; }
.footer__list--areas { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 16px; }
.footer__emergency { margin-top: 16px; font-size: 0.9rem; color: #FFB99E; font-weight: 500; }

.footer__bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.86rem;
}
.footer__legal { color: var(--on-dark-soft); }

/* =========================================================
   STICKY MOBILE CALL BAR
   ========================================================= */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -16px rgba(23,26,29,.45);
}
.callbar__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.callbar__btn--quote { background: var(--ink); color: #fff; flex: 0.85; }
.callbar__btn--call { background: var(--accent-deep); color: #fff; }
.callbar__btn:active { transform: scale(.98); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 480px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .how__track { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .how__step:nth-child(2)::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .nav__links { display: none; }
  .phone-cta__label { display: none; }
  .phone-cta { padding: 11px 13px; }
  .nav__toggle { display: flex; }
  .textback__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .areas__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .ph--tall { grid-row: span 1; }
  .ph--wide { grid-column: span 2; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .shell { padding-inline: 18px; }
  .callbar { display: flex; }
  main { /* leave room for callbar */ }
  .footer { padding-bottom: 88px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 4px 0; padding-block: 28px; }
  .stat:nth-child(3)::before, .stat:nth-child(2)::before { content: none; }
  .stat:nth-child(odd)::before { display: none; }
  .stat { padding-block: 16px; }
  .services__grid { grid-template-columns: 1fr; }
  .how__track { grid-template-columns: 1fr; }
  .how__step { padding-left: 0; }
  .how__step::before { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__list--areas { grid-template-columns: 1fr 1fr; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
  .hero__floater { left: 8px; bottom: 14px; }
}

@media (max-width: 440px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .ph--wide, .ph--tall { grid-column: span 1; grid-row: span 1; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__floater { position: static; margin-top: 16px; max-width: none; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__accent::after { transform: scaleX(1); }
  .hero__floater { animation: none; }
}

/* =========================================================
   REDUCED TRANSPARENCY FALLBACK
   ========================================================= */
@media (prefers-reduced-transparency: reduce) {
  .nav { background: #fff; }
  .hero__panel-tag { background: var(--navy-900); }
  .callbar { background: #fff; }
}
