/* ==========================================================================
   BLOOMWELL (إزهار) — Botanical Women's Health & Hormone Clinic
   Cream #FBF4EE · Paper #F3E8DC · Ink #2E1F27 · Plum #8E5A6E · Deep Plum #4E2A3B
   Blush #E7B7A8 · Sage #7A8F6A · Ochre #D4A24C · Millimeter Ruler + Specimen Lens
   ========================================================================== */

:root {
  --cream: #FBF4EE;
  --paper: #F3E8DC;
  --ink: #2E1F27;
  --plum: #8E5A6E;
  --plum-deep: #4E2A3B;
  --blush: #E7B7A8;
  --sage: #7A8F6A;
  --ochre: #D4A24C;
  --line: rgba(142, 90, 110, 0.22);
  --font-serif: 'Amiri', Georgia, serif;
  --font-sans: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cream); color: var(--ink); scroll-behavior: auto; overflow-x: clip; -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100vh; background: var(--cream); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.65; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

.container { width: min(1220px, 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* Sticky 68px Roman-Numeral Botanical Header */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 68px;
  z-index: 70;
  background: rgba(251, 244, 238, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700; color: var(--plum-deep); }
.nav-links { display: inline-flex; align-items: center; gap: 22px; font-size: 0.86rem; color: rgba(46, 31, 39, 0.78); }
.nav-links a span { font-family: var(--font-serif); font-style: italic; color: var(--plum); margin-inline-end: 4px; }
.nav-links a:hover { color: var(--plum-deep); }

.nav-right { display: inline-flex; align-items: center; gap: 14px; }
.next-slot { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--sage); white-space: nowrap; }
.next-slot i { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s var(--ease);
}

.pill-btn:hover { transform: translateY(-1px); }
.pill-btn--plum { background: var(--plum-deep); color: var(--cream); }
.pill-btn--plum:hover { background: var(--plum); }
.pill-btn--line { background: transparent; border-color: var(--line); color: var(--plum-deep); }
.pill-btn--line:hover { border-color: var(--plum-deep); }

/* HERO — Left Millimeter Ruler + Pressed Botanical Specimen Lens + Taped Card */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 96px 0 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.mm-ruler {
  position: absolute;
  top: 88px;
  bottom: 32px;
  left: 14px;
  width: 24px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--plum);
  pointer-events: none;
}

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }

.hero-pill {
  display: inline-flex;
  padding: 6px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--plum);
  margin-bottom: 20px;
}

.hero-title { margin: 0 0 18px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.9rem, 5.8vw, 5.2rem); line-height: 1.08; color: var(--ink); }
.hero-title em, .h2 em { font-style: italic; color: var(--plum); }
.hero-lead { margin: 0 0 26px; max-width: 44ch; color: rgba(46, 31, 39, 0.72); font-size: 1.02rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.hero-bullets { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.84rem; color: var(--plum-deep); }
.hero-bullets li::before { content: '✦ '; color: var(--ochre); }

/* Specimen Herbarium Frame + Interactive Halftone Lens + Taped Card */
.specimen-wrap { position: relative; }
.specimen-frame {
  position: relative;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px;
  cursor: crosshair;
  overflow: hidden;
}

.specimen-frame img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; display: block; border-radius: 4px; }
.specimen-meta { display: flex; justify-content: space-between; margin-top: 12px; color: var(--plum); direction: ltr; }

.plate-lens {
  position: absolute;
  top: 44%;
  left: 48%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  border: 1.5px solid var(--plum-deep);
  background:
    radial-gradient(rgba(78, 42, 59, 0.25) 1.2px, transparent 1.2px),
    rgba(251, 244, 238, 0.42);
  background-size: 7px 7px;
  backdrop-filter: contrast(1.18);
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  transition: transform 0.12s ease-out;
}
.plate-lens span { font-family: var(--font-mono); font-size: 0.58rem; background: var(--plum-deep); color: var(--cream); padding: 2px 7px; border-radius: 999px; direction: ltr; }

.taped-card {
  position: absolute;
  bottom: -24px;
  inset-inline-start: -18px;
  width: 215px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(78, 42, 59, 0.14);
  transform: rotate(-2.4deg);
}
.taped-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 66px;
  height: 18px;
  background: rgba(231, 183, 168, 0.65);
}

/* Care Chapter (#care — 4 Scroll Beats) */
.care-sec { position: relative; height: 240svh; background: var(--paper); border-block: 1px solid var(--line); }
.care-stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; transition: background 0.5s ease, color 0.5s ease; }
.care-stage.is-dusk { background: var(--plum-deep); color: var(--cream); }
.care-in { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; width: min(1100px, 100% - 48px); margin-inline: auto; }
.cbeats { position: relative; min-height: 220px; }
.cbeat { position: absolute; inset: 0; opacity: 0; transform: translateY(16px); transition: all 0.4s var(--ease); }
.cbeat.is-active { opacity: 1; transform: translateY(0); }
.cbeat h2 { margin: 10px 0 12px; font-family: var(--font-serif); font-size: clamp(2.1rem, 4.4vw, 3.8rem); font-weight: 400; line-height: 1.1; }
.cbeat p { margin: 0; max-width: 48ch; opacity: 0.78; }
.cdote-rail { display: flex; flex-direction: column; gap: 12px; }
.cdote-rail span { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--plum); }
.cdote-rail span.is-cur { background: var(--ochre); border-color: var(--ochre); }

/* Services, Numbers, Start Booking, Team & Journal */
.sec { padding: clamp(74px, 9vw, 126px) 0; }
.sec-paper { background: var(--paper); border-block: 1px solid var(--line); }
.h2 { margin: 0 0 14px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1.08; }

.svc-grid { margin-top: 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.svc-card { background: #ffffff; border: 1px solid var(--line); padding: 22px; border-radius: 6px; }
.svc-card.is-stagger { margin-top: 34px; }
.svc-plate { aspect-ratio: 4 / 3.4; background: var(--paper); border: 1px solid var(--line); margin-bottom: 16px; overflow: hidden; }
.svc-plate img, .svc-plate svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.svc-head h3 { margin: 0; font-family: var(--font-serif); font-size: 1.65rem; font-weight: 400; }
.svc-price { font-family: var(--font-serif); font-size: 1.45rem; color: var(--plum); direction: ltr; }

.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.proof-grid strong { display: block; font-family: var(--font-serif); font-size: 2.8rem; color: var(--plum-deep); line-height: 1; direction: ltr; text-align: right; }
.proof-grid span { font-size: 0.86rem; color: rgba(46, 31, 39, 0.72); }

/* Interactive Topic Booking (#start) */
.start-box { padding: clamp(36px, 5vw, 64px); border-radius: 16px; background: linear-gradient(135deg, #f3e4da 0%, #ead5cc 55%, #e5e8df 100%); border: 1px solid var(--line); }
.topic-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.tpill { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--plum); background: rgba(251, 244, 238, 0.85); color: var(--plum-deep); font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.tpill.is-active, .tpill:hover { background: var(--plum-deep); color: var(--cream); }

/* Team & Journal */
.team-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: start; }
.clin-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.clin-row h3 { margin: 0 0 4px; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; }
.clin-row small { color: var(--plum); }

.journal-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.jcard { padding: 22px; border-top: 1px solid var(--line); }
.jcard h3 { margin: 8px 0; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 400; }

/* Deep Plum Footer (#4E2A3B + Oversized Italic Bloomwell Watermark) */
.bw-foot { background: var(--plum-deep); color: var(--cream); padding: 72px 0 34px; overflow: hidden; }
.bw-foot-grid { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr; gap: 36px; }
.bw-form { display: flex; gap: 8px; margin-top: 14px; }
.bw-form input { flex: 1; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(251, 244, 238, 0.28); background: rgba(255, 255, 255, 0.08); color: var(--cream); outline: none; }
.bw-form button { padding: 10px 20px; border-radius: 999px; border: none; background: var(--blush); color: var(--plum-deep); font-weight: 700; cursor: pointer; }
.bw-word { margin: 38px 0 16px; text-align: center; font-family: var(--font-serif); font-style: italic; font-size: clamp(4.2rem, 17vw, 15.5rem); line-height: 0.88; color: rgba(251, 244, 238, 0.14); direction: ltr; user-select: none; }
.bw-bot { padding-top: 20px; border-top: 1px solid rgba(251, 244, 238, 0.18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 0.8rem; color: rgba(251, 244, 238, 0.68); }

@media (max-width: 960px) {
  .svc-grid, .team-grid, .journal-grid, .bw-foot-grid { grid-template-columns: 1fr; }
  .svc-card.is-stagger { margin-top: 0; }
  .next-slot, .mm-ruler { display: none; }
  .taped-card { position: static; margin-top: 16px; transform: none; }
}
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .container { width: calc(100% - 32px); }
  .nav-links, .plate-lens { display: none; }
  .proof-grid { grid-template-columns: 1fr; }
}
