/* Blooming Chiropractic website, glass edition (Ed, 2026-11-09: "the website should have the same beautiful aesthetic that the
   platform has"). Loaded after site.css: it brings the platform's system to the public site. A blurred warm photograph
   behind everything, frosted taupe panels with a light rim, one saffron accent, very light large numerals, pill controls,
   tick-mark details. Tokens only; values match bloomwithchiroplatform-demo/theme.css. */
:root {
  --ground: #a2958a;
  --pane: rgba(246, 241, 235, 0.42);
  --pane-2: rgba(250, 247, 243, 0.62);
  --pane-3: rgba(255, 252, 248, 0.84);
  --pane-ink: rgba(38, 33, 29, 0.72);
  --edge: rgba(255, 255, 255, 0.42);
  --edge-ink: rgba(255, 255, 255, 0.12);
  --ink-2: #3a332d;
  --tick: rgba(38, 33, 29, 0.26);
  --on-photo: #f6efe6;
  --photo-1: rgba(30, 22, 15, 0.66); --photo-2: rgba(30, 22, 15, 0.22); --photo-3: rgba(30, 22, 15, 0);
  --blur: blur(22px) saturate(1.15);
  --shadow: 0 18px 50px rgba(48, 36, 24, 0.16);
  --shadow-2: 0 6px 18px rgba(48, 36, 24, 0.10);
  --r-lg: 14px; --r-xl: 22px; --r-pane: 28px; --pill: 999px;
  --edge-gap: clamp(10px, 1.6vw, 22px);
  --mute: #5e554d;
}
html { background: var(--ground); }
body { background: var(--ground) url("img/backdrop.webp") center / cover fixed no-repeat; color: var(--ink); }
@media (max-width: 760px) { body { background-image: url("img/backdrop-sm.webp"); background-attachment: scroll; } }

/* every section is a frosted pane floating over the photograph */
.section, .page-head { margin: var(--edge-gap); border-radius: var(--r-pane); background: var(--pane); border: 1px solid var(--edge);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow-2); }
.section + .section { border-top: 1px solid var(--edge); }
.section.alt { background: var(--pane-2); border: 1px solid var(--edge); }
.section { padding: clamp(48px, 7vw, 112px) 0; }
.page-head { color: var(--ink); background: var(--pane-2); padding: clamp(40px, 6vw, 88px) 0 clamp(36px, 5vw, 72px); }
.page-head .eyebrow, .page-head .lede { color: var(--mute); }
.page-head h1 { font-size: clamp(44px, 6vw, 84px); }

/* nav: a floating glass bar, like the platform's top row */
.nav { position: sticky; top: 0; padding: var(--edge-gap) var(--edge-gap) 0; color: var(--ink); z-index: 30; }
.nav > .nav-bar { max-width: none; min-height: 64px; padding: 8px 10px 8px 18px; border-radius: var(--r-pane); background: var(--pane-2);
  border: 1px solid var(--edge); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow-2); }
.brand { gap: 10px; }
.brand img.mark { width: 52px; height: 52px; }
.brand .wm b { display: block; font: 500 15px/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase; }
.brand .wm small { display: block; font: 500 9.5px/1.2 var(--text); letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); margin-top: 4px; }
.lang { border: 1px solid var(--edge); background: var(--pane); border-radius: var(--pill); padding: 3px; }
.lang button { color: var(--mute); border-radius: var(--pill); min-height: 30px; }
.lang button[aria-pressed="true"] { color: var(--ink); background: var(--pane-3); box-shadow: var(--shadow-2); }
.lang button:not([aria-pressed="true"]):hover { color: var(--ink); }
.menu-btn { color: var(--ink); }
.nav :focus-visible { outline-color: var(--accent-text); }
.menu { margin-top: 8px; border-radius: var(--r-pane); background: var(--pane-3); border: 1px solid var(--edge); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.menu li + li { border-top: 1px solid var(--hair); }
@media (min-width: 1200px) {
  .nav-links { gap: 6px; }
  .nav-links a { color: var(--ink-2); font-size: 13.5px; padding: 8px 14px; border-radius: var(--pill); border: 1px solid transparent; transition: background .2s var(--ease); }
  .nav-links a:hover { color: var(--ink); background: var(--pane); }
  .nav-links a[aria-current="page"] { color: var(--ink); background: var(--pane-3); border-color: var(--edge); box-shadow: var(--shadow-2); }
}

/* controls */
.btn { border-radius: var(--pill); }
.link { border-bottom-color: var(--accent); border-bottom-width: 1.5px; }
.field input:not([type="radio"]), .field select, .field textarea, .choice span { background: var(--pane-3); border-color: var(--hair-2); }
.choice span { border-radius: var(--pill); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); }
.form-msg, .done { border-radius: var(--r-lg); }
.done { padding: 28px; background: var(--pane-3); border: 1px solid var(--edge); }

/* hero: the brand photograph in a rounded frame, type on the photo's quiet side */
.hero { margin: var(--edge-gap); border-radius: var(--r-pane); min-height: min(88svh, 900px); background: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--edge-ink); }
.hero-media, .hero-scrim { inset: 0; height: 100%; left: 0; }
.hero-media img { object-position: 66% 50%; animation: heroIn 1.2s var(--ease-out) both; }
.hero-scrim { background: linear-gradient(90deg, var(--photo-1) 0%, var(--photo-2) 48%, var(--photo-3) 72%), linear-gradient(0deg, var(--photo-1) 0%, var(--photo-3) 42%); }
.hero, .hero .lede, .hero h1 { color: var(--on-photo); }
.hero .eyebrow { color: rgba(246, 239, 230, 0.82); }
.hero-copy { padding-top: clamp(48px, 10vh, 120px); padding-bottom: clamp(36px, 7vh, 80px); }
.hero h1 { max-width: 14ch; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@media (min-width: 1000px) {
  .hero-media, .hero-scrim { left: 0; }
  .hero-media img { object-position: 60% 50%; }
  .hero-scrim { background: linear-gradient(90deg, var(--photo-1) 0%, var(--photo-2) 44%, var(--photo-3) 66%), linear-gradient(0deg, var(--photo-2) 0%, var(--photo-3) 34%); }
}
@media (max-width: 999px) {
  .hero { justify-content: flex-end; min-height: min(92svh, 980px); }
  .hero-media img { object-position: 82% 40%; }
  .hero-scrim { background: linear-gradient(0deg, var(--photo-1) 0%, var(--photo-1) 34%, var(--photo-2) 62%, var(--photo-3) 82%); }
}
@media (max-width: 699px) { .hero-media img { object-position: 92% 30%; } .hero-copy { padding-bottom: 28px; } }

/* facts row: the platform's KPI cells, light numerals over tick marks */
.facts-row { margin: var(--edge-gap); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--r-pane); background: var(--pane);
  border: 1px solid var(--edge); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); overflow: hidden; }
.fact { padding: 22px 22px 18px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: flex; flex-direction: column; min-height: 168px; }
.fact:nth-child(2n) { border-right: 0; }
.fact .v { font: 200 clamp(44px, 5vw, 64px)/1 var(--text); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.fact .v small { font-size: 0.4em; font-weight: 400; color: var(--mute); margin-left: 3px; letter-spacing: 0; }
.fact .v sup { font-size: 0.42em; font-weight: 300; vertical-align: 0.9em; margin-right: 2px; }
.fact .t { margin-top: auto; height: 34px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 1.6px, transparent 1.6px 5px) left / var(--fill, 60%) 100% no-repeat,
              repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 5px) bottom / 100% 55% no-repeat; }
.fact .l { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
@media (min-width: 900px) { .facts-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fact { border-bottom: 0; } .fact:nth-child(2n) { border-right: 1px solid var(--hair); } .fact:last-child { border-right: 0; } }

/* the price numeral: a light numeral like the platform's, saffron currency mark */
.price { font-family: var(--text); font-weight: 200; color: var(--ink); letter-spacing: -0.05em; }
.price small { color: var(--accent-text); font-weight: 300; }
.included li::before, .svc-list a::before, .steps li::before, .service .n { color: var(--accent-text); }

/* media: rounded like the platform's panels */
.doc img, .svc-photo img, .portrait, .cbp img, .service img, .cond-photo img { border-radius: var(--r-xl); }
.portrait { background: var(--pane); }

/* closing band and footer: darker glass, same rim */
.close { background: var(--pane-ink); color: var(--on-photo); border-color: var(--edge-ink); }
.close h2, .close .lede { color: var(--on-photo); }
.foot { margin: var(--edge-gap); border-radius: var(--r-pane); background: var(--pane-ink); border: 1px solid var(--edge-ink);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); padding: 48px 0 32px; }
.foot .brand-foot { display: flex; gap: 10px; align-items: center; color: var(--on-photo); }
.foot .brand-foot img { width: 96px; height: 96px; background: rgba(250,246,240,.92); border-radius: 50%; padding: 4px; }

.section .wrap, .page-head .wrap, .foot .wrap { padding-inline: clamp(20px, 4vw, 64px); }
@media (max-width: 760px) {
  :root { --edge-gap: 8px; }
  .nav > .nav-bar { min-height: 56px; padding: 6px 8px 6px 14px; }
  .brand .wm small { display: none; }
  .fact { min-height: 140px; padding: 18px 16px 14px; }
}
@media (prefers-reduced-motion: reduce) { .hero-media img { animation: none; } }

/* Homepage, fuller edition (Ed, 2026-11-09: "website looks kind of empty"). Every section now uses the full width:
   statement beside a photograph, doctors beside their heading, services as a photo grid, all 22 conditions as tags. */
.split { display: grid; gap: 32px; }
.split-photo { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-2); }
.split-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 45%; border-radius: 0; }
.split-photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: var(--pill); font-size: 13.5px; font-weight: 500;
  color: var(--ink); background: var(--pane-3); border: 1px solid var(--edge); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }

.docs-split .docs { margin-top: 36px; }

.row-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.row-head h2 { max-width: 20ch; }
.row-head .link { margin-bottom: 6px; }

.svc-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.svc-grid a { position: relative; display: block; border-radius: var(--r-xl); overflow: hidden; background: var(--pane-3); border: 1px solid var(--edge); box-shadow: var(--shadow-2); isolation: isolate; }
.svc-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s var(--ease-out); }
.svc-grid img.contain { object-fit: contain; padding: 14% 8% 30%; background: var(--pane-3); }
.svc-grid a::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--photo-1) 0%, var(--photo-2) 34%, var(--photo-3) 58%); }
.svc-grid .cap { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 4px;
  color: var(--on-photo); font: 500 clamp(17px, 1.7vw, 22px)/1.15 var(--display); }
.svc-grid .cap .n { font: 600 11px/1 var(--text); letter-spacing: 0.14em; color: var(--accent-lt); }
.svc-grid a:hover img { transform: scale(1.04); }
.svc-grid a:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

.cond-home { display: grid; gap: 32px; }
.cond-home-photo { display: none; }
.cgroups { margin-top: 32px; display: grid; gap: 14px; }
.cgroup { padding: 20px; border-radius: var(--r-xl); background: var(--pane-3); border: 1px solid var(--edge); }
.cgroup h3 { font-size: clamp(22px, 2vw, 28px); }
.chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: var(--pill); font-size: 14px; line-height: 1.3; color: var(--ink-2); background: var(--pane-2); border: 1px solid var(--hair-2); }

@media (min-width: 700px) {
  .svc-grid { gap: 16px; }
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
  .split-photo img { aspect-ratio: 5 / 6; }
  .statement p.display { font-size: clamp(30px, 3.4vw, 50px); }
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* Bloom has 6 services: 3 x 2, no empty slots */
  .cond-home { grid-template-columns: 0.42fr 1.58fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
  .cond-home-photo { display: block; position: sticky; top: 110px; border-radius: var(--r-xl); overflow: hidden; background: var(--pane-3); }
  .cond-home-photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 0; }
  .cgroup { display: grid; grid-template-columns: 190px 1fr; gap: 20px; align-items: start; padding: 22px 24px; }
  .cgroup .chips { margin-top: 0; }
}
@media (min-width: 1000px) {
  .docs-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 5vw, 96px); align-items: center; }
  .docs-split .docs { margin-top: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .svc-grid a:hover img { transform: none; } }
@media (max-width: 699px) { .split-photo figcaption { font-size: 12.5px; padding: 7px 12px; white-space: nowrap; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; } }
