/* =========================================================
   Two Roots Cleaning Co. — Stylesheet
   Design system: forest green + warm stone, editorial serif
   headlines, root/branch motif as the recurring structural
   device (ties to the "Two Roots" name).
   ========================================================= */

:root {
  /* Color */
  --ink: #1C2620;
  --forest: #2E4736;
  --forest-dark: #1F3126;
  --sage: #8AA290;
  --sage-light: #DCE4D8;
  --paper: #F1EFE6;
  --stone: #E3E0D3;
  --brass: #A6763F;
  --brass-dark: #8B6234;
  --white: #FFFFFF;
  --line: rgba(28, 38, 32, 0.12);
  --line-on-dark: rgba(241, 239, 230, 0.18);

  /* Type */
  --font-head: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-w: 1180px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-1: 0 1px 2px rgba(28, 38, 32, 0.06), 0 8px 24px rgba(28, 38, 32, 0.06);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
p { margin: 0 0 1em; max-width: 62ch; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
@media (max-width: 720px) {
  section { padding: 56px 0; }
}

.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.eyebrow-line svg { flex-shrink: 0; }

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
.lede { font-size: 1.15rem; color: #3C463F; max-width: 58ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brass); color: var(--white); }
.btn-primary:hover { background: var(--brass-dark); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--white); }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: var(--line-on-dark); }
.btn-ghost-light:hover { background: rgba(241,239,230,0.1); border-color: var(--paper); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--ink);
}
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.04em; color: var(--forest); }
.brand svg { flex-shrink: 0; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 14px;
  font-size: 0.96rem;
  font-weight: 500;
  color: #3C463F;
  border-radius: var(--radius-sm);
  transition: background-color 150ms ease, color 150ms ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--stone); color: var(--forest-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.96rem;
}
.phone-link svg { color: var(--brass); flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .header-actions .phone-link span { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--forest-dark);
  padding: 10px 24px 24px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  color: var(--paper);
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-on-dark);
  font-size: 1.02rem;
}
.mobile-nav .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--forest-dark);
  color: var(--paper);
  overflow: hidden;
}
.hero-skyline {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: auto;
  opacity: 0.5;
  color: var(--forest);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 108px 24px 140px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
  gap: 40px;
  align-items: end;
}
.hero-copy h1 { color: var(--white); }
.hero-copy .lede { color: var(--sage-light); }
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 0.88rem; color: rgba(241,239,230,0.6); }

.hero-panel {
  background: rgba(241,239,230,0.06);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-md);
  padding: 26px;
  backdrop-filter: blur(2px);
}
.hero-panel h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 14px; }
.hero-panel ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  border-top: 1px solid var(--line-on-dark);
  color: var(--sage-light);
  font-size: 0.94rem;
}
.hero-panel ul li:first-child { border-top: none; }
.hero-panel svg { flex-shrink: 0; margin-top: 2px; color: var(--brass); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 20px 96px; }
}

/* Page header (for interior pages) */
.page-hero {
  background: var(--forest-dark);
  color: var(--paper);
  padding: 76px 0 64px;
}
.page-hero h1 { color: var(--white); max-width: 46ch; }
.page-hero .lede { color: var(--sage-light); }
.breadcrumb { font-size: 0.85rem; color: rgba(241,239,230,0.55); margin-bottom: 18px; }
.breadcrumb a { color: rgba(241,239,230,0.85); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Root divider (recurring structural motif) ---------- */
.root-divider { display: flex; align-items: center; gap: 14px; margin: 0 0 40px; color: var(--forest); }
.root-divider .stem { flex: 1; height: 1px; background: var(--line); }
.root-divider svg { flex-shrink: 0; }

/* ---------- Trust / feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.feature-item { background: var(--paper); padding: 30px 26px; }
.feature-item svg { color: var(--brass); margin-bottom: 14px; }
.feature-item h3 { margin-bottom: 8px; font-size: 1.08rem; }
.feature-item p { font-size: 0.95rem; color: #4A544D; margin: 0; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Section variants ---------- */
.section-alt { background: var(--stone); }
.section-dark { background: var(--forest-dark); color: var(--paper); }
.section-dark h2 { color: var(--white); }
.section-dark p { color: var(--sage-light); }
.section-dark .eyebrow-line { color: var(--sage-light); }

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Service cards ---------- */
.services-tabs { display: flex; gap: 10px; margin-bottom: 34px; flex-wrap: wrap; }
.services-group { margin-bottom: 56px; }
.services-group:last-child { margin-bottom: 0; }
.services-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.services-group-head h3 { font-size: 1.5rem; margin: 0; }
.services-group-head p { margin: 0; color: #4A544D; font-size: 0.95rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 160ms ease, transform 160ms ease;
}
.service-card:hover { border-color: var(--sage); }
.service-card h4 { font-size: 1.04rem; margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; color: #4A544D; margin: 0; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step { position: relative; padding-left: 0; }
.step-index { font-family: var(--font-head); font-size: 2.6rem; color: var(--sage); line-height: 1; margin-bottom: 14px; }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.95rem; color: #4A544D; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Why Two Roots ---------- */
.why-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.why-mark { font-family: var(--font-head); font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--forest-dark); line-height: 1.3; }
.why-list { display: flex; flex-direction: column; gap: 22px; }
.why-item { display: flex; gap: 16px; }
.why-item svg { flex-shrink: 0; color: var(--brass); margin-top: 3px; }
.why-item h4 { margin-bottom: 4px; font-size: 1rem; }
.why-item p { margin: 0; font-size: 0.92rem; color: #4A544D; }
@media (max-width: 860px) { .why-layout { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Service areas ---------- */
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.area-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 30px; }
.area-block h3 { margin-bottom: 18px; }
.area-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.area-list li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.area-list li:nth-child(-n+2) { border-top: none; }
@media (max-width: 860px) { .areas-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ accordion ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}
.faq-question .icon { flex-shrink: 0; transition: transform 200ms ease; color: var(--forest); }
.faq-item.is-open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}
.faq-answer-inner { padding: 0 4px 22px; color: #3C463F; font-size: 0.96rem; max-width: 68ch; }
.faq-item.is-open .faq-answer { max-height: 400px; }

/* ---------- Forms ---------- */
.quote-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: start; }
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-1);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.form-field .hint { font-size: 0.78rem; color: #6B756F; font-weight: 400; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--forest); }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 22px; }
.form-check input { margin-top: 4px; }
.form-check label { font-size: 0.86rem; color: #4A544D; }
.form-section-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; color: var(--forest); margin: 22px 0 4px; text-transform: uppercase; }
.form-note { font-size: 0.82rem; color: #6B756F; margin-top: 14px; }
.form-success {
  display: none;
  background: var(--sage-light);
  border: 1px solid var(--sage);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--forest-dark);
  margin-bottom: 20px;
}
.form-success.is-visible { display: block; }
@media (max-width: 720px) {
  .quote-layout { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact info block ---------- */
.contact-block { display: flex; flex-direction: column; gap: 26px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row svg { flex-shrink: 0; color: var(--brass); margin-top: 2px; }
.contact-row h4 { margin: 0 0 4px; font-size: 0.98rem; }
.contact-row p { margin: 0; color: #4A544D; font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--forest-dark);
  color: var(--paper);
  border-radius: var(--radius-md);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: var(--sage-light); margin: 0; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--sage-light); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.1rem; color: var(--white); margin-bottom: 14px; }
.footer-col h5 { color: var(--white); font-size: 0.86rem; letter-spacing: 0.02em; margin-bottom: 16px; font-weight: 600; }
.footer-col ul li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(241,239,230,0.14); padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.82rem; color: rgba(220,228,216,0.6); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--forest); color: var(--white);
  padding: 12px 18px; z-index: 100; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

@media (max-width: 720px) {
  .form-grid, .areas-grid, .why-layout, .quote-layout { grid-template-columns: 1fr; }
}
