/* ==========================================================================
   BASE — HOME FAMILY
   Shared page primitives for the 37 home-family designs (everything except
   the inner family: cabinets overview, careers, portfolio, quote, thank-you).
   Values = the set shared by 31 of those designs (process, contact, the line
   pages, countertops, closets, faq, city pages…). The 4 outliers — home,
   about, building partners, multifamily — carry an OVERRIDES block in their
   own CSS (the homepage keeps its hero zoom and split hover there).
   Header/footer/FAB/tokens live in style.css — nothing here styles them.
   v15gold / v15hero / v15polish layers merged in (final values).
   ========================================================================== */

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  height: calc(76svh - var(--ch));
  min-height: 400px; max-height: 660px;
  background: #d4cfc8;
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.hero-veil {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 78% 72% at 50% 54%, rgba(28,26,23,.56) 0%, rgba(28,26,23,.30) 58%, rgba(28,26,23,.10) 100%);
}
.hero-content {
  position: absolute; inset: 0; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 20px;
}
.hero-eyebrow {
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.6); font-weight: 400; margin-bottom: 10px;
}
.hero-h1 {
  font-size: clamp(30px, 7.5vw, 62px); font-weight: 200;
  color: var(--white); line-height: 1.05; letter-spacing: -.02em;
  margin-bottom: 14px;
}
.hero-sub {
  font-size: 13.5px; font-weight: 300; line-height: 1.75;
  max-width: 440px; margin: 0 auto 22px; color: rgba(255,255,255,.85);
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero-h1, .hero-sub, .hero-eyebrow { text-shadow: 0 1px 22px rgba(0,0,0,.35); }
@media (min-width: 768px) { .hero-content { max-width: 760px; } }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 13px 28px; font-size: 9.5px; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 500; cursor: pointer;
  transition: all .18s; font-family: inherit; white-space: nowrap;
}
/* Large CTA button — the designs' inline padding:15px 36px;font-size:10px. Two classes so page .btn overrides don't shrink it. */
.btn.btn-lg { padding: 15px 36px; font-size: 10px; }
.btn-gold { background: var(--gold); color: var(--head); border: none; }
.btn-gold:hover { background: var(--goldh); color: var(--head); }
.btn-ghost-w {
  background: rgba(28,26,23,.28); border: 1px solid rgba(255,255,255,.55);
  color: var(--white); text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.btn-ghost-w:hover { background: rgba(28,26,23,.48); border-color: rgba(255,255,255,.85); }
.btn-outline { background: transparent; border: 1px solid var(--rule); color: var(--head); }
.btn-outline:hover { border-color: var(--gold-ink); color: var(--gold-ink); }

/* ── SECTION SHELL + GUARANTEE BAND (identical in 33 of the 37 home-family designs) ── */
.S { padding: 56px 20px; }
.S-inner { max-width: 1160px; margin: 0 auto; }
.body-copy { font-size: 13.5px; font-weight: 300; line-height: 1.78; color: var(--body); }
.guar { background: var(--gold); padding: 18px 20px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; }
.guar p { color: var(--head); font-size: 12.5px; font-weight: 300; line-height: 1.6; }
.guar strong { font-weight: 500; }
@media (min-width: 640px) { .S { padding: 72px 32px; } }
@media (min-width: 768px) { .S { padding: 88px 48px; } }
@media (min-width: 1024px) { .S { padding: 100px 64px; } }

/* ── LABEL / HEADINGS / BODY ── */
.label {
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-ink); font-weight: 500; margin-bottom: 12px;
}
/* Centered label with gold dashes either side */
.label--center { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.label--center::before, .label--center::after {
  content: ''; width: 10px; height: 1px; background: var(--gold); opacity: .5; display: inline-block;
}
/* Centered label with gold dash <span class="label-dash"> either side (14 designs) */
.label--dashes { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.label-dash { width: 10px; height: 1px; background: var(--gold); opacity: .5; display: inline-block; }
.h-lg {
  font-size: clamp(24px, 4.5vw, 42px); font-weight: 200;
  line-height: 1.1; letter-spacing: -.015em; color: var(--head);
}
.h-md {
  font-size: clamp(22px, 4vw, 40px); font-weight: 200;
  line-height: 1.1; letter-spacing: -.014em; color: var(--head);
}
.body-text { font-size: 14.5px; font-weight: 300; line-height: 1.8; color: var(--body); }
/* Serif italic accent inside headings */
h1 em, h2 em, .hero-h1 em, .h-lg em, .h-md em, .cta-h em {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic; font-weight: 360; letter-spacing: -.005em;
}

/* ── SPLIT: text + image (single column until 768px) ── */
.split { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.split-img { position: relative; overflow: hidden; background: var(--cream2); min-height: 300px; }
.split-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
}
.split-body { background: var(--cream); padding: 44px 20px; }
.split-flip .split-img { order: 1; }
.split-flip .split-body { order: 0; }
.split-body .btn { align-self: flex-start; }

/* ── FINAL CTA ── */
.cta-section { padding: 72px 20px; background: var(--cream2); text-align: center; border-top: 1px solid var(--rule); }
.cta-inner { max-width: 500px; margin: 0 auto; }
.cta-h {
  font-size: clamp(24px, 4.5vw, 40px); font-weight: 200;
  line-height: 1.1; letter-spacing: -.015em; margin-bottom: 12px;
}
.cta-sub { font-size: 13.5px; font-weight: 300; color: var(--body); line-height: 1.76; max-width: 400px; margin: 0 auto 26px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cta-section .label { margin-bottom: 16px; }

/* ── DIMENSION LINE + GRAPH PAPER (drawing-set motif) ── */
.dim {
  display: flex; align-items: center; gap: 12px;
  font-family: 'IBM Plex Mono', monospace; font-size: 8.5px; letter-spacing: .14em;
  color: var(--body); text-transform: uppercase; opacity: .75;
  max-width: 1160px; margin: 0 auto; padding: 26px 20px;
}
.dim .tick { flex: 1; height: 1px; background: var(--body); opacity: .5; position: relative; }
.dim .tick::before, .dim .tick::after { content: ''; position: absolute; top: -3.5px; width: 1px; height: 8px; background: var(--body); }
.dim .tick::before { left: 0; }
.dim .tick::after { right: 0; }
.dim em { font-style: normal; color: var(--gold-ink); font-family: inherit; font-weight: inherit; }
.graph {
  background-image:
    linear-gradient(rgba(173,161,117,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(173,161,117,.055) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── PLAIN CONTENT (index.php fallback / simple pages) ── */
.pg-plain { max-width: 820px; margin: 0 auto; padding: 72px 20px; }
.pg-plain h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 200; margin-bottom: 24px; }
.pg-plain h2 { font-size: 22px; font-weight: 300; margin: 32px 0 10px; }
.pg-plain p, .pg-plain li { font-size: 15px; line-height: 1.8; color: var(--body); margin-bottom: 14px; }
.pg-plain a { color: var(--gold-ink); text-decoration: underline; }

/* ══ RESPONSIVE ══ */
@media (min-width: 640px) {
  .split-body { padding: 52px 32px; }
}
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-img { min-height: auto; }
  .split-body { padding: 60px 52px; display: flex; flex-direction: column; justify-content: center; }
  .cta-section { padding: 108px 48px; }
}
@media (min-width: 1024px) {
  .split-body { padding: 76px 72px; }
  .cta-section { padding: 120px 64px; }
}


/* Brand font unification (Rod, Oct 15): headings keep ONE font - no serif-italic accent lines */
h1 em, h2 em, h3 em, .hero-h1 em, .h-xl em, .h-lg em, .h-md em, .h-sm em, .serif, .f, .art-h1 em, .art h2 em, .bp-ask em, .uor-close em {
  font-family: inherit !important;
  font-style: normal !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
}
