/* Peaceful Haven — peacefulrcfe.com
   Palette: Warm Paper #FAF7F0 · Deep Navy #1F3A5F · Hearth Orange #D96C2C
            Leaf Green #5F7D4E · Soft Linen #F1EAD9 · Ink Brown #3A3128 */

:root {
  --paper: #FAF7F0;
  --navy: #1F3A5F;
  --navy-deep: #16293F;
  --orange: #D96C2C;
  --orange-deep: #B4531B;
  --green: #5F7D4E;
  --green-deep: #46603A;
  --linen: #F1EAD9;
  --ink: #3A3128;
  --ink-soft: #6B6156;
  --white: #FFFFFF;
  --serif: "Cormorant Garamond", Cormorant, Garamond, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1120px;
  --radius: 10px;
}

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

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

body {
  font-family: var(--sans);
  font-size: 1.125rem;            /* 18px minimum */
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

p { margin-bottom: 1.15rem; }
p:last-child { margin-bottom: 0; }

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

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 12px 20px; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; color: var(--white); }

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

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .5em; }
h3 { font-size: 1.45rem; margin-bottom: .3em; }
.kicker {
  font-family: var(--sans); font-size: .85rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep);
  display: block; margin-bottom: .8em;
}
.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 62ch; }
em.accent { font-style: italic; }

/* ---------- header ---------- */
.site-header {
  background: rgba(250, 247, 240, .96);
  border-bottom: 1px solid #E5DCC9;
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 72px; flex-wrap: wrap; padding: 8px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand svg { flex: none; }
.brand-name {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 700;
  color: var(--navy); line-height: 1.1; display: block;
}
.brand-tag { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); display: block; }
.site-nav ul { display: flex; gap: 2px; list-style: none; flex-wrap: wrap; }
.site-nav a {
  display: inline-block; padding: 10px 12px; min-height: 44px;
  font-size: 1.05rem; white-space: nowrap;
  text-decoration: none; font-weight: 600; color: var(--navy); border-radius: 6px;
}
/* six nav items + logo + phone is a lot of line: reclaim the tagline first */
@media (max-width: 1240px) { .brand-tag { display: none; } }
.site-nav a:hover { background: var(--linen); color: var(--navy); }
.site-nav a[aria-current="page"] { border-bottom: 3px solid var(--orange); border-radius: 6px 6px 0 0; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; min-height: 44px;
  background: var(--navy); color: var(--white); text-decoration: none;
  border-radius: 999px; font-weight: 700; white-space: nowrap;
}
.header-phone:hover { background: var(--navy-deep); color: var(--white); }

.nav-toggle { display: none; }

@media (max-width: 480px) {
  .header-inner { gap: 8px; min-height: 60px; }
  .brand { gap: 8px; }
  .brand svg { width: 34px; height: 34px; }
  .brand-name { font-size: 1.15rem; }
  .brand-tag { font-size: .62rem; }
  .header-phone { padding: 10px 12px; }
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; border: 2px solid var(--navy);
    border-radius: 8px; background: transparent; color: var(--navy);
    font: inherit; font-weight: 700; cursor: pointer;
  }
  .site-nav { display: none; width: 100%; }
  .site-nav.open, .no-js .site-nav { display: block; }
  .site-nav ul { flex-direction: column; padding-bottom: 8px; }
  .site-nav a { display: block; }
  .header-phone .phone-num { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: var(--white); background: var(--navy-deep); }
.hero picture, .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,41,63,.45) 0%, rgba(22,41,63,.55) 40%, rgba(22,41,63,.78) 85%);
}
.hero-content {
  position: relative; z-index: 1; max-width: var(--maxw);
  margin: 0 auto; padding: clamp(90px, 16vw, 190px) 20px 46px;
}
.hero h1 { color: var(--white); max-width: 17ch; text-wrap: balance; }
.hero .lede { color: rgba(255,255,255,.94); margin: 18px 0 26px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-meta { margin-top: 22px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 1rem; }
.hero-meta .lic { color: rgba(255,255,255,.85); }

/* ---------- buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--orange-deep); color: #FFF; }
.btn-primary:hover { background: #A34715; color: #FFF; }
.btn-ghost { border-color: rgba(255,255,255,.75); color: var(--white); background: rgba(22,41,63,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--linen); color: var(--navy); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  background: var(--linen); color: var(--ink);
}
.pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-soft); flex: none; }
.pill[data-status="open"] { background: #E4EDDC; color: var(--green-deep); }
.pill[data-status="open"] .dot { background: var(--green); }
.pill[data-status="waitlist"] { background: #F6E3C8; color: #7A4A12; }
.pill[data-status="waitlist"] .dot { background: var(--orange); }
.pill[data-status="full"] { background: #EFE4E0; color: #7C3A2D; }
.pill[data-status="full"] .dot { background: #A0522D; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-linen { background: var(--linen); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .kicker { color: #F2C272; }
.section-navy a { color: #F2C272; }

/* stat strip */
.stats { background: var(--navy); color: var(--white); }
.stats-inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: rgba(255,255,255,.16);
}
.stat { background: var(--navy); padding: 28px 20px; text-align: center; }
.stat b { font-family: var(--sans); font-size: 1.9rem; font-weight: 700; letter-spacing: .01em; display: block; color: #F2C272; }
.stat span { font-size: 1rem; color: rgba(255,255,255,.9); }

/* split bands */
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.flip > .split-media { order: 2; }
  /* long-form story: text leads, photo rides alongside instead of
     floating in a tall empty column */
  .split.story { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .split.story > .split-media { position: sticky; top: 96px; }
}
.split-media img { border-radius: var(--radius); width: 100%; }
.split-body ul { padding-left: 1.2em; margin: 14px 0; }
.split-body li { margin-bottom: 8px; }

/* care cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }
.card {
  background: var(--white); border: 1px solid #E5DCC9; border-radius: var(--radius);
  padding: 26px 24px;
}
.card .kicker { margin-bottom: .4em; font-size: .75rem; }
.card p { font-size: 1.05rem; }
.card ul { padding-left: 1.2em; font-size: 1.05rem; }
.card ul li { margin-bottom: 8px; }
.section-linen .card { border-color: #DDD2BC; }

/* gallery */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 30px; }
.gallery button {
  border: 0; padding: 0; background: none; cursor: pointer; border-radius: var(--radius);
  display: block; line-height: 0;
}
.gallery img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery button:hover img { opacity: .88; }

/* lightbox */
.lightbox { border: 0; border-radius: 12px; padding: 0; background: var(--navy-deep); max-width: min(94vw, 1100px); }
.lightbox::backdrop { background: rgba(22,41,63,.85); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; }
.lightbox figcaption { color: rgba(255,255,255,.92); padding: 12px 18px; font-size: 1rem; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; gap: 10px; }
.lightbox-bar button {
  min-width: 44px; min-height: 44px; border-radius: 8px; border: 1px solid rgba(255,255,255,.4);
  background: transparent; color: var(--white); font-size: 1.1rem; font-weight: 700; cursor: pointer;
}
.lightbox-bar button:hover { background: rgba(255,255,255,.12); }

/* pricing/included */
.two-col { display: grid; gap: 24px; margin-top: 26px; }
@media (min-width: 720px) { .two-col { grid-template-columns: 1fr 1fr; } }
.check-list { list-style: none; }
@media (min-width: 720px) {
  .check-list.cols { columns: 2; column-gap: 44px; }
  .check-list.cols li { break-inside: avoid; }
}
.check-list li { padding-left: 1.9em; position: relative; margin-bottom: 10px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green-deep); font-weight: 700;
}

/* trust */
.trust { border: 2px solid var(--navy); border-radius: var(--radius); padding: 28px; background: var(--white); }
.trust dl { display: grid; gap: 14px; margin: 18px 0; }
@media (min-width: 720px) { .trust dl { grid-template-columns: repeat(3, 1fr); } }
.trust dt { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.trust dd { font-size: 1.15rem; font-weight: 700; color: var(--navy); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin: 0 auto .4em; }
.cta-band .lede { margin: 0 auto 28px; }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .hero-meta { justify-content: center; }

/* homes page */
.home-card {
  display: grid; gap: 0; background: var(--white); border: 1px solid #E5DCC9;
  border-radius: var(--radius); overflow: hidden; margin-top: 30px;
}
@media (min-width: 820px) { .home-card { grid-template-columns: 5fr 4fr; } }
.home-card-media img { width: 100%; height: 100%; object-fit: cover; }
.home-card-media.placeholder {
  background: var(--navy); color: var(--white); display: flex; align-items: center;
  justify-content: center; padding: 40px; text-align: center; min-height: 260px;
  font-family: var(--serif); font-size: 1.4rem;
}
.home-card-body { padding: 30px 28px; }
.home-card-body address { font-style: normal; margin: 10px 0 16px; color: var(--ink-soft); }

/* admissions steps */
.steps { list-style: none; counter-reset: step; margin-top: 30px; }
.steps > li {
  counter-increment: step; position: relative; padding: 0 0 34px 74px;
}
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -4px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: #F2C272;
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 25px; top: 52px; bottom: 6px;
  width: 2px; background: #D8CDB6;
}
.doc-tag {
  display: inline-block; background: var(--linen); border: 1px solid #DDD2BC;
  border-radius: 6px; padding: 2px 10px; font-size: .95rem; font-weight: 700;
  color: var(--navy); white-space: nowrap;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid #E0D6C2; padding: 6px 0;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.15rem; color: var(--navy);
  padding: 14px 8px; list-style-position: outside; min-height: 44px;
}
.faq summary:hover { color: var(--orange-deep); }
.faq details p { padding: 0 8px 16px; max-width: 68ch; }

/* contact */
.contact-grid { display: grid; gap: clamp(28px, 5vw, 60px); margin-top: 8px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
form .hint { font-size: .95rem; color: var(--ink-soft); font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; min-height: 48px;
  border: 2px solid #C9BEA6; border-radius: 8px; background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: 3px solid var(--orange); outline-offset: 1px; }
.hp-field { position: absolute; left: -9999px; }

/* footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.88); font-size: 1rem; }
.footer-grid { display: grid; gap: 32px; padding: 56px 0 30px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h2 { color: var(--white); font-size: 1.35rem; }
.site-footer h3 { color: #F2C272; font-size: .85rem; font-family: var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #F2C272; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.18); padding: 18px 0 90px;
  font-size: .92rem; color: rgba(255,255,255,.65);
}
@media (min-width: 1041px) { .footer-legal { padding-bottom: 18px; } }

/* sticky mobile call bar */
.call-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  display: none; gap: 1px; background: var(--navy-deep);
  padding-bottom: env(safe-area-inset-bottom);
}
.call-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; font-weight: 700; text-decoration: none; font-size: 1.05rem;
}
.call-bar .cb-call { background: var(--orange-deep); color: #FFF; }
.call-bar .cb-tour { background: var(--navy); color: #FFF; }
@media (max-width: 1040px) { .call-bar { display: flex; } }

/* misc */
.signature {
  font-family: var(--serif); font-style: italic; font-size: 1.35rem;
  color: var(--navy); margin-top: 1.4rem;
}

.note { font-size: 1rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.mt { margin-top: 26px; }
