/* =========================================================
   Crescent Care Women's Health — First Draft Stylesheet
   Palette: warm cream / deep forest / terracotta / sage
   Type: Fraunces (display) + Manrope (body)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  /* Palette aligned to CCWH logo: deep plum + teal */
  --cream: #faf7f3;
  --cream-deep: #f1eaef;
  --plum: #4a2858;
  --plum-deep: #2a1438;
  --plum-soft: #6b4480;
  --teal: #2ba5a5;
  --teal-soft: #5fc4c4;
  --lavender: #b8a3c4;
  --lavender-pale: #e8dcec;
  --ink: #1f1424;
  --ink-soft: #4a3d52;
  --ink-mute: #7a6e80;
  --line: #ebe1e8;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(74, 40, 88, 0.06), 0 2px 8px rgba(74, 40, 88, 0.04);
  --shadow: 0 4px 20px rgba(74, 40, 88, 0.08);
  --shadow-lg: 0 20px 60px rgba(74, 40, 88, 0.12);

  --display: 'Fraunces', Georgia, serif;
  --body: 'Manrope', -apple-system, system-ui, sans-serif;

  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: var(--plum); text-decoration: none; }
a:hover { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--plum-deep);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
h4 { font-size: 1.1rem; font-family: var(--body); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--teal); }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
  display: inline-block;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--deep { background: var(--plum); color: var(--cream); }
.section--deep h1, .section--deep h2, .section--deep h3 { color: var(--cream); }
.section--deep .eyebrow { color: var(--teal-soft); }
.section--cream { background: var(--cream-deep); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.topbar {
  background: var(--plum-deep);
  color: var(--cream);
  font-size: 0.82rem;
  padding: 0.55rem 0;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a { color: var(--cream); }
.topbar a:hover { color: var(--teal-soft); }
.topbar .dot { display: inline-block; width: 6px; height: 6px; background: var(--teal-soft); border-radius: 50%; margin-right: 0.5rem; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

.nav {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(250, 247, 243, 0.92);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  gap: 2rem;
}

.brand {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--plum-deep);
  letter-spacing: -0.01em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand .mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--plum);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.brand .mark::before {
  content: '';
  position: absolute;
  inset: 3px 3px 3px 13px;
  background: var(--cream);
  border-radius: 50%;
}
.brand .mark::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  width: 9px;
  height: 22px;
  background: var(--teal);
  border-radius: 50% 0 0 50% / 50% 0 0 50%;
  transform: translateY(-50%);
}
.brand small { display: block; font-family: var(--body); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.93rem;
  font-weight: 500;
}
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover, .nav-links a.active { color: var(--plum); }

.nav-links .has-sub { position: relative; }
.nav-links .has-sub > a::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 6px;
}
.nav-links .sub {
  position: absolute;
  top: 100%;
  left: -1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0;
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  list-style: none;
  margin: 0;
}
.nav-links .has-sub:hover .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-links .sub li { display: block; }
.nav-links .sub a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
}
.nav-links .sub a:hover { background: var(--cream-deep); color: var(--teal); }

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  background: var(--plum);
  color: var(--cream) !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  border: 1px solid var(--plum);
  cursor: pointer;
}
.btn:hover { background: var(--plum-deep); transform: translateY(-1px); box-shadow: var(--shadow); color: var(--cream) !important; }
.btn--teal { background: var(--teal); border-color: var(--teal); }
.btn--teal:hover { background: #1f8585; border-color: #1f8585; }
.btn--ghost { background: transparent; color: var(--plum) !important; border-color: var(--plum); }
.btn--ghost:hover { background: var(--plum); color: var(--cream) !important; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px; height: 40px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--plum);
  margin: 5px auto;
  transition: 0.25s;
}

/* =========================================================
   HERO (home)
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at center, var(--lavender-pale) 0%, transparent 65%);
  opacity: 0.5;
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 {
  font-style: italic;
  font-weight: 300;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal);
  font-weight: 400;
}
.hero-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-meta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero-meta div { font-size: 0.85rem; color: var(--ink-mute); }
.hero-meta strong { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--plum); font-weight: 500; }

.hero-visual {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--lavender) 0%, var(--plum-soft) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* =========================================================
   IMAGE PLACEHOLDERS
   ========================================================= */
.ph {
  position: relative;
  background: linear-gradient(135deg, var(--lavender-pale) 0%, var(--cream-deep) 100%);
  border: 1px dashed var(--lavender);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--plum-soft);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 1.5rem;
  min-height: 240px;
  overflow: hidden;
}
.ph::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(74, 40, 88, 0.1);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}
.ph span { position: relative; max-width: 80%; letter-spacing: 0.04em; }
.ph span::before { content: '◐ '; color: var(--teal); }
.ph.ph--tall { aspect-ratio: 4/5; min-height: 0; }
.ph.ph--wide { aspect-ratio: 16/9; min-height: 0; }
.ph.ph--square { aspect-ratio: 1/1; min-height: 0; }
.ph.ph--dark { background: linear-gradient(135deg, var(--plum-soft), var(--plum-deep)); color: var(--lavender-pale); border-color: var(--plum-soft); }

/* =========================================================
   SERVICE GRID
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.service-card {
  padding: 1.75rem 1.5rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.25s ease;
  position: relative;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--lavender);
}
.service-card .num {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--teal);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.9rem; color: var(--ink-mute); margin: 0; }

/* =========================================================
   CONDITIONS TAGS
   ========================================================= */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.tag {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  background: var(--cream);
  border: 1px solid var(--lavender);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--plum);
  transition: all 0.2s ease;
}
.tag:hover { background: var(--plum); color: var(--cream); border-color: var(--plum); }

/* =========================================================
   TWO-COL CONTENT
   ========================================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.two-col--reverse { grid-template-columns: 1.3fr 1fr; }
.two-col .sticky { position: sticky; top: 6rem; }

/* =========================================================
   DOCTOR BIO
   ========================================================= */
.bio-quote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--plum-deep);
  border-left: 2px solid var(--teal);
  padding-left: 1.5rem;
  margin: 2rem 0;
}
.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.cred {
  padding: 1.25rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.88rem;
}
.cred strong { display: block; font-family: var(--display); color: var(--plum); font-size: 1.05rem; margin-bottom: 0.25rem; font-weight: 500; }
.cred span { color: var(--ink-mute); }

/* =========================================================
   PROCEDURE / CONDITION DETAIL SECTIONS
   ========================================================= */
.detail-section {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  border-top: 1px solid var(--line);
}
.detail-section:first-of-type { border-top: none; }
.detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}
.detail-grid .anchor-label {
  position: sticky;
  top: 6rem;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
}
.detail-grid .anchor-label strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--plum-deep);
  margin-top: 0.5rem;
  font-weight: 400;
  line-height: 1.15;
}

.faq { margin-top: 2rem; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--plum-deep);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--body);
  font-size: 1.5rem;
  color: var(--teal);
  font-weight: 300;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 0.8rem; color: var(--ink-soft); }

ul.clean { list-style: none; padding: 0; margin: 1rem 0; }
ul.clean li {
  padding: 0.6rem 0 0.6rem 1.8rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
ul.clean li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 10px;
  height: 2px;
  background: var(--teal);
}
ul.clean li:last-child { border-bottom: none; }

/* =========================================================
   PAGE HEADER (interior pages)
   ========================================================= */
.page-header {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  position: relative;
}
.page-header .eyebrow { color: var(--teal); }
.page-header h1 { margin-bottom: 1rem; font-style: italic; font-weight: 300; }
.page-header .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }

.breadcrumbs {
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-bottom: 1.5rem;
}
.breadcrumbs a { color: var(--ink-mute); }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs span { margin: 0 0.5rem; opacity: 0.5; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  background: var(--plum);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(ellipse, var(--plum-soft) 0%, transparent 60%);
  opacity: 0.5;
}
.cta-banner .wrap { position: relative; }
.cta-banner h2 { color: var(--cream); font-style: italic; font-weight: 300; max-width: 20ch; margin: 0 auto 1rem; }
.cta-banner p { color: var(--lavender-pale); max-width: 50ch; margin: 0 auto 2rem; }
.cta-banner .btn { background: var(--teal); border-color: var(--teal); }
.cta-banner .btn:hover { background: var(--teal-soft); border-color: var(--teal-soft); }

/* =========================================================
   CONTACT / INFO CARDS
   ========================================================= */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.info-card {
  padding: 2rem 1.75rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.info-card h4 { color: var(--teal); margin-bottom: 0.75rem; }
.info-card p { margin: 0.25rem 0; color: var(--ink-soft); font-size: 0.95rem; }
.info-card strong { color: var(--plum-deep); font-weight: 600; }

/* =========================================================
   INSURANCE CHIPS
   ========================================================= */
.insurance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.insurance-list li {
  list-style: none;
  padding: 0.55rem 1.1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--plum);
  font-weight: 500;
}

/* =========================================================
   TELEMED BADGE
   ========================================================= */
.telemed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  background: var(--lavender-pale);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--plum-deep);
  margin-bottom: 1.5rem;
}
.telemed-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--plum);
  border-radius: 50%;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--plum-deep);
  color: var(--lavender-pale);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
  font-size: 0.9rem;
}
.footer a { color: var(--lavender-pale); }
.footer a:hover { color: var(--teal-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer h5 {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-soft);
  margin: 0 0 1rem;
  font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 0.3rem 0; }
.footer .brand { color: var(--cream); margin-bottom: 1rem; }
.footer .brand small { color: var(--lavender); }
.footer-bottom {
  border-top: 1px solid rgba(184, 163, 196, 0.18);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--lavender);
}
.social { display: flex; gap: 0.75rem; }
.social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(184, 163, 196, 0.35);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s;
}
.social a:hover { background: var(--teal); border-color: var(--teal); color: var(--cream); }

/* =========================================================
   UTILITIES
   ========================================================= */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.prose p { max-width: 65ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 4/3; order: -1; }
  .two-col, .two-col--reverse { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 1rem; }
  .detail-grid .anchor-label { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--gutter);
    gap: 1.25rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.open .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0.5rem 0 0 1rem; min-width: 0; background: transparent; }
  .nav-cta .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .topbar { font-size: 0.75rem; }
  .topbar .hide-sm { display: none; }
}
