/* Comfort Bay Residential Care
   deep navy · warm sand · brass — muted editorial, centered, generous space */

:root {
  --navy: #1f2a44;
  --navy-soft: #2b3756;
  --navy-line: #3f4b6b;
  --sand: #e8dcc8;
  --sand-pale: #f6efe3;
  --sand-mid: #d9c9ad;
  --brass: #b08d57;
  --brass-bright: #c9a66b;
  --brass-ink: #74572a;
  --paper: #fdfbf7;
  --ink: #1c2235;
  --ink-2: #4a5068;
  --warn: #a1281d;
  --measure: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Figtree", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.75;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: "Marcellus", "Times New Roman", serif; font-weight: 400; line-height: 1.2; margin: 0; color: var(--navy); }
p { margin: 0 0 1.1rem; }
a { color: var(--navy); }
:focus-visible { outline: 3px solid var(--brass-ink); outline-offset: 3px; }

.cb-skip { position: absolute; top: -6rem; left: 1rem; z-index: 99; background: var(--navy); color: var(--sand-pale); padding: .7rem 1.1rem; border-radius: 6px; }
.cb-skip:focus { top: 1rem; outline-color: var(--brass-bright); }

/* ---------- sticky bar ---------- */
.cb-bar { position: sticky; top: 0; z-index: 40; background: rgba(253, 251, 247, .97); border-bottom: 1px dashed var(--sand-mid); }
.cb-bar__in { max-width: 70rem; margin: 0 auto; padding: .75rem 1.1rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.cb-logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.cb-logo__badge svg { width: 2.3rem; height: 2.3rem; display: block; }
.cb-logo__words { font-family: "Marcellus", serif; font-size: 1.3rem; color: var(--navy); line-height: 1.1; }
.cb-logo__words span { display: block; font-family: "Figtree", sans-serif; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-ink); font-weight: 600; }
.cb-burger {
  font: 600 .9rem "Figtree", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--navy);
  background: transparent; border: 1.5px dashed var(--navy); border-radius: 6px; padding: .5rem .9rem; cursor: pointer;
}
.cb-burger[aria-expanded="true"] { background: var(--navy); color: var(--sand-pale); border-style: solid; }
.cb-nav { display: none; flex-basis: 100%; }
.cb-nav.is-shown { display: block; }
.cb-nav ul { list-style: none; margin: 0; padding: .4rem 0 .6rem; }
.cb-nav a { display: block; padding: .65rem .2rem; text-decoration: none; color: var(--ink); border-bottom: 1px dashed var(--sand-mid); }
.cb-nav a:hover { color: var(--brass-ink); }
.cb-nav__refer { color: var(--brass-ink) !important; font-weight: 600; }

/* ---------- buttons ---------- */
.cb-btn {
  display: inline-block; font: 600 1rem "Figtree", sans-serif; letter-spacing: .02em; text-decoration: none; text-align: center;
  padding: .95rem 1.8rem; border-radius: 4px; border: 0; cursor: pointer; position: relative;
}
.cb-btn::after { content: ""; position: absolute; inset: 4px; border: 1px dashed currentColor; border-radius: 2px; opacity: .55; pointer-events: none; }
.cb-btn--brass { background: var(--brass-bright); color: var(--navy); }
.cb-btn--brass:hover { background: var(--sand); }
.cb-btn--navy { background: var(--navy); color: var(--sand-pale); }
.cb-btn--navy:hover { background: var(--navy-soft); }

/* ---------- hero: color block ---------- */
.cb-hero { display: grid; background: var(--navy); color: var(--sand-pale); }
.cb-hero__block { padding: 4.5rem 1.4rem 4rem; text-align: center; max-width: 44rem; margin: 0 auto; }
.cb-hero__over { font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--brass-bright); margin-bottom: 1.6rem; }
.cb-hero h1 { color: var(--sand-pale); font-size: clamp(2.6rem, 10vw, 5rem); line-height: 1.05; margin-bottom: 1.6rem; }
.cb-hero__text { color: #d8d3c8; font-size: 1.12rem; max-width: 34rem; margin: 0 auto 2.2rem; }
.cb-hero__quilt { background: var(--brass); display: grid; place-items: center; padding: 2rem; }
.cb-hero__quilt svg { width: min(16rem, 70vw); height: auto; display: block; }

/* ---------- sections ---------- */
.cb-sec { padding: 5rem 1.4rem; text-align: center; }
.cb-sec > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.cb-sec--sand { background: var(--sand-pale); }
.cb-sec--navy { background: var(--navy); color: var(--sand-pale); }
.cb-sec--navy h2, .cb-sec--navy h3 { color: var(--sand-pale); }
.cb-label { font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--brass-ink); font-weight: 600; margin-bottom: 1.2rem; }
.cb-label::after { content: ""; display: block; width: 3rem; margin: .9rem auto 0; border-top: 2px dashed var(--brass); }
.cb-label--light { color: var(--brass-bright); }
.cb-sec h2 { font-size: clamp(1.9rem, 5.5vw, 2.8rem); margin-bottom: 1.2rem; }
.cb-lead { color: var(--ink-2); font-size: 1.12rem; }

/* route timeline */
.cb-route { list-style: none; padding: 0; margin-top: 3rem; text-align: left; position: relative; }
.cb-route::before { content: ""; position: absolute; left: .7rem; top: .5rem; bottom: .5rem; border-left: 2px dashed var(--brass); }
.cb-route__stop { position: relative; padding: 0 0 2.4rem 3rem; }
.cb-route__stop:last-child { padding-bottom: 0; }
.cb-route__dot { position: absolute; left: 0; top: .3rem; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--navy); }
.cb-route__dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--brass); }
.cb-route h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.cb-route p { margin: 0; color: var(--ink-2); }
.cb-route strong { color: var(--navy); font-weight: 600; }

/* move-in patches */
.cb-patches { display: grid; gap: 1rem; margin-top: 2.6rem; text-align: left; max-width: 60rem; }
.cb-patch { background: var(--paper); padding: 1.6rem 1.5rem; border-radius: 8px; position: relative; }
.cb-patch::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed var(--sand-mid); border-radius: 5px; pointer-events: none; }
.cb-patch h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.cb-patch p { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* home scene */
.cb-scene { margin: 2.4rem auto; max-width: 40rem; }
.cb-scene svg { width: 100%; height: auto; display: block; }
.cb-features { list-style: none; padding: 0; text-align: left; display: grid; gap: 1.1rem; }
.cb-features li { padding: 0 0 1.1rem; border-bottom: 1px dashed var(--sand-mid); color: var(--ink-2); }
.cb-features strong { color: var(--navy); font-weight: 600; }

/* who we serve */
.cb-two { display: grid; gap: 1.2rem; margin-top: 2.4rem; text-align: left; max-width: 58rem; }
.cb-panel { border: 1.5px dashed var(--navy-line); border-radius: 10px; padding: 1.8rem 1.6rem; background: var(--navy-soft); }
.cb-panel h3 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--brass-bright) !important; }
.cb-stitch-list { list-style: none; margin: 0; padding: 0; }
.cb-stitch-list li { padding: .6rem 0 .6rem 1.6rem; position: relative; border-bottom: 1px solid var(--navy-line); }
.cb-stitch-list li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: .8rem; border-top: 2px dashed var(--brass-bright); }
.cb-stitch-list span { color: #c4c0b7; font-size: .95rem; }
.cb-panel__note { margin: 1.1rem 0 0; color: var(--sand); font-style: italic; }

/* daily prose */
.cb-prose { text-align: left; margin-top: 2rem; }
.cb-prose p { color: var(--ink-2); font-size: 1.1rem; }
.cb-prose p:first-child { font-size: 1.22rem; color: var(--ink); }

/* reasons */
.cb-reasons { display: grid; gap: 0; margin: 2.4rem auto 0; text-align: left; max-width: 52rem; }
.cb-reasons div { padding: 1.4rem 0; border-top: 1px dashed var(--sand-mid); display: grid; gap: .3rem; }
.cb-reasons dt { font-family: "Marcellus", serif; font-size: 1.35rem; color: var(--navy); }
.cb-reasons dd { margin: 0; color: var(--ink-2); }

/* CTA band + form */
.cb-cta { background: var(--paper); }
.cb-cta__band {
  background: var(--navy); color: var(--sand-pale); text-align: center; padding: 4.5rem 1.4rem;
  background-image: repeating-linear-gradient(45deg, transparent 0 22px, rgba(201, 166, 107, .08) 22px 23px), repeating-linear-gradient(-45deg, transparent 0 22px, rgba(201, 166, 107, .08) 22px 23px);
}
.cb-cta__band h2 { color: var(--sand-pale); font-size: clamp(2rem, 6vw, 3.2rem); max-width: 40rem; margin: 0 auto 1.2rem; }
.cb-cta__band p { color: #d8d3c8; max-width: 38rem; margin: 0 auto 2rem; }
.cb-cta__open[aria-expanded="true"] { background: var(--sand); }

.cb-formbox { max-width: 50rem; margin: 0 auto; padding: 3rem 1.2rem 4.5rem; }
.cb-form__h { font-size: 2rem; text-align: center; margin-bottom: .4rem; outline: none; }
.cb-form__hint { text-align: center; color: var(--ink-2); font-size: .95rem; }
.cb-req { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-ink); border: 1px dashed var(--brass); border-radius: 3px; padding: 0 .3rem; margin-left: .3rem; white-space: nowrap; }
.cb-form__alert:empty { display: none; }
.cb-form__alert { padding: .85rem 1rem; border: 1.5px dashed var(--warn); background: #fcf0ee; color: var(--warn); border-radius: 6px; margin-bottom: 1.2rem; font-weight: 600; }
.cb-set { border: 1.5px dashed var(--sand-mid); border-radius: 10px; padding: 1.4rem 1.1rem .4rem; margin: 0 0 1.4rem; display: grid; gap: 0 1.2rem; background: #fff; }
.cb-set legend { font-family: "Marcellus", serif; font-size: 1.3rem; color: var(--navy); padding: 0 .5rem; }
.cb-field { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 1.1rem; min-width: 0; }
.cb-field label { font-weight: 600; font-size: .98rem; }
.cb-field input, .cb-field select, .cb-field textarea {
  font: inherit; color: var(--ink); width: 100%; background: var(--paper);
  border: 1.5px solid #8d8a80; border-radius: 6px; padding: .7rem .85rem;
}
.cb-field input:focus, .cb-field select:focus, .cb-field textarea:focus { border-color: var(--navy); outline: 3px solid var(--brass-bright); outline-offset: 1px; }
.cb-field [aria-invalid="true"], .cb-agree [aria-invalid="true"] { border-color: var(--warn); outline-color: var(--warn); }
.cb-err { color: var(--warn); font-size: .92rem; font-weight: 600; }
.cb-err:empty { display: none; }
.cb-agree { display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; align-items: start; margin-bottom: 1.6rem; }
.cb-agree input { width: 1.25rem; height: 1.25rem; margin-top: .3rem; accent-color: var(--navy); }
.cb-agree .cb-err { grid-column: 2; }
.cb-form > .cb-btn { display: block; width: 100%; }
.cb-thanks { text-align: center; padding: 2.5rem 1rem; outline: none; }
.cb-thanks:focus-visible { outline: 3px solid var(--brass-ink); border-radius: 8px; }
.cb-thanks svg { width: 4.5rem; height: 4.5rem; }
.cb-thanks h3 { font-size: 1.9rem; margin: 1.2rem 0 .8rem; }
.cb-thanks p { color: var(--ink-2); max-width: 34rem; margin: 0 auto; }

/* footer */
.cb-foot { background: var(--navy); color: var(--sand); text-align: center; padding: 3.5rem 1.4rem 2.5rem; border-top: 6px solid var(--brass); }
.cb-foot__name { font-family: "Marcellus", serif; font-size: 1.6rem; color: var(--sand-pale); margin-bottom: .2rem; }
.cb-foot__tag { color: var(--brass-bright); margin-bottom: 1.8rem; }
.cb-foot ul { list-style: none; padding: 0; margin: 0 auto 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; max-width: 46rem; }
.cb-foot a { color: var(--sand-pale); text-decoration: none; }
.cb-foot a:hover { text-decoration: underline dashed; }
.cb-foot a:focus-visible { outline-color: var(--brass-bright); }
.cb-foot__copy { margin: 0; font-size: .88rem; color: #b9b5ab; }

@media (min-width: 700px) {
  .cb-hero { grid-template-columns: 1.6fr 1fr; }
  .cb-hero__block { padding: 7rem 3rem; }
  .cb-sec { padding: 7rem 2rem; }
  .cb-patches { grid-template-columns: repeat(2, 1fr); }
  .cb-two { grid-template-columns: 1fr 1fr; }
  .cb-set { grid-template-columns: 1fr 1fr; padding: 1.8rem 1.6rem .6rem; }
  .cb-field--wide { grid-column: 1 / -1; }
  .cb-form > .cb-btn { display: inline-block; width: auto; margin: 0 auto; }
  .cb-form { text-align: left; }
  .cb-form > .cb-btn { display: table; }
  .cb-reasons { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

@media (min-width: 980px) {
  .cb-burger { display: none; }
  .cb-nav { display: block; flex-basis: auto; }
  .cb-nav ul { display: flex; gap: .2rem; padding: 0; }
  .cb-nav a { border: 0; padding: .4rem .7rem; font-size: .96rem; }
  .cb-nav__refer { border: 1.5px dashed var(--brass) !important; border-radius: 4px; }
  .cb-patches { grid-template-columns: repeat(3, 1fr); }
  .cb-hero__quilt svg { width: 20rem; }
}

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