:root {
  --cobalt: #003f7d;
  --cobalt-deep: #002852;
  --powder: #e8f0f9;
  --powder-border: #c5d6ea;
  --apricot: #e38b47;
  --apricot-soft: #fae4cf;
  --cream: #fcfbf9;
  --white: #ffffff;
  --ink: #112238;
  --muted: #4b5e76;
  --border: rgba(0, 63, 125, 0.12);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Albert Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; overflow-x: clip; background: var(--cream); }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream);
  line-height: 1.62; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--cobalt-deep); color: #fff; padding: 10px 16px; z-index: 9999; }
.skip-link:focus { left: 16px; top: 16px; border-radius: 8px; }

/* Preloader */
.preloader {
  position: fixed; inset: 0; z-index: 9000; background: var(--cobalt); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.preloader-title { font-family: var(--font-display); font-size: 1.5rem; }
.preloader-line { width: 170px; height: 3px; background: rgba(255,255,255,0.2); border-radius: 99px; overflow: hidden; }
.preloader-fill { height: 100%; width: 0%; background: var(--apricot); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header.scrolled { background: rgba(255, 255, 255, 0.97); box-shadow: 0 10px 28px rgba(0, 40, 82, 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; flex-shrink: 0; }
.brand-house { width: 42px; height: 42px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.14rem; color: var(--cobalt); }
.brand-sub { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--apricot); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--ink);
  padding: 9px 14px; border-radius: 99px; min-height: 40px; display: inline-flex; align-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--powder); color: var(--cobalt); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.tel-pill {
  text-decoration: none; font-weight: 700; font-size: 0.88rem; color: var(--cobalt);
  padding: 9px 14px; border-radius: 99px; border: 1.5px solid var(--powder-border); background: var(--powder);
  min-height: 44px; display: inline-flex; align-items: center;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px; border-radius: 99px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.92rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.22s ease, background 0.22s ease;
}
.btn-cobalt { background: var(--cobalt); color: #fff; box-shadow: 0 10px 24px rgba(0, 63, 125, 0.22); }
.btn-cobalt:hover { background: var(--cobalt-deep); transform: translateY(-2px); }
.btn-apricot { background: var(--apricot); color: var(--ink); }
.btn-apricot:hover { background: #d47a35; transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--cobalt); border: 1.5px solid var(--powder-border); }
.btn-outline:hover { border-color: var(--cobalt); transform: translateY(-2px); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--powder-border); background: #fff; color: var(--cobalt);
  align-items: center; justify-content: center; cursor: pointer;
}
.mobile-drawer {
  display: none; position: fixed; inset: 76px 0 0 0; z-index: 390;
  background: var(--cobalt-deep); color: #fff; padding: 28px 24px 40px; flex-direction: column; gap: 12px;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  text-decoration: none; color: #fff; font-family: var(--font-display); font-size: 1.32rem;
  padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,0.14); min-height: 48px;
}

/* Hero */
.hero {
  position: relative; min-height: 100svh; padding: 114px 0 60px;
  background: linear-gradient(165deg, #e8f0f9 0%, #fcfbf9 56%, #fae4cf 130%);
  display: flex; align-items: center; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 44px; align-items: center; position: relative; z-index: 3; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--cobalt); background: #fff; border: 1px solid var(--powder-border);
  padding: 7px 14px; border-radius: 99px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--apricot); }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.3rem, 4.8vw, 3.85rem); line-height: 1.08;
  color: var(--cobalt-deep); margin: 18px 0 14px; font-weight: 400;
}
.hero h1 em { font-style: italic; color: var(--apricot); }
.hero-lead { font-size: 1.08rem; color: var(--muted); max-width: 52ch; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 0.85rem; font-weight: 700; color: var(--cobalt); }

/* House Roof Architectural Frame */
.hero-house-panel {
  background: var(--cobalt); color: #fff; border-radius: 26px; padding: 26px;
  box-shadow: 0 28px 60px rgba(0, 40, 82, 0.2); border-bottom: 6px solid var(--apricot);
}
.hero-slot {
  border-radius: 16px; overflow: hidden; background: rgba(255,255,255,0.08);
  min-height: 255px; display: flex; align-items: center; justify-content: center;
}
.hero-slot img { width: 100%; height: 100%; object-fit: cover; }
.hero-panel-foot {
  padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.hero-panel-foot strong { font-family: var(--font-display); font-size: 1.04rem; font-weight: 400; }
.hero-panel-foot span { font-size: 0.84rem; color: rgba(255,255,255,0.78); }

/* Pinned Architectural House Plan Split */
.plan-section { padding: 92px 0; background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.plan-split { display: grid; grid-template-columns: 0.94fr 1.06fr; gap: 40px; align-items: start; }
.floorplan-card {
  background: var(--powder); border: 1.5px solid var(--powder-border); border-radius: var(--radius-lg);
  padding: 28px;
}
.floorplan-card h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 2.7vw, 2.25rem); color: var(--cobalt-deep); margin: 10px 0 8px; font-weight: 400; }
.floorplan-card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 18px; }
.house-svg { width: 100%; height: auto; border-radius: 16px; background: #fff; border: 1px solid var(--powder-border); }

.room-cards { display: flex; flex-direction: column; gap: 16px; }
.room-card {
  background: var(--cream); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.room-card.is-active, .room-card:hover { border-color: var(--apricot); background: #fff; transform: translateX(6px); }
.room-tag { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cobalt); }
.room-card h3 { font-family: var(--font-display); font-size: 1.24rem; color: var(--cobalt-deep); margin: 6px 0 8px; font-weight: 400; }
.room-card p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* Horizontal Treatments Corridor */
.rail-section { padding: 92px 0; background: var(--cobalt-deep); color: #fff; overflow: hidden; }
.rail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.rail-head h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.3vw, 2.7rem); margin: 10px 0 0; font-weight: 400; }
.rail-head p { color: rgba(255,255,255,0.8); max-width: 44ch; margin: 0; }
.rail-viewport { overflow: hidden; padding: 8px 0 20px; }
.rail-track { display: flex; gap: 20px; will-change: transform; }
.treat-card {
  flex: 0 0 330px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius); padding: 26px; min-height: 270px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.treat-card:hover { background: rgba(255,255,255,0.13); border-color: var(--apricot); transform: translateY(-4px); }
.treat-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--apricot-soft); margin-bottom: 10px; display: inline-block; }
.treat-card h3 { font-family: var(--font-display); font-size: 1.32rem; margin: 0 0 10px; font-weight: 400; }
.treat-card p { color: rgba(255,255,255,0.82); font-size: 0.94rem; margin: 0 0 18px; }
.treat-link { color: var(--apricot-soft); text-decoration: none; font-weight: 700; font-size: 0.88rem; }

/* Hours & Clinical Roster Split */
.visiting-section { padding: 92px 0; background: var(--cream); }
.visiting-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.info-panel {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.info-panel h2 { font-family: var(--font-display); font-size: clamp(1.55rem, 2.5vw, 2.1rem); color: var(--cobalt-deep); margin: 10px 0 8px; font-weight: 400; }

/* Subpage Hero & Grids */
.page-hero { padding: 128px 0 60px; background: var(--powder); border-bottom: 1px solid var(--powder-border); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 4.1vw, 3.3rem); color: var(--cobalt-deep); margin: 14px 0 12px; line-height: 1.1; font-weight: 400; }
.page-hero p { font-size: 1.06rem; color: var(--muted); max-width: 58ch; margin: 0; }
.section-pad { padding: 78px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.info-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.section-alt .info-card { background: var(--cream); }
.info-card:hover { transform: translateY(-4px); border-color: var(--apricot); }
.info-card h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--cobalt-deep); margin: 0 0 8px; font-weight: 400; }
.info-card p { font-size: 0.94rem; color: var(--muted); margin: 0; }

.cta-banner { padding: 76px 0; background: linear-gradient(125deg, #003f7d 0%, #002852 100%); color: #fff; }
.cta-banner-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-banner h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 8px; font-weight: 400; }
.cta-banner p { margin: 0; color: rgba(255,255,255,0.82); max-width: 52ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: start; }
.form-card {
  background: var(--white); border: 1px solid var(--powder-border); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: 0 20px 44px rgba(0, 40, 82, 0.08);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--cobalt-deep); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--powder-border);
  font-family: var(--font-body); font-size: 0.98rem; color: var(--ink); background: var(--cream); min-height: 46px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--cobalt); background: #fff; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--muted); margin: 14px 0 20px; }
.consent-row input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--cobalt); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; pointer-events: none; }
.form-status { margin-top: 14px; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 0.94rem; display: none; }
.form-status.ok { display: block; background: #e6f6ec; color: #0e5a2e; border: 1px solid #96d6ad; }
.form-status.err { display: block; background: #fdecec; color: #8c1d1d; border: 1px solid #f0aaaa; }

.hours-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 0.94rem; }

/* Footer */
.site-footer { background: var(--cobalt-deep); color: rgba(255,255,255,0.85); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 38px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.footer-grid h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 400; color: var(--apricot-soft); margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 0.9rem; }
.footer-grid a { text-decoration: none; color: rgba(255,255,255,0.8); }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.68); }

.fab-call {
  position: fixed; right: 20px; bottom: 20px; z-index: 350;
  background: var(--apricot); color: var(--ink); text-decoration: none;
  border-radius: 99px; padding: 12px 18px; min-height: 48px;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.9rem;
  box-shadow: 0 12px 28px rgba(0, 40, 82, 0.28);
}

@media (max-width: 980px) {
  .hero-grid, .plan-split, .visiting-split, .contact-grid { grid-template-columns: 1fr; }
  .cards-3, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .header-cta .tel-pill { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 780px) {
  .brand-sub { display: none; }
  .header-cta .btn { display: none; }
  .plan-section { padding: 56px 0; }
  .floorplan-card { padding: 20px; }
  .house-svg { max-height: 175px; }
  .rail-track { overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
  .treat-card { flex: 0 0 82vw; scroll-snap-align: start; min-height: 245px; }
  .cards-3, .cards-2, .footer-grid { grid-template-columns: 1fr; }
  .fab-call { width: 50px; height: 50px; padding: 0; justify-content: center; right: 16px; bottom: 16px; }
  .fab-call span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
