/* Serenity Family Chiropractic — boutique site styles.
   Layout idea: everything centered on one quiet axis, photos framed as arches,
   deep plum bands for moments of emphasis. Colors and fonts live in :root. */

:root {
  --white: #ffffff;
  --blush: #f7eef4;
  --petal: #ecd4e5;
  --orchid: #d29bc3;
  --plum: #541a44;
  --plum-deep: #3c1131;
  --ink: #2e2330;
  --muted: #74636f;
  --line: #ead9e4;

  --display: "Gilda Display", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Jost", "Avenir Next", "Segoe UI", sans-serif;

  --wrap: 1120px;
  --narrow: 760px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.08rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: var(--plum-deep); }
:focus-visible { outline: 2px solid var(--orchid); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 500; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 0.55em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; max-width: 62ch; }

.wrap { width: min(100% - 2 * max(16px, env(safe-area-inset-left, 0px)), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 32px, var(--narrow)); margin-inline: auto; }
.center { text-align: center; }
.center p, .center .lede { margin-inline: auto; }
.lede { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 40; background: var(--plum); color: var(--white); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; color: var(--white); }

/* Header: the logo is the centerpiece */
.site-header .logo { display: block; width: min(100%, 400px); }
.site-header.compact .logo { width: min(100%, 280px); }
.site-header .wrap { display: flex; justify-content: center; padding-block: 34px 22px; }

/* Menu bar that stays with you as you scroll */
.navbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.navbar.stuck { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(84, 26, 68, 0.6); }
.navbar .wrap { display: flex; align-items: center; justify-content: center; min-height: 66px; position: relative; }
.mini-logo { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.mini-logo img { height: 44px; width: auto; }
.navbar.stuck .mini-logo { opacity: 1; pointer-events: auto; }
.nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 28px; padding-block: 10px; font-size: 0.98rem; font-weight: 400; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 4px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--plum); box-shadow: inset 0 -1px 0 var(--plum); }
.nav .btn, .nav .btn:hover { box-shadow: none; padding: 9px 22px; color: var(--white); }

/* Buttons */
.btn { display: inline-block; text-decoration: none; padding: 14px 30px; border-radius: 999px; font-weight: 400; letter-spacing: 0.03em; font-size: 1rem; line-height: 1.2; border: 1px solid var(--plum); }
.btn-solid { background: var(--plum); color: var(--white); }
.btn-solid:hover { background: var(--plum-deep); border-color: var(--plum-deep); color: var(--white); }
.btn-outline { background: transparent; color: var(--plum); }
.btn-outline:hover { background: var(--blush); color: var(--plum); }
.btn-text { padding: 14px 8px; border: 0; color: var(--plum); text-decoration: underline; text-underline-offset: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.center .actions { justify-content: center; }

/* Arched photo frames */
.arch {
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(170deg, var(--petal), #dcb6d0);
  aspect-ratio: 3 / 4; width: min(100%, 280px); margin-inline: auto;
  display: grid; place-items: end center; padding: 22px;
  color: var(--plum); font-size: 0.9rem; text-align: center; overflow: hidden;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch.has-photo { padding: 0; display: block; }
.arch-feature { width: min(100% - 28px, 380px); outline: 1px solid var(--orchid); outline-offset: 12px; margin-block: 14px; }

/* Sections */
section { padding-block: clamp(56px, 8vw, 100px); }
.band-blush { background: var(--blush); }
.band-plum { background: var(--plum); color: #f3e3ee; }
.band-plum h2, .band-plum h3 { color: var(--white); }
.band-plum .lede, .band-plum .muted { color: #e2c7d9; }
.section-head { margin-bottom: 44px; }
.ornament { display: block; width: 120px; height: 18px; margin: 0 auto 22px; }

.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(36px, 6vw, 56px); }
.hero h1 { max-width: 26ch; margin-inline: auto; }
.page-hero { padding-block: clamp(48px, 7vw, 84px); }

/* Three-across feature with arches */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.trio > div { text-align: center; min-width: 0; }
.trio .arch { margin-bottom: 22px; }
.trio p { color: var(--muted); font-size: 1rem; margin-inline: auto; }
.trio a { font-weight: 400; }

/* Two columns */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.top { align-items: start; }
.split > * { min-width: 0; }

/* Reviews on plum */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 36px; }
.reviews blockquote { margin: 0; font-family: var(--display); font-size: 1.25rem; line-height: 1.45; color: var(--white); }
.reviews cite { display: block; margin-top: 14px; font-family: var(--body); font-style: normal; font-size: 0.9rem; color: var(--orchid); }

/* Price rows */
.price-list { list-style: none; padding: 0; margin: 0 0 20px; }
.price-list li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.price-list li:first-child { border-top: 1px solid var(--line); }
.price-list span:last-child { font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Service menu, spa-style */
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list li { padding: 26px 0; border-bottom: 1px solid var(--line); }
.menu-list li:first-child { border-top: 1px solid var(--line); }
.menu-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; }
.menu-row h3 { margin: 0; }
.menu-row .cost { font-weight: 400; color: var(--plum); font-variant-numeric: tabular-nums; }
.menu-list p { margin: 8px 0 0; color: var(--muted); }

/* Visit table (adult vs kids) */
.table-scroll { overflow-x: auto; }
.visit-table { width: 100%; border-collapse: collapse; }
.visit-table th, .visit-table td { padding: 18px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.visit-table thead th { font-weight: 400; font-size: 0.92rem; color: var(--muted); border-bottom-color: var(--orchid); }
.visit-table tbody th { font-weight: 400; }
.visit-table tbody th span { display: block; font-weight: 300; font-size: 0.95rem; color: var(--muted); margin-top: 4px; }
.visit-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.visit-table td.num { font-family: var(--display); font-size: 1.3rem; color: var(--plum); }

/* Arched hours card */
.hours-card { background: var(--blush); border-radius: 220px 220px 12px 12px; padding: clamp(64px, 9vw, 96px) clamp(24px, 4vw, 48px) 36px; text-align: center; }
.band-blush .hours-card { background: var(--white); }
.hours-card table { width: 100%; border-collapse: collapse; margin-top: 14px; text-align: left; }
.hours-card th, .hours-card td { padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 300; }
.hours-card td { text-align: right; font-weight: 400; font-variant-numeric: tabular-nums; }
.hours-card .note { font-size: 0.95rem; color: var(--muted); margin: 16px auto 0; }

/* Ordered steps (a real sequence) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.steps li { counter-increment: step; text-align: center; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; border: 1px solid var(--orchid); font-family: var(--display); font-size: 1.5rem; color: var(--plum); }
.steps p { color: var(--muted); margin-inline: auto; }

/* Quiet callout */
.callout { border: 1px solid var(--line); border-radius: 16px; padding: 26px 30px; margin-top: 40px; background: var(--white); }
.callout p:last-child { margin-bottom: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-family: var(--display); font-size: 1.3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--body); font-size: 1.5rem; color: var(--plum); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* Lists with orchid markers */
.soft-list { list-style: none; padding: 0; margin: 0 0 1em; }
.soft-list li { padding: 8px 0 8px 22px; position: relative; }
.soft-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--plum); }

/* Contact rows */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list small { display: block; font-size: 0.88rem; color: var(--muted); letter-spacing: 0.02em; }

/* Closing band */
.closing { background: var(--plum); color: #f3e3ee; text-align: center; }
.closing h2 { color: var(--white); }
.closing p { color: #e2c7d9; margin-inline: auto; }
.closing .btn-solid { background: var(--white); color: var(--plum); border-color: var(--white); }
.closing .btn-solid:hover { background: var(--blush); color: var(--plum-deep); }
.closing .btn-outline { color: var(--white); border-color: var(--orchid); }
.closing .btn-outline:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }

/* Footer */
.site-footer { background: var(--plum-deep); color: #d9c3d2; padding-block: 56px 36px; font-size: 0.97rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid > * { min-width: 0; }
.site-footer h2 { color: var(--white); font-size: 1.25rem; margin-bottom: 10px; }
.site-footer p { margin: 0 0 0.45em; }
.fine { margin-top: 40px; padding-top: 22px; border-top: 1px solid #5a2a4d; font-size: 0.86rem; color: #b9a2b2; }
.fine p { max-width: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .navbar, .mini-logo { transition: none; }
}
@media (max-width: 1060px) { .mini-logo { display: none; } }
@media (max-width: 860px) {
  .split, .footer-grid { grid-template-columns: 1fr; }
  .trio, .reviews, .steps { grid-template-columns: 1fr; }
  .trio { gap: 48px; }
}
@media (max-width: 600px) {
  body { font-size: 1.04rem; }
  .site-header .logo { width: min(100%, 290px); }
  .site-header.compact .logo { width: min(100%, 230px); }
  .navbar .wrap { justify-content: flex-start; }
  .nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 22px; scrollbar-width: none; width: 100%; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; flex: none; }
  .nav .btn { order: -1; }
  .visit-table th, .visit-table td { padding: 14px 8px; }
}
