/* Cedarline Wellness Studio — fictional demo by Prospera */
:root {
  --bg: #f7f3ec;
  --surface: #ffffff;
  --sand: #ede4d6;
  --ink: #1f2a26;
  --muted: #56615b;
  --sage: #6f8b78;
  --sage-soft: #dfe7e0;
  --forest: #2f4a3e;
  --forest-deep: #22372e;
  --clay: #a35a3c;
  --line: #e2d9cb;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(31, 42, 38, 0.18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--sand { background: var(--sand); }
.section--forest { background: var(--forest); color: #f3efe7; }
.section--forest h2, .section--forest h3 { color: #fff; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 0.9rem;
}
.section--forest .eyebrow { color: #e8c3a8; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Demo banner */
.demo-banner {
  background: var(--ink); color: #e9e4da;
  font-size: 0.85rem; line-height: 1.4; text-align: center;
  padding: 8px var(--gutter);
}
.demo-banner a { color: #f1c9ac; font-weight: 600; white-space: nowrap; }
.demo-banner a:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--forest); color: #fff; }
.btn--primary:hover { background: var(--forest-deep); color: #fff; }
.btn--light { background: #fff; color: var(--forest); }
.btn--light:hover { background: var(--sand); color: var(--forest-deep); }
.btn--ghost { border-color: currentColor; color: var(--forest); background: transparent; }
.btn--ghost:hover { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: #fff; color: var(--forest); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--clay); }
.header-phone { font-weight: 600; text-decoration: none; color: var(--forest); white-space: nowrap; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .header-phone { padding: 16px 0 12px; }
}

/* Hero */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--forest); }
.hero .lede { margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 0.95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--sage); flex: none; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.hero-card {
  position: absolute; left: -24px; bottom: 28px;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; max-width: 260px;
}
.hero-card strong { display: block; font-size: 0.95rem; }
.hero-card span { font-size: 0.85rem; color: var(--muted); line-height: 1.35; display: block; }
.hero-card .dot { width: 10px; height: 10px; border-radius: 50%; background: #3f9b62; flex: none; box-shadow: 0 0 0 4px #d8eedf; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 520px; }
  .hero-media img { aspect-ratio: 5 / 4; border-radius: var(--radius); }
  .hero-card { left: 12px; bottom: 12px; }
}

/* Trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 24px 20px; display: flex; gap: 14px; align-items: flex-start; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item svg { width: 28px; height: 28px; color: var(--sage); flex: none; margin-top: 2px; }
.trust-item strong { display: block; font-size: 0.98rem; }
.trust-item span { display: block; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .trust-item { padding: 18px 0; }
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.service-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.service-body p { color: var(--muted); font-size: 0.97rem; }
.price-list { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.price-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.price-list li span:last-child { font-weight: 600; white-space: nowrap; }
.service-body .btn { margin-top: auto; align-self: flex-start; }
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  background: var(--sage-soft); color: var(--forest); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; align-self: flex-start;
}
.services-foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.services-foot p { margin: 0; color: var(--muted); }
@media (max-width: 960px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* About / philosophy */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.1rem;
}
.steps strong { display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-media img { aspect-ratio: 4 / 3; }
}

/* Insurance band */
.billing { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.billing ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.billing li { display: flex; gap: 12px; align-items: flex-start; }
.billing li svg { width: 22px; height: 22px; flex: none; color: #e8c3a8; margin-top: 3px; }
.billing-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 28px; }
.billing-card p { color: #dcd6cb; }
@media (max-width: 860px) { .billing { grid-template-columns: 1fr; } }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: 16px;
}
.avatar--1 { background: linear-gradient(135deg, #6f8b78, #2f4a3e); }
.avatar--2 { background: linear-gradient(135deg, #c98a6b, #a35a3c); }
.avatar--3 { background: linear-gradient(135deg, #8f9e8a, #4f6355); }
.avatar--4 { background: linear-gradient(135deg, #b9a07f, #7d6547); }
.team-card h3 { margin-bottom: 2px; }
.team-role { color: var(--clay); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }
.team-card p { color: var(--muted); font-size: 0.95rem; }
.team-card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.team-card .chips li { font-size: 0.78rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.sample-note { font-size: 0.88rem; color: var(--muted); margin-top: 24px; font-style: italic; }
@media (max-width: 1000px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { background: var(--surface); border-radius: var(--radius); padding: 28px; margin: 0; border: 1px solid var(--line); display: flex; flex-direction: column; }
.stars { color: #c08a2e; letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 12px; }
.review blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; }
.review figcaption { margin-top: auto; font-size: 0.92rem; color: var(--muted); }
.review figcaption strong { color: var(--ink); }
.rating-summary { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
}

/* Visit */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.visit-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); }
.hours { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-weight: 600; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--clay); }
.map-art {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 20px;
  background: var(--sage-soft);
}
.map-art svg { width: 100%; height: 100%; display: block; }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; color: var(--sage); flex: none; margin-top: 4px; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* Booking form */
.book-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.book-aside ul { padding-left: 1.1em; color: #dcd6cb; }
.book-aside li { margin-bottom: 8px; }
.book-aside a { color: #fff; }
.form-card { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.4); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: 0.93rem; }
.field .hint { font-size: 0.83rem; color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px var(--sage-soft); background: #fff; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.radio-row label { position: relative; font-weight: 500; }
.radio-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-row span {
  display: inline-block; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px;
  cursor: pointer; font-size: 0.93rem; background: var(--bg);
}
.radio-row input:checked + span { background: var(--forest); border-color: var(--forest); color: #fff; }
.radio-row input:focus-visible + span { outline: 3px solid var(--clay); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--forest); }
.form-foot { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.form-foot small { color: var(--muted); max-width: 36ch; }
.hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) { .book-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--forest-deep); color: #cfd6d1; padding: 56px 0 110px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; font-family: var(--sans); font-weight: 600; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-name small { color: #aab5ae; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: 0.85rem; color: #aab5ae; }
.footer-legal p { margin: 0 0 6px; }
@media (min-width: 761px) { .site-footer { padding-bottom: 40px; } }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Sticky mobile booking bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(247, 243, 236, 0.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mobile-bar .btn { flex: 1; min-height: 50px; }
@media (max-width: 760px) { .mobile-bar { display: flex; } }

/* Services page */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); }
.menu-nav { position: sticky; top: 72px; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.menu-nav ul { list-style: none; margin: 0; padding: 12px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.menu-nav ul::-webkit-scrollbar { display: none; }
.menu-nav a { display: inline-block; white-space: nowrap; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-size: 0.93rem; font-weight: 500; }
.menu-nav a:hover { border-color: var(--forest); color: var(--forest); }
.menu-section { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.menu-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 64px); }
.menu-head img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.menu-items { list-style: none; padding: 0; margin: 0; }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.menu-item:first-child { padding-top: 0; }
.menu-item h3 { font-size: 1.15rem; margin: 0; }
.menu-item p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.95rem; }
.menu-price { text-align: right; white-space: nowrap; }
.menu-price strong { display: block; font-size: 1.05rem; }
.menu-price span { font-size: 0.85rem; color: var(--muted); }
.menu-item .book-link { grid-column: 1 / -1; font-weight: 600; font-size: 0.92rem; }
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.policy-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.policy-grid p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 860px) {
  .menu-head { grid-template-columns: 1fr; }
  .menu-head img { aspect-ratio: 16 / 9; }
  .policy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) { .menu-nav { top: 72px; } }
