/* ============================================================
   CHRISTIAN A. CHAPMAN — Brand Stylesheet
   Problem Real Estate Specialist · North Texas
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ── TOKENS ── */
:root {
  --ink:     #0D0D0D;
  --gold:    #C8973A;
  --gold-lt: #E8B95A;
  --blue:    #1A4A6B;
  --slate:   #2C3E50;
  --cream:   #F5F0E8;
  --mist:    #FAFAF7;
  --border:  rgba(200,151,58,0.22);
  --muted:   #666;
  --radius:  6px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: #fff; color: var(--ink); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.1; }
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 900; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }
p  { font-size: 16px; line-height: 1.75; color: var(--muted); }
.mono { font-family: 'DM Mono', monospace; }

/* ── LAYOUT ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── EYEBROW ── */
.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}
.btn-primary   { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-lt); }
.btn-outline   { border: 1.5px solid rgba(245,240,232,0.4); color: var(--cream); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark      { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--slate); }

/* ── NAV ── */
.nav {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(200,151,58,0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1160px;
  margin: 0 auto;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(245,240,232,0.65);
  transition: color 0.2s;
  letter-spacing: 0.3px;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-links .nav-cta a {
  background: var(--gold);
  color: var(--ink);
  padding: 9px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.nav-links .nav-cta a:hover { background: var(--gold-lt); }

/* ── NAV PHONE ── */
.nav-phone {
  color: var(--gold);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  white-space: nowrap;
  margin-left: 20px;
  border: 1px solid var(--gold);
  padding: 7px 14px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.nav-phone:hover { background: var(--gold); color: var(--ink); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--cream); margin: 5px 0; transition: all 0.2s; }

/* ── HERO ── */
.hero {
  background: var(--ink);
  padding: 100px 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -150px; right: -150px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,151,58,0.1) 0%, transparent 65%);
}
.hero::after {
  content: '';
  position: absolute; bottom: -100px; left: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,74,107,0.15) 0%, transparent 65%);
}
.hero-title-row  { position: relative; z-index: 2; margin-bottom: 24px; }
.hero-inner      { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: flex-start; }
.hero-text       { display: flex; flex-direction: column; padding-bottom: 64px; padding-top: 0; }
.hero h1         { color: var(--gold); margin-bottom: 24px; }
.hero h1 em      { color: var(--cream); font-style: normal; }
.hero-sub        { font-size: 18px; font-weight: 300; color: rgba(245,240,232,0.7); margin-bottom: 40px; line-height: 1.7; margin-top: 0; }
.hero-btns       { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image      { display: flex; align-items: flex-start; justify-content: flex-end; transform: translateX(20%); }
.hero-image img  { width: 100%; max-width: 480px; display: block; border-radius: 4px; filter: contrast(1.08) saturate(1.15); image-rendering: crisp-edges; }

/* ── AUDIENCE SPLIT ── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.aud-card {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  text-align: center;
  transition: background 0.2s;
  cursor: pointer;
}
.aud-card:last-child { border-right: none; }
.aud-card:hover { background: rgba(200,151,58,0.05); }
.aud-icon  { font-size: 28px; margin-bottom: 12px; }
.aud-title { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.aud-cta   { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; }

/* ── CARDS ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.card-icon  { font-size: 28px; margin-bottom: 16px; }
.card h4    { margin-bottom: 10px; }
.card p     { font-size: 14px; }

/* ── HIGHLIGHT BOX ── */
.highlight {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 40px 48px;
  margin: 40px 0;
}
.highlight h3   { font-family: 'Playfair Display', serif; color: var(--gold); margin-bottom: 16px; }
.highlight p    { color: rgba(245,240,232,0.75); font-size: 15px; }
.highlight ul   { list-style: none; margin-top: 12px; }
.highlight ul li { padding: 8px 0; font-size: 14px; color: rgba(245,240,232,0.75); border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; gap: 10px; }
.highlight ul li::before { content: '→'; color: var(--gold); flex-shrink: 0; }

/* ── PROCESS STEPS ── */
.steps { display: flex; flex-direction: column; gap: 0; margin-top: 40px; }
.step  { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding-bottom: 40px; }
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px; font-weight: 900;
  color: var(--gold); opacity: 0.3;
  line-height: 1;
}
.step h4   { margin-bottom: 8px; }
.step p    { font-size: 14px; }

/* ── FORM ── */
.form-wrap {
  background: var(--mist);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 640px;
}
.form-wrap h3 { margin-bottom: 8px; }
.form-wrap > p { margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  background: white;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { margin-top: 8px; }

/* ── TESTIMONIAL ── */
.testimonial {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
}
.testimonial::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 120px;
  color: var(--gold);
  opacity: 0.15;
  position: absolute;
  top: -10px; left: 24px;
  line-height: 1;
}
.testimonial p  { color: rgba(245,240,232,0.8); font-size: 15px; font-style: italic; position: relative; z-index: 1; }
.testimonial-attr { margin-top: 20px; font-family: 'DM Mono', monospace; font-size: 11px; color: var(--gold); letter-spacing: 1px; }

/* ── DATA TABLE ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 24px; }
.data-table th { background: var(--ink); color: var(--cream); padding: 12px 16px; text-align: left; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.data-table tr:nth-child(even) td { background: rgba(200,151,58,0.04); }

/* ── BADGE ── */
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; font-family: 'DM Mono', monospace; }
.badge-gold  { background: rgba(200,151,58,0.14); color: #8B6420; }
.badge-blue  { background: rgba(26,74,107,0.12); color: var(--blue); }
.badge-green { background: rgba(42,122,74,0.12); color: #2a7a4a; }

/* ── FOOTER ── */
.footer {
  background: var(--ink);
  padding: 64px 0 32px;
  color: var(--cream);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 900; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: rgba(245,240,232,0.5); line-height: 1.7; max-width: 280px; }
.footer-col h5 { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(245,240,232,0.5); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 12px; color: rgba(245,240,232,0.3); }
.footer-bottom .affil { font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(200,151,58,0.4); letter-spacing: 1px; }

/* ── PROBLEMRE LOGO ── */
.problemre-logo { height: 24px; width: auto; vertical-align: middle; display: inline-block; position: relative; top: -1px; }
.footer-bottom .affil .problemre-logo { height: 21px; }
.affiliation-bar .problemre-logo { height: 24px; }
.wc-point-body .problemre-logo { height: 27px; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--ink);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,151,58,0.08) 0%, transparent 65%);
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { color: var(--gold); font-size: clamp(32px, 5vw, 56px); margin-bottom: 16px; }
.page-hero p  { color: rgba(245,240,232,0.65); font-size: 17px; max-width: 560px; }

/* ── DIVIDER ── */
.divider { width: 60px; height: 2px; background: var(--gold); opacity: 0.5; margin: 24px 0; }

/* ── CITY / COUNTY HERO WITH PHOTO ── */
.page-hero-split .page-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.035fr;
  gap: 60px;
  align-items: center;
}
.page-hero-split .page-hero h1 { max-width: none; }
.page-hero-split .page-hero p  { max-width: none; }
.city-hero-img {
  height: 300px;
  border-radius: var(--radius);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--ink);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.city-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,151,58,0.12) 0%, transparent 55%);
  pointer-events: none;
}
/* county-specific gradient fallbacks (shown when no bg-image or image fails) */
.city-hero-img.collin  { background-image: linear-gradient(135deg, #1A4A6B 0%, #0D0D0D 100%); }
.city-hero-img.tarrant { background-image: linear-gradient(135deg, #2C3E50 0%, #1a1a1a 100%); }
.city-hero-img.denton  { background-image: linear-gradient(135deg, #1a2e44 0%, #0D0D0D 100%); }
.city-hero-img.grayson { background-image: linear-gradient(135deg, #243322 0%, #0D0D0D 100%); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .nav-links     { display: none; }
  .nav-toggle    { display: block; }
  .hero-inner    { grid-template-columns: 1fr; }
  .hero-image    { display: none; }
  .hero-text     { padding-bottom: 48px; }
  .hero-title-row { margin-bottom: 20px; }
  .page-hero-split .page-hero-inner { grid-template-columns: 1fr; }
  .city-hero-img { display: none; }
}
@media (max-width: 600px) {
  .container     { padding: 0 20px; }
  .section       { padding: 64px 0; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .hero          { padding: 72px 0 64px; }
  .highlight     { padding: 28px 24px; }
}
