/* Chapman Construction LLC. Design system.
   Tone: Premium. Palette from spec: primary #CD9B3A, accent black, neutral #D3D3D3.
   Type: Plus Jakarta Sans (headings 700, body 400/500). Balanced photo density. Standard rhythm. */

:root {
  --gold: #CD9B3A;
  --gold-dark: #A97C25;
  --gold-soft: #F4E9D3;
  --gold-tint: #FBF6EC;
  --black: #111111;
  --ink: #1C1C1C;
  --ink-soft: #4A4A4A;
  --ink-muted: #6E6E6E;
  --neutral: #D3D3D3;
  --neutral-light: #EDEDED;
  --neutral-faint: #F6F6F6;
  --white: #FFFFFF;
  --line: #E1E1E1;

  --font-head: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.75rem;
  --text-4xl: 3.5rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --container: 1200px;
  --container-narrow: 820px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 var(--space-4); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 0 0 var(--space-4);
}
h1 { font-size: clamp(2.25rem, 4.6vw, var(--text-4xl)); }
h2 { font-size: clamp(1.75rem, 3vw, var(--text-3xl)); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--space-3);
}

.lead { font-size: var(--text-lg); color: var(--ink-soft); }
.muted { color: var(--ink-muted); }

.container { width: min(100% - 2.5rem, var(--container)); margin: 0 auto; }
.container-narrow { width: min(100% - 2.5rem, var(--container-narrow)); margin: 0 auto; }

.section { padding: var(--space-24) 0; }
.section-tight { padding: var(--space-16) 0; }
.section-dark { background: var(--black); color: var(--neutral-light); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark .lead, .section-dark p { color: var(--neutral); }
.section-tint { background: var(--neutral-faint); }
.section-gold-tint { background: var(--gold-tint); }

.section-head { max-width: 640px; margin-bottom: var(--space-12); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-lg { padding: 1.1rem 2rem; font-size: var(--text-base); }

.text-link {
  font-weight: 600;
  color: var(--black);
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.text-link:hover { color: var(--gold-dark); border-color: var(--gold-dark); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand img { height: 44px; width: auto; }
.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--black);
  line-height: 1.1;
}
.wordmark small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: var(--space-2); }
.nav > li { position: relative; }
.nav > li > a,
.nav > li > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius);
}
.nav > li > a:hover, .nav > li > button:hover { color: var(--gold-dark); }
.nav .chev { width: 10px; height: 10px; transition: transform 0.2s; }
.has-dropdown:hover .chev, .has-dropdown.open .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow);
  padding: var(--space-3) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  max-height: calc(100vh - var(--header-h) - 20px);
  overflow-y: auto;
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-wide { min-width: 640px; display: grid; grid-template-columns: 1fr 1fr; padding: var(--space-4) var(--space-2); }
.dropdown-group { padding: var(--space-2) var(--space-3); }
.dropdown-group + .dropdown-group { }
.dropdown-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  padding: var(--space-2) var(--space-3) var(--space-1);
}
.dropdown a {
  display: block;
  padding: 0.45rem var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius);
}
.dropdown a:hover { background: var(--gold-tint); color: var(--black); }
.dropdown-cols { display: grid; grid-template-columns: 1fr 1fr; }

.header-cta { display: flex; align-items: center; gap: var(--space-4); }
.header-phone { font-weight: 600; font-size: var(--text-sm); color: var(--ink); }
.header-phone:hover { color: var(--gold-dark); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0 11px;
}
.menu-toggle span { display: block; height: 2px; background: var(--black); transition: transform 0.2s, opacity 0.2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
  min-height: 640px;
  padding: var(--space-24) 0;
}
.hero h1 { color: var(--white); margin-bottom: var(--space-6); }
.hero h1 .gold { color: var(--gold); }
.hero .lead { color: var(--neutral); max-width: 520px; margin-bottom: var(--space-8); }
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero-note { margin-top: var(--space-8); font-size: var(--text-sm); color: var(--neutral); display: flex; gap: var(--space-6); flex-wrap: wrap; }
.hero-note strong { color: var(--white); }

.hero-media { position: relative; min-height: 460px; }
.hero-media .photo-frame { height: 100%; }
.hero-badge {
  position: absolute;
  left: -24px;
  bottom: 32px;
  background: var(--gold);
  color: var(--black);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.2;
  box-shadow: var(--shadow);
}
.hero-badge small { display: block; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; margin-bottom: 4px; }

/* Photo placeholders. Replace with real photos when the client sends them. */
.photo-frame {
  position: relative;
  background:
    linear-gradient(135deg, rgba(205,155,58,0.16) 0%, rgba(205,155,58,0.04) 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px),
    #2A2A2A;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--neutral);
  padding: var(--space-6);
  overflow: hidden;
}
.photo-frame.light {
  background:
    linear-gradient(135deg, rgba(205,155,58,0.14) 0%, rgba(205,155,58,0.03) 60%),
    var(--neutral-light);
  border: 1px solid var(--neutral);
  color: var(--ink-muted);
}
.photo-frame .ph-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}
.photo-frame.light .ph-label { color: var(--gold-dark); }
.photo-frame .ph-desc { font-size: var(--text-sm); max-width: 260px; margin: 0; }
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(205,155,58,0.45);
  border-radius: var(--radius);
  pointer-events: none;
}

/* Trust strip */
.trust-strip { background: var(--gold); color: var(--black); }
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  padding: var(--space-6) var(--space-4);
  border-left: 1px solid rgba(17,17,17,0.15);
}
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item strong { display: block; font-family: var(--font-head); font-size: var(--text-xl); font-weight: 700; line-height: 1.1; }
.trust-item span { font-size: var(--text-sm); font-weight: 500; opacity: 0.85; }

/* Service cards */
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card .num { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; color: var(--gold-dark); }
.service-card h3 { margin: 0; font-size: var(--text-lg); }
.service-card h3 a:hover { color: var(--gold-dark); }
.service-card p { margin: 0; font-size: var(--text-sm); color: var(--ink-soft); flex: 1; }
.service-card .text-link { align-self: flex-start; font-size: var(--text-sm); }

.category-block { margin-bottom: var(--space-12); }
.category-block:last-child { margin-bottom: 0; }
.category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  border-bottom: 2px solid var(--black);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-6);
}
.category-head h3 { margin: 0; }
.category-head span { font-size: var(--text-sm); color: var(--ink-muted); }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.split .photo-frame { min-height: 420px; }

/* Case study */
.case-meta { display: flex; gap: var(--space-8); flex-wrap: wrap; margin: var(--space-6) 0; }
.case-meta div strong { display: block; font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.case-meta div span { color: var(--neutral-light); font-weight: 500; }

/* Testimonials */
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.quote-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: var(--space-3); font-size: var(--text-sm); }
.quote-card blockquote { margin: 0 0 var(--space-4); font-size: var(--text-base); color: var(--ink); }
.quote-card cite { font-style: normal; font-weight: 600; font-size: var(--text-sm); color: var(--ink-muted); }
.quote-card.placeholder { border-style: dashed; background: var(--neutral-faint); }
.quote-card.placeholder blockquote { color: var(--ink-muted); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); counter-reset: step; }
.step { position: relative; padding-top: var(--space-6); border-top: 2px solid var(--neutral); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -14px;
  left: 0;
  background: var(--white);
  padding-right: var(--space-3);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold-dark);
  font-size: var(--text-sm);
}
.step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.step p { font-size: var(--text-sm); color: var(--ink-soft); margin: 0; }

/* FAQ */
.faq-list { display: grid; gap: var(--space-3); }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 0 var(--space-6);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-4) 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-dark);
  line-height: 1;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details[open] { border-color: var(--gold); }
.faq-list details p { padding-bottom: var(--space-4); color: var(--ink-soft); margin: 0; }

/* CTA */
.cta-band { background: var(--black); color: var(--white); }
.cta-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--space-12); align-items: center; }
.cta-band h2 { color: var(--white); }
.cta-band .lead { color: var(--neutral); }
.form-placeholder {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(205,155,58,0.6);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  color: var(--neutral);
  font-size: var(--text-sm);
}
.form-placeholder strong { display: block; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; font-size: var(--text-xs); margin-bottom: var(--space-3); }
.contact-lines { margin-top: var(--space-6); display: grid; gap: var(--space-2); font-size: var(--text-sm); color: var(--neutral); }
.contact-lines a { color: var(--white); font-weight: 600; }
.contact-lines a:hover { color: var(--gold); }

/* Footer */
.site-footer { background: #0B0B0B; color: var(--neutral); padding: var(--space-16) 0 var(--space-8); font-size: var(--text-sm); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-12); padding-bottom: var(--space-12); border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .wordmark { color: var(--white); }
.footer-brand .wordmark small { color: var(--gold); }
.footer-brand p { margin: var(--space-4) 0; color: var(--neutral); max-width: 320px; }
.footer-nap { display: grid; gap: var(--space-2); }
.footer-nap a { color: var(--white); font-weight: 500; }
.footer-nap a:hover { color: var(--gold); }
.footer-hours { margin-top: var(--space-4); }
.footer-hours div { display: flex; justify-content: space-between; max-width: 260px; border-bottom: 1px dotted rgba(255,255,255,0.12); padding: 3px 0; }
.footer h4, .site-footer h4 { color: var(--white); font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: var(--space-4); }
.footer-list li { padding: 3px 0; }
.footer-list a { color: var(--neutral); }
.footer-list a:hover { color: var(--gold); }
.footer-sub { color: var(--gold); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; margin: var(--space-4) 0 var(--space-2); font-weight: 700; }
.footer-sub:first-child { margin-top: 0; }
.footer-map { margin: var(--space-12) 0; }
.footer-map iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius-lg); display: block; }
.map-placeholder {
  height: 320px;
  border: 1px dashed rgba(205,155,58,0.6);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--neutral);
  padding: var(--space-6);
  background: rgba(255,255,255,0.03);
}
.map-placeholder strong { display: block; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; font-size: var(--text-xs); margin-bottom: var(--space-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; color: var(--ink-muted); font-size: var(--text-xs); }
.footer-bottom a { color: var(--neutral); }
.footer-bottom a:hover { color: var(--gold); }
.footer-legal { display: flex; gap: var(--space-4); }

/* Utility */
.mt-8 { margin-top: var(--space-8); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Responsive */
@media (max-width: 1080px) {
  .dropdown-wide { min-width: 560px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: flex; }
  .header-phone { display: none; }
  .header-cta .btn { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: var(--space-4) var(--space-4) var(--space-6);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    gap: 0;
  }
  .nav.open { display: flex; }
  .nav > li > a, .nav > li > button { width: 100%; justify-content: space-between; padding: 0.85rem var(--space-2); border-bottom: 1px solid var(--line); border-radius: 0; font-size: var(--text-base); }
  .dropdown, .dropdown-wide {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    display: none;
    padding: var(--space-2) 0 var(--space-3);
    max-height: none;
    grid-template-columns: 1fr;
  }
  .dropdown::before { display: none; }
  .has-dropdown.open .dropdown, .has-dropdown.open .dropdown-wide { display: grid; }
  .has-dropdown:hover .dropdown:not(.open) { }
  .dropdown-cols { grid-template-columns: 1fr; }
  .nav .mobile-cta { display: block; margin-top: var(--space-4); }
  .nav .mobile-cta .btn { width: 100%; justify-content: center; display: inline-flex; }

  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding: var(--space-16) 0; gap: var(--space-8); }
  .hero-media { min-height: 320px; }
  .hero-badge { left: 16px; bottom: 16px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-left: 0; padding-left: 0; border-top: 1px solid rgba(17,17,17,0.15); }
  .trust-item:nth-child(-n+2) { border-top: 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: var(--space-8); }
  .split .photo-frame { min-height: 300px; }
  .cta-inner { grid-template-columns: 1fr; }
  .section { padding: var(--space-16) 0; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; gap: var(--space-8); }
  .steps { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-item:nth-child(-n+2) { border-top: 1px solid rgba(17,17,17,0.15); }
  .trust-item:first-child { border-top: 0; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Desktop: hide the mobile-only CTA item */
@media (min-width: 901px) {
  .nav .mobile-cta { display: none; }
}
