/* Fertility Companion by Dr Bhushan — Maison design */
:root {
  color-scheme: light;
  --plum: #2a0e24;
  --plum-deep: #1e0a1a;
  --night: #290618;      /* matches the plum magnolia backdrop */
  --cream: #f3e3d6;      /* matches the cream magnolia backdrop */
  --ivory: #fbf7f2;
  --linen: #f4ede4;
  --blush: #f2e6e6;
  --gold: #c8a96e;
  --gold-ink: #85663a;
  --rose: #e6c9cf;
  --ink: #2a0e24;
  --muted: #5a4652;
  --soft: #6e5a66;
  --line: #e8ddd0;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 300 1.0625rem/1.8 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--plum); text-decoration: none; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.wrap { width: min(100%, 82rem); margin-inline: auto; padding-inline: clamp(1.35rem, 5vw, 4rem); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ivory); padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Small caps label */
.eyebrow, .label { font: 400 .75rem/1.6 var(--sans); letter-spacing: .32em; text-transform: uppercase; }
.eyebrow { color: var(--gold-ink); margin: 0 0 1.25rem; }

/* Top bar */
.topbar { background: var(--plum-deep); color: #e9dcc8; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; padding-block: .7rem; }
.topbar span:last-child { color: var(--gold); }

/* Header */
.site-header { background: var(--ivory); border-bottom: 1px solid var(--line); }
.header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.1rem; }
.brand { display: inline-flex; color: var(--plum); }
.brand:hover { color: var(--plum); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem clamp(1.25rem, 2.6vw, 2.5rem); }
.site-nav a { font: 400 .78rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; padding: .95rem 0; border-bottom: 1px solid transparent; }
.site-nav a[aria-current] { border-bottom-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 1.5rem; }
.language { font: 400 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: .95rem 0; border-bottom: 1px solid #c9b79c; }

/* Logo (BM practice signature, tinted with currentColor) */
.practice-logo { display: block; height: auto; }
.practice-logo-small { width: 9.5rem; }
.practice-logo-footer { width: 11rem; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .9rem;
  min-height: 3.5rem; padding: 0 2.25rem; border: 1px solid var(--plum);
  background: var(--plum); color: var(--ivory);
  font: 400 .75rem/1.3 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.button:hover { background: var(--plum-deep); color: var(--ivory); }
.button.small { min-height: 3rem; padding: 0 1.6rem; font-size: .72rem; }
.button.gold { background: var(--gold); border-color: var(--gold); color: var(--plum-deep); font-weight: 500; }
.button.gold:hover { background: #d6bb85; border-color: #d6bb85; color: var(--plum-deep); }
.button.ghost { background: transparent; color: var(--plum); border-color: #c9b79c; }
.button.ghost:hover { border-color: var(--plum); color: var(--plum); }
.text-link {
  display: inline-flex; align-items: center; gap: .9rem; min-height: 3rem;
  font: 400 .75rem/1.3 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  border-bottom: 1px solid #c9b79c; align-self: flex-start;
}
.arrow { width: 22px; height: 10px; flex: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 2rem; margin-top: 2.75rem; }
.actions:empty { display: none; }

/* Headings */
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.05; margin: 0; }
h1 em, h2 em { font-style: italic; }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
.rule { display: block; width: 3rem; height: 1px; background: var(--gold); border: 0; margin: 0; }

/* Heroes — magnolia stays fully visible and blends into its own backdrop */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-art {
  position: absolute; z-index: -1; right: 0; top: 0; height: 100%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%);
  mask-image: linear-gradient(to right, transparent 0, #000 30%);
}
.hero-inner { display: flex; align-items: center; }
.hero-text { width: 100%; max-width: 38rem; }
.lead { font-size: 1.0625rem; line-height: 1.85; max-width: 33rem; margin: 0; }

.hero-home { background: var(--night); color: #f4ebdf; }
.hero-home .hero-inner { min-height: 44rem; padding-block: 4.5rem; }
.hero-home .hero-art { width: clamp(46rem, 58%, 65rem); object-fit: cover; object-position: right center; }
.hero-home .hero-text { max-width: 34rem; }
.hero-home .eyebrow { color: var(--gold); }
.hero-home h1 { font-size: clamp(3.75rem, 7vw, 6.75rem); line-height: .92; letter-spacing: -.01em; color: var(--ivory); }
.hero-home h1 em { display: block; color: var(--rose); padding-left: .6em; }
.tagline-row { display: flex; align-items: center; gap: 1.1rem; margin: 2.5rem 0 1.75rem; }
.tagline-row .rule { width: 4rem; flex: none; }
.tagline { margin: 0; font: italic 400 clamp(1.35rem, 2.2vw, 1.75rem)/1.3 var(--serif); }
.hero-home .lead { color: #dccdd2; }
.hero-home .text-link { color: #f4ebdf; border-bottom-color: rgba(244, 235, 223, .4); }
.hero-home .text-link:hover { color: var(--gold); }

.hero-page { background: var(--cream); }
.hero-page .hero-inner { min-height: clamp(30rem, 40vw, 38rem); padding-block: clamp(4rem, 8vw, 6.5rem); }
.hero-page h1 { font-size: clamp(3rem, 6vw, 5.25rem); line-height: 1; color: var(--plum); margin-bottom: 1.75rem; }
.hero-page .lead { color: var(--muted); }
.hero-page .hero-text { max-width: 36rem; }

/* Strip */
.strip { background: var(--linen); border-bottom: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.75rem 0; padding-block: 2.75rem; text-align: center; }
.strip div { display: flex; flex-direction: column; gap: .4rem; padding-inline: 1.5rem; }
.strip div + div { border-left: 1px solid #dccdbb; }
.strip strong { font: 400 1.65rem/1.2 var(--serif); }
.strip span { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--soft); }

/* Sections */
.section { padding-block: clamp(5rem, 10vw, 8.75rem); }
.section-head { text-align: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-head .lead { margin: 1.25rem auto 0; color: var(--muted); }
.section-head .drop { display: block; width: 1px; height: 3.5rem; background: #c9b79c; margin: 2.25rem auto 0; }
.bg-blush { background: var(--blush); }
.bg-linen { background: var(--linen); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 2rem; }
.card { background: #fff; border: 1px solid var(--line); padding: clamp(2.5rem, 5vw, 4rem); display: flex; flex-direction: column; gap: 1.5rem; }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.numeral { font: italic 400 1.4rem/1 var(--serif); color: var(--gold-ink); }
.card-top .label { font-size: .68rem; letter-spacing: .28em; color: var(--soft); }
.card h3 { font-size: clamp(2.25rem, 3.5vw, 3rem); font-weight: 400; line-height: 1; }
.card p { margin: 0; color: var(--muted); max-width: 34rem; }
.card .text-link { margin-top: auto; font-weight: 500; }
.card.single { max-width: 48rem; margin-inline: auto; }

/* Journal */
.split { display: flex; flex-wrap: wrap; gap: clamp(3rem, 6vw, 4.5rem); align-items: flex-start; }
.split > * { flex: 1 1 26rem; min-width: 0; }
.split h2 { margin-bottom: 1.75rem; }
.split .lead { color: var(--muted); margin-bottom: 1rem; }
.split .lead + .lead { margin-top: 0; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 2rem; padding: 2rem 0; border-top: 1px solid #dcc4c6; }
.steps li:last-child { border-bottom: 1px solid #dcc4c6; }
.steps .numeral { font-size: 1.75rem; min-width: 2.25rem; }
.steps h3 { font-size: 1.9rem; font-weight: 400; margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }

/* Enquiry band + contact */
.enquire { text-align: center; }
.enquire .actions { justify-content: center; }
.contact-line { margin: 1.75rem 0 0; font-size: .95rem; color: var(--soft); letter-spacing: .04em; }
.contact-line a { border-bottom: 1px solid #c9b79c; }

/* Appointment form */
.form-grid { display: flex; flex-wrap: wrap; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: flex-start; }
.form-grid > form { flex: 1 1 26rem; min-width: 0; background: #fff; border: 1px solid var(--line); padding: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.4rem; }
.form-grid > aside { flex: 1 1 18rem; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.form-grid aside h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
.form-grid aside p { margin: 0; color: var(--muted); }
.form-note { margin: 0; color: var(--muted); font-size: .95rem; }
.enquiry label { display: grid; gap: .5rem; font: 400 .72rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--soft); }
.enquiry input {
  font: 300 1.0625rem/1.4 var(--sans); letter-spacing: normal; text-transform: none; color: var(--ink);
  padding: .9rem 0; border: 0; border-bottom: 1px solid #b7a28a; background: transparent; border-radius: 0;
}
.enquiry input:focus { outline: none; border-bottom-color: var(--plum); box-shadow: 0 1px 0 var(--plum); }
.enquiry button { justify-self: start; margin-top: .5rem; }
.contact-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.5rem; }
.contact-list dt { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--soft); padding-top: .2rem; }
.contact-list dd { margin: 0; }
.contact-list a { border-bottom: 1px solid #c9b79c; }

/* Footer */
.site-footer { background: var(--plum-deep); color: #d9c9cf; }
.site-footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; text-align: center; padding-block: 5rem 2.5rem; }
.footer-tagline { margin: 0; font: italic 400 1.5rem/1.3 var(--serif); color: #f4ebdf; }
.footer-mail { color: var(--gold); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; padding: .75rem 0; }
.footer-mail:hover { color: #e3cc9c; }
.footer-base { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; border-top: 1px solid rgba(217, 201, 207, .18); padding-top: 1.75rem; margin-top: 1rem; font-size: .78rem; letter-spacing: .12em; color: #b8a4ae; }
.footer-base nav { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.footer-base a { color: #b8a4ae; }
.footer-base a:hover { color: var(--gold); }

/* Phone and tablet */
@media (max-width: 900px) {
  .site-nav { order: 3; flex-basis: 100%; justify-content: space-between; }
  .hero-inner { flex-direction: column; align-items: stretch; min-height: 0 !important; padding-bottom: 0 !important; }
  .hero .hero-art {
    position: static; z-index: auto; height: auto; width: calc(100% + 2 * clamp(1.35rem, 5vw, 4rem));
    margin-inline: calc(-1 * clamp(1.35rem, 5vw, 4rem)); margin-top: 1.5rem;
    aspect-ratio: 1.05; object-fit: cover; object-position: right center;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  }
  .strip div + div { border-left: 0; }
}
@media (max-width: 560px) {
  .topbar span:last-child { display: none; }
  .header-actions .button { display: none; }
  .hero-home h1 em { padding-left: .3em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Social links */
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; }
.social a { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; color: #d9c9cf; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.social a:hover { color: var(--gold); }
.social svg { flex: none; }
