/* Tamarack Brae Health Care — seafoam, driftwood and linen */
:root {
  --sea-50: #eef7f4;
  --sea-100: #d7ece6;
  --sea-300: #9fcfc3;
  --sea-500: #5fa597;
  --sea-700: #2e6b61;
  --sea-900: #1b443d;
  --drift-100: #efe7dc;
  --drift-300: #cbb9a3;
  --drift-600: #7a6552;
  --drift-800: #4c3d30;
  --linen: #faf6ef;
  --white: #ffffff;
  --ink: #22312d;
  --ink-soft: #46554f;
  --alert: #9a2d23;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 18px 40px -24px rgba(34, 49, 45, .45);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--linen);
  background-image: var(--grain);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; color: var(--sea-900); }
h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
a { color: var(--sea-700); }
:focus-visible { outline: 3px solid var(--drift-800); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--sea-900); color: var(--white); padding: .7rem 1rem; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* sticky bar */
.bar { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 239, .94); border-bottom: 1px solid var(--drift-300); backdrop-filter: blur(6px); }
.bar-in { max-width: 1200px; margin: 0 auto; padding: .6rem 16px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.mark { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--sea-900); }
.mark-sprig { width: 30px; height: 38px; fill: none; stroke: var(--sea-700); stroke-width: 2.4; stroke-linecap: round; }
.mark-words { display: flex; flex-direction: column; line-height: 1; }
.mark-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: .01em; }
.mark-sub { font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--drift-600); font-weight: 700; margin-top: .3rem; }

.menu-btn { display: inline-flex; align-items: center; gap: .5rem; background: transparent; border: 1.5px solid var(--sea-700); color: var(--sea-900); border-radius: 999px; padding: .45rem .9rem; font: 600 .95rem var(--sans); cursor: pointer; }
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -6px; } .menu-lines::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

.links { flex-basis: 100%; display: none; }
.links.is-open { display: block; }
.links ul { list-style: none; margin: 0; padding: .4rem 0 .8rem; display: grid; gap: .2rem; }
.links a { display: block; padding: .6rem .4rem; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 8px; }
.links a:hover { background: var(--sea-50); color: var(--sea-900); }
.links-cta { background: var(--sea-700); color: var(--white) !important; text-align: center; margin-top: .3rem; }
.links-cta:hover { background: var(--sea-900) !important; }

/* buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-family: var(--sans); font-size: 1rem; padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid var(--sea-700); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn-solid { background: var(--sea-700); color: var(--white); }
.btn-solid:hover { background: var(--sea-900); border-color: var(--sea-900); }
.btn-line { background: transparent; color: var(--sea-900); }
.btn-line:hover { background: var(--sea-100); }

/* hero */
.hero { position: relative; padding: 3.5rem 16px 4.5rem; overflow: hidden; }
.hero-in { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.hero-kicker { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--drift-600); }
.hero h1 { font-size: clamp(2.5rem, 9.5vw, 6rem); font-weight: 500; line-height: 1.02; letter-spacing: -.01em; max-width: 15ch; margin-bottom: 1.6rem; }
.hero h1 em { color: var(--sea-700); font-style: italic; }
.hero-foot { display: grid; gap: 1.4rem; max-width: 760px; margin-left: auto; }
.hero-lede { font-size: 1.12rem; color: var(--ink-soft); margin: 0; border-left: 3px solid var(--sea-300); padding-left: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-branch { position: absolute; right: -60px; top: 18px; width: 420px; max-width: 110%; opacity: .55; z-index: 0; }
.hb-stem { fill: none; stroke: var(--drift-600); stroke-width: 3; stroke-linecap: round; }
.hb-leaf path { fill: var(--sea-300); stroke: var(--sea-700); stroke-width: 1.4; }

/* sections & slabs */
.sec { padding: 3.5rem 16px; }
.sec > div { max-width: 1200px; margin-left: auto; margin-right: auto; }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--drift-600); margin-bottom: .8rem; }
.eyebrow-light { color: var(--drift-100); }
.slab { border-radius: var(--radius); padding: 1.8rem 1.4rem; position: relative; }
.slab-sea { background: var(--sea-100); }
.slab-paper { background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--drift-100); }
.slab-drift { background: var(--drift-800); color: var(--drift-100); background-image: var(--grain); }
.slab-drift h2, .slab-drift h3 { color: var(--white); }

/* who */
.who-grid { display: grid; gap: 1.2rem; }
.leaf-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.leaf-list li { padding-left: 2rem; position: relative; }
.leaf-list li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 20px; height: 14px; background: var(--sea-700); border-radius: 0 100% 0 100%; transform: rotate(-12deg); }
.fund { margin: 1.2rem 0 0; display: grid; gap: .8rem; }
.fund div { border: 1.5px dashed var(--drift-300); border-radius: 12px; padding: .8rem 1rem; }
.fund dt { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--sea-900); }
.fund dd { margin: .2rem 0 0; color: var(--ink-soft); font-size: .98rem; }

/* daily */
.days { background: var(--sea-50); background-image: var(--grain); }
.days-head > * { max-width: 720px; }
.day-path { list-style: none; padding: 0; margin: 2rem auto 0; display: grid; gap: 1.2rem; counter-reset: d; max-width: 1200px; }
.day-path li { background: var(--white); border-radius: var(--radius); padding: 1.5rem 1.3rem; border-top: 5px solid var(--sea-500); box-shadow: var(--shadow); }
.day-time { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sea-900); background: var(--sea-100); padding: .25rem .7rem; border-radius: 999px; margin-bottom: .7rem; }

/* small */
.small-wrap { display: grid; }
.small-quote { padding: 2.2rem 1.5rem 3.6rem; }
.small-quote h2 { font-style: italic; font-weight: 500; }
.small-body { margin: -2rem .6rem 0; }
.small-points { display: grid; gap: 1.3rem; margin-top: 1.4rem; }
.pt svg { width: 44px; height: 44px; fill: none; stroke: var(--sea-700); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pt h3 { font-size: 1.25rem; margin: .4rem 0 .3rem; }
.pt p { margin: 0; color: var(--ink-soft); }

/* families */
.fam-head { max-width: 760px !important; margin-left: auto; margin-right: 0 !important; text-align: left; }
.fold { margin-top: 1.6rem !important; max-width: 880px !important; display: grid; gap: .7rem; }
.fold-item { background: var(--white); border: 1px solid var(--drift-300); border-radius: 14px; }
.fold-item h3 { margin: 0; font-size: 1.2rem; }
.fold-item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; background: none; border: 0; padding: 1.1rem 1.2rem; font: 600 1.2rem var(--serif); color: var(--sea-900); cursor: pointer; border-radius: 14px; }
.fold-icon { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sea-100); position: relative; }
.fold-icon::before, .fold-icon::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; background: var(--sea-900); transition: transform .2s; }
.fold-icon::after { transform: rotate(90deg); }
button[aria-expanded="true"] .fold-icon::after { transform: rotate(0); }
.fold-panel { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }
.fold-panel p { margin: 0; }

/* feel like home */
.feel-grid { display: grid; }
.feel-art { padding: 1.6rem; }
.feel-art svg { width: 100%; height: auto; max-height: 260px; display: block; }
.fa-ground { fill: none; stroke: var(--drift-600); stroke-width: 3; stroke-linecap: round; }
.fa-house { fill: var(--linen); stroke: var(--sea-900); stroke-width: 3; stroke-linejoin: round; }
.fa-win { fill: #f6d9a6; stroke: var(--sea-900); stroke-width: 2.5; }
.fa-smoke { fill: none; stroke: var(--drift-600); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 3 6; }
.fa-tree { fill: none; stroke: var(--sea-700); stroke-width: 3; stroke-linecap: round; }
.feel-copy { margin: -1.6rem .6rem 0; }
.feel-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.feel-list li { padding-bottom: .9rem; border-bottom: 1px dashed var(--drift-300); }
.feel-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.feel-list strong { color: var(--sea-900); }

/* services rows */
.care { background: var(--white); background-image: var(--grain); }
.care-head { max-width: 1200px; }
.rows { display: grid; gap: 1.6rem; margin-top: 1.4rem !important; }
.row { display: grid; gap: 1rem; align-items: center; }
.row-art { background: var(--sea-50); border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; padding: 1rem; border: 1.5px solid var(--sea-300); }
.row:nth-child(even) .row-art { background: var(--drift-100); border-color: var(--drift-300); border-radius: 60% 40% 45% 55% / 45% 55% 45% 55%; }
.row-art svg { width: 100%; max-width: 220px; display: block; margin: 0 auto; fill: none; stroke: var(--sea-900); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.row-text h3 { margin-bottom: .4rem; }
.row-text p { color: var(--ink-soft); margin: 0; }

/* referral */
.refer-grid { display: grid; gap: 0; }
.calm { padding-bottom: 3.4rem; }
.calm-sub { font-size: 1.25rem; margin-top: 1.4rem; }
.calm-steps { padding-left: 1.3rem; margin: 0 0 1.2rem; display: grid; gap: .6rem; }
.calm-steps strong { color: var(--white); }
.calm-note { font-size: .95rem; border-top: 1px solid rgba(239, 231, 220, .35); padding-top: 1rem; margin: 0; }
.form-shell { margin: -2rem .4rem 0; }
.form-intro { font-size: .92rem; color: var(--ink-soft); }
.form-alert { background: #fbe9e6; border: 1.5px solid var(--alert); color: var(--alert); padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; }
legend { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--sea-900); margin-bottom: .6rem; padding: 0; }
.pair { display: grid; gap: 0 1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1rem; min-width: 0; }
.field label, .label-like { font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.hint { font-size: .85rem; color: var(--ink-soft); margin-top: .3rem; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--linen);
  border: 1.5px solid #8d7b68; border-radius: 10px; padding: .7rem .8rem;
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sea-500); outline-offset: 1px; border-color: var(--sea-900); }
[aria-invalid="true"] { border-color: var(--alert) !important; box-shadow: 0 0 0 2px rgba(154, 45, 35, .2); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 2px; border-radius: 12px; }
.chips.is-bad { outline: 2px solid var(--alert); outline-offset: 3px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .55rem .95rem; border: 1.5px solid var(--sea-700); border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--sea-900); background: var(--white); }
.chip input:checked + span { background: var(--sea-700); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--drift-800); outline-offset: 2px; }
.agree { display: flex; gap: .7rem; align-items: flex-start; margin: .4rem 0 1.4rem; font-size: .95rem; }
.agree input { width: 22px; height: 22px; flex: none; margin-top: .15rem; accent-color: var(--sea-700); }
.btn-send { width: 100%; font-size: 1.05rem; }
.thanks { text-align: center; padding: 2rem 1rem; }
.thanks svg { width: 76px; height: 76px; fill: var(--sea-100); stroke: var(--sea-700); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.thanks h3 { font-size: 1.8rem; margin-top: .8rem; }
.thanks p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto; }
.thanks:focus { outline: none; }
.thanks:focus-visible { outline: 3px solid var(--sea-500); }

/* footer */
.foot { background: var(--sea-900); color: var(--sea-100); padding: 2.6rem 16px; }
.foot-in { max-width: 1200px; margin: 0 auto; display: grid; gap: 1.4rem; }
.foot-name { font-family: var(--serif); font-size: 1.6rem; color: var(--white); margin: 0; }
.foot-tag { margin: .2rem 0 0; font-style: italic; font-family: var(--serif); font-size: 1.15rem; }
.foot-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.foot-links a { color: var(--sea-100); text-decoration: none; font-weight: 600; font-size: .95rem; }
.foot-links a:hover { color: var(--white); text-decoration: underline; }
.foot-copy { margin: 0; font-size: .88rem; color: var(--sea-300); }
.foot :focus-visible { outline-color: var(--sea-300); }

/* wider screens: overlapping asymmetry */
@media (min-width: 720px) {
  .pair { grid-template-columns: 1fr 1fr; }
  .day-path { grid-template-columns: 1fr 1fr; }
  .small-points { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 220px 1fr; gap: 2rem; }
  .row:nth-child(even) { grid-template-columns: 1fr 220px; }
  .row:nth-child(even) .row-art { order: 2; }
  .hero-foot { grid-template-columns: 1.4fr 1fr; align-items: end; }
}
@media (min-width: 980px) {
  .menu-btn { display: none; }
  .links { display: block; flex-basis: auto; }
  .links ul { display: flex; gap: .2rem; padding: 0; align-items: center; }
  .links a { font-size: .92rem; padding: .5rem .65rem; }
  .links-cta { margin: 0 0 0 .4rem; padding: .55rem 1rem !important; border-radius: 999px; }
  .hero { padding: 5.5rem 16px 6rem; }
  .hero-branch { width: 560px; right: -40px; top: 40px; }
  .who-grid { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .who-grid .slab-sea { padding: 2.6rem 4rem 2.6rem 2.6rem; }
  .who-grid .funding { margin: 3.5rem 0 0 -3rem; padding: 2.2rem; }
  .day-path { grid-template-columns: repeat(4, 1fr); }
  .day-path li:nth-child(even) { transform: translateY(2.2rem); }
  .days { padding-bottom: 5.5rem; }
  .small-wrap { grid-template-columns: 5fr 7fr; align-items: start; }
  .small-quote { padding: 3rem 4rem 3rem 2.5rem; margin-top: 2.5rem; }
  .small-body { margin: 0 0 0 -3rem; padding: 2.4rem; }
  .fam-head, .fold { margin-left: auto !important; margin-right: 6% !important; }
  .feel-grid { grid-template-columns: 6fr 5fr; align-items: center; }
  .feel-art { padding: 3rem 5rem 3rem 3rem; }
  .feel-copy { margin: 0 0 0 -4rem; padding: 2.4rem; }
  .rows { max-width: 1000px !important; }
  .refer-grid { grid-template-columns: 4fr 7fr; align-items: start; }
  .calm { padding: 2.6rem 4.2rem 2.6rem 2.2rem; position: sticky; top: 100px; }
  .form-shell { margin: 3rem 0 0 -2.6rem; padding: 2.4rem; }
  .foot-in { grid-template-columns: 1fr 2fr; align-items: center; }
  .foot-copy { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
