/* MoCo Foundation Repair — draft site styles
   Mobile-first, accessible, no stock-photo dependencies.
*/
:root {
  --bg: #f4efe4;
  --bg-deep: #e8dfcc;
  --paper: #fffdf8;
  --ink: #1b2418;
  --ink-soft: #3a4336;
  --muted: #5c6658;
  --forest: #1f3d32;
  --forest-mid: #2c5646;
  --moss: #3f6d56;
  --clay: #c24e2c;
  --clay-dark: #9a3b20;
  --clay-soft: #f3d6c8;
  --sand: #f3ead8;
  --line: #d4cbb6;
  --focus: #2457a0;
  --danger: #8b2e1f;
  --ok: #1f3d32;
  --shadow: 0 16px 40px rgba(27, 36, 24, 0.09);
  --radius: 14px;
  --max: 72rem;
  --header-h: 4.25rem;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

*,
*::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-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-mid); text-underline-offset: 0.18em; }
a:hover { color: var(--clay-dark); }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--forest);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-bars {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav { display: none; }
.site-nav.is-open { display: block; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.nav-list > li > a,
.nav-list .submenu-toggle {
  display: block;
  padding: 0.55rem 0.2rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.nav-list a[aria-current="page"] { color: var(--clay-dark); }
.submenu { list-style: none; margin: 0; padding: 0 0 0.4rem 1rem; display: none; }
.nav-item.has-sub.is-open .submenu,
.nav-item.has-sub:focus-within .submenu { display: block; }
.submenu a {
  display: block;
  padding: 0.35rem 0;
  color: var(--ink-soft);
  text-decoration: none;
}
a.btn.header-cta { display: none; }

.disclosure {
  background: #efe3c2;
  color: var(--ink);
  font-size: 0.92rem;
  border-bottom: 1px solid #e0d0a4;
}
.disclosure .wrap {
  padding: 0.65rem 0;
}
.disclosure strong { font-weight: 700; }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(255,255,255,0.08), transparent 50%),
    linear-gradient(160deg, var(--forest) 0%, #163029 55%, #2a4a3c 100%);
  color: #f6f1e6;
  padding: 2.6rem 0 3rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 560;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.hero p.lede {
  font-size: 1.15rem;
  max-width: 40rem;
  color: #ebe4d4;
  margin: 0 0 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-note {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: #d9d2c0;
  max-width: 36rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn-primary {
  background: var(--clay);
  color: #fff;
  border-color: var(--clay);
}
.btn-primary:hover { background: var(--clay-dark); color: #fff; }
.btn-secondary {
  background: transparent;
  color: #f6f1e6;
  border-color: rgba(246,241,230,0.45);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-on-light {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.btn-on-light:hover { background: var(--forest-mid); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--forest); color: var(--forest); }

/* Layout sections */
main { display: block; }
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-deep); }
.section-paper { background: var(--paper); }
.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
}
.section h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 1.75rem 0 0.55rem;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clay-dark);
  margin: 0 0 0.55rem;
}
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 44rem; }
.prose { max-width: 46rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.35rem; }

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1.25rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

/* Photo placeholders */
.ph {
  margin: 1.5rem 0;
}
.ph__frame {
  background:
    repeating-linear-gradient(135deg, #efe6d2 0 12px, #e7dcc4 12px 24px);
  border: 2px dashed #b7aa8d;
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.15rem;
  position: relative;
}
.ph__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: #fff8e8;
  color: var(--danger);
  border: 1px solid #e2c08a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}
.ph__need {
  margin: 0;
  background: rgba(255,253,248,0.94);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  max-width: 36rem;
}
.ph figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Callout */
.callout {
  border-left: 4px solid var(--clay);
  background: var(--sand);
  padding: 1rem 1.15rem;
  border-radius: 0 12px 12px 0;
  margin: 1.25rem 0;
}
.callout--info { border-left-color: var(--forest); }
.callout p:last-child { margin-bottom: 0; }

.source-list {
  font-size: 0.92rem;
  color: var(--muted);
}
.source-list li { margin: 0.25rem 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 0.98rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { background: var(--forest); color: #f6f1e6; font-weight: 650; }
caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

/* Forms */
form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.form-todo {
  background: #fff4d6;
  border: 1px solid #e0c36a;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.field { margin-bottom: 0.95rem; }
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.req { color: var(--clay-dark); }
.hint { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 0.25rem; }
input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.75rem;
  border: 1px solid #c9c0ab;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 8rem; resize: vertical; }
.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.consent input { margin-top: 0.35rem; flex: 0 0 auto; }
.form-status[hidden] { display: none !important; }
.form-status {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: var(--sand);
  border: 1px solid var(--line);
}
.form-status.is-ok {
  background: #e8f3ea;
  border-color: #9cbc9f;
}
.form-status.is-error {
  background: #fff4d6;
  border-color: #e0c36a;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Phone placeholder (single CallRail slot) */
.phone-block { display: flex; flex-direction: column; gap: 0.15rem; }
.phone-placeholder {
  font-weight: 750;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.phone-flag {
  display: inline-block;
  margin-left: 0.4rem;
  background: #fff4d6;
  color: var(--danger);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  vertical-align: middle;
}
.record-note { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* Page header (inner pages) */
.page-hero {
  padding: 2.3rem 0 1.6rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
.crumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--clay-dark); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0.3rem 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.9rem 0;
  font-size: 1.05rem;
}
.faq-item p { margin-top: 0; }

/* Footer */
.site-footer {
  background: var(--forest);
  color: #e7e1d3;
  padding: 2.5rem 0 1.5rem;
  margin-top: 0;
}
.site-footer a { color: #f0e6cf; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff;
  margin: 0 0 0.4rem;
}
.footer-nav h2 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
  color: #c9c2b0;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0.3rem 0; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.88rem;
  color: #c9c2b0;
}
.footer-legal p { margin: 0.4rem 0; }

.related {
  display: grid;
  gap: 0.85rem;
}
.related a {
  text-decoration: none;
  color: inherit;
}
.related .card:hover { border-color: var(--moss); }

@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .header-inner { gap: 1.5rem; }
  .site-nav { display: block; flex: 1; }
  .nav-list {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem 1rem;
    padding: 0;
  }
  .nav-list > li > a,
  .nav-list .submenu-toggle {
    width: auto;
    padding: 0.35rem 0;
    font-size: 0.95rem;
  }
  .nav-item.has-sub { position: relative; }
  .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    min-width: 13rem;
    box-shadow: var(--shadow);
    z-index: 20;
  }
  .nav-item.has-sub:hover .submenu,
  .nav-item.has-sub.is-open .submenu,
  .nav-item.has-sub:focus-within .submenu { display: block; }
  a.btn.header-cta { display: inline-flex; padding: 0.55rem 0.95rem; font-size: 0.92rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .nav-list { gap: 0.2rem 1.15rem; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.phone-inline { white-space: nowrap; }
.nowrap { white-space: nowrap; }
.disclosure .phone-flag { white-space: nowrap; }
@media (max-width: 799px) {
  .brand-tag { display: none; }
  .header-inner { min-height: 3.75rem; }
}
