/* Ardent Clinics. One idea: settle. Flat 2D water world, white pebble, sand. */

:root {
  /* colour */
  --canvas: #E7F0EC;
  --panel: #FDFEFC;
  --deep: #082A31;
  --deep-2: #0E4651;
  --sea: #86CFC3;
  --sand: #F0E3C6;
  --sand-line: #CDBB92;
  --accent: #EC8B3C;        /* the orange from the Ardent logo */
  --accent-hover: #F3A05A;
  --text: #08232A;
  --text-2: #344C50;
  --on-deep: #FAFDFB;
  --on-deep-2: #D3E6E1;
  --border: #AFC6BF;
  --border-strong: #5F817D;
  --error: #A3341F;
  --ring: #082A31;

  /* type */
  --display: "Hedvig Letters Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-lg: 1.25rem;
  --t-h3: 1.375rem;
  --t-h2: clamp(1.875rem, 1.3rem + 2.4vw, 2.875rem);
  --t-h1: clamp(2.5rem, 1.5rem + 4.6vw, 4.75rem);

  /* space, radius, depth, motion */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --section: clamp(64px, 9vw, 120px);
  --r-sm: 10px; --r-md: 16px; --r-pill: 999px;
  --lift: 0 2px 4px rgba(15, 58, 66, .08), 0 10px 24px rgba(15, 58, 66, .10);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden; overflow-x: clip;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  caret-color: var(--deep);
}
::selection { background: var(--sea); color: var(--deep); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.3; }
p { text-wrap: pretty; }
a { color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 50; padding: 12px 16px; background: var(--panel); color: var(--text); border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

/* one button pair */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 12px 24px;
  background: var(--accent); color: var(--text);
  border: 2px solid var(--accent); border-radius: var(--r-pill);
  font: 600 var(--t-base)/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease-soft), border-color .18s var(--ease-soft), transform .12s var(--ease-soft);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--quiet { background: transparent; color: var(--on-deep); border-color: var(--on-deep); }
.btn--quiet:hover { background: rgba(238, 244, 241, .1); border-color: var(--on-deep); }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: var(--t-sm); }

/* one link style */
.link { display: inline-block; padding-block: 10px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--sea); transition: text-decoration-color .18s var(--ease-soft); }
.link:hover { text-decoration-color: currentColor; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: var(--deep); color: var(--on-deep); --ring: var(--accent); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 44px; text-decoration: none; }
.brand__mark { width: 30px; height: 22px; fill: var(--panel); }
.brand__name { font-family: var(--display); font-size: 1.375rem; line-height: 1; white-space: nowrap; }
.top__nav { display: none; gap: var(--s-6); font-size: var(--t-sm); }
.top__nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--on-deep-2); transition: color .18s var(--ease-soft); }
.top__nav a:hover { color: var(--on-deep); }
.top__actions { display: flex; align-items: center; gap: var(--s-4); }
.top__call { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font-weight: 600; font-size: var(--t-sm); text-decoration: none; white-space: nowrap; }
.top .btn--small { display: none; }

/* hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--deep-2) 0%, var(--deep) 70%);
  color: var(--on-deep); --ring: var(--accent);
  padding-block: clamp(40px, 6vw, 80px) 200px;
}
.hero__grid { position: relative; z-index: 2; display: grid; gap: var(--s-7); }
.hero h1 { max-width: 13ch; color: #FFFFFF; }
.hero__lede { margin-top: var(--s-5); max-width: 36ch; font-size: var(--t-lg); line-height: 1.5; color: var(--on-deep-2); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__meta { margin-top: var(--s-6); display: grid; gap: var(--s-2); font-size: var(--t-sm); font-weight: 600; color: var(--on-deep); }
.hero__meta li { display: flex; align-items: center; gap: var(--s-3); }
.hero__meta .icon { color: var(--sea); }

.hero__photo { position: relative; max-width: 560px; }
.hero__frame { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 28px; background: var(--deep-2); box-shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 24px 48px rgba(0, 0, 0, .3); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__badge { position: absolute; left: 12px; bottom: 12px; display: grid; gap: var(--s-1); padding: 12px 16px; background: var(--panel); color: var(--text); border-radius: var(--r-md); box-shadow: var(--lift); font-size: var(--t-sm); line-height: 1.35; }
.hero__badge strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.375rem; line-height: 1.15; }
.stars { width: 100px; height: 20px; fill: var(--accent); }

.hero__art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__shafts { position: absolute; top: 0; right: 0; width: min(70%, 760px); height: 100%; fill: var(--sea); opacity: .06; }
.hero__sand { position: absolute; left: 0; bottom: -1px; width: 100%; height: 112px; fill: var(--sand); }
.hero__drop { --pw: clamp(120px, 15vw, 180px); position: absolute; top: 0; bottom: 0; right: clamp(8px, 4vw, 40px); width: clamp(190px, 24vw, 300px); }
.hero__ripples { position: absolute; top: 14px; left: 0; width: 100%; fill: none; stroke: var(--sea); stroke-width: 1.5; }
.hero__ripples .r { opacity: .4; transform-box: fill-box; transform-origin: center; }
.hero__bubbles { position: absolute; left: 50%; margin-left: -45px; bottom: 170px; width: 90px; fill: none; stroke: var(--on-deep-2); stroke-width: 1.5; }
.hero__bubbles .b { opacity: 0; }
.hero__pebble { position: absolute; left: 50%; margin-left: calc(var(--pw) / -2); bottom: calc(50px - var(--pw) * 0.11); width: var(--pw); }
.pebble__body { fill: var(--panel); }
.pebble__shade { fill: #DDE8E3; }
.pebble__shadow { fill: var(--sand-line); }
.puff { fill: var(--sand); opacity: 0; transform-box: fill-box; transform-origin: center; }

/* the one load moment: the pebble sinks and everything comes to rest */
@media (prefers-reduced-motion: no-preference) {
  .hero__pebble { animation: sink 2.6s var(--ease-out) .25s both; }
  .pebble__shadow { animation: shadow-in 2.6s var(--ease-out) .25s both; transform-box: fill-box; transform-origin: center; }
  .hero__ripples .r1 { animation: ripple 2.4s var(--ease-out) .2s both; }
  .hero__ripples .r2 { animation: ripple 2.8s var(--ease-out) .45s both; }
  .hero__ripples .r3 { animation: ripple 3.2s var(--ease-out) .7s both; }
  .hero__bubbles .b1 { animation: bubble 2.6s var(--ease-soft) .9s both; }
  .hero__bubbles .b2 { animation: bubble 3s var(--ease-soft) 1.3s both; }
  .hero__bubbles .b3 { animation: bubble 2.8s var(--ease-soft) 1.7s both; }
  .hero__bubbles .b4 { animation: bubble 3.2s var(--ease-soft) 2.1s both; }
  .puff.p1 { animation: puff 1.1s var(--ease-out) 2.55s both; }
  .puff.p2 { animation: puff 1.1s var(--ease-out) 2.65s both; }
}
@keyframes sink {
  0% { transform: translateY(-460px) rotate(-18deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes shadow-in { 0%, 55% { opacity: 0; transform: scaleX(.4); } 100% { opacity: 1; transform: none; } }
@keyframes ripple { 0% { transform: scale(.3); opacity: .85; } 100% { transform: none; opacity: .32; } }
@keyframes bubble { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .7; } 100% { transform: translateY(-200px); opacity: 0; } }
@keyframes puff { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.8) translateY(-6px); opacity: 0; } }

/* facts, sitting on the sand */
.facts { background: var(--sand); padding-block: var(--s-5) var(--s-7); }
.facts__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-5); }
.facts dt { font-family: var(--display); font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); line-height: 1.2; }
.facts dd { margin-top: var(--s-1); font-size: var(--t-sm); color: var(--text-2); }

/* reviews */
.reviews { padding-block: var(--section); }
.reviews__grid { display: grid; gap: var(--s-7); }
.quote blockquote { font-family: var(--display); line-height: 1.2; text-wrap: balance; }
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after { content: "\201D"; }
.quote figcaption { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--text-2); }
.quote--big { margin-top: var(--s-7); }
.quote--big blockquote { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.75rem); letter-spacing: -0.015em; color: var(--deep-2); }
.reviews__side { display: grid; gap: var(--s-5); align-content: end; justify-items: start; }
.reviews__side .quote blockquote { font-size: 1.5rem; }
.reviews__side p { max-width: 46ch; color: var(--text-2); }

/* treatments */
.treatments { background: var(--panel); padding-block: var(--section); }
.section-head { display: grid; gap: var(--s-4); max-width: 720px; }
.section-head p { font-size: var(--t-lg); color: var(--text-2); max-width: 44ch; }
.rows { margin-top: var(--s-7); border-top: 1px solid var(--border); }
.row { display: grid; gap: var(--s-3); padding-block: var(--s-5); border-bottom: 1px solid var(--border); }
.row h3 { font-family: var(--display); font-weight: 400; font-size: 1.625rem; line-height: 1.2; }
.row ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-2); }
.row li { padding: 7px 16px; background: var(--canvas); border: 1px solid var(--border); border-radius: var(--r-pill); font-size: var(--t-sm); line-height: 1.4; }
.treatments__ask { margin-top: var(--s-6); color: var(--text-2); }
.treatments__ask .link { color: var(--text); }

/* first visit, the hold-to-settle moment */
.visit { background: var(--deep); color: var(--on-deep); padding-block: var(--section); --ring: var(--accent); }
.visit__grid { display: grid; gap: var(--s-7); }
.visit__lead > p { margin-top: var(--s-4); max-width: 36ch; font-size: var(--t-lg); color: var(--on-deep-2); }
.settle { --p: 0; margin-top: var(--s-6); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--s-2) var(--s-5); }
.settle__btn {
  position: relative; grid-row: span 2; width: 112px; height: 112px; padding: 0;
  display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 50%; color: inherit; cursor: pointer;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.settle__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 3; }
.settle__track { stroke: rgba(185, 214, 208, .35); }
.settle__fill { stroke: var(--sea); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: calc(339.3 * (1 - var(--p))); }
.settle__pebble { width: 56px; height: 42px; fill: var(--panel); transform: translateY(calc(var(--p) * 10px - 5px)) rotate(calc((1 - var(--p)) * -12deg)); transition: transform .2s var(--ease-soft); }
.settle__btn:hover .settle__pebble { transform: translateY(calc(var(--p) * 10px - 3px)) rotate(calc((1 - var(--p)) * -8deg)); }
.settle__hint { align-self: end; font-weight: 600; }
.settle__status { align-self: start; min-height: 1.6em; font-size: var(--t-sm); color: var(--on-deep-2); }

.steps { counter-reset: step; display: grid; gap: var(--s-5); }
.steps li { counter-increment: step; position: relative; padding-left: 60px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0; width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 2px solid var(--on-deep-2); border-radius: 50%;
  font-weight: 600; font-size: var(--t-sm); color: var(--on-deep);
  transition: background-color .35s var(--ease-soft), color .35s var(--ease-soft), border-color .35s var(--ease-soft);
}
.steps li.is-settled::before { background: var(--panel); border-color: var(--panel); color: var(--deep); }
.steps li + li::after { content: ""; position: absolute; left: 19px; top: calc(-1 * var(--s-5) + 4px); width: 2px; height: calc(var(--s-5) - 8px); background: rgba(185, 214, 208, .35); }
.steps h3 { padding-top: 5px; }
.steps p { margin-top: var(--s-2); max-width: 46ch; color: var(--on-deep-2); }

/* photos: one frame style everywhere */
.shot { display: grid; gap: var(--s-3); }
.shot__frame { overflow: hidden; border-radius: var(--r-md); background: var(--border); }
.shot__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.shot:hover .shot__frame img { transform: scale(1.03); }
.shot figcaption { font-size: var(--t-sm); color: var(--text-2); }

/* doctors */
.doctors { padding-block: var(--section); }
.doctors__grid { display: grid; gap: var(--s-6); }
.doctors__list { margin-top: var(--s-6); display: grid; gap: var(--s-5); }
.doctors__list li { display: grid; gap: var(--s-1); padding-top: var(--s-4); border-top: 2px solid var(--deep); }
.doctors__name { font-family: var(--display); font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.15; }
.doctors__role { font-weight: 600; }
.doctors__more { color: var(--text-2); }
.doctors__photo .shot__frame { aspect-ratio: 10 / 7; }

/* clinic */
.clinic { background: var(--deep); color: var(--on-deep); padding-block: var(--section); --ring: var(--accent); }
.clinic .section-head p { color: var(--on-deep-2); }
.clinic__grid { margin-top: var(--s-7); display: grid; gap: var(--s-4); }
.clinic__grid .shot__frame { aspect-ratio: 4 / 3; background: var(--deep-2); }

/* questions */
.questions { background: var(--panel); padding-block: var(--section); }
.questions__grid { display: grid; gap: var(--s-6); }
.questions__photo { margin-top: var(--s-6); max-width: 420px; }
.questions__photo .shot__frame { aspect-ratio: 4 / 3; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 64px; padding-block: var(--s-4); font-size: var(--t-lg); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px; border-right: 2px solid var(--deep); border-bottom: 2px solid var(--deep); transform: translateY(-3px) rotate(45deg); transition: transform .2s var(--ease-soft); }
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq summary:hover { color: var(--deep-2); }
.faq details p { padding-bottom: var(--s-5); max-width: 60ch; color: var(--text-2); }

/* book */
.book { background: var(--sand); padding-block: var(--section); }
.book__grid { display: grid; gap: var(--s-7); }
.book__form > p { margin-top: var(--s-4); max-width: 46ch; color: var(--text-2); }
form { margin-top: var(--s-6); display: grid; gap: var(--s-5); max-width: 480px; }
.field { display: grid; gap: var(--s-2); }
label { font-weight: 600; font-size: var(--t-sm); }
input, select {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: var(--panel); color: var(--text);
  border: 2px solid var(--border-strong); border-radius: var(--r-sm);
  font: 400 var(--t-base)/1.3 var(--body);
  transition: border-color .18s var(--ease-soft);
}
input:hover, select:hover { border-color: var(--deep); }
input[aria-invalid="true"] { border-color: var(--error); }
.field__err { font-size: var(--t-sm); color: var(--error); font-weight: 600; }
form .btn { justify-self: start; }
.form__status { min-height: 1.6em; font-size: var(--t-sm); font-weight: 600; }
.book__info { align-self: start; padding: var(--s-6); background: var(--panel); border-radius: var(--r-md); box-shadow: var(--lift); }
.book__front { margin-bottom: var(--s-5); }
.book__front .shot__frame { aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
.book__info h3 { font-family: var(--display); font-weight: 400; font-size: 1.75rem; line-height: 1.15; }
.book__sub { color: var(--text-2); }
.info { margin-block: var(--s-5); display: grid; gap: var(--s-4); }
.info li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); align-items: start; }
.info .icon { margin-top: 4px; color: var(--deep-2); }
.info a { display: inline-block; padding-block: 10px; margin-block: -10px; font-weight: 600; }

/* footer */
.foot { background: var(--deep); color: var(--on-deep-2); padding-block: var(--s-7) calc(var(--s-7) + 76px); font-size: var(--t-sm); --ring: var(--accent); }
.foot__row { display: grid; gap: var(--s-5); }
.foot__name { font-family: var(--display); font-size: 1.25rem; color: var(--on-deep); }
.foot__tag { margin-block: var(--s-1) var(--s-3); color: var(--sea); }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-deep); text-underline-offset: 4px; }

/* sticky phone bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: auto 1fr; gap: var(--s-2); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--deep); border-top: 1px solid rgba(185, 214, 208, .25); --ring: var(--accent); }
.bar a { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 52px; padding-inline: 20px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none; white-space: nowrap; }
.bar__call { color: var(--on-deep); border: 2px solid var(--on-deep-2); }
.bar__wa { background: var(--accent); color: var(--text); }
.bar a:active { transform: translateY(1px); }

/* from tablets up */
@media (min-width: 760px) {
  .bar { display: none; }
  .foot { padding-bottom: var(--s-7); }
  .top .btn--small { display: inline-flex; }
  .hero__badge { left: -20px; bottom: 24px; padding: 16px 20px; }
  .facts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reviews__grid { grid-template-columns: 1.25fr 1fr; gap: var(--s-8); align-items: end; }
  .row { grid-template-columns: 260px 1fr; gap: var(--s-6); align-items: start; }
  .visit__grid { grid-template-columns: 1fr 1.1fr; gap: var(--s-8); align-items: start; }
  .doctors__grid { grid-template-columns: 1fr 1.25fr; gap: var(--s-8); align-items: center; }
  .clinic__grid { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; }
  .clinic__main { grid-row: span 2; }
  .clinic__main .shot__frame { aspect-ratio: auto; height: 100%; }
  .clinic__main { grid-template-rows: 1fr; }
  .questions__grid { grid-template-columns: 1fr 1.4fr; gap: var(--s-8); }
  .book__grid { grid-template-columns: 1.2fr 1fr; gap: var(--s-8); }
  .foot__row { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .foot__links { justify-content: flex-end; }
}
@media (min-width: 900px) {
  .hero { padding-bottom: 190px; }
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: var(--s-8); align-items: center; }
  .hero__photo { max-width: none; }
  .hero__frame { aspect-ratio: 1 / 1; }
  .hero__drop { right: auto; left: 38%; }
}
@media (min-width: 1000px) {
  .top__nav { display: flex; }
  .hero h1 { max-width: 12ch; }
}
@media (max-width: 380px) {
  .bar a { padding-inline: 14px; }
  .bar__wa .icon { display: none; }
  .top__call span { display: none; }
  .top__call { width: 44px; justify-content: center; border: 2px solid var(--on-deep-2); border-radius: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
