/* ═══════════════════════════════════════════════════════════════
   ADU LEAD GEN SITE — Global Styles
   Design: Clean, trustworthy, professional homeowner-service aesthetic
   Fonts: DM Sans (body) + Bricolage Grotesque (display)
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Color System */
  --ink: #1a1f2e;
  --ink-light: #3d4459;
  --ink-muted: #6b7280;
  --surface: #ffffff;
  --surface-warm: #faf9f7;
  --surface-alt: #f3f1ee;
  --border: #e5e2dc;
  --border-light: #f0ede8;
  --accent: #2d6a4f;
  --accent-hover: #1b5e3a;
  --accent-light: #d8f3dc;
  --accent-bg: #f0faf3;
  --warm: #c17f24;
  --warm-bg: #fef7e8;
  --red: #c0392b;

  /* Typography Scale */
  --font-display: 'Bricolage Grotesque', serif;
  --font-body: 'DM Sans', sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --max-content: 780px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26,31,46,0.06);
  --shadow-md: 0 4px 12px rgba(26,31,46,0.08);
  --shadow-lg: 0 8px 30px rgba(26,31,46,0.1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── BASE TYPOGRAPHY ─── */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: var(--text-5xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { margin-bottom: var(--space-md); color: var(--ink-light); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--ink); }

/* ─── LAYOUT ─── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-2xl);
}

.container--narrow {
  max-width: var(--max-content);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--alt {
  background: var(--surface-warm);
}

.section--accent {
  background: var(--accent-bg);
}

/* ─── HEADER / NAV ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  overflow: visible;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
}

.nav__logo span {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-light);
  transition: color 0.2s;
  padding: var(--space-sm) 0;
}

.nav__links a:hover {
  color: var(--accent);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  background: var(--accent);
  color: white !important;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.nav__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: 0.3s;
}

/* ─── TRUST BAR ─── */
.trust-bar-section {
  background: var(--surface-warm);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-2xl) 0;
}

.trust-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3xl);
  align-items: center;
}

.trust-bar__quote {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.trust-bar__quote svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.trust-bar__quote p {
  font-size: var(--text-base);
  color: var(--ink-light);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: var(--space-xs);
}

.trust-bar__quote cite {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  font-style: normal;
  font-weight: 600;
}

.trust-bar__stats {
  display: flex;
  gap: var(--space-2xl);
  flex-shrink: 0;
}

.trust-bar__stat {
  text-align: center;
}

.trust-bar__stat strong {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.trust-bar__stat span {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ─── HERO ─── */
.hero {
  padding: var(--space-4xl) 0 var(--space-3xl);
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-warm) 50%, var(--accent-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45,106,79,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--ink-muted);
  margin-bottom: var(--space-xl);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

.hero__phone {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
}

.hero__phone svg {
  color: var(--accent);
}

.hero__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface-alt);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-bg) 0%, var(--surface-alt) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  color: var(--accent);
}

.hero__image-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.5;
}

.hero__image-placeholder span {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.hero__trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: white;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45,106,79,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink-light);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--large {
  padding: 16px 36px;
  font-size: var(--text-lg);
}

.btn--small {
  padding: 10px 20px;
  font-size: var(--text-sm);
}

/* ─── SERVICES GRID ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--accent);
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}

.service-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.service-card__link:hover {
  gap: 8px;
}

/* ─── PROCESS / STEPS ─── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  counter-reset: step;
}

.process-step {
  position: relative;
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: var(--space-md);
  line-height: 1;
}

.process-step h4 {
  margin-bottom: var(--space-sm);
  font-size: var(--text-lg);
}

.process-step p {
  font-size: var(--text-sm);
}

/* ─── STATS BAR ─── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  padding: var(--space-2xl);
  background: var(--ink);
  border-radius: var(--radius-lg);
  text-align: center;
}

.stats-bar__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: white;
  margin-bottom: var(--space-xs);
}

.stats-bar__item span {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
}

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
}

.cta-banner h2 {
  color: white;
  font-size: var(--text-3xl);
}

.cta-banner p {
  color: rgba(255,255,255,0.7);
  max-width: 500px;
}

.cta-banner .btn--primary {
  flex-shrink: 0;
}

/* ─── FAQ ─── */
.faq-list {
  max-width: var(--max-content);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) 0;
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  padding: var(--space-sm) 0;
  cursor: pointer;
}

.faq-item__question svg {
  width: 20px;
  height: 20px;
  color: var(--ink-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-item__question svg {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}

.faq-item.active .faq-item__answer {
  max-height: 500px;
  padding-top: var(--space-md);
}

.faq-item__answer p {
  font-size: var(--text-base);
  line-height: 1.7;
}

/* ─── SECTION HEADERS ─── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section-header__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--ink-muted);
}

/* ─── CONTENT PAGES ─── */
.page-hero {
  padding: var(--space-3xl) 0;
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-warm) 100%);
  border-bottom: 1px solid var(--border-light);
}

.page-hero .container {
  max-width: var(--max-width);
}

.page-hero h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  max-width: 720px;
}

.page-hero__breadcrumb {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-bottom: var(--space-lg);
}

.page-hero__breadcrumb a {
  color: var(--accent);
}

.content-body {
  padding: var(--space-3xl) 0;
}

.content-body h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-top: var(--space-lg);
}

.content-body h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.content-body p {
  margin-bottom: var(--space-lg);
}

.content-body ul, .content-body ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }

.content-body li {
  margin-bottom: var(--space-sm);
  color: var(--ink-light);
  line-height: 1.7;
}

.content-body a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Content layout with sidebar */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-3xl);
  align-items: start;
}

.content-grid > article.content-body {
  padding-top: 0;
}

/* ─── SIDEBAR ─── */
.sidebar-cta {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: sticky;
  top: 96px;
}

.sidebar-cta h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.sidebar-cta p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}

.sidebar-cta .btn {
  width: 100%;
}

.sidebar-cta__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  font-weight: 600;
  color: var(--ink);
  font-size: var(--text-lg);
}

/* ─── COST TABLE ─── */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.cost-table th {
  background: var(--ink);
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-size: var(--text-sm);
}

.cost-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-sm);
}

.cost-table tr:last-child td {
  border-bottom: none;
}

.cost-table tr:nth-child(even) {
  background: var(--surface-warm);
}

/* ─── CONTACT FORM ─── */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid h4 {
  color: white;
  font-size: var(--text-base);
  margin-bottom: var(--space-lg);
}

.footer-grid a {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: white;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-md);
}

.footer__brand span {
  color: var(--accent-light);
}

.footer__desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 300px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

/* ─── HIGHLIGHT BOX ─── */
.highlight-box {
  background: var(--accent-bg);
  border-left: 4px solid var(--accent);
  padding: var(--space-lg) var(--space-xl);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: var(--space-xl) 0;
}

.highlight-box p {
  color: var(--ink-light);
  margin: 0;
}

.highlight-box strong {
  color: var(--accent);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__image { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar-cta { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
  }

  .nav__links { display: none; }
  .nav__mobile-toggle { display: flex; }

  .nav__links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-lg) var(--space-xl);
    box-shadow: var(--shadow-lg);
  }

  .hero { padding: var(--space-2xl) 0; }
  .section { padding: var(--space-2xl) 0; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; padding: var(--space-xl); }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-2xl);
  }

  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__trust { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
