/* ============================================================
   The Metropolitan Builder — design system
   Palette derived from: (1) the business's actual 2019 logo file
   (bronze #7a5f44, sampled from the real asset) and (2) the
   current issue's cover photography (a Mediterranean Houston
   custom home — terracotta tile roof gave the terracotta accent).
   Ink navy is a deliberate new choice for this build: this is a
   media/publishing brand ("Metropolitan"), not a rustic remodeler,
   so it leans editorial/urban rather than the warm-cream-plus-brass
   look already used on two sibling Marathon builds.
   Fonts: Fraunces (editorial display serif, echoes the tall serif
   feel of the old wordmark) + Barlow / Barlow Condensed (clean
   grotesk for body copy and small-caps kicker labels, echoing the
   old logo's bold blocky "BUILDER").
   ============================================================ */

:root {
  --ink: #1c2b3a;
  --ink-deep: #121d27;
  --ink-soft: #2c3e50;
  --paper: #f4f2ec;
  --paper-deep: #eae5d8;
  --paper-line: rgba(28, 43, 58, 0.13);
  --cream: #ece7dc;
  --muted: #5b5347;
  --muted-soft: #8b8172;
  --muted-dim: #b9ad9a;

  --terracotta: #b1502f;
  --terracotta-deep: #8f3e22;
  --terracotta-light: #d98a63;
  --terracotta-wash: rgba(177, 80, 47, 0.10);

  --bronze: #7a5f44;
  --bronze-light: #a98a68;
  --bronze-wash: rgba(122, 95, 68, 0.12);

  --shadow: 0 24px 60px -28px rgba(18, 29, 39, 0.45);
  --shadow-sm: 0 10px 24px -14px rgba(18, 29, 39, 0.35);

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-kicker: 'Barlow Condensed', 'Barlow', sans-serif;

  --max-width: 1200px;
  --radius: 10px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

section { position: relative; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-tight { padding: 64px 0; }

.zone-paper { background: var(--paper); }
.zone-paper-deep { background: var(--paper-deep); }
.zone-ink { background: var(--ink); color: var(--cream); }
.zone-ink .muted { color: var(--muted-dim); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: inherit;
}

h1 { font-size: clamp(2.4rem, 4.2vw, 3.8rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 500; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); line-height: 1.6; }
.zone-ink .lead { color: var(--muted-dim); }

.eyebrow {
  font-family: var(--font-kicker);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--terracotta);
  display: inline-block;
}
.zone-ink .eyebrow { color: var(--terracotta-light); }

.accent { color: var(--terracotta); }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-kicker);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--terracotta); color: #fff8f2; }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--paper-line); }
.btn-outline:hover { border-color: var(--ink); }
.zone-ink .btn-outline,
.hero .btn-outline,
.page-hero .btn-outline,
.cta-band .btn-outline,
.form-card .btn-outline { color: var(--cream); border-color: rgba(236, 231, 220, 0.35); }
.zone-ink .btn-outline:hover,
.hero .btn-outline:hover,
.page-hero .btn-outline:hover,
.cta-band .btn-outline:hover,
.form-card .btn-outline:hover { border-color: var(--cream); }
.btn-ghost-light { background: rgba(236,231,220,0.08); color: var(--cream); border-color: rgba(236,231,220,0.25); }
.btn-sm { padding: 10px 20px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--cream);
  border-bottom: 1px solid rgba(236, 231, 220, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
}
.brand-badge {
  background: var(--terracotta);
  color: #fff8f2;
  font-family: var(--font-kicker);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1;
}
.brand-word {
  font-size: 1.32rem;
  color: var(--cream);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-word strong { font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav .nav-links { display: flex; gap: 26px; }
.main-nav .nav-links a {
  font-family: var(--font-kicker);
  text-transform: uppercase;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--muted-dim);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav .nav-links a:hover,
.main-nav .nav-links a.active { color: var(--cream); border-color: var(--terracotta); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone {
  font-family: var(--font-kicker);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-phone svg { width: 16px; height: 16px; fill: var(--terracotta-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; fill: currentColor; }

.mobile-panel { display: none; }

.main-nav .mobile-only-link,
.main-nav .mobile-only-cta { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 96px;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 62%, var(--ink-deep) 100%);
  color: var(--cream);
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 460px;
  height: 460px;
  border: 90px solid rgba(177, 80, 47, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { color: var(--cream); }
.hero .lead { max-width: 46ch; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

.hero-cover-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-cover-card {
  background: var(--cream);
  padding: 14px 14px 20px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: rotate(3deg);
  max-width: 300px;
  position: relative;
}
.hero-cover-card img { border-radius: 2px; width: 100%; }
.hero-cover-tag {
  font-family: var(--font-kicker);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin-top: 10px;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 80px;
  position: relative;
}
.page-hero .eyebrow { color: var(--terracotta-light); }
.page-hero h1 { color: var(--cream); max-width: 24ch; }
.page-hero .lead { color: var(--muted-dim); max-width: 60ch; }
.breadcrumb {
  font-family: var(--font-kicker);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--terracotta-light); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Audience cards ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.audience-card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.audience-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--terracotta-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.audience-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--terracotta); stroke-width: 1.6; }
.audience-card h3 { margin-bottom: 10px; }
.audience-card p { color: var(--muted); flex-grow: 1; }
.card-link {
  font-family: var(--font-kicker);
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--terracotta);
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link svg { width: 14px; height: 14px; fill: currentColor; transition: transform 0.15s ease; }
.audience-card:hover .card-link svg { transform: translateX(3px); }

/* ---------- Trust bar ---------- */
.trust-bar { border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
  text-align: center;
}
.trust-item .trust-label {
  font-family: var(--font-kicker);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.trust-item .trust-sub { font-size: 0.86rem; color: var(--muted-soft); }

/* ---------- Program / feature list rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--paper-line);
}
.feature-row:first-of-type { border-top: none; }
.feature-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--terracotta);
  font-weight: 500;
}
.feature-row h4 { margin-bottom: 6px; }
.feature-row p { color: var(--muted); margin-bottom: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.checklist { margin-top: 4px; }
.checklist li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-top: 1px solid var(--paper-line);
  color: var(--muted);
}
.checklist li:first-child { border-top: none; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}

/* ---------- Pull quote / testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 32px;
}
.testimonial-card .quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--terracotta-light);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.testimonial-card p.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--ink);
  margin-bottom: 16px;
}
.testimonial-card .attribution {
  font-family: var(--font-kicker);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--muted-soft);
}
.testimonial-source {
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--muted-soft);
}
.testimonial-source a { color: var(--terracotta); text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--cream); }
.cta-band .lead { color: var(--muted-dim); max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-band-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Issue strip ---------- */
.issue-strip {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-top: 48px;
}
.issue-strip img { width: 140px; border-radius: 4px; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.issue-strip-body h3 { margin-bottom: 8px; }
.issue-strip-body p { color: var(--muted); margin-bottom: 18px; }
.issue-strip-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 40px;
}
.form-card h3 { color: var(--cream); }
.form-card .lead { color: var(--muted-dim); font-size: 1rem; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-kicker);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--muted-dim);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 6px;
  border: 1px solid rgba(236, 231, 220, 0.22);
  background: rgba(236, 231, 220, 0.06);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.98rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-dim); opacity: 0.7; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.82rem; color: var(--muted-dim); margin-top: 14px; }
.form-status { margin-top: 16px; font-size: 0.92rem; font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #9fd3a8; }
.form-status.err { color: #e59a8a; }

/* light form card variant, used on pages where surrounding zone is already dark */
.form-card.on-paper {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--paper-line);
}
.form-card.on-paper h3 { color: var(--ink); }
.form-card.on-paper .lead { color: var(--muted); }
.form-card.on-paper .field label { color: var(--muted-soft); }
.form-card.on-paper .field input,
.form-card.on-paper .field select,
.form-card.on-paper .field textarea {
  border-color: var(--paper-line);
  background: var(--paper);
  color: var(--ink);
}
.form-card.on-paper .field input::placeholder,
.form-card.on-paper .field textarea::placeholder { color: var(--muted-soft); }
.form-card.on-paper .form-note { color: var(--muted-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--muted-dim); padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(236, 231, 220, 0.1);
}
.footer-brand .brand-word { color: var(--cream); }
.footer-brand p { color: var(--muted-dim); margin-top: 16px; max-width: 32ch; font-size: 0.92rem; }
.footer-col h4 {
  color: var(--cream);
  font-family: var(--font-kicker);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-col ul li a:hover { color: var(--cream); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(236,231,220,0.25);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 16px; height: 16px; fill: var(--cream); }
.footer-social a:hover { border-color: var(--terracotta-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
}
.footer-bottom a:hover { color: var(--cream); }

/* ---------- Misc page bits ---------- */
.about-timeline { margin-top: 12px; }
.about-timeline .feature-row .feature-num { font-size: 1.1rem; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.pillar-card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 28px;
}
.pillar-card .eyebrow { margin-bottom: 10px; }
.pillar-card p { color: var(--muted); margin-bottom: 0; }

.note-card {
  background: var(--bronze-wash);
  border: 1px solid rgba(122, 95, 68, 0.25);
  border-radius: var(--radius);
  padding: 24px 28px;
  font-size: 0.94rem;
  color: var(--muted);
}
.note-card strong { color: var(--ink); }

.brand-history-card {
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand-history-card img {
  max-width: 220px;
  border-radius: 4px;
  flex-shrink: 0;
}
.brand-history-card p { margin: 0; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--paper-line);
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.contact-info-card {
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
}
.contact-info-card h4 { margin-bottom: 8px; }
.contact-info-card p, .contact-info-card a { color: var(--muted); }
.contact-info-card a:hover { color: var(--terracotta); }

/* 404 */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-page .eyebrow { color: var(--terracotta); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cover-wrap { order: -1; }
  .hero-cover-card { transform: rotate(0deg); max-width: 220px; }
  .audience-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .issue-strip { flex-direction: column; text-align: center; }
}

@media (max-width: 720px) {
  .main-nav .nav-links,
  .header-phone.desktop-only { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn.desktop-only { display: none; }

  .mobile-panel {
    display: none;
    flex-direction: column;
    background: var(--ink-deep);
    padding: 10px 28px 26px;
    border-top: 1px solid rgba(236,231,220,0.1);
  }
  .mobile-panel.open { display: flex; }
  .mobile-panel a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(236,231,220,0.08);
    font-family: var(--font-kicker);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cream);
  }
  .mobile-panel .mobile-cta { margin-top: 16px; }

  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.1rem; }
  .section { padding: 60px 0; }
  .form-row-2 { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }
  .brand-history-card { flex-direction: column; align-items: flex-start; }
  .brand-history-card img { max-width: 100%; }
}
