/* ============================================================
   Imperial Construction & Carpentry — imperial-dark-luxe
   Built 1:1 from Figma frames 3:398 (desktop) / 30:8 (mobile)
   ============================================================ */

:root {
  --bg: #121212;
  --surface: #1a1a1a;
  --border: #333333;
  --orange: #b5451b;
  --accent: #d0592e;
  --cream: #f9f6f0;
  --muted: #666666;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select, textarea { font-family: inherit; }

.serif { font-family: 'Young Serif', serif; font-weight: 400; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent);
}
.accent-line { width: 60px; height: 2px; background: var(--orange); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--orange); color: var(--white);
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; padding: 18px 36px; border-radius: 4px;
  transition: background .2s ease, transform .15s ease;
}
.btn-primary:hover { background: #c8531f; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 12px;
  background: transparent; color: var(--white);
  border: 1px solid var(--white); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
  padding: 18px 36px; border-radius: 4px;
  transition: background .2s ease;
}
.btn-outline:hover { background: rgba(255,255,255,.1); }

.icon { flex-shrink: 0; }
.icon-orange { color: var(--accent); }

/* ---------- nav ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 80px;
}
.nav-logo img { height: 62px; width: auto; }
.nav-links {
  display: flex; gap: 32px; align-items: center;
  background: rgba(18,18,18,.72); border-radius: 24px;
  padding: 11px 24px; font-size: 14px;
  box-shadow: 0 8px 12px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  display: flex; gap: 16px; align-items: center;
  background: rgba(18,18,18,.72); border-radius: 24px;
  padding: 11px 18px; box-shadow: 0 8px 12px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
}
.nav-cta .nav-phone { font-size: 15px; }
.nav-cta .btn-primary { padding: 12px 24px; font-size: 12px; }
.nav-mobile-cta { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 920px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 200px 80px 80px; overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, #1c1a18 0%, #121212 60%, #0c0c0c 100%);
}
.hero-media video, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); z-index: 1; }
.hero-inner {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; max-width: 740px; }
.hero-copy .eyebrow-row { display: flex; align-items: center; gap: 8px; }
.hero-copy h1 { font-size: 60px; line-height: 1.05; color: var(--white); }
.hero-copy .sub { font-size: 18px; line-height: 1.6; color: var(--cream); }
.hero-buttons { display: flex; gap: 16px; padding-top: 16px; flex-wrap: wrap; }

.play-banner {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 16px; margin-top: 40px;
}
.play-circle {
  width: 48px; height: 48px; border-radius: 24px; background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.play-banner:hover .play-circle { transform: scale(1.08); }
.play-banner span { font-size: 13px; letter-spacing: .05em; color: var(--cream); }

/* hero quote card */
.quote-card {
  width: 380px; flex-shrink: 0;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px; padding: 24px 28px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 20px rgba(0,0,0,.25);
  display: flex; flex-direction: column; gap: 16px;
}
.quote-card h2 { font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--white); }
.quote-card .form-sub { font-size: 14px; color: var(--cream); }
.qc-fields { display: flex; flex-direction: column; gap: 12px; }
.qc-field label {
  display: block; font-size: 12px; font-weight: 700; color: var(--white); margin-bottom: 8px;
}
.qc-field input, .qc-field select, .qc-field textarea {
  width: 100%; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); border-radius: 10px;
  padding: 12px 16px; height: 44px; font-size: 14px; color: var(--cream);
  outline: none; transition: border-color .15s;
}
.qc-field textarea { height: 80px; resize: vertical; padding-top: 14px; }
.qc-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f9f6f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.qc-field select:invalid { color: rgba(249,246,240,.7); }
.qc-field input::placeholder, .qc-field textarea::placeholder { color: rgba(249,246,240,.7); }
.qc-field input:focus, .qc-field select:focus, .qc-field textarea:focus { border-color: var(--accent); }
.qc-submit {
  width: 100%; height: 52px; border-radius: 10px; background: var(--orange);
  color: var(--white); font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; transition: background .2s;
}
.qc-submit:hover { background: #c8531f; }
.qc-privacy { font-size: 12px; color: var(--cream); opacity: .8; }
.form-status { font-size: 13px; display: none; }
.form-status.ok { display: block; color: #7fc98a; }
.form-status.err { display: block; color: #e07a5f; }

/* ---------- trust badges ---------- */
.trust-badges {
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px 80px; gap: 24px; flex-wrap: wrap;
}
.trust-badges .item { display: flex; align-items: center; gap: 8px; }
.trust-badges .item span { font-size: 13px; font-weight: 600; color: var(--cream); }

/* ---------- capabilities ---------- */
.capabilities { padding: 120px 80px; display: flex; flex-direction: column; gap: 80px; }
.section-header { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.section-header h2 { font-size: 48px; color: var(--white); line-height: 1.15; }
.section-header.centered { align-items: center; text-align: center; max-width: none; width: 100%; }
.section-header.centered h2 { font-size: 44px; }

.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cap-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 40px; display: flex; flex-direction: column; gap: 24px;
  transition: border-color .2s, transform .2s;
}
.cap-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.cap-card h3 { font-size: 28px; color: var(--white); }
.cap-card p { font-size: 14px; line-height: 1.6; color: var(--cream); }

/* ---------- parallax quote ---------- */
.parallax {
  position: relative; min-height: 450px;
  display: flex; align-items: center; justify-content: center;
  padding: 80px; overflow: hidden;
  background: #171310 url('parallax.jpg') center / cover no-repeat fixed;
}
.parallax::before { content: ""; position: absolute; inset: 0; background: rgba(18,18,18,.72); }
.parallax blockquote {
  position: relative; font-family: 'Young Serif', serif;
  font-size: 40px; line-height: 1.35; text-align: center; color: var(--white);
  max-width: 1280px;
}

/* ---------- testimonials ---------- */
.testimonials { background: var(--surface); padding: 120px 80px; display: flex; flex-direction: column; gap: 64px; }
.t-row { display: grid; gap: 32px; }
.t-row.three { grid-template-columns: repeat(3, 1fr); }
.t-row.two { grid-template-columns: repeat(2, 1fr); }
.t-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 40px; display: flex; flex-direction: column; gap: 24px;
}
.g-rating { font-size: 15px; color: var(--cream); }
.g-rating .g-stars { color: var(--accent); letter-spacing: 2px; margin-right: 6px; }
.g-rating strong { color: var(--white); }

.stars { display: flex; gap: 4px; }
.stars svg { width: 16px; height: 16px; fill: var(--accent); stroke: var(--accent); }
.t-quote { font-family: 'Young Serif', serif; font-size: 18px; line-height: 1.6; color: var(--white); }
.t-meta .t-name { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--accent); }
.t-meta .t-project { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- areas we serve ---------- */
.areas { padding: 120px 80px; }
.areas-inner { display: flex; gap: 80px; align-items: flex-start; }
.areas-copy { flex: 1; display: flex; flex-direction: column; gap: 32px; }
.areas-copy .lede { font-size: 16px; line-height: 1.7; color: var(--cream); }
.areas-copy .note { font-size: 14px; line-height: 1.6; color: var(--muted); }
.regions { display: flex; flex-direction: column; gap: 20px; }
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  padding: 10px 20px; font-size: 13px; font-weight: 600; color: var(--cream);
}
.map-card {
  width: 560px; flex-shrink: 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.map-visual {
  position: relative; height: 380px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: radial-gradient(ellipse at 55% 45%, #2b2118 0%, #17130f 70%);
}
.map-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-pin-badge {
  position: relative; width: 64px; height: 64px; border-radius: 32px;
  background: var(--orange); opacity: .9;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(181,69,28,.6);
}
.map-chip {
  position: relative; background: var(--bg); opacity: .9; border-radius: 4px;
  padding: 8px 16px; font-size: 12px; font-weight: 600; text-transform: uppercase;
  color: var(--accent); letter-spacing: .05em;
}
.map-caption { padding: 24px 32px; display: flex; flex-direction: column; gap: 8px; }
.map-caption h3 { font-size: 20px; color: var(--white); }
.map-caption p { font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ---------- closing CTA ---------- */
.closing-cta {
  position: relative; min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  padding: 80px; overflow: hidden;
  background: #121212 url('closing-cta.jpg') center / cover no-repeat;
}
.closing-cta::before { content: ""; position: absolute; inset: 0; background: rgba(18,18,18,.75); }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.cta-head { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-award {
  width: 48px; height: 48px; border-radius: 24px; background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(181,69,28,.5);
}
.cta-head h2 { font-size: 60px; line-height: 1.05; color: var(--white); }
.cta-head .sub { font-size: 18px; line-height: 1.6; color: var(--cream); max-width: 760px; }
.cta-buttons { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.cta-buttons .btn-primary { padding: 20px 44px; font-size: 14px; box-shadow: 0 4px 8px rgba(181,69,28,.4); }
.cta-buttons .btn-outline { padding: 20px 44px; font-size: 14px; }
.cta-checks { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; }
.cta-checks .check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cream); }

/* ---------- consultation ---------- */
.consultation { background: var(--surface); padding: 120px 80px; display: flex; gap: 80px; align-items: center; }
.consult-copy { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.consult-copy h2 { font-size: 44px; color: var(--white); line-height: 1.15; }
.consult-copy .sub { font-size: 16px; line-height: 1.6; color: var(--cream); }
.office-contacts { display: flex; flex-direction: column; gap: 20px; }
.office-label { font-size: 14px; font-weight: 600; text-transform: uppercase; color: var(--accent); }
.office-phone { font-family: 'Young Serif', serif; font-size: 28px; color: var(--white); margin-top: 8px; }
.office-email { font-size: 16px; color: var(--cream); margin-top: 8px; word-break: break-all; }
.office-email a:hover, .office-phone a:hover { color: var(--accent); }
.dark-form {
  width: 480px; flex-shrink: 0; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; padding: 48px;
  display: flex; flex-direction: column; gap: 24px;
}
.dark-form h3 { font-family: 'Young Serif', serif; font-size: 28px; color: var(--white); }
.df-field label {
  display: block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px; letter-spacing: .04em;
}
.df-field input, .df-field textarea, .df-field select {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 12px; font-size: 14px; color: var(--cream); outline: none;
}
.df-field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f9f6f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.df-field select:invalid { color: var(--muted); }
.df-field input:focus, .df-field textarea:focus, .df-field select:focus { border-color: var(--accent); }
.df-fields { display: flex; flex-direction: column; gap: 16px; }
.df-submit {
  width: 100%; padding: 16px; border-radius: 4px; background: var(--orange);
  color: var(--white); font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; transition: background .2s;
}
.df-submit:hover { background: #c8531f; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 100px 80px 40px; display: flex; flex-direction: column; gap: 80px; }
.footer-cols { display: flex; gap: 80px; }
.f-brand { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }
.f-logo { width: 280px; height: auto; }
.f-brand p { font-size: 14px; line-height: 1.6; color: var(--cream); }
.f-col { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.f-col .f-head { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--accent); }
.f-col a, .f-col p { font-size: 14px; color: var(--cream); }
.f-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 32px;
  display: flex; justify-content: space-between; font-size: 12px; color: var(--muted);
}

/* ---------- recent projects ---------- */
.projects { background: var(--bg); padding: 120px 80px 0; display: flex; flex-direction: column; gap: 64px; }
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 360px; gap: 32px; }
.p-card {
  position: relative; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
}
.p-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.p-card:hover img { transform: scale(1.04); }
.p-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 24px 20px;
  background: linear-gradient(transparent, rgba(18,18,18,.92));
  font-size: 14px; font-weight: 600; color: var(--cream);
}
.p-card figcaption span { display: block; font-size: 12px; font-weight: 400; color: var(--accent); margin-top: 2px; }
.p-wide { grid-column: span 2; }

/* placeholder highlight so nothing fake ships unnoticed */
.placeholder-content { position: relative; }
.placeholder-content::after {
  content: "PLACEHOLDER — replace before launch";
  position: absolute; top: 8px; right: 8px;
  background: rgba(208,89,46,.15); color: var(--accent);
  border: 1px dashed var(--accent); border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  padding: 3px 8px; pointer-events: none;
}

/* ============================================================
   MOBILE — per Figma frame 30:8 (390px design)
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { flex-direction: column; align-items: stretch; }
  .quote-card { width: 100%; }
  .cap-grid { grid-template-columns: 1fr; }
  .t-row.three, .t-row.two { grid-template-columns: 1fr; }
  .areas-inner { flex-direction: column; }
  .map-card { width: 100%; }
  .consultation { flex-direction: column; align-items: stretch; }
  .dark-form { width: 100%; }
  .footer-cols { flex-direction: column; gap: 40px; }
}

@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-mobile-cta {
    display: inline-flex; background: var(--orange); color: var(--white);
    font-size: 12px; font-weight: 700; letter-spacing: .05em;
    padding: 8px 12px; border-radius: 4px;
  }
  .nav-logo img, .nav-logo .logo-placeholder { height: 42px; width: auto; min-width: 114px; }

  /* mobile section order per Figma 30:8: consultation before closing CTA;
     no trust-badge bar; 3 testimonials */
  body { display: flex; flex-direction: column; }
  .closing-cta { order: 1; }
  .footer { order: 2; }
  .trust-badges { display: none; }
  .t-row.two { display: none; }

  /* mobile hero — per Figma 30:14: visible video top, gradient to dark, centered copy */
  .hero { min-height: 633px; padding: 100px 20px 20px; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(18,18,18,.15) 0%, rgba(18,18,18,.35) 45%, rgba(18,18,18,.88) 100%);
  }
  .hero-copy { align-items: center; text-align: center; gap: 16px; }
  .hero-copy h1 { font-size: 42px; line-height: 1.12; }
  .hero-copy .sub { font-size: 15px; color: #f0ede8; }
  .hero-buttons { flex-direction: column; width: 100%; gap: 12px; padding-top: 12px; }
  .hero-buttons .btn-primary, .hero-buttons .btn-outline { padding: 18px 24px; width: 100%; justify-content: center; }
  .hero-buttons .btn-primary { box-shadow: 0 4px 8px rgba(181,69,27,.4); }
  .hero-buttons .btn-outline { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
  .play-banner { margin-top: 24px; }

  /* mobile quote card — white card per Figma 88:3, straddling the
     hero/services seam so more of the video shows above it */
  .hero { padding-bottom: 0; overflow: visible; }
  .hero-media { overflow: hidden; }
  .hero-inner { gap: 0; }
  /* hero fills the phone screen; form starts below the fold with a small peek */
  .hero-copy {
    min-height: calc(100vh - 150px);
    min-height: calc(100svh - 150px);
    justify-content: center;
  }
  .quote-card {
    background: #ffffff; border: none; border-radius: 20px;
    padding: 28px 24px; gap: 20px;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 8px 16px rgba(0,0,0,.15);
    position: relative; z-index: 5;
    margin-bottom: -300px;
  }
  .quote-card h2 { font-family: 'Young Serif', serif; font-weight: 400; font-size: 26px; color: #121212; }
  .quote-card .form-sub { color: #6b7280; }
  .qc-field label { color: #374151; }
  .qc-field input, .qc-field select, .qc-field textarea {
    background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; color: #121212;
  }
  .qc-field textarea { height: 90px; }
  .qc-field input::placeholder, .qc-field textarea::placeholder { color: #9ca3af; }
  .qc-field select:invalid { color: #9ca3af; }
  .qc-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
  }
  .qc-field input:focus, .qc-field select:focus, .qc-field textarea:focus { border-color: var(--orange); }
  .qc-submit { border-radius: 8px; box-shadow: 0 4px 8px rgba(181,69,27,.3); }
  .qc-privacy { color: #9ca3af; text-align: center; }
  .quote-card .form-status.ok { color: #1a7f37; }
  .quote-card .form-status.err { color: #b3261e; }

  .trust-badges { flex-direction: column; align-items: flex-start; padding: 32px 20px; gap: 24px; }

  .capabilities { padding: 364px 20px 64px; gap: 48px; }
  .section-header h2 { font-size: 34px; }
  .section-header.centered h2 { font-size: 32px; }
  .cap-card { padding: 24px; }
  .cap-card h3 { font-size: 24px; }

  .parallax { min-height: 320px; padding: 48px 20px; background-attachment: scroll; }

  .projects { padding: 64px 20px 0; gap: 40px; }
  .p-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .p-wide { grid-column: span 1; }
  .parallax blockquote { font-size: 26px; }

  .testimonials { padding: 64px 20px; gap: 40px; }
  .t-card { padding: 24px; }
  .t-quote { font-size: 16px; }

  .areas { padding: 64px 20px; }
  .areas-inner { gap: 40px; }
  .areas .btn-primary { width: 100%; justify-content: center; text-align: center; padding: 16px; }

  .closing-cta { min-height: auto; padding: 64px 20px; }
  .cta-head h2 { font-size: 38px; }
  .cta-buttons { width: 100%; }
  .cta-buttons .btn-primary, .cta-buttons .btn-outline { width: 100%; justify-content: center; }
  .cta-checks { gap: 16px; flex-direction: column; align-items: flex-start; }

  .consultation { padding: 64px 20px; gap: 48px; }
  .consult-copy h2 { font-size: 32px; }
  .dark-form { padding: 24px; }
  .dark-form h3 { font-size: 22px; }

  .footer { padding: 64px 20px 32px; gap: 48px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ============================================================
   SUBPAGES — gallery, about, contact, testimonials, roofing
   ============================================================ */
.subpage .nav { position: relative; background: var(--bg); }

.page-hero {
  position: relative; padding: 100px 80px 80px;
  background-size: cover; background-position: center;
}
.ph-overlay { position: absolute; inset: 0; background: rgba(18,18,18,.82); }
.ph-inner { position: relative; display: flex; flex-direction: column; gap: 24px; max-width: 860px; }
.ph-inner h1 { font-size: 56px; line-height: 1.1; color: var(--white); }
.ph-inner .sub { font-size: 18px; line-height: 1.6; color: var(--cream); max-width: 760px; }
.ph-inner .eyebrow-row { display: flex; align-items: center; gap: 8px; }
.ph-inner .hero-buttons { display: flex; gap: 16px; padding-top: 8px; flex-wrap: wrap; }

.county-ticker {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 12px 80px; font-size: 12px;
}
.county-ticker span:first-child { color: var(--muted); font-weight: 600; }
.county-ticker .counties { color: var(--cream); }

/* gallery */
.filters-section { padding: 48px 80px 8px; }
.filters-row { display: flex; gap: 12px; flex-wrap: wrap; }
.filter-pill {
  background: var(--surface); color: var(--cream); border: 1px solid var(--border);
  border-radius: 4px; padding: 12px 24px; font-size: 14px; transition: all .2s;
}
.filter-pill:hover { border-color: var(--accent); }
.filter-pill.active { background: var(--orange); border-color: var(--orange); color: var(--white); font-weight: 700; }

.gallery-grid { padding: 40px 80px 120px; }
.g-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 380px; gap: 32px; }
.g-card {
  position: relative; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface); margin: 0;
}
.g-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.g-card:hover img { transform: scale(1.04); }
.g-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 20px;
  background: linear-gradient(transparent, rgba(18,18,18,.95) 85%);
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.g-tag {
  background: var(--orange); color: var(--white); border-radius: 4px;
  padding: 5px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.g-card h3 { font-size: 20px; color: var(--white); }
.g-card figcaption p { font-size: 13px; color: var(--cream); opacity: .7; }
.g-card.g-hidden { display: none; }

/* about */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 56px 80px; text-align: center;
}
.stat-item { display: flex; flex-direction: column; gap: 10px; }
.stat-num { font-size: 54px; color: var(--accent); line-height: 1; }
.stat-label { font-size: 14px; color: var(--cream); }

.story-section { display: flex; gap: 80px; align-items: center; padding: 120px 80px; }
.story-text { flex: 1; display: flex; flex-direction: column; gap: 28px; }
.story-text p { font-size: 16px; line-height: 1.7; color: var(--cream); }
.story-img { width: 560px; flex-shrink: 0; }
.story-img img { width: 100%; height: 400px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

.values-section { padding: 100px 80px; background: var(--surface); display: flex; flex-direction: column; gap: 56px; }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.value-card { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 32px; }
.value-card h3 { font-size: 24px; color: var(--white); margin-bottom: 12px; }
.value-card p { font-size: 14px; line-height: 1.6; color: var(--cream); }

.leadership { display: flex; gap: 80px; align-items: center; padding: 120px 80px; }
.leader-img { width: 480px; flex-shrink: 0; position: relative; }
.leader-img img { width: 100%; height: 480px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.leader-bio { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.leader-bio h2 { font-size: 44px; color: var(--white); }
.leader-role { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); font-weight: 600; }
.leader-quote { font-family: 'Young Serif', serif; font-size: 20px; line-height: 1.6; color: var(--cream); }
.leader-attr { font-size: 13px; color: var(--muted); }

/* contact */
.contact-main { display: flex; gap: 80px; padding: 80px; align-items: flex-start; }
.contact-card {
  width: 500px; flex-shrink: 0; background: #ffffff; border-radius: 16px; padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 8px 16px rgba(0,0,0,.15);
}
.cc-header h2 { font-size: 26px; font-weight: 700; color: #121212; margin-bottom: 6px; }
.cc-header p { font-size: 14px; color: #6b7280; }
.contact-card .qc-field label { display: block; font-size: 12px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.contact-card .qc-field input, .contact-card .qc-field select, .contact-card .qc-field textarea {
  width: 100%; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 12px 14px; height: 44px; font-size: 14px; color: #121212; outline: none;
}
.contact-card .qc-field textarea { height: 96px; resize: vertical; }
.contact-card .qc-field input::placeholder, .contact-card .qc-field textarea::placeholder { color: #9ca3af; }
.contact-card .qc-field select:invalid { color: #9ca3af; }
.contact-card .qc-field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.contact-card .qc-field input:focus, .contact-card .qc-field select:focus, .contact-card .qc-field textarea:focus { border-color: var(--orange); }
.contact-card .qc-fields { display: flex; flex-direction: column; gap: 14px; }
.contact-card .qc-submit { width: 100%; height: 52px; border-radius: 8px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.contact-card .qc-privacy { font-size: 12px; color: #9ca3af; text-align: center; }
.contact-card .form-status.ok { color: #1a7f37; }
.contact-card .form-status.err { color: #b3261e; }

.contact-channels { flex: 1; display: flex; flex-direction: column; gap: 32px; }
.contact-channels h2 { font-size: 40px; color: var(--white); }
.channel-list { display: flex; flex-direction: column; gap: 16px; }
.channel {
  display: flex; align-items: center; gap: 20px; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  position: relative;
}
a.channel:hover { border-color: var(--accent); }
.ch-icon {
  width: 48px; height: 48px; border-radius: 8px; background: var(--bg);
  border: 1px solid var(--border); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ch-label { display: block; font-size: 12px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.ch-value { display: block; font-size: 17px; color: var(--white); word-break: break-word; }
.regions { display: flex; flex-direction: column; gap: 16px; }
.map-area { padding: 0 80px 120px; }
.map-area iframe { width: 100%; height: 440px; border: 1px solid var(--border); border-radius: 8px; filter: grayscale(.2); }

/* testimonials page */
.google-badge {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 8px;
  background: rgba(26,26,26,.85); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 22px; align-self: flex-start;
}
.gb-stars { color: var(--accent); font-size: 18px; letter-spacing: 2px; }
.gb-text { display: flex; flex-direction: column; gap: 2px; }
.gb-text strong { color: var(--white); font-size: 16px; }
.gb-text span { color: var(--muted); font-size: 12px; }

.featured-review { padding: 80px 80px 40px; }
.featured-card {
  display: flex; gap: 48px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 48px; align-items: center;
}
.fr-img { width: 380px; flex-shrink: 0; }
.fr-img img { width: 100%; height: 380px; object-fit: cover; border-radius: 8px; }
.fr-body { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.fr-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.fr-tag { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; font-size: 12px; color: var(--accent); font-weight: 600; }

.t-page { background: var(--bg); }
.t-page .t-card { background: var(--surface); }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 40px; height: 40px; border-radius: 20px; color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.t-google-link { align-self: center; margin-top: 8px; }

/* roofing service page */
.service-intro { display: flex; gap: 80px; padding: 120px 80px; align-items: flex-start; }
.si-copy { flex: 1; display: flex; flex-direction: column; gap: 28px; }
.si-copy p { font-size: 16px; line-height: 1.7; color: var(--cream); }
.benefits-card { width: 560px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 48px; }
.benefits-card h3 { font-size: 26px; font-weight: 700; color: var(--white); margin-bottom: 24px; }
.benefit-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.benefit-list li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.55; color: var(--cream); }
.benefit-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}

.cred-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 0 80px 100px; }
.cred-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.cred-box h3 { font-size: 26px; color: var(--white); }
.cred-box p { font-size: 14px; color: var(--cream); }
.cred-box a { color: var(--accent); font-size: 14px; font-weight: 600; margin-top: 6px; }

.rf-portfolio { padding-bottom: 60px; }
.timeline-section { padding: 100px 80px; display: flex; flex-direction: column; gap: 56px; background: var(--surface); }
.timeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline-step { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 32px; }
.ts-num { display: block; font-size: 40px; color: var(--accent); margin-bottom: 18px; }
.timeline-step h3 { font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.timeline-step p { font-size: 14px; line-height: 1.6; color: var(--cream); }

.rf-review { background: var(--bg); padding-top: 100px; }

.faq-section { padding: 100px 80px 120px; display: flex; flex-direction: column; gap: 48px; }
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-row { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0 32px; }
.faq-row summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font-family: 'Young Serif', serif; font-size: 20px; color: var(--white);
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-num {
  width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: 'Geist', sans-serif; font-size: 14px; color: var(--accent); transition: all .2s;
}
.faq-row[open] .faq-num { background: var(--orange); border-color: var(--orange); color: #fff; }
.faq-row p { padding: 0 0 26px; font-size: 15px; line-height: 1.7; color: var(--cream); max-width: 900px; }

/* discount popup */
.popup-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.popup-overlay[hidden] { display: none; }
.popup-card {
  position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  background: #ffffff; border-radius: 20px; padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.popup-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border-radius: 18px; background: #f3f4f6; color: #374151; font-size: 18px; line-height: 1;
}
.popup-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--accent); }
.popup-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--orange); }
.popup-card h2 { font-size: 44px; font-weight: 800; color: #121212; line-height: 1; }
.popup-sub { font-size: 15px; color: #6b7280; line-height: 1.5; }
.popup-card .qc-field label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.popup-card .qc-field input, .popup-card .qc-field select {
  width: 100%; background: #ffffff; border: 1px solid #d1d5db; border-radius: 10px;
  padding: 12px 16px; height: 46px; font-size: 14px; color: #121212; outline: none;
}
.popup-card .qc-field select:invalid { color: #9ca3af; }
.popup-card .qc-field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.popup-card .qc-field input:focus, .popup-card .qc-field select:focus { border-color: var(--orange); }
.popup-card .qc-fields { display: flex; flex-direction: column; gap: 14px; }
.popup-card .qc-submit { width: 100%; height: 52px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.popup-fine { font-size: 11px; color: #9ca3af; text-align: center; }
.popup-card .form-status.ok { color: #1a7f37; }
.popup-card .form-status.err { color: #b3261e; }

/* subpage responsive */
@media (max-width: 980px) {
  .service-intro, .story-section, .leadership, .contact-main { flex-direction: column; }
  .benefits-card, .story-img, .leader-img, .contact-card { width: 100%; }
  .featured-card { flex-direction: column; }
  .fr-img { width: 100%; }
  .g-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid, .cred-strip, .timeline-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .subpage .nav { padding: 16px 20px; }
  .page-hero { padding: 56px 20px; }
  .ph-inner h1 { font-size: 36px; }
  .ph-inner .sub { font-size: 15px; }
  .county-ticker { padding: 10px 20px; }
  .filters-section { padding: 32px 20px 0; }
  .gallery-grid { padding: 32px 20px 64px; }
  .g-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .stats-row { padding: 40px 20px; gap: 32px 12px; }
  .stat-num { font-size: 40px; }
  .story-section, .leadership { padding: 64px 20px; gap: 40px; }
  .values-section { padding: 64px 20px; gap: 40px; }
  .values-grid, .cred-strip, .timeline-grid { grid-template-columns: 1fr; }
  .leader-img img { height: 320px; }
  .story-img img { height: 280px; }
  .contact-main { padding: 48px 20px; gap: 48px; }
  .contact-channels h2 { font-size: 30px; }
  .map-area { padding: 0 20px 64px; }
  .map-area iframe { height: 320px; }
  .featured-review { padding: 48px 20px 24px; }
  .featured-card { padding: 24px; gap: 24px; }
  .fr-img img { height: 240px; }
  .service-intro { padding: 64px 20px; gap: 40px; }
  .benefits-card { padding: 24px; }
  .cred-strip { padding: 0 20px 64px; }
  .timeline-section { padding: 64px 20px; gap: 40px; }
  .faq-section { padding: 64px 20px; gap: 40px; }
  .faq-row { padding: 0 20px; }
  .faq-row summary { font-size: 17px; padding: 20px 0; }
  .popup-card h2 { font-size: 36px; }
}
