/* sayhello.homes — warm, welcoming, tool-led design. No build step, pure static. */
:root {
  --cream: #FAF6EF;
  --sand: #F1E8D8;
  --ink: #2B2620;
  --ink-soft: #5C544A;
  --terra: #C96F4A;
  --terra-dark: #A8552F;
  --sage: #5F7A61;
  --sage-dark: #48604A;
  --gold: #E4A93C;
  --white: #FFFFFF;
  --line: #E7DCC9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 38, 32, 0.08);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--terra-dark); }
a:hover { color: var(--terra); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1.25rem; max-width: 1080px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-weight: 500; font-size: 0.7rem; color: var(--ink-soft); letter-spacing: 0.08em; text-transform: uppercase; }
.nav { display: flex; gap: 0.25rem; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem;
  padding: 0.5rem 0.8rem; border-radius: 10px;
}
.nav a:hover { color: var(--ink); background: var(--sand); }
.nav a.active { color: var(--terra-dark); background: #F6E3D2; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 0.5rem 0.7rem; font-size: 1.1rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #F7E9D2 0%, #F3DDBE 45%, #EFD3B4 100%);
  border-bottom: 1px solid var(--line);
  padding: 4rem 0 3.5rem;
  position: relative; overflow: hidden;
}
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 1rem;
}
.hero h1 .wave { color: var(--terra-dark); }
.hero p.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; margin: 0 0 1.75rem; }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 6px 18px rgba(201, 111, 74, 0.35); }
.btn-primary:hover { background: var(--terra-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.hero-badges { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 2rem; font-size: 0.9rem; color: var(--ink-soft); }
.hero-badges span::before { content: "✓ "; color: var(--sage); font-weight: 800; }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.01em; margin: 0 0 0.5rem; }
.section .sub { color: var(--ink-soft); max-width: 680px; margin: 0 0 2rem; font-size: 1.05rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 0.6rem;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(43,38,32,0.12); border-color: var(--terra); }
.card .icon { font-size: 1.9rem; line-height: 1; }
.card h3 { font-family: var(--serif); margin: 0; font-size: 1.3rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.card .cta { font-weight: 700; color: var(--terra-dark); font-size: 0.95rem; }
.card .tag { align-self: flex-start; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: #EAF0E8; color: var(--sage-dark); padding: 0.25rem 0.6rem; border-radius: 999px; }

/* ---------- Checklist / hub lists ---------- */
.phase { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.phase h3 { font-family: var(--serif); margin: 0 0 0.25rem; font-size: 1.35rem; display: flex; align-items: center; gap: 0.6rem; }
.phase h3 .pill { font-family: var(--sans); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: var(--sand); color: var(--terra-dark); padding: 0.3rem 0.7rem; border-radius: 999px; }
.phase .note { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 1rem; }
.check { list-style: none; margin: 0; padding: 0; }
.check li { display: flex; gap: 0.75rem; padding: 0.55rem 0; border-top: 1px dashed var(--line); align-items: flex-start; }
.check li:first-child { border-top: none; }
.check input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin-top: 0.25rem; accent-color: var(--sage); flex: none; cursor: pointer; }
.check label { cursor: pointer; }
.check label strong { display: block; }
.check label .detail { color: var(--ink-soft); font-size: 0.92rem; }
.check li.done label { color: var(--ink-soft); text-decoration: line-through; }
.check li.done label .detail { text-decoration: line-through; }

.tip { background: #EAF0E8; border-left: 4px solid var(--sage); border-radius: 0 10px 10px 0; padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.97rem; }
.tip strong { color: var(--sage-dark); }
.warn { background: #F9EDE4; border-left: 4px solid var(--terra); border-radius: 0 10px 10px 0; padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.97rem; }

/* ---------- Planner ---------- */
.planner-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; margin-bottom: 2rem; }
.planner-form { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: end; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field input[type="date"] { font: inherit; padding: 0.7rem 0.9rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--ink); }
.field input[type="date"]:focus { outline: 2px solid var(--terra); border-color: var(--terra); }
.countdown { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0 0.5rem; }
.count-box { background: var(--sand); border-radius: 12px; padding: 0.9rem 1.3rem; text-align: center; min-width: 110px; }
.count-box .num { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--terra-dark); line-height: 1; }
.count-box .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 700; }
.progress-wrap { margin: 1.25rem 0 0; }
.progress-meta { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 0.4rem; }
.progress { height: 12px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; width: 0%; background: linear-gradient(90deg, var(--sage), var(--sage-dark)); border-radius: 999px; transition: width 0.3s ease; }
.planner-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.btn-small { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-outline:hover { border-color: var(--ink); background: var(--sand); }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--ink-soft); }
.empty-state .big { font-size: 2.5rem; }

@media print {
  .site-header, .site-footer, .planner-actions, .btn-row, .no-print { display: none !important; }
  body { background: #fff; }
  .phase { box-shadow: none; break-inside: avoid; }
}

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.3rem; margin-bottom: 0.8rem; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.02rem; }
.faq summary::marker { color: var(--terra); }
.faq p { color: var(--ink-soft); margin: 0.7rem 0 0; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.form-card .field { margin-bottom: 1.1rem; }
.form-card input[type="text"], .form-card input[type="email"], .form-card textarea, .form-card select {
  font: inherit; padding: 0.75rem 0.9rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--ink); width: 100%;
}
.form-card textarea { min-height: 130px; resize: vertical; }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { outline: 2px solid var(--terra); border-color: var(--terra); }
.field-error { color: #A83A2E; font-size: 0.85rem; font-weight: 600; display: none; }
.field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #A83A2E; }
.form-success { display: none; background: #EAF0E8; border: 1px solid var(--sage); border-radius: var(--radius); padding: 2rem; text-align: center; }
.form-success.show { display: block; }
.form-success .big { font-size: 2.5rem; }
.honest-note { font-size: 0.88rem; color: var(--ink-soft); background: var(--sand); border-radius: 10px; padding: 0.9rem 1.1rem; margin-top: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D9D0BF; padding: 3rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--serif); margin: 0 0 0.8rem; font-size: 1.05rem; }
.site-footer a { color: #D9D0BF; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: 0.8rem; }
.footer-bottom { border-top: 1px solid #4A4238; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: #A89C86; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg, #F7E9D2 0%, #F1DCC0 100%); border-bottom: 1px solid var(--line); padding: 3rem 0 2.5rem; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4.5vw, 2.8rem); letter-spacing: -0.02em; margin: 0 0 0.75rem; line-height: 1.15; }
.page-hero p { color: var(--ink-soft); font-size: 1.08rem; max-width: 700px; margin: 0; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.prose h2 { font-family: var(--serif); font-size: 1.6rem; margin: 2.5rem 0 0.75rem; }
.prose h3 { font-family: var(--serif); font-size: 1.25rem; margin: 1.75rem 0 0.5rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- Mobile nav ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 0.5rem 1rem 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0.8rem; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}
