/* ============================================================
   Renaissance Homes — renhomesllc.com
   Structure/typography modeled on customhomesoftx.com (client reference).
   Colors are Renaissance's own, sampled from their live site:
   #3d3c36 charcoal, #ffe8c8 cream accent, #bbb6a0 khaki, gold-bronze derived to match.
   ============================================================ */
:root {
  --charcoal: #3d3c36;
  --charcoal-dark: #2c2b26;
  --gold: #8a6c3c;
  --gold-dark: #6f5730;
  --cream: #ffe8c8;
  --cream-bg: #faf7f1;
  --khaki: #bbb6a0;
  --tan-tint: #f3ede1;
  --ink: #2a2823;
  --muted: #6b6559;
  --line: #e6e0d2;
  --bg: #ffffff;
  --bg-soft: #f8f6f1;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 14px 34px rgba(61, 60, 54, 0.14);
  --shadow-sm: 0 4px 14px rgba(61, 60, 54, 0.10);
  --font-head: "Marcellus", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.18;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }

.container { width: min(1160px, 92%); margin: 0 auto; }
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

/* Eyebrow with flanking rule lines, matching the reference's "— LABEL —" motif */
.eyebrow {
  display: flex; align-items: center; gap: 0.9rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow::before, .eyebrow::after { content: ""; height: 1px; width: 32px; background: currentColor; opacity: 0.55; }
.section-head.center .eyebrow { justify-content: center; }
.eyebrow.no-lines::before, .eyebrow.no-lines::after { content: none; }
.section-head { max-width: 640px; margin-bottom: 2.8rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 0.9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.95rem 1.8rem;
  border-radius: 3px;
  transition: all 0.22s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); box-shadow: var(--shadow-sm); }
.btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-charcoal { background: var(--charcoal); color: #fff; }
.btn-charcoal:hover { background: var(--charcoal-dark); }
.btn-ghost { border-color: var(--line); color: var(--charcoal); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream-bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 92px;
  gap: 1.5rem;
}
.logo {
  display: flex; align-items: center; gap: 0.7rem;
  flex-shrink: 0;
}
.logo-img { height: 56px; width: auto; display: block; flex-shrink: 0; }
.footer-logo-img { height: 62px; }
@media (max-width: 520px) { .logo-img { height: 44px; } }

.main-nav ul { display: flex; gap: 1.4rem; flex-wrap: nowrap; }
.main-nav a {
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
  padding: 0.4rem 0; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--gold); transition: width 0.25s;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 1.4rem; flex-shrink: 0; }
.header-phone {
  font-family: var(--font-body); font-weight: 700; color: var(--charcoal);
  font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem;
}
.header-phone svg { color: var(--gold); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--charcoal); transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  padding: clamp(6rem, 15vw, 10.5rem) 0;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
/* Flat black scrim matching renhomesllc.com's own overlay (45% black, no tint, no gradient)
   so the photo keeps the same color and contrast as the original site. */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 720px; margin: 0 auto; }
.hero .eyebrow { color: var(--cream); justify-content: center; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.hero h1 { color: #fff; margin-bottom: 1.3rem; font-weight: 400; text-shadow: 0 2px 18px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4); }
.hero p.lead { font-size: 1.15rem; color: #f4efe7; margin: 0 auto 2.2rem; max-width: 560px; text-shadow: 0 1px 12px rgba(0,0,0,0.65), 0 1px 3px rgba(0,0,0,0.45); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-chips { display: none; }
.chip {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.9rem; border-radius: 3px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
  color: #f1ece5; display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ---------- Stat bar (replaces icon trust-bar) ---------- */
.stat-bar { background: var(--charcoal); }
.stat-bar-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.stat-bar-item {
  padding: 2.6rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-bar-item:last-child { border-right: 0; }
.stat-bar-item strong {
  display: block; font-family: var(--font-head); font-weight: 400;
  font-size: 2.4rem; color: var(--cream); line-height: 1;
}
.stat-bar-item span {
  display: block; margin-top: 0.6rem; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: #cfc9bd;
}

/* ---------- Featured band ---------- */
.featured { background: var(--bg-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
/* Alternating layout: every other service section puts the photo on the right */
.split.reverse .split-media { order: 2; }
.split.reverse .split-copy { order: 1; }
.split-media {
  position: relative; aspect-ratio: 4/3.4; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--charcoal), var(--gold-dark));
  box-shadow: var(--shadow); overflow: hidden;
  display: grid; place-items: center;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media svg { position: relative; z-index: 1; color: rgba(255,255,255,0.9); }
.media-badge {
  position: absolute; bottom: 1.1rem; left: 1.1rem;
  background: #fff; border-radius: 3px; padding: 0.7rem 1.1rem;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--charcoal);
  z-index: 2;
}
.media-badge svg { color: var(--gold); }
.split-copy .check-list { margin: 1.5rem 0 2rem; display: grid; gap: 0.8rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink); }
.check-list svg { color: var(--gold); flex-shrink: 0; margin-top: 0.25rem; }

/* ---------- Services grid: image card, matches reference's "What We Build" ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.services-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.service-card {
  background: #fff; border: 1px solid var(--line);
  transition: all 0.25s ease; position: relative; overflow: hidden;
}
.service-card:hover { box-shadow: var(--shadow); border-color: var(--gold); }
.service-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 1.4rem 1.4rem 1.5rem; }
.service-card .num-badge {
  font-family: var(--font-head); font-weight: 400; font-size: 1.6rem;
  color: var(--gold); line-height: 1; margin-bottom: 0.5rem; display: block;
}
.service-card h3 { margin-bottom: 0.5rem; font-size: 1.18rem; }
.service-card p { color: var(--muted); font-size: 0.9rem; }
.service-card .card-link {
  display: inline-block; margin-top: 1rem; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
}
.service-card.featured-card { border-color: var(--charcoal); }
.service-card.featured-card .service-card-body { background: var(--charcoal); }
.service-card.featured-card h3, .service-card.featured-card p { color: #fff; }
.service-card.featured-card p { color: #cfc9bd; }
.service-card.featured-card .num-badge { color: var(--cream); }
.service-card.featured-card .card-link { color: var(--cream); }
.pill {
  position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--gold); color: #fff; padding: 0.3rem 0.65rem; border-radius: 3px;
}

/* ---------- Why Us: narrative list (no icon cards) ---------- */
.why-us { background: #fff; }
.why-list { display: grid; gap: 1.8rem; margin-top: 1rem; }
.why-item { display: flex; gap: 1.4rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.why-item:last-child { border-bottom: 0; padding-bottom: 0; }
.why-num { font-family: var(--font-head); font-size: 1.6rem; color: var(--gold); flex-shrink: 0; width: 2.6rem; }
.why-item h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.why-item p { color: var(--muted); font-size: 0.96rem; }

/* Keep old .values/.value-card selectors working, restyled to match */
.values { background: var(--charcoal); color: #fff; }
.values .eyebrow { color: var(--cream); }
.values h2 { color: #fff; }
.values .section-head p { color: #cfc9bd; }
.why-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.why-split .section-head { margin-bottom: 2rem; }
.why-split-media { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.why-split-media img { width: 100%; height: 100%; object-fit: cover; }
.why-split-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 40%); }
.why-split-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.6rem 1.8rem; }
.why-split-caption strong { display: block; font-family: var(--font-head); font-size: 1.25rem; font-weight: 400; color: #fff; }
.why-split-caption span { display: block; font-size: 0.82rem; color: #d9d4c8; margin-top: 0.2rem; }
.values-grid { display: grid; gap: 0; }
.value-card {
  display: grid; grid-template-columns: 2.8rem 1fr; column-gap: 1.4rem;
  padding: 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.12);
  background: none; border-left: 0; border-right: 0; border-top: 0;
}
.value-card h3, .value-card p { grid-column: 2; }
.value-card:last-child { border-bottom: 0; }
.value-card .service-icon { display: none; }
.value-card h3 { color: #fff; font-size: 1.08rem; }
.value-card p { color: #cfc9bd; font-size: 0.94rem; margin-top: 0.4rem; }
.value-card::before {
  counter-increment: why;
  content: counter(why, decimal-leading-zero);
  font-family: var(--font-head); font-size: 1.6rem; color: var(--cream);
  grid-column: 1; grid-row: 1 / span 2; line-height: 1.4;
}
.values-grid { counter-reset: why; }

/* ---------- Process: numbered step cards (matches reference's Building Guide) ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.process-step {
  position: relative; padding: 2rem 1.6rem 1.8rem;
  background: #fff; border: 1px solid var(--line);
  display: flex; gap: 1.2rem; align-items: flex-start;
}
.step-num {
  font-family: var(--font-head); font-weight: 400; font-size: 2.4rem;
  color: var(--gold); line-height: 1; flex-shrink: 0;
}
.process-step .step-body { border-left: 1px solid var(--line); padding-left: 1.2rem; }
.process-step h3 { margin-bottom: 0.4rem; font-size: 1.02rem; }
.process-step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Service area ---------- */
.area-strip { background: var(--bg-soft); padding: 2.8rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.area-inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.area-label {
  font-family: var(--font-body); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--charcoal); display: flex; align-items: center; gap: 0.5rem;
}
.area-label svg { color: var(--gold); }
.area-list { display: flex; flex-wrap: wrap; gap: 0 1.4rem; justify-content: center; }
.area-list .chip {
  background: none; border: 0; padding: 0; color: var(--ink);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--charcoal);
  color: #fff; padding: clamp(2.8rem, 6vw, 4.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  text-align: left;
}
.cta-band h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-band p { color: #cfc9bd; max-width: 480px; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--gold); color: #fff; }
.cta-band .btn-primary:hover { background: var(--gold-dark); }

/* CTA band with a real photo behind it, matching the reference's final CTA */
.cta-band.has-photo {
  position: relative; background: var(--charcoal); overflow: hidden; isolation: isolate;
}
.cta-band.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--bg-url); background-size: cover; background-position: center;
}
.cta-band.has-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, rgba(44,43,38,0.92) 30%, rgba(44,43,38,0.55));
}
.cta-band.has-photo > * { position: relative; z-index: 1; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--charcoal); color: #fff;
  padding: clamp(4.5rem, 10vw, 7rem) 0;
  position: relative; overflow: hidden;
  text-align: center;
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(44,43,38,0.55) 0%, rgba(44,43,38,0.78) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-weight: 400; }
.page-hero p { color: #e4e0d5; max-width: 560px; margin: 0.9rem auto 0; }
.page-hero .eyebrow { color: var(--cream); justify-content: center; }
.page-hero .back-link { display: block; margin-bottom: 1rem; }

/* ---------- About ---------- */
.story-quote {
  border-left: 3px solid var(--gold);
  padding: 0.3rem 0 0.3rem 1.8rem; margin-top: 2rem;
  font-family: var(--font-head); font-weight: 400; font-size: 1.3rem; color: var(--charcoal); font-style: italic;
}
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.8rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat { text-align: center; padding: 1.8rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat strong { font-family: var(--font-head); font-size: 2.1rem; font-weight: 400; color: var(--gold); display: block; }
.stat span { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Services page ---------- */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; padding: 3rem 0; border-bottom: 1px solid var(--line); }
.service-detail:last-child { border-bottom: 0; }
.service-detail.flip .sd-media { order: 2; }
.sd-media {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--charcoal), var(--gold-dark));
  box-shadow: var(--shadow-sm); overflow: hidden; display: grid; place-items: center;
}
.sd-media img { width: 100%; height: 100%; object-fit: cover; }
.sd-media svg { position: relative; z-index: 1; color: rgba(255,255,255,0.9); }
.sd-copy .check-list { margin-top: 1.3rem; display: grid; gap: 0.7rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item {
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3; background: var(--bg-soft); box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.is-hidden { display: none; }
.gallery-item-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 0.6rem 0.8rem 0.55rem;
  background: linear-gradient(0deg, rgba(20,19,16,0.72) 0%, rgba(20,19,16,0) 100%);
  color: #fff; font-family: var(--font-body); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
}

/* ---------- Portfolio category filter ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.4rem; }
.filter-btn {
  font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.6rem 1.2rem; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); cursor: pointer; transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }

/* ---------- Before / After ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.ba-pair { text-align: center; }
.ba-images { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ba-images figure { position: relative; margin: 0; aspect-ratio: 4/5; overflow: hidden; background: var(--bg-soft); }
.ba-images img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-images figcaption {
  position: absolute; top: 0.7rem; left: 0.7rem; z-index: 1;
  font-family: var(--font-body); font-weight: 700; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: rgba(20,19,16,0.72); padding: 0.32rem 0.7rem; border-radius: 3px;
}
.ba-images figure:last-child figcaption { background: var(--gold); }
.ba-pair h3 { margin-top: 1.2rem; font-size: 1.15rem; }
.ba-pair p { color: var(--muted); font-size: 0.92rem; margin-top: 0.3rem; }
@media (max-width: 720px) {
  .ba-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.info-card {
  background: var(--charcoal); color: #fff;
  padding: 2.4rem 2.2rem; position: sticky; top: 112px;
}
.info-card h3 { color: #fff; margin-bottom: 1.5rem; font-size: 1.4rem; }
.info-row { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.info-row:last-of-type { border-bottom: 0; }
.info-row svg { color: var(--cream); flex-shrink: 0; margin-top: 0.2rem; }
.info-row strong { font-family: var(--font-body); display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.info-row a, .info-row span { color: #ddd6cc; font-size: 0.95rem; }
.info-row a:hover { color: #fff; }
.form-card {
  background: #fff; border: 1px solid var(--line);
  padding: 2.2rem; box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.form-card > p { color: var(--muted); margin-bottom: 1.6rem; font-size: 0.95rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--charcoal); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.95rem; padding: 0.75rem 0.9rem;
  border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: var(--bg-soft);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.ghl-embed { width: 100%; }
.ghl-embed iframe { width: 100% !important; border: 0; height: 700px !important; min-height: 700px !important; border-radius: 8px; display: block; }
@media (max-width: 720px) {
  .ghl-embed iframe { height: 950px !important; min-height: 950px !important; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #cfc9bd; padding: 3.8rem 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.4rem;
  padding-bottom: 2.8rem; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer h4 { color: var(--cream); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.1rem; font-family: var(--font-body); }
.site-footer a { color: #cfc9bd; font-size: 0.93rem; }
.site-footer a:hover { color: #fff; }
.footer-grid ul { display: grid; gap: 0.6rem; }
.footer-about p { font-size: 0.93rem; margin-top: 1rem; max-width: 300px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.5rem 0; font-size: 0.82rem;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
/* Nav collapses to hamburger well before the inline nav has any chance to
   overflow/wrap — 6 items + logo + phone + button need real room. */
@media (max-width: 1180px) {
  .main-nav {
    position: fixed; inset: 92px 0 auto 0; background: var(--cream-bg);
    border-bottom: 1px solid var(--line); padding: 1rem 4%;
    transform: translateY(-130%); transition: transform 0.3s ease; z-index: 90;
  }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; gap: 0.2rem; flex-wrap: nowrap; }
  .main-nav a { display: block; padding: 0.8rem 0.4rem; font-size: 0.95rem; white-space: normal; }
  .nav-toggle { display: flex; }
}
/* Phone number + tap-to-call is the one header item that never disappears;
   the "Free Estimate" button is the one that gives way on narrow phones. */
@media (max-width: 520px) {
  .header-cta .btn { display: none; }
  .header-phone span { display: none; }
  .header-cta { gap: 0.7rem; }
}
@media (max-width: 980px) {
  .stat-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-bar-item:nth-child(2) { border-right: 0; }
  .services-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid, .gallery-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-layout, .service-detail, .why-split { grid-template-columns: 1fr; }
  /* Stacked: photo always leads, regardless of desktop alternation */
  .split.reverse .split-media, .split.reverse .split-copy { order: 0; }
  .why-split-media { order: -1; aspect-ratio: 16/9; }
  .service-detail.flip .sd-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-card { position: static; }
}
@media (max-width: 720px) {
  .stat-bar-inner { grid-template-columns: 1fr; }
  .stat-bar-item { border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .stat-bar-item:last-child { border-bottom: 0; }
  .services-grid, .services-grid.cols-2, .process-grid, .stat-row { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
