/* VOICE everyday, calm private medical practice
   IDEA a modern women's-health clinic: soft lavender rooms, the orchid pink of the apfi mark as the one signal colour
   PICTURE the photo of Dr Young in her rooms, full-bleed, with the welcome set on its quiet wall
   COLOUR white ground, aubergine ink #2a2140, plum bands #3a2d5c, lavender fields #f1ecff, orchid accent #d81b7f
   TYPE Poppins (the brand's own) for headings + DM Sans for text
   LAYOUT laptop: photo hero with text left, quick-action cards overlapping its foot; phone: photo, then text, then cards stacked */

:root {
  color-scheme: light dark;
  --bg: light-dark(#ffffff, #17121f);
  --ink: light-dark(#2a2140, #eee9f7);
  --muted: light-dark(#5f5675, #b9b0cc);
  --field: light-dark(#f1ecff, #231b31);
  --field-2: light-dark(#f8f5ff, #1d1628);
  --card: light-dark(#ffffff, #241c33);
  --line: light-dark(#e3dcf2, #3a2f4d);
  --plum: light-dark(#3a2d5c, #2b2143);
  --on-plum: #ffffff;
  --accent: light-dark(#d81b7f, #ff6cb5);
  --accent-ink: #ffffff;
  --accent-soft: light-dark(#fde7f2, #3b1a2e);
  --focus: light-dark(#d81b7f, #ff8cc6);
  --radius: 18px;
  --maxw: 1180px;
  --font-head: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(5vw, 16px);
}
:root[data-theme=light] { color-scheme: light; }
:root[data-theme=dark] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font-body); color: var(--ink); background: var(--bg); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 600; color: var(--ink); }
h1 { font-size: clamp(32px, 4.6vw, 52px); }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: 20px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: var(--bg); padding: 8px 12px; }
section { padding-block: clamp(48px, 7vw, 96px); }
.eyebrow-free { margin: 0; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 38px; width: auto; }
.brand span { font-family: var(--font-head); font-size: 12.5px; line-height: 1.15; font-weight: 500; border-left: 1px solid var(--line); padding-left: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); cursor: pointer; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { display: block; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover { background: var(--field); }
.site-nav a[aria-current="page"] { background: var(--field); color: var(--accent); }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-header .bar { flex-wrap: wrap; }
  .site-nav { display: none; width: 100%; padding-bottom: 12px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 14px; border-radius: 12px; }
}

/* ---------- Notice ---------- */
.notice { padding-block: 14px; background: var(--accent-soft); }
.notice .inner { display: flex; gap: 14px; align-items: flex-start; }
.notice svg { flex: none; width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.notice p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.notice strong { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font: 600 16px/1 var(--font-head); padding: 14px 26px; border-radius: 999px; border: 2px solid var(--accent); cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--field); color: var(--ink); }
.btn-light { background: #fff; color: #2a2140; border-color: #fff; }
.btn-light:hover { background: #f1ecff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Home hero ---------- */
.hero { position: relative; padding: 0; background: #efeeec; }
.hero-img { width: 100%; height: clamp(460px, 48vw, 640px); object-fit: cover; object-position: 78% 30%; }
.hero-content { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-text { max-width: 560px; color: #2a2140; }
.hero-text h1 { color: #2a2140; font-size: clamp(34px, 4.4vw, 54px); }
.hero-text .sub { font-size: 18px; color: #4a3f60; max-width: 30em; }
.contact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.contact-chips li { background: rgba(255,255,255,.85); border-radius: 999px; padding: 8px 14px; font-size: 15px; color: #2a2140; }
.contact-chips a { color: #2a2140; font-weight: 600; text-decoration: none; }
@media (max-width: 760px) {
  .hero { background: var(--bg); }
  .hero-img { height: 300px; object-position: 80% 30%; }
  .hero-content { position: static; padding-block: 28px 8px; }
  .hero-text, .hero-text h1 { color: var(--ink); }
  .hero-text .sub { color: var(--muted); }
  .contact-chips li { background: var(--field); color: var(--ink); }
  .contact-chips a { color: var(--ink); }
}

/* Quick actions */
.quick { padding-block: 0 24px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: -56px; position: relative; z-index: 2; }
.quick-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); box-shadow: 0 10px 30px -18px rgba(42,33,64,.35); transition: transform .15s, border-color .15s; }
.quick-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.quick-card .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 6px; }
.quick-card .ico svg { width: 22px; height: 22px; }
.quick-card strong { font-family: var(--font-head); font-size: 17px; }
.quick-card span { font-size: 14.5px; color: var(--muted); }
.note-line { margin: 22px 0 0; font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .quick-grid { margin-top: 12px; } }
@media (max-width: 460px) { .quick-grid { grid-template-columns: 1fr; } }

/* Subspecialties */
.spec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
.spec-head h2 { margin: 0; }
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.spec { background: var(--field); border-radius: var(--radius); padding: 26px 22px; }
.spec .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--card); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.spec .ico svg { width: 26px; height: 26px; }
.spec h3 { font-size: 19px; }
.spec p { font-size: 15.5px; margin: 0; color: var(--muted); }
@media (max-width: 1000px) { .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .spec-grid { grid-template-columns: 1fr; } }

/* Doctor feature */
.band-plum { background: var(--plum); color: var(--on-plum); }
.band-plum h2, .band-plum h3 { color: var(--on-plum); }
.band-field { background: var(--field); }
.doctor { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.doctor img { width: 100%; aspect-ratio: 4/4.2; object-fit: cover; object-position: 50% 20%; border-radius: 24px; }
.doctor .creds { font-family: var(--font-head); font-size: 15px; color: #f7b6d8; margin-bottom: 18px; }
.doctor p { color: #e9e4f4; }
.team-grid { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.team-grid figure { margin: 0; width: 200px; }
.team-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; margin-bottom: 10px; }
.team-grid h3 { font-size: 17px; margin: 0; }
.team-grid p { margin: 0; font-size: 14.5px; color: #e9e4f4; }
@media (max-width: 760px) { .doctor { grid-template-columns: 1fr; } .doctor img { max-width: 420px; } }

/* Locations */
.loc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.loc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.loc h3 { margin-bottom: 4px; }
.loc .tag { display: inline-block; font-size: 13px; background: var(--accent-soft); color: var(--accent); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.loc p { margin: 0 0 10px; }
.loc ul { list-style: none; margin: 0; padding: 0; }
.loc li { padding: 8px 0; border-top: 1px solid var(--line); }
.loc li:first-child { border-top: 0; padding-top: 0; }
.loc li strong { display: block; }
.loc li span { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .loc-grid { grid-template-columns: 1fr; } }

/* Generic content pages */
.page-hero { background: var(--field); padding-block: clamp(40px, 6vw, 72px); }
.page-hero h1 { margin: 0; }
.page-hero p { margin: 12px 0 0; color: var(--muted); max-width: 40em; }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 1.4em; }
.prose h3 { font-size: 20px; margin-top: 1.3em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 4px; }
.lead { font-family: var(--font-head); font-weight: 400; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; letter-spacing: -.01em; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.link-cards { display: grid; gap: 12px; }
.link-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--ink); font-weight: 500; }
.link-card:hover { border-color: var(--accent); }
.link-card small { color: var(--muted); font-weight: 400; display: block; }
.link-card svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.clinic-photos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.clinic-photos img { width: 100%; height: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 640px) { .clinic-photos { grid-template-columns: 1fr; } }
.info-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.info-cards > div { background: var(--field); border-radius: var(--radius); padding: 24px; }
.info-cards ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 860px) { .info-cards { grid-template-columns: 1fr; } }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.video-grid figure { margin: 0; }
.video-wrap { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid figcaption { margin-top: 10px; font-family: var(--font-head); font-weight: 500; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; }
.post-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.post-card > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.post-card .ph { aspect-ratio: 4/3; background: var(--field); display: grid; place-items: center; }
.post-card .ph img { width: 34%; }
.post-card .body { padding: 18px 20px 22px; }
.post-card time { font-size: 14px; color: var(--muted); }
.post-card h2 { font-size: 18px; letter-spacing: -.01em; margin: 6px 0 0; }
.post-article { max-width: 780px; }
.post-article time { color: var(--muted); }
.post-article h1 { font-size: clamp(28px, 4vw, 42px); margin: 8px 0 28px; }
.post-body figure { margin: 22px 0; }
.post-body img { border-radius: 14px; }
.post-body ul.gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.post-body ul.gallery figure { margin: 0; }
.back-link { display: inline-block; margin-bottom: 22px; text-decoration: none; font-weight: 500; }

/* ---------- Forms ---------- */
.form-page { background: var(--field-2); }
.form-layout { max-width: 860px; margin: 0 auto; }
.form-intro { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.form-intro p { margin: 0; color: var(--muted); }
.progress { position: sticky; top: calc(73px + env(safe-area-inset-top, 0px)); z-index: 20; background: color-mix(in srgb, var(--field-2) 94%, transparent); backdrop-filter: blur(8px); padding: 12px 0; margin-bottom: 8px; }
.progress .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.progress .track { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress .fill { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .3s; }
@media (prefers-reduced-motion: reduce) { .progress .fill { transition: none; } .btn, .quick-card, .post-card { transition: none; } }
.apfi-form { display: grid; gap: 20px; }
.form-section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 34px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px 16px; }
.form-section > h2 { grid-column: span 12; font-size: 20px; margin: 0; display: flex; align-items: center; gap: 12px; }
.form-section > h2 .num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; font-size: 15px; flex: none; }
.field { grid-column: span 12; display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field.w6 { grid-column: span 6; }
.field.w9 { grid-column: span 9; }
@media (max-width: 600px) { .field.w6, .field.w9 { grid-column: span 12; } }
.field > label, .field > legend { font-size: 15.5px; font-weight: 600; padding: 0; line-height: 1.4; }
.field > legend { margin-bottom: 8px; }
.req { color: var(--accent); }
.apfi-form input[type=text], .apfi-form input[type=email], .apfi-form input[type=tel], .apfi-form input[type=number], .apfi-form input[type=date], .apfi-form select, .apfi-form textarea {
  width: 100%; font: 16px/1.4 var(--font-body); padding: 12px 14px; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.apfi-form textarea { min-height: 110px; resize: vertical; }
.apfi-form input:focus, .apfi-form select:focus, .apfi-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.apfi-form input[type=file] { font: inherit; font-size: 15px; padding: 12px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--bg); width: 100%; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 15px; cursor: pointer; background: var(--bg); transition: border-color .15s, background .15s; user-select: none; }
.choices label:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices label::before { content: ""; width: 16px; height: 16px; border: 1.5px solid var(--muted); border-radius: 50%; flex: none; }
.choices.multi label::before { border-radius: 5px; }
.choices label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.choices label:has(input:checked)::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--bg); }
.choices label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-text { grid-column: span 12; font-size: 15px; color: var(--muted); background: var(--field-2); border-radius: 12px; padding: 16px 18px; }
.form-text p:last-child { margin: 0; }
.hint { font-size: 14px; color: var(--muted); }
.field[hidden] { display: none; }
.error-msg { color: light-dark(#b00030, #ff8fa8); font-size: 14px; }
.invalid input, .invalid select, .invalid textarea, .invalid canvas, .invalid .choices label { border-color: light-dark(#b00030, #ff8fa8) !important; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.sig-pad { border: 1.5px solid var(--line); background: #fff; width: 100%; height: 180px; touch-action: none; cursor: crosshair; border-radius: 12px; }
.sig-tools { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.sig-tools button { background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; padding: 4px; }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; }
.form-status.show { display: block; }
.form-status.err { background: light-dark(#fdecef, #3a1520); color: light-dark(#8a0f2b, #ffb3c3); }
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions .btn { width: 100%; font-size: 17px; min-height: 56px; }
.actions .privacy { font-size: 14px; color: var(--muted); text-align: center; margin: 0; }
.form-done { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 24px; }
.form-done .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 16px; }
.form-done .tick svg { width: 32px; height: 32px; }
.form-done p { font-size: 18px; max-width: 32em; margin: 0 auto; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 34px); }
.form-card .apfi-form .form-section { border: 0; padding: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: var(--on-plum); padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer h2 { font-size: 20px; color: var(--on-plum); }
.site-footer p { margin: 0 0 6px; font-size: 15.5px; color: #e9e4f4; }
.site-footer a { color: #fff; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); margin-top: 40px; padding-top: 18px; font-size: 14px; color: #cfc6e2; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a.btn-light { color: #2a2140; }
@media (min-width: 900px) { .hero-text { max-width: 640px; } }
.qkey { display: block; font-family: var(--font-head); font-size: 13.5px; font-weight: 500; color: var(--accent); margin-bottom: 2px; letter-spacing: 0; }
@media (max-width: 600px) {
  .notice p { font-size: 14.5px; }
  .quick-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 16px; }
  .quick-card .ico { margin: 0; }
  .quick-card strong { flex: 1; }
  .quick-card span { flex-basis: 100%; }
}
