/* Ellery Women's Health — concept site by JogyFlow.
   Direction: editorial, local, unhurried. Serif display + grotesk body, a paper ground,
   olive and clay instead of the medical blues, and the arch of Tampa's Mediterranean
   Revival streets as the one recurring shape. No stock faces, no icon cards, no pills. */

:root {
  --paper: #f4efe6;
  --sand: #e8dfcf;
  --line: #d8cdb9;
  --ink: #1e1b17;
  --ink-soft: #4a443c;
  --olive: #333d2b;
  --olive-2: #59633f;
  --clay: #a84a26;          /* 5.9:1 against white, 5.1:1 against --paper */
  --clay-dark: #8a3b1d;
  --water: #b8c0a9;
  --note-bg: #fff8ec;

  --serif-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper);
  padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--olive-2); margin: 0 0 18px; }
.small { font-size: 14px; color: var(--ink-soft); }
.muted { color: var(--ink-soft); font-size: 15px; margin: 6px 0 0; }

/* buttons ────────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  padding: 14px 22px; border: 1px solid transparent; border-radius: 2px; white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .2s ease; }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-dark); color: #fff; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn-lg { padding: 17px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link-arrow { background: none; border: 0; padding: 0; cursor: pointer; font: 500 16px/1.4 var(--sans);
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: 5px; text-decoration-thickness: 2px; }
.link-arrow:hover { text-decoration-color: var(--clay); }

/* concept bar ────────────────────────────────────────────────────────────── */
.concept-bar { background: var(--ink); color: #efe8dc; font-size: 13.5px; line-height: 1.4;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter); }
.concept-bar p { margin: 0; }
.concept-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.concept-actions a { color: #efe8dc; text-underline-offset: 3px; }
.notes-toggle { font: 600 12.5px/1 var(--sans); letter-spacing: .04em; color: var(--ink);
  background: #f2c9a8; border: 0; border-radius: 2px; padding: 8px 12px; cursor: pointer; }
.notes-toggle[aria-pressed="true"] { background: var(--clay); color: #fff; }

/* header ─────────────────────────────────────────────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--olive); }
.brand-mark { width: 24px; height: 30px; flex: none; }
.brand-name { font-family: var(--serif-display); font-size: 27px; letter-spacing: .01em; color: var(--ink); }
.brand-sub { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-2); }
.head-nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.head-nav a { text-decoration: none; color: var(--ink-soft); }
.head-nav a:hover { color: var(--clay); }
.head-cta { display: flex; align-items: center; gap: 18px; }
.tel { font-weight: 600; font-size: 15px; text-decoration: none; font-variant-numeric: tabular-nums; }
.tel:hover { color: var(--clay); }

/* layout ─────────────────────────────────────────────────────────────────── */
.hero, .block { position: relative; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.block { padding-top: clamp(72px, 9vw, 140px); padding-bottom: clamp(72px, 9vw, 140px); }
/* the rule between sections sits on the content edge, not the padding edge */
.block::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.book::before, .book + .block::before, .hero + .block::before { display: none; }
.hero { border-bottom: 1px solid transparent; }
.hero::after { content: ""; position: absolute; bottom: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.block-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: baseline;
  margin-bottom: clamp(36px, 5vw, 64px); }
.block-head .eyebrow { margin: 0; }
h2 { font-family: var(--serif-display); font-size: clamp(34px, 4.3vw, 60px); line-height: 1.04; letter-spacing: -.005em; }
h3 { font-family: var(--serif-display); font-size: clamp(22px, 2vw, 27px); line-height: 1.15; }

/* arch: the one shape ─────────────────────────────────────────────────────── */
.arch { border-radius: 999px 999px 2px 2px; overflow: hidden; background: var(--sand); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* 01 hero ────────────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 96px);
  align-items: end; padding-top: clamp(48px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.hero h1 { font-family: var(--serif-display); font-size: clamp(46px, 6.6vw, 100px); line-height: .98;
  letter-spacing: -.012em; margin: 0 0 28px; max-width: 12ch; }
.hero h1 em { font-family: var(--serif); font-style: italic; color: var(--clay); font-size: .94em; }
.lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 40ch; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(44px, 6vw, 80px) 0 0;
  border-top: 1px solid var(--ink); }
.facts div { padding: 16px 16px 0 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-2); }
.facts dd { margin: 6px 0 0; font-family: var(--serif); font-size: 18px; line-height: 1.3; }
.hero-figure { margin: 0; }
.hero-figure .arch { aspect-ratio: 4 / 5; }
.hero-figure figcaption { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--ink-soft);
  margin-top: 14px; padding-left: 2px; }

/* 02 is this you ─────────────────────────────────────────────────────────── */
.quotes { list-style: none; margin: 0; padding: 0; counter-reset: q; border-top: 1px solid var(--line); }
.quotes li { counter-increment: q; border-bottom: 1px solid var(--line); }
.quotes a { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 280px); gap: 24px; align-items: baseline;
  padding: 28px 0; text-decoration: none; transition: color .2s ease, padding .25s ease; }
.quotes a::before { content: "0" counter(q); font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--olive-2); }
.quotes q { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.25; quotes: "“" "”"; }
.quotes span { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--olive-2); text-align: right; }
.quotes span::after { content: "  →"; }
.quotes a:hover { color: var(--clay); padding-left: 10px; }
.quotes a:hover span { color: var(--clay); }

/* 03 doctor ──────────────────────────────────────────────────────────────── */
.doctor { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.portrait { margin: 0; }
.arch-portrait { aspect-ratio: 3 / 4; background: var(--olive); position: relative; display: grid; place-items: center; }
.portrait-mono { font-family: var(--serif-display); font-size: clamp(90px, 11vw, 160px); color: #e9dfcd; letter-spacing: -.02em; line-height: 1; }
.portrait-hint { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: #c9c4a8; }
.signature-line { font-size: 15px; font-weight: 600; color: var(--olive-2); margin: 14px 0 30px; }
.in-voice { margin: 0 0 34px; padding: 0 0 0 26px; border-left: 2px solid var(--clay); }
.in-voice p { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; margin: 0; }
.creds { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.creds li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.creds span { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-2); padding-top: 3px; }

/* 04 index of care ───────────────────────────────────────────────────────── */
.index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); }
.index li { border-top: 1px solid var(--line); }
.index li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; padding: 26px 4px 28px; text-decoration: none; }
.i-name { font-family: var(--serif-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.i-desc { grid-column: 1; font-size: 15.5px; color: var(--ink-soft); max-width: 44ch; }
.i-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 22px; color: var(--clay);
  transform: translateX(-6px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.index a:hover .i-go, .index a:focus-visible .i-go { transform: none; opacity: 1; }
.index a:hover .i-name { color: var(--clay); }

/* 05 first visit ─────────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { padding: 0 clamp(20px, 3vw, 40px) 0 clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
.steps li:first-child { padding-left: 0; border-left: 0; }
.steps .num { display: block; font-family: var(--serif-display); font-size: clamp(56px, 6vw, 88px); line-height: 1; color: var(--clay); margin-bottom: 18px; }
.steps h3 { margin-bottom: 12px; }
.steps p { font-size: 16px; color: var(--ink-soft); margin: 0; }
.bring { margin: clamp(36px, 5vw, 56px) 0 0; padding: 20px 24px; background: var(--sand); font-size: 15.5px; }

/* booking ────────────────────────────────────────────────────────────────── */
.book { max-width: none; background: var(--olive); color: #efe8dc; border-top: 0; }
.book .note { right: max(16px, calc((100vw - var(--wrap)) / 2 + 16px)); }
.book-panel { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px); align-items: start; }
.book .eyebrow { color: #c9c4a8; }
.book h2 { color: #fbf6ee; margin-bottom: 20px; }
.book-intro p { color: #d9d3c2; }
.book-intro a { color: #fbf6ee; }
.book .muted { color: #c9c4a8; }
.book-form fieldset { border: 0; margin: 0 0 26px; padding: 0; }
.book-form legend { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: #c9c4a8; margin-bottom: 12px; padding: 0; }
.book-form legend span { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid #8e9478;
  font-size: 11px; letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label > span { display: inline-flex; align-items: baseline; gap: 8px; padding: 11px 15px; border: 1px solid #6e7759;
  border-radius: 2px; font-size: 15px; font-weight: 500; color: #efe8dc; cursor: pointer;
  transition: border-color .15s ease; }
.chips label > span em { font-style: normal; font-size: 12.5px; color: #b9b49b; }
.chips label:hover > span { border-color: #c9c4a8; }
.chips input:checked + span { background: #f4efe6; border-color: #f4efe6; color: var(--ink); }
.chips input:checked + span em { color: var(--olive-2); }
.chips input:focus-visible + span { outline: 2px solid #f2c9a8; outline-offset: 2px; }
.days label > span { flex-direction: column; align-items: flex-start; gap: 0; min-width: 76px; line-height: 1.25; }
.days b { font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.times label > span { font-variant-numeric: tabular-nums; min-width: 92px; justify-content: center; }
.book .btn-clay:disabled { background: #6e7759; opacity: 1; color: #c9c4a8; }
.book-done { background: var(--paper); color: var(--ink); padding: clamp(24px, 3vw, 40px); border-radius: 2px; }
.book-done:focus { outline: none; }
.book-done .eyebrow { color: var(--clay); }
.book-done h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; }
.book-done .summary { font-family: var(--serif); font-size: 19px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }

/* 06 reviews ─────────────────────────────────────────────────────────────── */
.review-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.review-list figure { margin: 0; padding-top: 22px; border-top: 2px solid var(--ink); }
.review-list blockquote { margin: 0 0 18px; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; }
.review-list figcaption { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--olive-2); }
.rating { margin: clamp(36px, 5vw, 56px) 0 0; font-size: 15.5px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.stars { color: var(--clay); letter-spacing: .12em; }
.rating a { color: var(--ink-soft); }

/* 07 pricing ─────────────────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); }
.price-grid h3 { margin-bottom: 18px; }
.plain { list-style: none; margin: 0 0 18px; padding: 0; columns: 2; column-gap: 24px; }
.plain li { padding: 9px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.prices, .hours { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.prices th, .prices td, .hours th, .hours td { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.prices td, .hours td { text-align: right; font-family: var(--serif); font-size: 19px; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 16px; }

/* 08 faq ─────────────────────────────────────────────────────────────────── */
.qa { border-top: 1px solid var(--line); max-width: 860px; margin-left: auto; }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
  padding: 22px 0; font-family: var(--serif-display); font-size: clamp(20px, 1.8vw, 25px); line-height: 1.25; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--sans); font-size: 22px; color: var(--clay); flex: none; transition: transform .2s ease; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--clay); }
.qa p { margin: -6px 0 24px; color: var(--ink-soft); max-width: 62ch; }

/* 09 visit ───────────────────────────────────────────────────────────────── */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.visit h2 { margin-bottom: 28px; }
address { font-style: normal; font-family: var(--serif); font-size: 20px; line-height: 1.5; margin-bottom: 22px; }
.visit .hero-actions { margin-top: 28px; }
.map { margin: 0; }
.map svg { width: 100%; height: auto; display: block; border-radius: 999px 999px 2px 2px; }
.map-label { font: 600 13px var(--sans); letter-spacing: .06em; fill: var(--ink); }
.map-water { fill: var(--olive); font-style: italic; font-family: var(--serif); font-weight: 400; font-size: 15px; letter-spacing: 0; }
.map figcaption { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--ink-soft); margin-top: 14px; }
.detail-strip { margin: clamp(56px, 7vw, 96px) 0 0; height: clamp(160px, 22vw, 300px); overflow: hidden; border-radius: 2px; }
.detail-strip img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }

/* footer ─────────────────────────────────────────────────────────────────── */
.site-foot { background: var(--ink); color: #cfc7b8; padding: clamp(48px, 6vw, 80px) var(--gutter); font-size: 15px; }
.foot-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, .8fr); gap: 40px; align-items: start; }
.foot-brand { color: #f4efe6; font-size: 34px; margin-bottom: 8px; }
.site-foot a { color: #f4efe6; }
.foot-concept strong { color: #f4efe6; }
.credit { font-size: 13px; color: #a39b8c; }
.foot-cta p { color: #f4efe6; font-family: var(--serif); font-size: 20px; margin-bottom: 14px; }

/* annotations: "Show the thinking" ────────────────────────────────────────── */
.note { display: none; }
.notes-on .note { display: block; position: absolute; top: 18px; right: max(16px, var(--gutter)); z-index: 6; width: min(300px, calc(100% - 32px));
  background: var(--note-bg); color: var(--ink); border-left: 3px solid var(--clay); padding: 14px 16px 15px;
  font-size: 13.5px; line-height: 1.5; box-shadow: 0 10px 30px rgba(30, 27, 23, .14); }
.notes-on .note b { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: 6px; }
.notes-on .hero .note { top: 8px; }

/* phones: thumb bar ──────────────────────────────────────────────────────── */
.thumb-bar { display: none; }

@media (max-width: 1080px) {
  .head-nav { display: none; }
}
@media (max-width: 900px) {
  .hero, .doctor, .book-panel, .price-grid, .visit-grid, .block-head { grid-template-columns: minmax(0, 1fr); }
  .hero { align-items: start; }
  .hero-figure { order: -1; max-width: 420px; }
  .hero-figure .arch { aspect-ratio: 5 / 4; border-radius: 999px 999px 2px 2px / 520px 520px 2px 2px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts div { padding-bottom: 14px; }
  .doctor .portrait { max-width: 360px; }
  .index { grid-template-columns: minmax(0, 1fr); }
  .index li:nth-last-child(2) { border-bottom: 0; }
  .i-go { opacity: 1; transform: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps li { padding: 0; border-left: 0; }
  .review-list { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .qa { margin-left: 0; }
  .notes-on .note { position: static; width: auto; margin: 0 0 28px; }
  .block::before, .hero::after { display: none; }   /* lists already end on a rule; two lines read as a glitch */
  .book .note { margin: 0 auto 28px; max-width: var(--wrap); }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .hide-sm { display: none; }
  .concept-bar { font-size: 12.5px; gap: 10px; padding: 8px 14px; }
  .concept-actions { gap: 12px; }
  .notes-toggle { padding: 7px 9px; font-size: 12px; }
  .head-cta .tel { display: none; }
  .head-cta .btn { padding: 11px 14px; }
  .brand-sub { display: none; }
  .quotes a { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; }
  .quotes a::before { display: none; }
  .quotes span { text-align: left; }
  .creds li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .plain { columns: 1; }
  .thumb-bar { display: grid; grid-template-columns: 1fr 2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--paper); border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
  .thumb-bar a { display: grid; place-items: center; min-height: 48px; font-weight: 600; text-decoration: none; border-radius: 2px;
    border: 1px solid var(--ink); }
  .thumb-bar .tb-book { background: var(--clay); border-color: var(--clay); color: #fff; }
}
