/* Seniors Dementia — palette taken from the forget-me-not, a symbol of dementia awareness */
:root {
  --night: #0f2e4f;       /* deep navy, matches Audrey's flyers */
  --petal: #5b8bd6;       /* forget-me-not blue */
  --petal-soft: #dfe9f8;
  --mist: #f1f5fb;        /* page tint */
  --leaf: #2e8b66;        /* action green, from the flyer tag */
  --eye: #f4c542;         /* the flower's yellow centre, used sparingly */
  --ink: #1c2633;
  --muted: #4d5b6c;
  --line: #d9e2ee;

  --display: "Young Serif", Georgia, serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;

  --radius: 18px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.65; color: var(--ink); background: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--night); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--eye); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--night); }
h3 { font-size: 1.35rem; color: var(--night); }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf); margin-bottom: 16px; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 640px; }

/* Forget-me-not mark */
.fmn { width: 1.4em; height: 1.4em; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--body); font-weight: 700; font-size: 1.05rem; text-decoration: none; padding: 15px 28px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--leaf); color: #fff; }
.btn-primary:hover { background: #267a59; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-line { border-color: var(--night); color: var(--night); }
.btn-line:hover { background: var(--night); color: #fff; }

/* Header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; color: #fff; }
.site-header.solid { position: static; background: var(--night); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-size: 1.45rem; }
.brand .fmn { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: #fff; text-decoration: none; font-weight: 700; padding: 8px 16px; border-radius: 999px; }
.nav a:hover { background: rgba(255,255,255,.14); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--eye); border-radius: 0; }
.nav .btn { margin-left: 10px; padding: 10px 20px; font-size: .98rem; }

/* Home hero: text on navy, photo on the right */
.hero { position: relative; background: var(--night); color: #fff; display: grid; grid-template-columns: 1fr 1.2fr; min-height: min(84vh, 740px); }
.hero .copy { display: flex; flex-direction: column; justify-content: center; padding: 150px 64px 80px max(24px, calc((100vw - var(--wrap)) / 2)); }
.hero .photo-side { position: relative; background: url("/images/knitting-together.jpg") 18% center / cover no-repeat; border-bottom-left-radius: 160px; }
.hero h1 { max-width: 15ch; font-size: clamp(2.5rem, 4.6vw, 4rem); }
.hero .eyebrow { color: var(--eye); }
.hero p { font-size: 1.28rem; max-width: 500px; margin: 24px 0 36px; color: rgba(255,255,255,.9); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .actions .btn { padding: 14px 22px; }
.hero .photo-side::before { content: ""; position: absolute; inset: 0 0 auto; height: 140px; background: linear-gradient(rgba(15,46,79,.55), transparent); }

@media (prefers-reduced-motion: no-preference) {
  .hero .rise { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero .rise:nth-child(2) { animation-delay: .12s; }
  .hero .rise:nth-child(3) { animation-delay: .24s; }
  .hero .rise:nth-child(4) { animation-delay: .36s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* Page hero (inner pages) */
.page-hero { position: relative; color: #fff; background: var(--night) center / cover no-repeat; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,46,79,.9), rgba(15,46,79,.55)); }
.page-hero .wrap { padding: 170px 0 90px; }
.page-hero p { font-size: 1.25rem; max-width: 600px; margin-top: 18px; color: rgba(255,255,255,.9); }
.page-hero .eyebrow { color: #fff; }

/* Facts strip */
.facts { background: var(--mist); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 34px 24px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts strong { display: block; font-family: var(--display); font-weight: 400; font-size: 2.3rem; color: var(--night); line-height: 1.1; }
.facts span { display: block; margin-top: 6px; color: var(--muted); font-size: 1rem; line-height: 1.4; }

/* Sections */
.band { padding: 110px 0; }
.band.tint { background: var(--mist); }
.band-head { max-width: 720px; margin-bottom: 56px; }
.band-head p { margin-top: 18px; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split.top { align-items: start; }
.split.top .photo { aspect-ratio: 4 / 5; position: sticky; top: 32px; }
.photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Warning signs */
.signs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.signs li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.signs .fmn { margin-top: 4px; }
.signs h3 { font-family: var(--body); font-weight: 700; font-size: 1.15rem; margin-bottom: 4px; }
.signs p { margin: 0; color: var(--muted); font-size: 1.02rem; }

/* Urgent callout */
.urgent { margin-top: 64px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; padding: 32px 36px; border-radius: var(--radius); background: #fff6dc; border: 1px solid #f0dca0; }
.urgent h3 { font-family: var(--body); font-weight: 700; font-size: 1.2rem; color: #7a5200; margin-bottom: 8px; }
.urgent ul { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 40px; }
.urgent li { margin-bottom: 4px; break-inside: avoid; }
.urgent .badge { width: 52px; height: 52px; border-radius: 50%; background: var(--eye); display: grid; place-items: center; font-family: var(--display); font-size: 1.6rem; color: var(--night); }

/* Caregiver tips */
.tips { list-style: none; margin: 32px 0 36px; padding: 0; display: grid; gap: 18px; }
.tips li { padding-left: 20px; border-left: 3px solid var(--petal); }
.tips strong { display: block; color: var(--night); }
.tips span { color: var(--muted); font-size: 1.02rem; }

.helpline { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: var(--radius); background: var(--night); color: #fff; }
.helpline a { color: #fff; font-family: var(--display); font-size: 1.6rem; text-decoration: none; display: block; }
.helpline small { color: rgba(255,255,255,.8); font-size: .95rem; }
.links { margin-top: 18px; color: var(--muted); font-size: 1rem; }

/* Flyers */
.flyers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.flyer { display: grid; gap: 22px; }
.flyer a.thumb { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,46,79,.08), 0 18px 40px -12px rgba(15,46,79,.35); transition: transform .2s ease; }
.flyer a.thumb:hover { transform: translateY(-4px); }
.flyer p { color: var(--muted); margin: 0; }
.flyer .row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Kit request */
.kit { background: var(--night); color: #fff; padding: 110px 0; position: relative; overflow: hidden; }
.kit::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; background: url("/images/fmn.svg") center / contain no-repeat; opacity: .08; }
.kit h2 { color: #fff; }
.kit .eyebrow { color: var(--eye); }
.kit .grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; position: relative; z-index: 1; }
.kit .intro p { color: rgba(255,255,255,.88); font-size: 1.2rem; margin-top: 18px; }
.kit .where { margin-top: 28px; display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.9); font-weight: 700; }

.form-card { background: #fff; color: var(--ink); border-radius: 22px; padding: 40px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
.form-card form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 1rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.form-card input, .form-card select, .form-card textarea { font: inherit; font-size: 1.05rem; width: 100%; padding: 13px 16px; border: 1.5px solid #c5d1e0; border-radius: 12px; background: #fff; color: var(--ink); }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--petal); box-shadow: 0 0 0 4px var(--petal-soft); }
.form-card input[type="file"] { padding: 10px; background: var(--mist); }
.form-card .btn { justify-self: start; }
.form-card .note { font-size: .92rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; }

/* About */
.mission { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.4; color: var(--night); max-width: 900px; }
.pillars { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillars li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.pillars .fmn { width: 36px; height: 36px; margin-bottom: 18px; }
.pillars h3 { margin-bottom: 10px; }
.pillars p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* Footer */
.site-footer { background: #0a2039; color: rgba(255,255,255,.8); padding: 64px 0 40px; font-size: 1rem; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; font-size: .92rem; color: rgba(255,255,255,.6); }
.site-footer .brand { margin-bottom: 14px; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero .copy { padding: 150px 24px 56px; order: 1; }
  .hero .photo-side { order: 2; min-height: 320px; border-bottom-left-radius: 0; border-top-left-radius: 80px; }
  .split, .kit .grid { grid-template-columns: 1fr; gap: 44px; }
  .split.flip > :first-child { order: 0; }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li { border-top: 1px solid var(--line); }
  .signs { grid-template-columns: 1fr; }
  .flyers, .pillars { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr; }
  .urgent ul { columns: 1; }
}
@media (max-width: 680px) {
  body { font-size: 1.06rem; }
  /* Header sits above the hero on phones so a taller nav (big text settings) never overlaps or clips */
  .site-header, .site-header.solid { position: relative; background: var(--night); }
  .site-header .wrap { flex-wrap: wrap; gap: 10px; padding-block: 14px; }
  .nav { width: 100%; flex-wrap: wrap; gap: 6px 2px; }
  .nav a { padding: 8px 8px; font-size: 1rem; }
  .nav .btn { margin-left: auto; padding: 8px 14px; font-size: .95rem; white-space: nowrap; }
  .hero .copy { padding-top: 44px; }
  h1, .hero h1 { font-size: clamp(2.1rem, 10vw, 2.6rem); }
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { padding: 26px 16px; }
  .facts strong { font-size: 1.9rem; }
  h1, h2, h3, .facts strong { overflow-wrap: break-word; hyphens: auto; }
  .page-hero .wrap { padding: 64px 0 64px; }
  .band, .kit { padding: 76px 0; }
  .urgent { grid-template-columns: 1fr; padding: 26px; }
  .form-card { padding: 26px; }
  .helpline { flex-direction: column; align-items: flex-start; }
}
