/* LV Lux Construction — ad landing page (lux-v3)
   Palette matches lvluxconstruction.com: cream paper, near-black bands, gold.
   Gold has two values on purpose: --c-gold passes contrast only on dark bands;
   cream contexts must use --c-gold-ink. Never swap them. */

:root {
  --c-paper: #f3efe6;
  --c-paper-2: #fffaf0;
  --c-ink: #171715;            /* text on cream — never a background */
  --c-ink-muted: #4c4a44;
  --c-surface: #1a1916;        /* dark band background */
  --c-surface-2: #22201c;
  --c-on-surface: rgba(255, 255, 255, 0.92);
  --c-on-surface-muted: rgba(255, 255, 255, 0.66);
  --c-gold: #c5a46a;           /* on dark bands only (7.6:1 there) */
  --c-gold-ink: #826730;       /* gold for cream contexts (4.65:1) */
  --c-hairline: rgba(23, 23, 21, 0.14);
  --c-hairline-on-dark: rgba(255, 255, 255, 0.16);
  --font-body: "Manrope", sans-serif;
  --font-display: "Syncopate", sans-serif;
  --pad-x: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--c-paper);
  color: var(--c-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.35rem, 3.2vw, 2.1rem); margin-bottom: 0.9rem; }
h3 { font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1.1rem;
}
.eyebrow-ink { color: var(--c-gold-ink); }

.section { padding: clamp(64px, 9vw, 112px) var(--pad-x); }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-body { max-width: 620px; color: var(--c-ink-muted); margin-bottom: 2.4rem; }

.band-dark { background: var(--c-surface); color: var(--c-on-surface); }
.band-dark .section-body { color: var(--c-on-surface-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 0.9em 1.8em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-lg { padding: 1.1em 2.2em; }
.btn-block { width: 100%; }
.btn-gold { background: var(--c-gold); color: #14130f; border-color: var(--c-gold); }
.btn-gold:hover { background: #d6b87e; border-color: #d6b87e; }
.btn-ghost { background: transparent; color: var(--c-on-surface); border-color: var(--c-hairline-on-dark); }
.btn-ghost:hover { border-color: var(--c-gold); color: var(--c-gold); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px var(--pad-x);
  background: rgba(20, 19, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-hairline-on-dark);
  color: var(--c-on-surface);
}
.topbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.topbar-brand img { width: 52px; height: 52px; object-fit: contain; }
.topbar-wordmark {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar-wordmark em { font-style: normal; color: var(--c-gold); }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.topbar-phone {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--c-on-surface);
  white-space: nowrap;
}
.topbar-phone:hover { color: var(--c-gold); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-media {
  position: absolute;
  inset: 0;
  background: url("/images/hero-poster.jpg") center 30% / cover no-repeat;
  background-image: url("/images/hero-poster.webp");
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 19, 16, 0.94) 0%, rgba(20, 19, 16, 0.82) 45%, rgba(20, 19, 16, 0.55) 100%);
}
.hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(72px, 11vw, 140px) var(--pad-x) clamp(48px, 7vw, 88px);
}
/* Two columns: copy left, lead form right. The form sits above the fold so an
   ad click can convert without scrolling. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: start;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.hero-title {
  /* Syncopate runs wide, so the display size is capped to keep the headline
     from orphaning a word in the narrower two-column hero. */
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  color: var(--c-on-surface);
  margin-bottom: 1.2rem;
}
.gold-italic { color: var(--c-gold); font-style: italic; }
.hero-body { max-width: 560px; color: var(--c-on-surface-muted); margin-bottom: 1.8rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.trust-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
  border-top: 1px solid var(--c-hairline-on-dark);
  padding-top: 22px;
  max-width: 820px;
}
.trust-strip li { display: grid; gap: 2px; padding-right: 12px; }
.trust-strip strong { font-size: 0.88rem; letter-spacing: 0.04em; color: var(--c-gold); }
.trust-strip span { font-size: 0.8rem; color: var(--c-on-surface-muted); }

/* ---------- What we do ---------- */
.fact-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.fact { border-top: 2px solid var(--c-gold-ink); padding-top: 18px; }
.fact h3 { margin-bottom: 0.5rem; }
.fact p { font-size: 0.92rem; color: var(--c-ink-muted); }

/* ---------- Services ---------- */
.services { background: var(--c-paper-2); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.service-card { background: #fff; border: 1px solid var(--c-hairline); }
.service-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; filter: saturate(0.92); }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 18px 20px 6px;
}
.service-card p { font-size: 0.9rem; color: var(--c-ink-muted); padding: 0 20px 20px; }

/* ---------- Process ---------- */
.process .step-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 2.6rem;
}
.step { border-top: 1px solid var(--c-hairline-on-dark); padding-top: 20px; }
.step-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--c-gold);
  margin-bottom: 0.8rem;
}
.step h3 { margin-bottom: 0.5rem; color: var(--c-on-surface); }
.step p { font-size: 0.88rem; color: var(--c-on-surface-muted); }

/* ---------- Location & areas ---------- */
.location-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  background: var(--c-paper-2);
  border: 1px solid var(--c-hairline);
  border-left: 3px solid var(--c-gold-ink);
  padding: 28px 32px;
  margin-bottom: 2.4rem;
}
.location-card h3 {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-gold-ink);
  margin-bottom: 0.5rem;
}
.location-card p { font-size: 0.95rem; }
.location-card a { color: var(--c-ink); font-weight: 600; text-decoration-color: var(--c-gold-ink); }

.area-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
}
.area-grid li { border-top: 1px solid var(--c-hairline); padding-top: 12px; display: grid; gap: 2px; }
.area-grid strong { font-size: 0.92rem; letter-spacing: 0.02em; }
.area-grid span { font-size: 0.82rem; color: var(--c-ink-muted); }
.area-footnote { margin-top: 2.2rem; font-size: 0.92rem; color: var(--c-ink-muted); }
.area-footnote a { color: var(--c-ink); font-weight: 700; text-decoration-color: var(--c-gold-ink); }

/* ---------- Consultation ---------- */
/* Closing CTA band — the form itself now lives in the hero. */
.final-cta .hero-ctas { margin-bottom: 2rem; }

.consultation-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.consultation-points { list-style: none; display: grid; gap: 10px; font-size: 0.92rem; color: var(--c-on-surface-muted); }
.consultation-points li { padding-left: 18px; position: relative; }
.consultation-points li::before { content: "—"; position: absolute; left: 0; color: var(--c-gold); }
.consultation-points a { color: var(--c-on-surface); font-weight: 700; text-decoration-color: var(--c-gold); }

.lead-form { display: grid; gap: 18px; background: var(--c-surface-2); border: 1px solid var(--c-hairline-on-dark); padding: clamp(24px, 4vw, 40px); }

/* Hero variant: tighter than the standalone form so it fits above the fold. */
.lead-form--compact {
  gap: 12px;
  padding: clamp(20px, 2.4vw, 28px);
  background: rgba(26, 25, 22, 0.94);
  backdrop-filter: blur(6px);
  border-color: rgba(255, 255, 255, 0.2);
}
.lead-form--compact .form-eyebrow {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.lead-form--compact .form-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-on-surface);
  margin: -6px 0 2px;
}
.lead-form--compact .field { gap: 4px; }
.lead-form--compact .field label { font-size: 0.64rem; letter-spacing: 0.16em; }
.lead-form--compact .field input,
.lead-form--compact .field select,
.lead-form--compact .field textarea { font-size: 0.92rem; padding: 9px 12px; }
.lead-form--compact .field-pair { gap: 12px; }
.lead-form--compact .field-hint { font-size: 0.72rem; margin-top: -4px; }
.lead-form--compact .btn { font-size: 0.76rem; padding: 0.95em 1.6em; }
/* Collapse the status line until it has something to say, so the card doesn't
   carry an empty row of dead space under the button. */
.lead-form--compact .form-status { font-size: 0.84rem; min-height: 0; }
.lead-form--compact .form-status:empty { display: none; }
.lead-form--compact .form-reassure {
  font-size: 0.74rem;
  color: var(--c-on-surface-muted);
  text-align: center;
  margin-top: -4px;
}
.field { display: grid; gap: 6px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-on-surface-muted);
}
.field .optional { text-transform: none; letter-spacing: 0.04em; font-weight: 400; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--c-on-surface);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c-hairline-on-dark);
  padding: 12px 14px;
  border-radius: 0;
  width: 100%;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-gold) 50%), linear-gradient(135deg, var(--c-gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select:invalid { color: var(--c-on-surface-muted); }
.field option { color: var(--c-ink); background: #fff; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--c-gold); outline-offset: 0; border-color: var(--c-gold); }
.field-hint { font-size: 0.8rem; color: var(--c-on-surface-muted); margin-top: -8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.92rem; min-height: 1.4em; color: var(--c-on-surface-muted); }
.form-status.is-error { color: #e8a5a5; }
.form-status.is-success { color: var(--c-gold); font-weight: 600; }

/* ---------- Service pages (bath / kitchen / outdoor) ---------- */
.lede p { max-width: 620px; color: var(--c-ink-muted); }
.lede p + p { margin-top: 1rem; }

.scope-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  max-width: 720px;
  margin-top: 1.6rem;
}
.scope-list li { position: relative; padding-left: 24px; font-size: 0.95rem; }
.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 2px;
  background: var(--c-gold-ink);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 2.4rem;
}
.gallery-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--c-hairline);
}

.area-flow {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 780px;
  margin-top: 1.6rem;
}
.area-flow li {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border: 1px solid var(--c-hairline);
  background: var(--c-paper-2);
}

.closing-lines { margin: 1.6rem 0 0; }
.closing-lines p {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 1.7;
  color: var(--c-ink);
}
.closing-lines p em { font-style: italic; color: var(--c-gold-ink); }

@media (max-width: 720px) {
  .scope-list, .gallery-strip { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  background: #14130f;
  color: var(--c-on-surface-muted);
  text-align: center;
  font-size: 0.82rem;
  padding: 28px var(--pad-x) 96px;
  display: grid;
  gap: 6px;
}
.footer a { color: var(--c-on-surface); text-decoration-color: var(--c-gold); }

/* ---------- Mobile call bar ---------- */
.callbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(20, 19, 16, 0.96);
  border-top: 1px solid var(--c-hairline-on-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .service-grid, .fact-row, .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process .step-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consultation-grid { grid-template-columns: 1fr; }
  .location-card { grid-template-columns: 1fr; gap: 18px; }
  /* Stack the hero: copy first, then the form. */
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-form { max-width: 520px; }
}

@media (max-width: 720px) {
  .topbar .btn { display: none; }
  .service-grid, .fact-row, .area-grid, .field-pair { grid-template-columns: 1fr; }
  .process .step-row { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; gap: 14px; }
  .hero-ctas .btn { width: 100%; }
  .callbar { display: grid; }
}

@media (min-width: 721px) {
  .footer { padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
