/* =========================================================
   FemiPro Canada — Design System
   Palette derived from the original FemiPro brand assets
   ========================================================= */

:root {
  /* Brand colours (sourced from existing FemiPro product assets) */
  --pink: #dc8ab7;
  --pink-light: #f4e5e5;
  --pink-pale: #fbf1f5;
  --plum: #755477;
  --plum-dark: #4f3a52;
  --mauve: #a986b0;
  --ink: #232323;
  --ink-soft: #4b4550;
  --white: #ffffff;
  --grey-50: #fafafa;
  --grey-100: #f4f4f4;
  --grey-200: #e6e6e6;
  --grey-400: #cfcfcf;
  --success: #4c8a5e;
  --warning: #a8602c;

  --font-body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(117, 84, 119, 0.08);
  --shadow-md: 0 8px 24px rgba(117, 84, 119, 0.14);
  --shadow-lg: 0 20px 48px rgba(117, 84, 119, 0.18);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  max-width: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1024px) {
  body { font-size: 19px; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--plum-dark);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.2vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.5em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-alt { background: var(--pink-pale); }
.section-plum { background: var(--plum-dark); color: var(--white); }
.section-plum h2, .section-plum h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--plum);
  background: var(--pink-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--grey-200);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; max-width: var(--container); margin: 0 auto;
}
.logo img { height: 38px; width: auto; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }

.main-nav { display: none; }
.main-nav > ul { display: flex; list-style: none; gap: 6px; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  text-decoration: none; font-weight: 500; font-size: 16px; color: var(--ink);
  padding: 10px 12px; border-radius: 8px; display: block;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--plum); background: var(--pink-pale); }

.dropdown { position: relative; }
.dropdown-toggle { background: none; border: none; font: inherit; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: 16px; }
.dropdown-toggle:hover { color: var(--plum); background: var(--pink-pale); }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; background: var(--white);
  box-shadow: var(--shadow-md); border-radius: var(--radius-sm); padding: 8px; min-width: 240px;
  list-style: none; margin: 6px 0 0; z-index: 50;
}
.dropdown-menu li a { padding: 10px 12px; font-size: 15.5px; border-radius: 8px; }
.dropdown.open .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }

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

.hamburger {
  display: inline-flex; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.hamburger span { width: 24px; height: 2px; background: var(--plum-dark); border-radius: 2px; }

.mobile-nav {
  display: none; position: fixed; inset: 0; background: var(--white); z-index: 200;
  padding: 20px; overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav li { border-bottom: 1px solid var(--grey-200); }
.mobile-nav a, .mobile-nav .msub-toggle {
  display: block; padding: 16px 4px; text-decoration: none; color: var(--ink);
  font-size: 18px; font-weight: 500; background: none; border: none; width: 100%; text-align: left; font-family: inherit; cursor: pointer;
}
.mobile-nav .msub { display: none; padding-left: 14px; }
.mobile-nav .msub.open { display: block; }
.mobile-nav .msub a { font-size: 16.5px; padding: 12px 4px; color: var(--ink-soft); }
.mobile-cta { display: block; text-align: center; margin-top: 18px; background: var(--plum); color: var(--white); padding: 14px; border-radius: 999px; font-weight: 600; text-decoration: none; }

@media (min-width: 960px) {
  .main-nav { display: block; }
  .hamburger, .mobile-nav { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; text-align: center;
  padding: 15px 30px; border-radius: 999px; font-size: 17px; cursor: pointer; border: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--pink), var(--plum)); color: var(--white); box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; border: 2px solid var(--plum); color: var(--plum); padding: 13px 28px; }
.btn-outline:hover { background: var(--pink-pale); }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 20px; background: linear-gradient(180deg, var(--pink-pale) 0%, var(--white) 100%); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
}
.hero h1 { margin-bottom: 0.4em; }
.hero-lede { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 1.3em; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.hero-badge { background: var(--white); border: 1px solid var(--grey-200); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--plum-dark); box-shadow: var(--shadow-sm); }
.hero-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.disclosure-line { font-size: 14.5px; color: var(--ink-soft); margin-top: 14px; }
.disclosure-line a { color: var(--plum); text-decoration: underline; }

/* ---------- Ticker ---------- */
.ticker-wrap { background: var(--plum-dark); color: var(--white); overflow: hidden; padding: 12px 0; }
.ticker-track { display: flex; gap: 48px; white-space: nowrap; animation: ticker 26s linear infinite; width: max-content; }
.ticker-track span { font-size: 14.5px; font-weight: 600; letter-spacing: 0.03em; opacity: 0.92; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; overflow-x: auto; } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white); border-radius: var(--radius-md); padding: 26px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--grey-200);
}
.card h3 { margin-bottom: 0.5em; }
.card-elevated { box-shadow: var(--shadow-md); border: none; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; background: var(--pink-light);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px;
}

/* ---------- Pros/cons ---------- */
.proscons { display: grid; gap: 20px; }
@media (min-width: 760px) { .proscons { grid-template-columns: 1fr 1fr; } }
.pros, .cons { border-radius: var(--radius-md); padding: 24px; }
.pros { background: #f2f8f3; border: 1px solid #d9ead9; }
.cons { background: #fbf1ee; border: 1px solid #f1d9d0; }
.pros h3 { color: var(--success); }
.cons h3 { color: var(--warning); }
.pros ul, .cons ul { list-style: none; padding: 0; margin: 0; }
.pros li, .cons li { padding-left: 28px; position: relative; }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.cons li::before { content: "!"; position: absolute; left: 3px; color: var(--warning); font-weight: 700; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--grey-200); }
table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--white); }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--grey-200); font-size: 16.5px; vertical-align: top; }
thead th { background: var(--plum-dark); color: var(--white); font-weight: 600; }
tbody tr:nth-child(even) { background: var(--grey-50); }

/* ---------- Pricing cards ---------- */
.pricing-grid { display: grid; gap: 22px; }
@media (min-width: 820px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  position: relative; background: var(--white); border: 2px solid var(--grey-200); border-radius: var(--radius-lg);
  padding: 28px 24px; text-align: center; box-shadow: var(--shadow-sm);
}
.price-card.featured { border-color: var(--pink); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--plum); color: var(--white); font-size: 13px; font-weight: 700;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.price-card .supply { color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; }
.price-card .amount { font-size: 2.4rem; font-weight: 800; color: var(--plum-dark); }
.price-card .amount .cur { font-size: 1rem; font-weight: 700; vertical-align: super; }
.price-card .per-bottle { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 14px; }
.price-card .was { text-decoration: line-through; color: var(--grey-400); font-size: 15px; }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--white); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--grey-200); }
.testimonial .quote { font-style: italic; margin-bottom: 14px; }
.testimonial .name { font-weight: 700; color: var(--plum-dark); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--grey-200); padding: 6px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 14px 4px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--plum); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 4px 16px; color: var(--ink-soft); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 14.5px; color: var(--ink-soft); padding: 16px 0 0; }
.breadcrumbs a { color: var(--plum); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Callout / notice boxes ---------- */
.callout { border-radius: var(--radius-md); padding: 20px 22px; margin: 24px 0; border-left: 5px solid var(--plum); background: var(--pink-pale); }
.callout.warn { border-left-color: var(--warning); background: #fdf4ee; }
.callout h4 { margin-bottom: 0.4em; color: var(--plum-dark); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Related links ---------- */
.related-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 700px) { .related-links { grid-template-columns: 1fr 1fr; } }
.related-links a {
  display: block; background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius-sm);
  padding: 14px 16px; text-decoration: none; font-weight: 600; color: var(--plum-dark);
}
.related-links a:hover { border-color: var(--pink); background: var(--pink-pale); }

/* ---------- Sources ---------- */
.sources { font-size: 15px; }
.sources li { margin-bottom: 8px; }
.sources a { color: var(--plum); }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-dark); color: #ece5ec; margin-top: 40px; }
.footer-top { padding: 48px 0 24px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 16px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #d9c9d9; text-decoration: none; font-size: 15.5px; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-brand p { color: #d9c9d9; font-size: 15px; }
.footer-logo { height: 30px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 20px 0; font-size: 13.5px; color: #c9b9c9; }
.footer-disclaimer { font-size: 13.5px; color: #c9b9c9; max-width: 900px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 15px; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.center-cta { text-align: center; margin-top: 32px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--pink-light); color: var(--plum-dark); font-size: 13.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }

@media (max-width: 359px) {
  .container { padding: 0 14px; }
}

/* =========================================================
   Homepage-only overrides (scoped to body.home)
   ========================================================= */
body.home { font-size: 19px; }
@media (min-width: 1024px) {
  body.home { font-size: 21px; }
}
body.home .card, body.home .card p, body.home .card li { font-size: 18px; }
@media (min-width: 1024px) {
  body.home .card, body.home .card p, body.home .card li { font-size: 19px; }
}
body.home .testimonial .quote { font-size: 19px; }
body.home .small { font-size: 17px; }

/* ---------- Testimonials with photos ---------- */
.testimonial-photo { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.testimonial-photo img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
.testimonial-photo .name { font-weight: 700; color: var(--plum-dark); font-size: 1.05em; }
.testimonial-photo .stars { color: #e0a83c; font-size: 15px; letter-spacing: 1px; }

/* ---------- Guarantee section ---------- */
.guarantee-block { display: grid; gap: 32px; align-items: center; }
@media (min-width: 800px) { .guarantee-block { grid-template-columns: 200px 1fr; } }
.guarantee-badge img { width: 180px; height: 180px; margin: 0 auto; display: block; }

/* ---------- Bonus section ---------- */
.bonus-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .bonus-grid { grid-template-columns: 1fr 1fr; } }
.bonus-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-md); display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: center;
}
@media (max-width: 480px) { .bonus-card { grid-template-columns: 1fr; text-align: center; } }
.bonus-card img { border-radius: 12px; box-shadow: var(--shadow-sm); width: 100%; max-width: 130px; margin: 0 auto; }
.bonus-tag { display: inline-block; background: var(--plum); color: var(--white); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 12px; border-radius: 999px; margin-bottom: 8px; }

/* ---------- Pricing cards v2 (reference-matched layout) ---------- */
.pricing-banner {
  background: var(--plum); color: var(--white); text-align: center; font-weight: 700;
  font-size: 1.2rem; padding: 16px 20px; border-radius: 999px; max-width: 680px; margin: 0 auto 32px;
}
.pricing-grid-v2 { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .pricing-grid-v2 { grid-template-columns: repeat(3, 1fr); } }
.price-card-v2 {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--grey-200); text-align: center;
}
.price-card-v2.featured { box-shadow: var(--shadow-lg); transform: translateY(-6px); border: none; }
.pcv2-head { background: var(--pink); color: var(--white); padding: 22px 16px; }
.price-card-v2.featured .pcv2-head { background: var(--plum-dark); }
.pcv2-head .qty { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.02em; }
.pcv2-head .supply { font-size: 15.5px; opacity: 0.9; margin-top: 2px; }
.pcv2-body { padding: 30px 26px 34px; }
.pcv2-badge {
  display: inline-block; background: var(--plum); color: var(--white); font-size: 13.5px; font-weight: 700;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
}
.pcv2-body img { max-width: 220px; margin: 0 auto 20px; }
.pcv2-price { font-size: 3.2rem; font-weight: 800; color: var(--plum-dark); line-height: 1; }
.pcv2-price .cur { font-size: 1.3rem; vertical-align: super; }
.pcv2-perbottle { color: var(--ink-soft); font-size: 16.5px; margin: 6px 0 8px; }
.pcv2-bonus { color: var(--plum); font-weight: 700; font-size: 16px; margin-bottom: 18px; }
.pcv2-body .btn { width: 100%; margin-bottom: 16px; padding: 17px 30px; font-size: 18.5px; }
.pcv2-ship { font-size: 15px; color: var(--ink-soft); margin-bottom: 5px; }
.pcv2-total { font-size: 16.5px; margin-bottom: 16px; }
.pcv2-total .was { text-decoration: line-through; color: var(--grey-400); margin-right: 6px; }
.pcv2-total .now { font-weight: 700; color: var(--plum-dark); }
.pcv2-pay { font-size: 13.5px; color: var(--grey-400); letter-spacing: 0.03em; text-transform: uppercase; font-weight: 600; }
