/* ==========================================================================
   Tier 1 Contracting — fence site
   Design language derived from the Beautyconstruction theme:
   Raleway, gold #efbb20, charcoal #272627. Rebuilt as a standalone,
   dependency-free stylesheet.
   ========================================================================== */

/* Self-hosted variable font (latin subset, weights 400-900 in one file).
   Self-hosting removes a render-blocking third-party stylesheet, two DNS
   lookups and a TLS handshake from the critical path. */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/raleway-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 {
  --gold: #efbb20;
  --gold-deep: #d8a412;
  --gold-ink: #8a6800;
  --ink: #17181b;
  --charcoal: #1b1c1f;
  --charcoal-2: #232427;
  --body: #4f5058;
  --muted: #6b6c75;
  --line: #e3e3e6;
  --line-dark: #33343a;
  --wash: #f6f5f1;
  --white: #fff;
  --radius: 2px;
  --wrap: 1180px;
  --shadow: 0 14px 40px rgba(17, 18, 21, 0.12);
  --font: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------- reset */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 { font-size: clamp(2.15rem, 4.6vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--gold-deep); }

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

strong { color: var(--ink); font-weight: 700; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
}

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

/* ------------------------------------------------------------- helpers */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

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

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; z-index: 999;
  text-decoration: none; border-radius: var(--radius);
  transition: top 0.15s ease;
}
.skip:focus { top: 10px; color: var(--white); }

.icon { flex: 0 0 auto; }

.muted { color: var(--muted); font-size: 0.94rem; }

.ph {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a5c00;
  background: #fdf3d0;
  border: 1px solid #f0d98a;
  border-radius: 2px;
  padding: 1px 6px;
  vertical-align: middle;
}

/* ----------------------------------------------------------- breadcrumbs */

.crumbs { padding: 16px 0 2px; }
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
.crumbs li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.crumbs li + li::before {
  content: '/';
  color: #c2c2c9;
  font-weight: 400;
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
}
.crumbs [aria-current='page'] { color: var(--ink); font-weight: 700; }

.ph-note {
  font-size: 0.9rem;
  color: var(--gold-ink);
  background: #fdf8e6;
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  margin: 0 0 20px;
}

/* --------------------------------------------------------------- header */

.demo-bar {
  background: var(--gold);
  color: #241d00;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 20px;
  line-height: 1.4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-header__bar {
  /* No backdrop-filter here: it would create a containing block for the
     fixed-position mobile drawer that lives inside the header. */
  background: rgba(255, 255, 255, 0.985);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand__logo { width: auto; }
.brand__logo--header { height: 38px; }
.brand__logo--footer { height: 44px; }

.nav { display: flex; align-items: center; gap: 18px; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__item { margin: 0; position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 10px 8px;
  cursor: pointer;
  font-family: inherit;
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav__link:hover { color: var(--gold-ink); }
.nav__link[aria-current='page'] { color: var(--gold-ink); }
.nav__toggle .icon { transition: transform 0.18s ease; }
.nav__toggle[aria-expanded='true'] .icon { transform: rotate(180deg); }

.nav__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 236px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 210;
}
.nav__item--group:hover > .nav__menu,
.nav__item--group:focus-within > .nav__menu,
.nav__toggle[aria-expanded='true'] + .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__menu li { margin: 0; }
.nav__sublink {
  display: block;
  padding: 8px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--body);
}
.nav__sublink:hover { background: var(--wash); color: var(--ink); }

.nav__cta { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }

.nav__head { display: none; }
.nav-scrim { display: none; }
.nav__head-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}
.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.nav__phone .icon { color: var(--gold-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle__close { display: none; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 15px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 11px 16px; font-size: 0.85rem; }

.btn--gold { background: var(--gold); color: #1c1700; box-shadow: 0 6px 18px rgba(239, 187, 32, 0.24); }
.btn--gold:hover { background: var(--gold-deep); color: #171300; }

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.34); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }

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

.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.btn--outline-light:hover { background: var(--white); color: var(--ink); }

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  background: var(--charcoal);
  color: #e9e9ee;
  overflow: hidden;
  padding: clamp(52px, 7vw, 92px) 0 clamp(56px, 8vw, 104px);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 82% 12%, rgba(239, 187, 32, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; }
.hero__copy { max-width: 780px; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1::after {
  content: '';
  display: block;
  width: 74px;
  height: 4px;
  background: var(--gold);
  margin-top: 22px;
}
.hero__lede {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: #c8c9d1;
  max-width: 62ch;
  margin-bottom: 22px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.hero__badges {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #d7d8de;
}
.hero__badges li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.hero__badges .icon { color: var(--gold); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero__note { font-size: 0.85rem; color: #9b9ca6; margin: 0; }

.hero__art {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: min(46%, 620px);
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
}

/* -------------------------------------------------------------- sections */

.section { padding: clamp(48px, 6vw, 84px) 0; }
.section--tint { background: var(--wash); }
.section--tight { padding: clamp(30px, 3vw, 44px) 0; }

.section__head { max-width: 760px; margin-bottom: clamp(26px, 3vw, 40px); }
.section__head h2 { margin-bottom: 10px; }
.section__head p { color: var(--body); margin: 0; }

.h-sm { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; }

.prose { max-width: 800px; }
.prose--wide { max-width: 980px; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }

.spec-list { list-style: none; padding: 0; }
.spec-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
}
.spec-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------------------------------------------------------------- cards */

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}
.cards--3 { --cols: 3; }

.card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.card p { font-size: 0.95rem; margin-bottom: 0; color: var(--body); }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
}
.card__link:hover { color: var(--gold-ink); }
.card__link .icon { transition: transform 0.15s ease; }
.card__link:hover .icon { transform: translateX(3px); }

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

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
  background: var(--white);
}
.price-table th, .price-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.price-table thead th {
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 0;
}
.price-table tbody th { font-weight: 700; color: var(--ink); }
.price-table tbody tr:nth-child(even) { background: var(--wash); }
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td strong { color: var(--ink); font-weight: 800; }
.price-table a { text-decoration: none; font-weight: 700; }
.price-table a:hover { text-decoration: underline; }

.table-note { font-size: 0.88rem; color: var(--muted); margin-top: 14px; }

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

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  counter-reset: step;
}
.steps li {
  margin: 0;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px 22px;
}
.steps__n {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  /* gold #efbb20 on white is only 1.77:1; this dark amber is 5.17:1 and
     keeps the brand hue without failing WCAG AA. */
  color: var(--gold-ink);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.steps h3 { font-size: 1.02rem; margin-bottom: 6px; }
.steps p { font-size: 0.92rem; margin: 0; color: var(--body); }

/* ---------------------------------------------------------------- split */

.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.split h2 { margin-top: 0; }

.aside-card {
  background: var(--charcoal);
  color: #d6d7de;
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 4px solid var(--gold);
}
.aside-card h3 { color: var(--white); margin-bottom: 10px; }
.aside-card p { font-size: 0.94rem; }
.aside-card .btn { margin-top: 6px; }

/* ---------------------------------------------------------------- forms */

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #d3d3d9;
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(239, 187, 32, 0.22);
}
.field textarea { resize: vertical; min-height: 110px; }
.field--check { flex-direction: row; align-items: center; gap: 10px; }
.field--check input { width: 18px; height: 18px; accent-color: var(--gold-deep); }
.field--check span { font-size: 0.9rem; }
.req { color: #b3261e; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__status { font-size: 0.92rem; margin: 0; min-height: 1.2em; }
.form__status.is-error { color: #b3261e; font-weight: 600; }
.form__status.is-ok { color: #1f6b2f; font-weight: 600; }

/* ------------------------------------------------------------------ faq */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--gold-deep); transition: transform 0.18s ease; flex: 0 0 auto; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__a { padding: 0 0 22px; max-width: 78ch; font-size: 0.98rem; }

/* --------------------------------------------------------------- related */

.related { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.related li { margin: 0; }
.related a {
  display: block;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 14px 16px;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.related a:hover { transform: translateX(3px); }
.related a span { display: block; font-weight: 500; font-size: 0.88rem; color: var(--muted); margin-top: 2px; }

/* ------------------------------------------------------------- cta band */

.cta-band { background: var(--charcoal); color: #d3d4dc; }
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: #b6b7c1; max-width: 60ch; margin: 0; }
.cta-band__inner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 30px;
  align-items: center;
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------- estimator promo */

.est-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  color: #d3d4dc;
  background: var(--charcoal);
  border-left: 4px solid var(--gold);
}
.est-promo h2 { color: var(--white); margin-bottom: 6px; }
.est-promo p { max-width: 720px; margin: 0; color: #b6b7c1; }
.est-promo .eyebrow { margin-bottom: 8px; }

/* ---------------------------------------------------------------- callout */

.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  background: var(--wash);
  padding: 20px 24px;
  border-radius: var(--radius);
}
.callout p { font-size: 0.96rem; }

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

.area-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.area-grid li { margin: 0; }
.area-grid a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.area-grid a:hover { border-color: var(--gold); transform: translateY(-2px); }
.area-grid strong { display: block; color: var(--ink); font-size: 1rem; }
.area-grid span { display: block; font-size: 0.84rem; color: var(--muted); }
.area-grid__more { font-size: 0.92rem; color: var(--muted); }

/* --------------------------------------------------------------- gallery */

.gallery-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.gallery-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.ph-figure {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, #eceae4 0 14px, #f4f2ec 14px 28px);
  border-bottom: 1px solid var(--line);
}
.ph-figure span {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8d8b83;
  background: rgba(255, 255, 255, 0.86);
  padding: 6px 10px;
  border-radius: 2px;
}
.gallery-card__body { padding: 16px 18px; }
.gallery-card__body h3 { font-size: 1rem; margin-bottom: 4px; }
.gallery-card__body p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Real project photos */
.gallery-intro { margin-bottom: clamp(26px, 3vw, 40px); }
.gallery-more { margin: 28px 0 0; }
.gallery-card__figure {
  position: relative;
  display: block;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--charcoal);
  border-bottom: 1px solid var(--line);
}
.gallery-card__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.4s ease;
}
.gallery-card:hover .gallery-card__figure img,
.gallery-card:focus-within .gallery-card__figure img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.02);
}
.gallery-card {
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.gallery-card:hover {
  border-color: rgba(239, 187, 32, 0.65);
  box-shadow: 0 12px 30px rgba(17, 18, 21, 0.14);
}

/* --------------------------------------------------------------- reviews */

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.review-grid--wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.review-card {
  margin: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  background: var(--white);
  padding: 22px;
  border-radius: var(--radius);
}
.review-card blockquote {
  margin: 0 0 14px;
  font-size: 0.96rem;
  color: var(--body);
  border: 0;
  padding: 0;
}
.review-card figcaption { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.review-card__stars { color: var(--gold-deep); letter-spacing: 0.14em; margin-bottom: 10px; }

/* --------------------------------------------------------------- contact */

/* /book/: the booking card is narrower than the page column, so the heading
   above it is held to the same width or the two edges visibly disagree. */
.booking-intro { max-width: 760px; margin-inline: auto; }
.booking-intro .section__head { margin-bottom: 18px; }
.booking-intro .section__head p { margin-bottom: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.contact-grid h2 { margin-top: 0; }
.contact-big { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: -0.02em; margin: 6px 0 10px; }
.contact-big a { text-decoration: none; }
.contact-grid__aside h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-ink); margin: 24px 0 6px; }
.contact-grid__aside { background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }

/* Service-area map. A self-hosted static image is the default so the page
   makes no third-party requests; the interactive embed only loads if the
   visitor asks for it. */
.map-embed { margin: 0; }
.map-embed picture, .map-embed img { display: block; }
.map-embed img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
}
.map-embed__note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}
.map-embed__load {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--gold-ink);
  text-decoration: underline;
  cursor: pointer;
}
.map-embed__load:hover { color: var(--ink); }
.map-cities h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-ink);
  margin: 0 0 10px;
}
.map-cities ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.map-cities li { border-bottom: 1px solid var(--line); }
.map-cities a { display: block; padding: 11px 0; font-weight: 700; text-decoration: none; }
.map-cities a:hover, .map-cities a:focus-visible { color: var(--gold-ink); }

/* Sticky header offset for in-page anchors */
[id] { scroll-margin-top: 96px; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: #141518;
  color: #a9aab3;
  padding: clamp(44px, 5vw, 68px) 0 0;
  font-size: 0.93rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 44px;
}
.site-footer__brand p { margin: 16px 0 0; max-width: 34ch; }
.site-footer__contact { line-height: 1.7; }
.site-footer__contact a { color: var(--white); text-decoration: none; font-weight: 700; }
.site-footer__contact a:hover { color: var(--gold); }
.site-footer__hours { font-size: 0.86rem; color: #85868f; }
.site-footer__license { font-size: 0.82rem; color: #7d7e87; }
.site-footer__h {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 0 0 14px;
}
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li { margin-bottom: 8px; }
.site-footer__list a { color: #b9bac3; text-decoration: none; font-size: 0.9rem; }
.site-footer__list a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); }
.site-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid #26272c;
  padding-top: 20px;
  padding-bottom: 24px;
  font-size: 0.82rem;
  color: #85868f;
}
.site-footer__legal p { margin: 0; }
.site-footer__legal a { color: #9b9ca5; text-decoration: none; }
.site-footer__legal a:hover { color: var(--white); }

/* ------------------------------------------------------------- mobile cta */

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 190;
  background: var(--charcoal);
  border-top: 2px solid var(--gold);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
}
.mobile-cta a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 10px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius);
}
.mobile-cta__call { background: #2b2c31; color: var(--white); }
.mobile-cta__quote { background: var(--gold); color: #1c1700; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1180px) {
  .nav { gap: 8px; }
  .nav__link { font-size: 0.8rem; padding: 10px 6px; }
  .nav__phone { font-size: 0.88rem; }
  .nav__phone .icon { display: none; }
}

@media (max-width: 1100px) {
  .nav__list { gap: 0; }
  .nav__link { padding: 10px 6px; }
  .nav__cta .btn { display: none; }
}

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(380px, 88vw);
    height: 100dvh;
    background: var(--white);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18);
    transform: translateX(102%);
    transition: transform 0.24s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 22px 32px;
    overflow-y: auto;
    z-index: 300;
  }
  .nav.is-open { transform: translateX(0); }
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(14, 15, 17, 0.52);
    z-index: 299;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s;
  }
  .nav-scrim.is-visible { opacity: 1; visibility: visible; }
  .nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__item:last-child { border-bottom: 0; }
  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 15px 2px;
    font-size: 0.92rem;
    border-radius: 0;
  }
  .nav__menu {
    position: static;
    opacity: 1;
    visibility: hidden;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    border-top: 0;
    padding: 0 0 10px 12px;
    min-width: 0;
  }
  .nav__toggle[aria-expanded='true'] + .nav__menu { display: block; }
  .nav__item--group:hover > .nav__menu,
  .nav__item--group:focus-within > .nav__menu { visibility: hidden; }
  .nav__item--group:has(.nav__toggle[aria-expanded='true']) > .nav__menu { visibility: visible; }
  .nav__sublink { padding: 10px 6px; }
  .nav__cta { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 22px; }
  .nav__cta .btn { display: inline-flex; padding: 15px 20px; }
  .nav__phone { justify-content: center; font-size: 1.05rem; }
  body.nav-open { overflow: hidden; }
  .brand__logo--header { height: 30px; }
  .site-header__inner { min-height: 66px; }
  .hero__art { display: none; }
}

@media (max-width: 900px) {
  .cards { --cols: 2; }
  .footer,
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .est-promo { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .cta-band__actions .btn { width: 100%; }
  .est-promo .btn { width: 100%; }
}

@media (max-width: 620px) {
  .cards { --cols: 1; }
  .gallery-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .nav__phone { font-size: 0.98rem; }
  .section { padding: 44px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .card:hover, .area-grid a:hover, .related a:hover { transform: none; }
}

/* ============================================================
   SCROLL-TRIGGERED ANIMATIONS
   IntersectionObserver-powered fade/stagger reveals;
   all respecting prefers-reduced-motion via .reduced-motion class
   ============================================================ */

/* --- Section heading gold underline reveal --- */
.section__head h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.section__head h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.section__head.is-revealed h2::after {
  transform: scaleX(1);
}

/* --- Gallery card fade-in with IntersectionObserver --- */
.gallery-card.is-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease, border-color 0.25s ease;
}
.gallery-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Staggered gallery reveal is driven by data-reveal-delay in main.js --- */

/* --- Stats count-up (when present) --- */
.stat-number {
  transition: number 1.5s ease-out;
}
.stat-number.animated {
  number: var(--target-number);
}

/* --- FAQ entrance --- */
.faq__item.is-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.faq__item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Promo band gradient sweep --- */
/* The band must be the positioning anchor for its sweep, otherwise overflow:hidden
   cannot clip it and every sweep cycle widens the whole page on phones. */
.est-promo {
  position: relative;
  overflow: hidden;
}
.est-promo::before {
  pointer-events: none;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(239, 187, 32, 0.1),
    transparent
  );
  /* transform (not left) so the sweep runs on the compositor and never causes layout shift */
  transform: translateX(-100%);
  will-change: transform;
  animation: promoSweep 8s linear infinite;
}
.est-promo:hover::before {
  animation-play-state: paused;
}

@keyframes promoSweep {
  to { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .est-promo::before { animation: none; }
}

/* --- Map note fade-in --- */
.est__map-note.is-reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.est__map-note.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
