/* Careific site - rules shared by every page (the home page also loads teaser2.css for its own sections). */
/* Full footer on the continuous background: readable text in light mode (careific.css only styled it for a dark band). */
body:not(.dark) .site-footer { color: var(--ink-700); border-top: 1px solid var(--ink-100); }
body:not(.dark) .foot-brand p { color: var(--ink-500); }
body:not(.dark) .foot-col h4 { color: var(--lav-700); }
body:not(.dark) .foot-col a { color: var(--ink-700); }
body:not(.dark) .foot-col a:hover { color: var(--slate); }
body:not(.dark) .foot-bottom { border-color: var(--ink-100); color: var(--ink-500); }
body:not(.dark) .foot-bottom .legal a { color: var(--ink-500); }
body:not(.dark) .foot-bottom .legal a:hover { color: var(--slate); }

/* Contact: the form alone, centered. */
.form-shell--solo { grid-template-columns: minmax(0, 1fr); max-width: 44rem; margin: clamp(2rem, 4vw, 3rem) auto 0; }

/* Contact: the lead alone introduces the form. */
#contact .sec-head .lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }

/* Operations: the day section without its screenshot column reads as one centered column. */
.dy-nofig .dy-grid { grid-template-columns: minmax(0, 1fr); max-width: 52rem; margin-inline: auto; }

/* Operations: the platform section is the page's opening. */
#platform.is-hero { padding-top: clamp(3rem, 7vw, 6rem); }
#platform.is-hero .hero-actions { justify-content: center; margin-top: 1.75rem; }

/* The closing statement (now on the Operations page). */
/* Closing statement as a stanza: three sentences, three sizes, one thought. */
.st-d .stanza { position: relative; z-index: 1; max-width: 56rem; margin-inline: auto; text-align: center; }
.st-d .stanza p { margin: 0; }
.st-d .stanza-1 { font-weight: 300; font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.22; letter-spacing: -.02em; color: var(--slate); }
.st-d .stanza p.stanza-2 { margin-top: clamp(1.1rem, 2.2vw, 1.75rem); font-weight: 600; font-size: clamp(1.25rem, 2.1vw, 1.7rem); line-height: 1.3; letter-spacing: -.01em; }
.st-d .stanza p.stanza-3 { margin-top: .75rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--ink-700); }
body.dark .st-d .stanza-1 { color: #fff; }
body.dark .st-d .stanza-3 { color: rgba(255,255,255,.75); }
.st-d .stanza-2 .text-lav { color: var(--lav-700); }
body.dark .st-d .stanza-2 .text-lav { color: var(--lav-300); }
.st-d { position: relative; overflow: hidden; padding-block: clamp(4rem, 9vw, 7.5rem); }
.st-d .atmosphere .f1 { left: 5%; top: -30%; opacity: .55; } .st-d .atmosphere .f2 { right: 5%; bottom: -40%; top: auto; opacity: .55; }
.st-d .st-d-in { position: relative; z-index: 1; max-width: 56rem; margin-inline: auto; text-align: center; }
.st-d .statement { max-width: none; font-weight: 300; font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.25; letter-spacing: -.02em; color: #fff; }
body:not(.dark) .st-d .statement { color: var(--slate); }
/* Statement: the lavender sentence reads at the brand's lavender on paper and the lighter tint on dark. */
.statement .text-lav { color: var(--lav-700); }
body.dark .statement .text-lav { color: var(--lav-300); }
/* Closing statement: the lavender sentence is bold; the rest stays light. */
.statement strong { font-weight: 600; }
main > section#people { padding-bottom: clamp(2.5rem, 4vw, 3.5rem); }

/* One record, four hubs (on the Operations page): Residents, Staff, Facility, Medications, each listing its parts with their own icons. */
.hubs-sec { padding-block: 0 clamp(1.5rem, 3vw, 2.5rem); }
.hubs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
@media (min-width: 981px) { .hubs { width: min(84rem, 100vw - 3rem); margin-left: calc((100% - min(84rem, 100vw - 3rem)) / 2); } }
.hub { padding: 1.6rem 1.6rem 1.4rem; border-radius: 1.25rem; background: var(--paper); border: 1px solid var(--ink-100); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.hub:hover { transform: translateY(-4px); border-color: var(--sage-500); box-shadow: 0 24px 50px -24px rgba(63,138,93,.55); }
body.dark .hub { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); box-shadow: none; }
.hub-head { display: flex; align-items: center; gap: .85rem; padding-bottom: 1rem; margin-bottom: .6rem; border-bottom: 1px solid var(--ink-100); }
body.dark .hub-head { border-color: rgba(255,255,255,.1); }
.hub-ico { width: 2.75rem; height: 2.75rem; flex: none; border-radius: .85rem; display: grid; place-items: center; background: var(--sage-tint); color: var(--sage-700); }
.hub-ico svg { width: 1.3rem; height: 1.3rem; }
body.dark .hub-ico { background: rgba(168,213,186,.18); color: var(--sage-300); }
.hub h3 { margin: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.hub-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hub-items li { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; font-size: .95rem; font-weight: 500; color: var(--ink-700); }
.hub-items li + li { border-top: 1px solid var(--ink-50, rgba(0,0,0,.05)); }
body.dark .hub-items li { color: rgba(255,255,255,.8); }
body.dark .hub-items li + li { border-color: rgba(255,255,255,.07); }
.hub-item-ico { width: 1.9rem; height: 1.9rem; flex: none; border-radius: .55rem; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--ink-100); color: var(--sage-700); }
.hub-item-ico svg { width: 1rem; height: 1rem; }
body.dark .hub-item-ico { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: var(--sage-300); }
.hubs-note { margin: clamp(1.5rem, 3vw, 2.25rem) auto 0; max-width: 44rem; text-align: center; font-size: 1.08rem; line-height: 1.55; color: var(--ink-700); }
body.dark .hubs-note { color: rgba(255,255,255,.78); }
@media (max-width: 980px) { .hubs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
@media (max-width: 560px) { .hubs { grid-template-columns: minmax(0, 1fr); } }
@media (hover: none) { .hub:hover { transform: none; } }

main > section.hubs-sec { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4.5rem, 8vw, 7.5rem); }

/* Contact: the form sits in its own panel so it reads as one object on the continuous background. */
#contact .form-shell--solo { max-width: 46rem; padding: clamp(1.5rem, 3.5vw, 2.75rem); border-radius: 1.5rem; background: var(--paper); border: 1px solid var(--ink-100); box-shadow: 0 1px 2px rgba(20,24,30,.05), 0 28px 50px -34px rgba(20,24,30,.35); }
body.dark #contact .form-shell--solo { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); box-shadow: none; }

/* Operations: the doors close the page under the hubs. */
main > section.doors-sec:last-of-type { padding-top: 0; }

/* Mobile nav drawer: fully hidden when closed, so its edge never shows through the translucent header. */
@media (max-width: 900px) {
  .nav-links { visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; }
  .nav-links.open { visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
}

/* Hero mark: no long-press image preview or selection on touch devices. */
.hero-mark, .hero-mark * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.hero-mark img, .hero-mark svg { pointer-events: none; }

/* Contact form on phones: when a two-column row stacks, the row gap and the field margin were both applying between
   those two fields (double spacing). The margin alone now sets every gap, so all fields sit 1.125rem apart. */
@media (max-width: 520px) { #contact .field-row { gap: 0; } }

/* Launch footer: just the legal row. */
.site-footer--slim { padding-block: 2.25rem; }
.site-footer--slim .foot-bottom { border-top: 0; padding-top: 0; margin-top: 0; }

/* Legal and portal pages wear the site header; in dark mode the page surface follows the site (their own inline body rule otherwise wins). */
body.legal.dark { background: var(--bg-dark, #0b0d12); color: rgba(255,255,255,.9); }
body.legal.dark .doc-body p, body.legal.dark .doc-body li { color: rgba(255,255,255,.78); }
body.legal.dark .doc-body a { color: var(--sage-300); }
