/* ===========================
   My PCOS Girlies — Site Styles
   =========================== */

:root {
  --blush: #e0a8a8;
  --blush-light: #f5e4e4;
  --plum: #122620;
  --plum-dark: #0c1a16;
  --cream: #f7f3ee;
  --gold: #7fa8a3;
  --text: #122620;
  --text-light: #5a7f7a;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(18, 38, 32, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
}

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(18, 38, 32, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--plum);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img { height: 44px; width: auto; display: block; }

.logo span { color: var(--blush); }

nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

nav li { position: relative; }

nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a:hover, nav a.active { color: var(--blush); }

.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 10px;
  min-width: 200px;
  list-style: none;
  z-index: 50;
}

.dropdown li { margin-bottom: 2px; }

.dropdown a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  display: block;
}

.dropdown a:hover { background: var(--blush-light); color: var(--plum); }

.nav-cta {
  background: var(--plum);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--plum-dark); }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blush-light) 0%, var(--cream) 100%);
  padding: 90px 24px;
  text-align: center;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  color: var(--plum);
  max-width: 760px;
  margin: 0 auto 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--blush);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(224,168,168,0.4); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--plum);
  color: var(--plum);
  margin-left: 12px;
}

.btn-outline:hover { background: var(--plum); color: var(--white); }

.hero-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Section generic ---------- */
section { padding: 80px 0; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  color: var(--plum);
  text-align: center;
  margin-bottom: 16px;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}

/* ---------- Cards / Grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.card:hover { transform: translateY(-6px); }

.card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card h3 {
  color: var(--plum);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p { color: var(--text-light); font-size: 0.95rem; }

/* ---------- Story / Quote blocks ---------- */
.story-block {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 48px;
  margin-bottom: 28px;
}

.story-block h3 { color: var(--plum); margin-bottom: 14px; font-size: 1.4rem; }

blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--plum);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  font-style: italic;
}

/* ---------- Tag pills ---------- */
.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.tag {
  background: var(--blush-light);
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--plum);
  color: var(--white);
  text-align: center;
  padding: 70px 24px;
}

.cta-band h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-band p { color: #c8dedd; max-width: 600px; margin: 0 auto 28px; }

.cta-band .btn-primary { background: var(--gold); }

/* ---------- Stats ---------- */
.stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  text-align: center;
}

.stat h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  color: var(--blush);
}

.stat p { color: var(--text-light); font-weight: 600; font-size: 0.9rem; }

/* ---------- Forms ---------- */
.form-box {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 48px;
  max-width: 560px;
  margin: 0 auto;
}

label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: var(--plum); }

input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #c8dedd;
  border-radius: 10px;
  margin-bottom: 20px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
}

input:focus, textarea:focus { outline: none; border-color: var(--blush); }

button.submit-btn {
  width: 100%;
  background: var(--blush);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

button.submit-btn:hover { background: var(--plum); }

/* ---------- Footer ---------- */
footer {
  background: var(--plum-dark);
  color: #9fc4c0;
  padding: 56px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto 32px;
}

.footer-grid h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; }

.footer-grid ul { list-style: none; }

.footer-grid li { margin-bottom: 10px; }

.footer-grid a { color: #9fc4c0; font-size: 0.9rem; }

.footer-grid a:hover { color: var(--blush); }

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.8rem;
  color: #7fa8a3;
  max-width: 1140px;
  margin: 0 auto;
}

.disclaimer {
  font-size: 0.75rem;
  color: #7fa8a3;
  max-width: 1140px;
  margin: 16px auto 0;
  line-height: 1.5;
}

/* ---------- Quiz ---------- */
.quiz-box {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
}

.quiz-q { margin-bottom: 36px; }

.quiz-q h4 { color: var(--plum); margin-bottom: 14px; font-size: 1.05rem; }

.quiz-options { display: flex; flex-direction: column; gap: 10px; }

.quiz-option {
  display: block;
  background: var(--cream);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s;
}

.quiz-option:hover { border-color: var(--blush); background: var(--blush-light); }

.quiz-option input { margin-right: 10px; }

/* ---------- Pillar / numbered list ---------- */
.pillar {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.pillar-num {
  background: var(--blush);
  color: var(--white);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.pillar h4 { color: var(--plum); margin-bottom: 6px; }

.pillar p { color: var(--text-light); font-size: 0.95rem; }

/* ---------- Cart ---------- */
.cart-btn {
  position: relative;
  background: var(--white);
  border: 2px solid var(--blush);
  color: var(--plum);
  border-radius: 30px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  margin-left: 10px;
}

.cart-count {
  background: var(--blush);
  color: var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  margin-left: 6px;
}

.resource-card .add-cart-btn {
  width: 100%;
  background: var(--plum);
  color: var(--white);
  border: none;
  padding: 11px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
  transition: background 0.2s;
}

.resource-card .add-cart-btn.added { background: var(--gold); }

.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 38, 32, 0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.cart-overlay.open { display: flex; }

.cart-modal {
  background: var(--white);
  border-radius: 20px;
  max-width: 480px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

.cart-modal h3 { color: var(--plum); margin-bottom: 18px; font-family: 'Playfair Display', Georgia, serif; }

.cart-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-light);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--blush-light);
  font-size: 0.92rem;
}

.cart-item button {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
}

.cart-empty { color: var(--text-light); text-align: center; padding: 20px 0; }

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--plum);
  margin: 18px 0;
  font-size: 1.05rem;
}

.checkout-success {
  background: var(--blush-light);
  border-radius: 14px;
  padding: 18px;
  margin-top: 16px;
}

.checkout-success a { display: block; margin: 6px 0; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  nav ul { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .stats { gap: 32px; }
}
