@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding-top: 44px; /* prototype banner */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; max-width: var(--measure); color: var(--ink); }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 52ch; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) {
  .container { padding-inline: 40px; }
}
.section { padding: 64px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--paper-2); }
.section-brand { background: var(--brand); color: var(--footer-text); }
.section-brand h2, .section-brand h3 { color: var(--footer-text); }
.section-brand p { color: var(--footer-muted); }

/* Header */
.site-header {
  position: sticky;
  top: 44px;
  z-index: 100;
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding-block: 10px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--brand);
}
.brand-mark img {
  width: 56px; height: 56px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 40%;
}
.brand-mark__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-mark__name { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; }
.brand-mark__sub { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.nav-desktop { display: none; align-items: center; gap: 4px; }
.nav-desktop a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--brand); background: var(--paper-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--white); cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--brand); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--brand);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  padding: 12px 20px 20px;
  background: var(--paper);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 14px 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 980px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .brand-mark img { width: 68px; height: 68px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px;
  border-radius: 999px; font-family: var(--font-sans);
  font-size: 0.95rem; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold {
  background: var(--accent); color: var(--cta-ink); border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}
.btn--gold:hover { background: #d4a85a; color: var(--cta-ink); }
.btn--forest { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--forest:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost {
  background: transparent; color: var(--brand); border-color: var(--border);
}
.btn--ghost:hover { background: var(--paper-2); color: var(--brand); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero kitchen-table */
.hero {
  position: relative;
  min-height: min(78vh, 820px);
  display: grid;
  align-items: stretch;
  background: var(--brand-dark, #223529);
  overflow: hidden;
}
.hero--bg {
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(34,53,41,.55) 0%, rgba(34,53,41,.62) 45%, rgba(34,53,41,.78) 100%),
    rgba(0,0,0,.35);
}
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 72px 0 80px;
  min-height: min(78vh, 820px);
}
.hero__copy {
  max-width: 38rem;
}
.hero__copy h1 {
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 0 18px rgba(0,0,0,.45);
}
.hero__copy .lede {
  color: rgba(255,255,255,.88);
  max-width: 42ch;
}
.hero__copy .eyebrow {
  color: var(--accent);
}
.hero__note {
  margin-top: 16px;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
  font-weight: 500;
}
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.85);
}
/* legacy two-col helpers kept for other pages if referenced */
.hero__grid {
  display: grid;
  gap: 28px;
  padding: 40px 0 56px;
  align-items: center;
}
.hero__photo {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
}
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero__badge {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(250, 246, 238, 0.94);
  color: var(--brand);
  font-size: 0.78rem; font-weight: 700;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--border);
}

/* Trust cards */
.trust-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}
.trust-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.trust-card h3 { margin-bottom: 8px; color: var(--brand); }
.trust-card p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* Steps */
.steps {
  display: grid; gap: 18px;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step__num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Care Match preview / card */
.cm-card {
  background: linear-gradient(160deg, var(--white) 0%, var(--paper-2) 100%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.cm-card ol { margin: 0 0 20px; padding-left: 1.2em; color: var(--muted); }
.cm-card li { margin-bottom: 8px; }

/* Quotes */
.quote-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .quote-grid { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 22px;
}
.quote p { font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: 12px; }
.quote cite { font-style: normal; font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { margin-bottom: 10px; }
.faq details p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* Split media */
.split {
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .split--flip > :first-child { order: 2; }
}
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/3;
  background: var(--paper-2);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* Care Match wizard */
.wizard {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 28px 22px 32px;
}
@media (min-width: 640px) { .wizard { padding: 40px 40px 44px; } }
.wizard__progress {
  display: flex; gap: 8px; margin-bottom: 28px;
}
.wizard__dot {
  flex: 1; height: 6px; border-radius: 999px; background: var(--border);
}
.wizard__dot.is-done, .wizard__dot.is-current { background: var(--accent); }
.wizard__step { display: none; }
.wizard__step.is-active { display: block; }
.choice-grid { display: grid; gap: 12px; margin: 20px 0 28px; }
.choice {
  display: flex; align-items: flex-start; gap: 12px;
  text-align: left; width: 100%;
  padding: 16px 18px; min-height: 56px;
  border-radius: 12px; border: 2px solid var(--border);
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
}
.choice:hover, .choice.is-selected {
  border-color: var(--brand); background: #fff;
  box-shadow: var(--shadow-soft);
}
.choice small { display: block; font-weight: 500; color: var(--muted); margin-top: 4px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 8px; color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px;
  padding: 0 0 0 20px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
  font: inherit; color: var(--ink);
}
.field textarea { padding: 14px 20px; min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
}
.wizard-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 8px; }
.success-call {
  text-align: center;
  padding: 12px 0 8px;
}
.success-call .phone-xl {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--brand);
  margin: 12px 0 20px;
}
.success-call .phone-xl a { text-decoration: none; color: inherit; }

/* Footer */
.site-footer {
  background: var(--brand-dark);
  color: var(--footer-text);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.site-footer a { color: var(--footer-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid; gap: 32px;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h4 {
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer p, .site-footer li { color: var(--footer-muted); font-size: 0.92rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid var(--footer-border);
  font-size: 0.82rem; color: var(--footer-copy);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}

/* Utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.note { font-size: 0.88rem; color: var(--muted); }
.hero--bg .note,
.hero--bg .hero__note {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
  font-weight: 500;
}

.photo-soft {
  /* avoid hard black panels on faces */
  box-shadow: inset 0 0 0 1px rgba(62, 56, 46, 0.08);
}
.page-hero {
  padding: 48px 0 24px;
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  border-bottom: 1px solid var(--border);
}
.two-up { display: grid; gap: 16px; }
@media (min-width: 720px) { .two-up { grid-template-columns: 1fr 1fr; } }
.card-link {
  display: block; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; height: 100%;
  box-shadow: var(--shadow-soft);
}
.card-link:hover { border-color: var(--accent); }
.avatar {
  width: 180px; height: 180px; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--white);
  box-shadow: var(--shadow-soft);
}
