/* ============================================
   Dementia Steady — shared design system
   ============================================ */

:root {
  --cream: #F6F1E7;
  --cream-deep: #EFE6D3;
  --sage: #8A9A7E;
  --sage-deep: #5F7059;
  --amber: #D98E45;
  --amber-text: #B5651D;
  --ink: #2F2A24;
  --ink-soft: #6B6356;
  --border: #E5DECB;
  --white: #FFFDF9;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.18;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }

a { color: var(--amber-text); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 13px 26px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 2px; }

.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: #4A4337; }

.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-amber { background: var(--amber-text); color: var(--white); }
.btn-amber:hover { background: #934F16; }

/* ---------- header / nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,241,231,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand img { height: 30px; width: auto; }
.brand .b-accent { color: var(--amber-text); }
.brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a:not(.btn) {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
}
.nav-links a.current:not(.btn) { color: var(--amber-text); }
.nav-links a:not(.btn):hover { text-decoration: none; color: var(--amber-text); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 28px 22px;
  border-top: 1px solid var(--border);
}
.mobile-panel a:not(.btn) {
  padding: 12px 0;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-panel a:not(.btn):hover { text-decoration: none; color: var(--amber-text); }
.mobile-panel.open { display: flex; }

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  padding: 90px 0 70px;
}
.hero .wrap { display: flex; align-items: center; gap: 56px; }
.hero-copy { flex: 1.1; }
.hero-art { flex: 0.8; display: flex; justify-content: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 18px;
}
.eyebrow svg { width: 16px; height: 16px; }
.hero h1 { margin-bottom: 20px; }
.hero .lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero .wrap { flex-direction: column-reverse; gap: 36px; }
  .hero { padding: 50px 0 50px; }
}

/* ---------- cairn art (decorative) ---------- */
.cairn-art {
  width: 220px;
  height: 220px;
}

/* ---------- divider motif (calm water lines) ---------- */
.divider {
  width: 100%;
  height: 26px;
  margin: 0 auto;
  display: block;
  max-width: 220px;
}

/* ---------- sections ---------- */
section { padding: 76px 0; }
.section-deep { background: var(--cream-deep); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 1.05rem; }

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card-grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage-deep);
  background: #EAF1E6;
  padding: 4px 10px;
  border-radius: 5px;
  width: fit-content;
}
.card .tag.amber { color: var(--amber-text); background: #FBEADA; }
.card p { color: var(--ink-soft); }
.card .card-cta { margin-top: auto; }

.mini-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .mini-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .mini-cards { grid-template-columns: 1fr; } }
.mini-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  background: var(--white);
}
.mini-card .label { font-weight: 600; margin-bottom: 4px; }
.mini-card .soon {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- callout ---------- */
.callout {
  background: var(--cream-deep);
  border-left: 3px solid var(--sage);
  border-radius: 0 10px 10px 0;
  padding: 22px 26px;
  margin: 28px 0;
}
.callout .callout-title { font-weight: 700; margin-bottom: 6px; }
.callout.urgent { border-left-color: var(--amber-text); background: #FBEADA; }

/* ---------- forms ---------- */
.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 460px;
}
.form-row input[type="email"], .form-row input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 0.97rem;
  background: var(--white);
}
.form-row input:focus { outline: 2px solid var(--sage-deep); outline-offset: 1px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 50px 0 36px;
  margin-top: 30px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); font-size: 0.92rem; }
.footer-bottom {
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 2px; }

/* ---------- professional (teal) variant ---------- */
:root {
  --teal-deep: #1F3A3A;
  --teal-mid: #9FB8B4;
  --teal-light: #E1ECE8;
}
.section-teal { background: var(--teal-deep); color: var(--teal-light); }
.section-teal h1, .section-teal h2, .section-teal h3 { color: var(--teal-light); }
.section-teal p { color: var(--teal-mid); }
.section-teal .eyebrow { color: var(--amber); }
.section-teal .card {
  background: rgba(225,236,232,0.06);
  border-color: rgba(225,236,232,0.18);
}
.section-teal .card h3 { color: var(--teal-light); }
.section-teal .card p { color: var(--teal-mid); }
.section-teal form input[type="text"],
.section-teal form input[type="email"] {
  padding: 13px 16px;
  border-radius: 8px;
  border: 1.5px solid rgba(225,236,232,0.25);
  background: rgba(225,236,232,0.08);
  color: var(--teal-light);
  font-family: 'Inter', sans-serif;
  font-size: 0.97rem;
}
.section-teal form input::placeholder, .section-teal form textarea::placeholder { color: var(--teal-mid); }
.section-teal .form-row input::placeholder { color: var(--teal-mid); }
.section-teal .form-note { color: var(--teal-mid); }
.lock-icon { width: 40px; height: 40px; margin-bottom: 18px; }
