/* Platform additions: booking, manage, legal, a11y. Uses variables from style.css */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 4px; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-muted); }
.small { font-size: 12.5px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-inner { gap: 24px; }
@media (max-width: 980px) {
  .nav-menu.open { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 20px 24px 26px; gap: 18px; border-bottom: 1px solid var(--rule); }
  .nav-cta { margin-left: auto; }
}

/* ---- Booking ---- */
.bk { padding: 150px 0 100px; min-height: 80vh; background: var(--bg); }
.bk-wrap { max-width: 980px; }
.bk-head h1 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(38px, 5vw, 56px); line-height: 1.05; margin: 10px 0 14px; color: var(--ink); }
.bk-head p { max-width: 640px; color: var(--ink-soft); line-height: 1.6; }
.bk-steps { display: flex; gap: 8px; list-style: none; margin: 34px 0 26px; padding: 0; }
.bk-steps li { flex: 1; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); padding-top: 10px; border-top: 3px solid var(--rule); transition: all .3s; }
.bk-steps li.on { color: var(--ink); border-top-color: var(--gold); }
.bk-panel { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 34px; box-shadow: var(--shadow); }
.bk-panel[hidden] { display: none; }
.bk-panel h2 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 32px; margin: 4px 0 8px; color: var(--ink); }
.bk-back { background: none; border: 0; color: var(--ink-muted); font: inherit; font-size: 13px; cursor: pointer; padding: 0; margin-bottom: 14px; }
.bk-back:hover { color: var(--gold); }
.bk-tabs { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 100px; padding: 4px; margin-bottom: 24px; flex-wrap: wrap; }
.bk-tabs button { border: 0; background: none; padding: 9px 20px; border-radius: 100px; font: inherit; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.bk-tabs button.on { background: var(--ink); color: #fff; }
.bk-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.type-card { text-align: left; background: var(--bg); border: 1px solid var(--rule-strong); border-radius: 6px; padding: 18px 20px; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 6px; transition: all .2s; }
.type-card:hover { border-color: var(--gold); background: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.type-card strong { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; color: var(--ink); }
.type-card .dur { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.type-card .desc { font-size: 13px; color: var(--ink-muted); line-height: 1.5; }

.bk-cal { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 34px; margin-top: 18px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-nav strong { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; }
.cal-nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule-strong); background: #fff; font-size: 20px; cursor: pointer; line-height: 1; color: var(--ink); }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); padding-bottom: 6px; }
.cal-day { aspect-ratio: 1; border: 0; background: none; border-radius: 50%; font: inherit; font-size: 14px; color: #b9bdc7; cursor: default; }
.cal-day.avail { color: var(--ink); background: var(--bg-warm); cursor: pointer; font-weight: 500; }
.cal-day.avail:hover { background: var(--gold-warm); }
.cal-day.sel { background: var(--ink); color: #fff; }
.slot-box h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 22px; margin-bottom: 12px; }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.slot { padding: 11px 6px; border: 1px solid var(--gold); background: #fff; color: var(--ink); border-radius: 4px; font: inherit; font-size: 14px; cursor: pointer; transition: all .15s; }
.slot:hover { background: var(--gold); color: #fff; }

.bk-summary { background: var(--bg-warm); border-left: 3px solid var(--gold); padding: 14px 18px; border-radius: 3px; margin: 10px 0 24px; display: flex; flex-direction: column; gap: 4px; }
.bk-summary strong { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; }
.bk-summary span { color: var(--ink-soft); font-size: 14px; }
.status { display: inline-block; align-self: flex-start; margin-top: 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; background: var(--sage-light); color: var(--ink) !important; }
.status.s-cancelled, .status.s-no_show { background: #f0d4d4; }
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bk-radio { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.bk-radio label, .bk-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; cursor: pointer; }
.bk-check { margin-bottom: 12px; }
.bk-check input, .bk-radio input { margin-top: 3px; accent-color: var(--gold); }
.bk-error { color: #a33; background: #fbeaea; border: 1px solid #efc4c4; padding: 10px 14px; border-radius: 4px; font-size: 14px; margin: 10px 0; }
.bk-error[hidden] { display: none; }
#bookForm .btn { margin: 10px 0 14px; }
.bk-done { text-align: center; padding: 20px 0; }
.bk-check-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; font-size: 30px; margin: 0 auto 14px; }
.bk-done p { margin-bottom: 14px; }
.bk-done-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 18px 0; }
#mView .bk-done-actions { justify-content: flex-start; }
@media (max-width: 760px) {
  .bk { padding-top: 120px; }
  .bk-panel { padding: 22px 18px; }
  .bk-cal, .bk-row { grid-template-columns: 1fr; }
  .bk-steps li { font-size: 10px; }
}

/* ---- Legal ---- */
.legal { padding: 150px 0 100px; background: var(--bg); }
.narrow { max-width: 760px; }
.legal h1 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(38px, 5vw, 54px); margin: 8px 0 6px; }
.legal h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 26px; margin: 34px 0 8px; }
.legal p, .legal li { line-height: 1.7; color: var(--ink-soft); margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--gold); }
.draft-banner { background: #fff4d6; border: 1px solid #e6cf8a; color: #6a5516; padding: 10px 14px; border-radius: 4px; font-size: 13px; margin-bottom: 24px; }

.crisis-note{margin-top:28px;padding:16px 20px;border-left:3px solid var(--gold);background:var(--bg-warm);font-size:14.5px;line-height:1.55;color:var(--ink-soft)}
.bk-list{margin:12px 0 0 18px;line-height:1.7}
.region-note{margin:28px auto 0;max-width:760px;text-align:center;font-size:14.5px;color:var(--ink-muted);line-height:1.6}
.edu-note{margin-top:14px;font-size:13px;color:var(--ink-muted);text-align:center;line-height:1.5}
.mia-crisis{padding:8px 14px;font-size:12px;line-height:1.4;background:#F4F0E8;color:#2A3A5C;border-bottom:1px solid rgba(15,30,58,.1)}
.contact-line{flex-wrap:wrap;gap:6px 18px}.contact-line a,.contact-line span{white-space:nowrap}

/* ---- Phase 1 pages: nav, dropdown, inner-page components ---- */
.nav-menu { gap: 26px; }
.nav-cta { display: inline-flex; margin-left: 8px; white-space: nowrap; }
.nav-menu a[aria-current="page"] { color: var(--gold); font-weight: 500; }
.has-sub { position: relative; padding-bottom: 18px; margin-bottom: -18px; }
.has-sub > a::after { content: ''; display: inline-block; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-left: 7px; position: relative; top: -2px; }
.sub-menu { position: absolute; top: calc(100% - 4px); left: -18px; min-width: 190px; list-style: none; background: var(--bg); border: 1px solid var(--rule); box-shadow: var(--shadow); padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 5; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 8px 22px; white-space: nowrap; }
@media (max-width: 980px) {
  .nav-menu.open { max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav-menu.open .has-sub { padding-bottom: 0; margin-bottom: 0; }
  .nav-menu.open .has-sub > a::after { display: none; }
  .nav-menu.open .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; background: none; padding: 8px 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
  .nav-menu.open .sub-menu a { padding: 2px 0; font-size: 13px; }
}

.pg-section { padding: 84px 0; }
.pg-section.alt { background: var(--bg-warm); }
.pg-narrow { max-width: 840px; }
.pg-head { max-width: 760px; margin-bottom: 40px; }
.pg-head h2, .pg-h2 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(32px, 4vw, 50px); line-height: 1.1; margin: 10px 0 18px; color: var(--ink); }
.pg-head h2 em, .pg-h2 em, .pg-cta h2 em { color: var(--gold); font-style: italic; }
.pg-section p, .pg-card p { line-height: 1.75; color: var(--ink-soft); margin-bottom: 14px; }
.pg-section a:not(.btn), .page-hero a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.pg-section a:not(.btn):hover { color: var(--gold); }
.pg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.pg-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pg-cards.three { grid-template-columns: repeat(3, 1fr); }
.pg-card { background: #fff; border: 1px solid var(--rule); border-top: 2px solid var(--gold); padding: 30px 28px 18px; box-shadow: var(--shadow); }
.pg-card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 26px; line-height: 1.15; margin-bottom: 12px; color: var(--ink); }
.pg-card .label { display: block; margin-bottom: 8px; }
.pg-list { list-style: none; margin: 0 0 14px; }
.pg-list li { position: relative; padding: 9px 0 9px 22px; line-height: 1.6; color: var(--ink-soft); border-bottom: 1px solid var(--rule); font-size: 15px; }
.pg-list li:last-child { border-bottom: 0; }
.pg-list li::before { content: ''; position: absolute; left: 0; top: 21px; width: 10px; height: 1px; background: var(--gold); }
.pg-list.big li { font-size: 16.5px; padding: 14px 0 14px 26px; }
.pg-list.big li::before { top: 26px; width: 12px; }
.pg-list.big strong { color: var(--ink); font-weight: 600; }
.pg-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pg-steps li { counter-increment: step; background: #fff; border: 1px solid var(--rule); padding: 26px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.pg-steps li::before { content: counter(step, decimal-leading-zero); font-family: 'Cormorant Garamond', serif; font-size: 34px; color: var(--gold); line-height: 1; }
.pg-steps strong { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 22px; line-height: 1.2; color: var(--ink); }
.pg-steps span { font-size: 14.5px; color: var(--ink-muted); line-height: 1.6; }
.pg-note { margin-top: 28px; max-width: 760px; font-size: 14.5px; color: var(--ink-muted) !important; }
.pg-cta { background: var(--ink); color: var(--bg); text-align: center; padding: 90px 0 80px; }
.pg-cta h2 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(36px, 4.6vw, 60px); margin-bottom: 14px; }
.pg-cta p { color: rgba(250,250,247,.82); margin-bottom: 22px; }
.pg-cta .muted, .pg-cta .region-note { color: rgba(250,250,247,.68); }
.pg-cta a:not(.btn) { color: var(--gold-light); }
.pg-cta .btn-ghost { color: var(--bg); border-color: rgba(250,250,247,.55); }
.pg-cta .btn-ghost:hover { background: var(--bg); color: var(--ink); }
.pg-cta .btn-gold:hover { color: var(--gold-light); }
.pg-cta .crisis-note { background: rgba(255,255,255,.07); color: rgba(250,250,247,.86); border-left-color: var(--gold-light); max-width: 640px; margin: 26px auto 0; text-align: left; }
.pg-contact .crisis-note { max-width: 760px; }
.page-hero .region-note { margin: 22px 0 0; text-align: left; max-width: 640px; }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 72px); }
.wellness-links { padding: 46px 0 70px; text-align: center; border-top: 1px solid var(--rule); }
.wellness-links p { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; font-size: 14.5px; }
.wellness-links a { color: var(--ink-soft); text-decoration: none; }
.wellness-links a:hover, .wellness-links a[aria-current="page"] { color: var(--gold); }
.wellness-links .wl-step { margin-top: 22px; justify-content: space-between; max-width: 520px; margin-left: auto; margin-right: auto; font-family: 'Cormorant Garamond', serif; font-size: 20px; }
.dims-list a { color: inherit; text-decoration: none; }
.dims-list a:hover { color: var(--gold); }
.mission-strip .small { margin-top: -10px; }
@media (max-width: 980px) {
  .pg-section { padding: 60px 0; }
  .pg-two { grid-template-columns: 1fr; gap: 44px; }
  .pg-cards, .pg-cards.three { grid-template-columns: 1fr; }
  .pg-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .pg-steps { grid-template-columns: 1fr; } }

/* ---- Hero video (Phase 2): fades in over the clouds image once it is playing ---- */
.hero-clouds .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.hero-clouds .hero-video.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-clouds .hero-video { display: none; } }

/* ---- Accessibility: darker gold so gold text and white-on-gold buttons meet WCAG AA (4.5:1) ---- */
:root { --gold: #86652A; }
.hero-clouds .btn-gold:hover, .about-copy .btn-gold:hover { color: var(--gold-light); }
.appts .region-note, .appts .edu-note { color: rgba(250,250,247,.78); }
.appts .region-note strong { color: var(--bg); }

/* Keyboard: show the dropdown instantly on focus (no visibility delay); phones: keep the menu button on screen */
.sub-menu { transition: opacity .2s, transform .2s; }
@media (max-width: 560px) {
  .site-nav .site-logo .tag { display: none; }
  .site-nav .nav-inner { gap: 10px; }
  .site-nav .nav-cta { margin-left: auto; padding: 6px 10px; }
}
