/* Primrose Women's Clinic - landing page
   Palette is taken from the clinic logo: magenta on warm blush, with deep plum and a soft gold accent. */

:root {
  --plum-950: #2A0A24;
  --plum-900: #3F1035;
  --plum-800: #561A49;
  --magenta: #A82E78;
  --magenta-dark: #8A2362;
  --rose: #F1BDD6;
  --blush: #FCEFF4;
  --blush-2: #F8DFEA;
  --cream: #FFF9F7;
  --gold: #F2C760;
  --gold-hover: #F7D580;
  --ink: #2B1A27;
  --muted: #6A5664;
  --line: #EEDAE3;
  --danger: #A12A3B;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --shadow-s: 0 8px 24px -14px rgba(63, 16, 53, .28);
  --shadow-l: 0 30px 60px -28px rgba(42, 10, 36, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; color: var(--plum-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2.7rem, 4.9vw, 4.2rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h3 { font-size: 1.6rem; }
h1, h2 { text-wrap: balance; }
h2 em, h1 em { font-style: italic; font-weight: 600; }
h2 em { color: var(--magenta); }
p { margin: 0 0 1em; }
a { color: var(--magenta); text-underline-offset: .2em; }
a:hover { color: var(--magenta-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
.dim { color: var(--muted); }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 30rem; }

.wrap { width: min(100% - 2.5rem, 1200px); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--magenta); color: #fff; box-shadow: 0 10px 22px -12px var(--magenta); }
.btn-solid:hover { background: var(--magenta-dark); color: #fff; }
.btn-gold { background: var(--gold); color: var(--plum-950); box-shadow: 0 12px 26px -12px rgba(242, 199, 96, .8); }
.btn-gold:hover { background: var(--gold-hover); color: var(--plum-950); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-outline { background: transparent; color: var(--plum-900); border-color: var(--plum-900); }
.btn-outline:hover { background: var(--plum-900); color: #fff; }
.btn-sm { padding: .65rem 1.2rem; font-size: .95rem; }
.btn-block { width: 100%; padding: .95rem 1.5rem; font-size: 1.05rem; }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--plum-950); font-size: .85rem; color: rgba(255, 255, 255, .8); }
.topbar-in { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; padding: .5rem 0; }
.topbar-item { display: inline-flex; align-items: center; gap: .45rem; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 249, 247, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 2rem; padding: .55rem 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-logo { height: 4rem; width: auto; }
.brand-mark { width: 2.5rem; height: 2.5rem; color: var(--magenta); }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; line-height: 1; display: flex; flex-direction: column; }
.brand-name small { font: 500 .8rem/1.2 var(--sans); color: var(--muted); margin-top: .2rem; }
.logo-plate { background: var(--cream); border-radius: 14px; padding: .5rem .9rem; display: inline-block; }
.logo-plate .brand-logo { height: 3.8rem; }
.nav { display: flex; gap: 1.8rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.3rem; height: 2px; background: var(--magenta); transform: scaleX(0); transition: transform .2s; }
.nav a:hover { color: var(--magenta); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 1.2rem; }
.tel { display: inline-flex; align-items: center; gap: .45rem; color: var(--plum-900); text-decoration: none; font-weight: 700; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(168, 46, 120, .6), transparent 62%),
    radial-gradient(700px 520px at -8% 108%, rgba(242, 199, 96, .13), transparent 60%),
    var(--plum-900);
  padding: clamp(2rem, 3.5vw, 3rem) 0 clamp(5.5rem, 8vw, 7rem);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(2.5rem, 5vw, 4rem); background: var(--cream); border-radius: 60px 60px 0 0; }
.hero-flower { position: absolute; left: -9rem; top: 2rem; width: 30rem; height: 30rem; color: #fff; opacity: .05; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { color: var(--gold); }
.pill { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.1rem; padding: .45rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); font-size: .9rem; font-weight: 500; }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 199, 96, .25); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.hero .lede { color: rgba(255, 255, 255, .85); margin-bottom: 1.2rem; font-size: 1.15rem; }
.ticks { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .5rem; }
.ticks li { display: flex; gap: .75rem; align-items: flex-start; }
.ticks .ico { width: 1.35rem; height: 1.35rem; margin-top: .2rem; padding: .2rem; border-radius: 50%; background: rgba(242, 199, 96, .2); color: var(--gold); }
.ticks-dark .ico { background: var(--blush-2); color: var(--magenta); }
.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.cta-center { justify-content: center; }

.doc-chip { display: flex; align-items: center; gap: 1rem; margin-top: 1.7rem; width: fit-content; max-width: 100%; padding: .65rem 1.4rem .65rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18); }
.doc-chip img, .doc-chip-fallback { width: 3.6rem; height: 3.6rem; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 2px solid var(--gold); flex: none; }
.doc-chip-fallback { display: grid; place-items: center; background: var(--magenta); }
.doc-chip-fallback svg { width: 60%; height: 60%; color: #fff; }
.doc-chip strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; line-height: 1.15; }
.doc-chip span { font-size: .88rem; color: rgba(255, 255, 255, .75); }

/* form card */
.form-card { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.4rem, 2.6vw, 2rem); box-shadow: var(--shadow-l); position: relative; }
.form-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(90deg, var(--magenta), var(--gold)); }
.form-card h2 { font-size: 1.95rem; margin-bottom: .1rem; }
.form-sub { color: var(--muted); margin-bottom: 1.1rem; font-size: .98rem; }
.field { margin-bottom: .8rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field input, .field select {
  width: 100%; padding: .72rem .95rem; font: inherit; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field select {
  appearance: none; padding-right: 2.6rem; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236A5664' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: .8rem;
}
.field input:focus, .field select:focus { outline: none; background-color: #fff; border-color: var(--magenta); box-shadow: 0 0 0 4px var(--blush-2); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: .3rem 0 1rem; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--magenta); flex: none; }
.field-note { display: flex; gap: .55rem; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: .85rem 0 0; }
.field-note .ico { margin-top: .15rem; color: var(--magenta); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { background: #FBEAEC; border: 1px solid #E8B9BF; color: var(--danger); border-radius: var(--r-sm); padding: .8rem 1rem; margin-bottom: 1rem; font-size: .93rem; }
.alert ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.form-error { color: var(--danger); font-size: .92rem; margin: .8rem 0 0; }

/* hero entrance (one orchestrated moment) */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .07s; }
  .hero-copy > :nth-child(3) { animation-delay: .14s; }
  .hero-copy > :nth-child(4) { animation-delay: .21s; }
  .hero-copy > :nth-child(5) { animation-delay: .28s; }
  .hero-copy > :nth-child(6) { animation-delay: .35s; }
  .form-card { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Trust strip ---------- */
.trust { background: var(--cream); padding: 1.5rem 0 .5rem; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { padding: .4rem 1.5rem; border-left: 1px solid var(--line); }
.trust-grid > div:first-child { border-left: 0; padding-left: 0; }
.trust-grid strong { display: block; font-family: var(--serif); font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--magenta); }
.trust-grid small { font-size: 1.2rem; }
.trust-grid span { display: block; margin-top: .3rem; color: var(--muted); font-size: .95rem; line-height: 1.4; }

/* ---------- Sections ---------- */
.block { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.block-blush { background: var(--blush); }
.sec-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.sec-head p { color: var(--muted); font-size: 1.12rem; }
.center-cta { text-align: center; margin: 3rem 0 0; }

/* cards (services + steps) */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card, .step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 2rem; box-shadow: var(--shadow-s); }
.card { transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-5px); border-color: var(--rose); box-shadow: 0 22px 40px -22px rgba(168, 46, 120, .45); }
.card-ico { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 16px; background: var(--blush-2); color: var(--magenta); margin-bottom: 1.2rem; transition: background-color .25s, color .25s; }
.card:hover .card-ico { background: var(--magenta); color: #fff; }
.card-ico svg { width: 1.8rem; height: 1.8rem; }
.card h3 { font-size: 1.55rem; }
.card p, .step p { margin: 0; color: var(--muted); }

/* doctor */
.doctor { display: grid; gap: 4rem; align-items: center; max-width: 52rem; }
.doctor.has-photo { grid-template-columns: .8fr 1.2fr; max-width: none; gap: clamp(2.5rem, 7vw, 6rem); }
.doctor-photo { position: relative; max-width: 24rem; width: 100%; justify-self: center; }
.doctor-photo::before { content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--magenta), var(--plum-800)); }
.doctor-photo img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; border-radius: var(--r-lg); box-shadow: var(--shadow-l); }
.lead-sm { font-family: var(--serif); font-size: 1.65rem; line-height: 1.3; color: var(--plum-900); font-weight: 500; }
.doctor-copy .ticks { margin: 1.5rem 0 2rem; }
.creds { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.creds span { background: #fff; border: 1px solid var(--line); padding: .3rem .8rem; border-radius: 999px; font-size: .9rem; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-n { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--magenta); color: #fff; font: 700 1.6rem var(--serif); margin-bottom: 1.1rem; }
.step h3 { font-size: 1.55rem; }

/* reviews */
.rating { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--plum-900) !important; }
.stars { color: #E3A91B; letter-spacing: .1em; font-size: 1.25rem; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 62rem; margin: 0 auto; }
.review { position: relative; margin: 0; background: #fff; border-radius: var(--r-lg); padding: 4.2rem 2.2rem 2rem; box-shadow: var(--shadow-s); border: 1px solid var(--line); }
.review::before { content: "\201C"; position: absolute; left: 1.8rem; top: .6rem; font: 700 6rem/1 var(--serif); color: var(--rose); }
.review p { font-family: var(--serif); font-size: 1.7rem; line-height: 1.28; font-weight: 500; color: var(--plum-900); margin-bottom: 1.2rem; }
.review footer { font-weight: 700; }
.review footer span { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }

/* find the clinic */
.find-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.4rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ci { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--blush-2); color: var(--magenta); flex: none; }
.contact-list .ico { width: 1.4rem; height: 1.4rem; }
.contact-list strong { display: block; font-size: 1.05rem; color: var(--plum-900); }
.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-s); background: var(--blush); }
.map iframe { display: block; width: 100%; height: 26rem; border: 0; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 1.4rem; margin-bottom: .8rem; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--rose); box-shadow: var(--shadow-s); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.2rem 1.2rem 0; position: relative; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.25; color: var(--plum-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font: 400 1.9rem var(--sans); color: var(--magenta); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 1.3rem; color: var(--muted); }

/* final CTA */
.final-cta { position: relative; overflow: hidden; text-align: center; color: #fff; padding: clamp(4rem, 8vw, 6rem) 0;
  background: radial-gradient(800px 400px at 50% -20%, rgba(168, 46, 120, .55), transparent 65%), var(--plum-900); }
.final-flower { position: absolute; right: -6rem; bottom: -8rem; width: 28rem; height: 28rem; color: #fff; opacity: .05; pointer-events: none; }
.final-in { position: relative; }
.final-cta h2 { color: #fff; }
.final-cta h2 em { color: var(--gold); }
.final-cta p { color: rgba(255, 255, 255, .85); font-size: 1.15rem; margin-bottom: 2rem; }

/* footer */
.site-footer { background: var(--plum-950); color: #E8D9E2; padding: 3.5rem 0 1.5rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.2fr 1.1fr 1.2fr; gap: 2rem; }
.footer-h { font: 700 1rem var(--sans); color: #fff; margin: 0 0 .8rem; }
.site-footer address { font-style: normal; color: #D9C6D2; }
.site-footer li { margin-bottom: .55rem; }
.site-footer .dim { color: #C9B5C3; }
.footer-note { margin: .9rem 0 0; color: #D9C6D2; font-size: .95rem; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .85rem; color: #C9B5C3; }
.footer-legal p { max-width: 62rem; }

.sticky-bar { display: none; }

/* plain pages (thank you, policies) */
.plain-main { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); min-height: 55vh; }
.prose h1 { font-size: clamp(2.3rem, 5vw, 3.3rem); }
.prose h2 { font-size: 1.8rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.thanks { text-align: center; }
.thanks h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.thanks-mark { width: 4.5rem; height: 4.5rem; margin: 0 auto 1rem; color: var(--magenta); }
.thanks .lede { margin-inline: auto; }
.thanks-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; margin: 2rem auto; max-width: 28rem; box-shadow: var(--shadow-s); }
.thanks-card li { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero-grid, .find-grid, .faq-grid, .doctor.has-photo { grid-template-columns: 1fr; }
  .hero-grid { gap: 2.5rem; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; row-gap: 1.2rem; }
  .trust-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .doctor-photo { max-width: 22rem; margin-bottom: 1.4rem; }
  .doctor-photo::before { inset: 1rem -1rem -1rem 1rem; }
  .hero-flower { opacity: .04; }
}
@media (max-width: 720px) {
  body { padding-bottom: 4.9rem; }
  .topbar-item:nth-child(2) { display: none; }
  .brand-logo { height: 3.3rem; }
  .tel span, .header-cta .btn { display: none; }
  .tel { padding: .6rem; border: 2px solid var(--plum-900); border-radius: 50%; }
  .tel .ico { width: 1.3rem; height: 1.3rem; }
  .cards, .steps, .review-grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .doc-chip { border-radius: var(--r-md); padding-right: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .review p { font-size: 1.5rem; }
  .map iframe { height: 20rem; }
  .sticky-bar {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(255, 249, 247, .97); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(63, 16, 53, .4);
  }
  .sticky-bar .btn { padding: .8rem .5rem; font-size: .92rem; white-space: nowrap; }
  .sticky-bar .btn-outline { color: var(--plum-900); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
