/*
Theme Name: MenstrualCup UK
Theme URI: https://menstrualcup.uk
Description: Custom theme for menstrualcup.uk — educational hub with full ACF control panel
Version: 1.0.1
Author: menstrualcup.uk
Text Domain: mcup
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --mc-cream:      #F7F3EE;
  --mc-dark:       #1C2B2B;
  --mc-teal:       #2D6A6A;
  --mc-teal-light: #E8F4F4;
  --mc-teal-mid:   #4A9090;
  --mc-blush:      #F2E8E1;
  --mc-sage:       #8BAD9A;
  --mc-text:       #3A3A3A;
  --mc-muted:      #7A7A7A;
  --mc-border:     #E2DDD8;
  --mc-white:      #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.75rem;
  --text-2xl:  2.25rem;
  --text-3xl:  3rem;
  --text-4xl:  4rem;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(28,43,43,0.08);
  --shadow-md: 0 4px 16px rgba(28,43,43,0.10);
  --shadow-lg: 0 12px 40px rgba(28,43,43,0.12);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
  --container-narrow: 760px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--mc-text);
  background: var(--mc-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mc-teal); text-decoration: none; }
a:hover { color: var(--mc-teal-mid); }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--mc-dark);
  line-height: 1.15;
  font-weight: 600;
}
h1 { font-size: clamp(2.5rem, 5vw, var(--text-4xl)); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, var(--text-3xl)); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 2vw, var(--text-xl)); }
h4 { font-size: var(--text-lg); }
p { margin-bottom: var(--space-sm); }
p:last-child { margin-bottom: 0; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mc-teal);
  font-weight: 400;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.container--narrow {
  max-width: var(--container-narrow);
}
.section {
  padding: var(--space-2xl) 0;
}
.section--sm { padding: var(--space-xl) 0; }
.section--lg { padding: var(--space-3xl) 0; }
.section--cream  { background: var(--mc-cream); }
.section--blush  { background: var(--mc-blush); }
.section--dark   { background: var(--mc-dark); color: var(--mc-white); }
.section--teal   { background: var(--mc-teal); color: var(--mc-white); }
.section--white  { background: var(--mc-white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-md); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 var(--space-sm); }
  .section { padding: var(--space-xl) 0; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--mc-teal);
  color: var(--mc-white);
  border-color: var(--mc-teal);
}
.btn--primary:hover {
  background: var(--mc-dark);
  border-color: var(--mc-dark);
  color: var(--mc-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  color: var(--mc-teal);
  border-color: var(--mc-teal);
}
.btn--outline:hover {
  background: var(--mc-teal);
  color: var(--mc-white);
  transform: translateY(-1px);
}
.btn--outline-white {
  background: transparent;
  color: var(--mc-white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
  background: var(--mc-white);
  color: var(--mc-teal);
  border-color: var(--mc-white);
}
.btn--lg { padding: 16px 36px; font-size: var(--text-base); }
.btn svg, .btn .icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mc-border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--mc-dark);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo span { color: var(--mc-teal); }
.logo-dot {
  width: 8px; height: 8px;
  background: var(--mc-teal);
  border-radius: 50%;
  display: inline-block;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav-menu a {
  font-size: var(--text-sm);
  color: var(--mc-text);
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1.5px;
  background: var(--mc-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav-menu a:hover { color: var(--mc-teal); }
.nav-menu a:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: var(--space-sm); }
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  width: 22px; height: 1.5px;
  background: var(--mc-dark);
  display: block;
  transition: all 0.3s;
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: flex; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--mc-cream);
    border-bottom: 1px solid var(--mc-border);
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-sm);
    align-items: flex-start;
  }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--mc-white);
  border: 1px solid var(--mc-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.card:hover .card-image img { transform: scale(1.03); }
.card-body { padding: var(--space-md); }
.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mc-teal);
  background: var(--mc-teal-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xs);
}
.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--mc-dark);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}
.card-excerpt {
  font-size: var(--text-sm);
  color: var(--mc-muted);
  line-height: 1.6;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  color: var(--mc-teal);
  font-weight: 500;
  margin-top: var(--space-sm);
  transition: gap 0.2s;
}
.card-link:hover { gap: 8px; }

/* ============================================================
   PRODUCT CARD (Shopify embed)
   ============================================================ */
.product-card {
  background: var(--mc-white);
  border: 1px solid var(--mc-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.product-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--mc-teal-light);
  position: relative;
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover .product-card-image img { transform: scale(1.04); }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--mc-teal);
  color: var(--mc-white);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.product-card-body { padding: var(--space-sm) var(--space-md) var(--space-md); }
.product-brand {
  font-size: var(--text-xs);
  color: var(--mc-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.product-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--mc-dark);
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}
.product-desc {
  font-size: var(--text-sm);
  color: var(--mc-muted);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}
.product-price {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--mc-dark);
}
.product-cta {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--mc-teal);
  border: 1px solid var(--mc-teal);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: all 0.2s;
}
.product-cta:hover {
  background: var(--mc-teal);
  color: var(--mc-white);
}
.product-specs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}
.product-spec-tag {
  font-size: 10px;
  color: var(--mc-sage);
  background: rgba(139,173,154,0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: var(--space-xl);
}
.section-header--center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}
.section-header h2 { margin-top: var(--space-xs); margin-bottom: var(--space-sm); }
.section-header p { color: var(--mc-muted); font-size: var(--text-md); }

/* ============================================================
   QUIZ COMPONENT
   ============================================================ */
.quiz-wrap {
  background: var(--mc-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}
.quiz-header {
  background: var(--mc-teal);
  padding: var(--space-lg);
  color: var(--mc-white);
}
.quiz-progress {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-md);
}
.quiz-progress-dot {
  height: 3px;
  flex: 1;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  transition: background 0.3s;
}
.quiz-progress-dot.done { background: var(--mc-white); }
.quiz-question-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  opacity: 0.7;
  margin-bottom: 6px;
}
.quiz-question-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
}
.quiz-body { padding: var(--space-lg); }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid var(--mc-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  background: var(--mc-white);
}
.quiz-option:hover {
  border-color: var(--mc-teal);
  background: var(--mc-teal-light);
}
.quiz-option.selected {
  border-color: var(--mc-teal);
  background: var(--mc-teal-light);
}
.quiz-option-radio {
  width: 18px; height: 18px;
  border: 1.5px solid var(--mc-border);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s;
  position: relative;
}
.quiz-option.selected .quiz-option-radio {
  border-color: var(--mc-teal);
  background: var(--mc-teal);
}
.quiz-option.selected .quiz-option-radio::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 8px; height: 8px;
  background: var(--mc-white);
  border-radius: 50%;
}
.quiz-option-content { flex: 1; }
.quiz-option-label {
  font-weight: 500;
  color: var(--mc-dark);
  font-size: var(--text-sm);
}
.quiz-option-sub {
  font-size: var(--text-xs);
  color: var(--mc-muted);
  margin-top: 2px;
}
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--mc-border);
}
.quiz-result {
  padding: var(--space-lg);
  text-align: center;
  display: none;
}
.quiz-result.visible { display: block; }
.quiz-result-badge {
  display: inline-block;
  background: var(--mc-teal-light);
  color: var(--mc-teal);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}
.quiz-result h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--mc-dark);
  margin-bottom: var(--space-xs);
}
.quiz-result-reason {
  color: var(--mc-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}
.quiz-result-actions { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }
.quiz-email-capture {
  background: var(--mc-blush);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}
.quiz-email-capture p {
  font-size: var(--text-sm);
  color: var(--mc-text);
  margin-bottom: var(--space-sm);
}
.quiz-email-form { display: flex; gap: 8px; flex-wrap: wrap; }
.quiz-email-form input {
  flex: 1; min-width: 200px;
  padding: 10px 16px;
  border: 1px solid var(--mc-border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  background: var(--mc-white);
  outline: none;
  transition: border-color 0.2s;
}
.quiz-email-form input:focus { border-color: var(--mc-teal); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: var(--space-md); }
.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--mc-dark);
  margin-bottom: 6px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--mc-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--mc-text);
  background: var(--mc-white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--mc-teal);
  box-shadow: 0 0 0 3px rgba(45,106,106,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint {
  font-size: var(--text-xs);
  color: var(--mc-muted);
  margin-top: 4px;
}

/* ============================================================
   TRUST STRIP / STATS
   ============================================================ */
.trust-strip {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-icon {
  width: 36px; height: 36px;
  background: var(--mc-teal-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-icon svg { width: 18px; height: 18px; color: var(--mc-teal); }
.trust-label { font-size: var(--text-sm); color: var(--mc-muted); }
.trust-value { font-weight: 500; color: var(--mc-dark); font-size: var(--text-sm); }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--mc-teal);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--mc-muted);
  line-height: 1.4;
}

/* ============================================================
   ACCORDION / FAQ
   ============================================================ */
.accordion-item {
  border-bottom: 1px solid var(--mc-border);
}
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-md) 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--mc-dark);
  transition: color 0.2s;
}
.accordion-trigger:hover { color: var(--mc-teal); }
.accordion-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out), padding 0.3s;
}
.accordion-item.open .accordion-panel { max-height: 400px; padding-bottom: var(--space-md); }
.accordion-panel p { color: var(--mc-muted); font-size: var(--text-sm); line-height: 1.7; }

/* ============================================================
   TEAM / ABOUT PERSON CARD
   ============================================================ */
.person-card {
  text-align: center;
  padding: var(--space-lg);
}
.person-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-sm);
  border: 3px solid var(--mc-teal-light);
}
.person-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--mc-dark);
  margin-bottom: 4px;
}
.person-role {
  font-size: var(--text-xs);
  color: var(--mc-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}
.person-bio {
  font-size: var(--text-sm);
  color: var(--mc-muted);
  margin-top: var(--space-sm);
  line-height: 1.6;
}

/* ============================================================
   FREE GUIDE DOWNLOAD
   ============================================================ */
.guide-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-2xl);
  align-items: center;
}
.guide-mockup {
  position: relative;
}
.guide-cover {
  background: var(--mc-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: var(--mc-white);
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform 0.5s var(--ease-out);
}
.guide-cover:hover { transform: rotate(0deg) scale(1.02); }
.guide-cover-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mc-sage);
  margin-bottom: var(--space-sm);
}
.guide-cover h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--mc-white);
  margin-bottom: var(--space-sm);
}
.guide-cover-pages {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-lg);
}
.guide-includes {
  margin: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-include-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-sm);
  color: var(--mc-text);
}
.guide-include-check {
  width: 20px; height: 20px;
  background: var(--mc-teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.guide-include-check svg { width: 10px; height: 10px; color: var(--mc-teal); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--mc-dark);
  color: var(--mc-white);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--space-lg);
}
.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  margin-top: var(--space-sm);
  line-height: 1.7;
  max-width: 300px;
}
.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--mc-white);
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--mc-white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--mc-white); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .guide-hero { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-in {
  opacity: 0;
  animation: fadeUp 0.55s var(--ease-out) forwards;
}
.animate-delay-1 { animation-delay: 80ms; }
.animate-delay-2 { animation-delay: 160ms; }
.animate-delay-3 { animation-delay: 240ms; }
.animate-delay-4 { animation-delay: 320ms; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-muted   { color: var(--mc-muted); }
.text-teal    { color: var(--mc-teal); }
.text-dark    { color: var(--mc-dark); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.flex-center { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   ADMIN BAR OFFSET
   ============================================================ */
body.admin-bar .site-header { top: 32px; }

/* ============================================================
   SCROLL REVEAL SYSTEM (added v1.0.1)
   - Elements get .will-reveal via JS (progressive enhancement:
     without JS nothing is ever hidden)
   - GPU-accelerated: only transform + opacity, no layout thrash
   - Fully disabled for prefers-reduced-motion users
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .will-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.55s var(--ease-out),
      transform 0.55s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }
  .js-reveal .will-reveal.revealed {
    opacity: 1;
    transform: none;
    will-change: auto;
  }

  /* Gentle lift on interactive cards — slightly springier curve */
  .card, .product-card {
    transition:
      transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1),
      box-shadow 0.3s ease;
  }

  /* Button press feedback */
  .btn:active { transform: translateY(0) scale(0.985); }

  /* Smooth accordion icon + panel already transition; add color ease */
  .accordion-trigger { transition: color 0.2s ease; }

  /* Hero floating quiz card — gentle idle float */
  @keyframes mcFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
  }
  .hero-float { animation: mcFloat 5s ease-in-out infinite; }

  /* Stat numbers settle in slightly later than their section */
  .js-reveal .stat-reveal { transition-delay: calc(var(--reveal-delay, 0ms) + 120ms); }

  /* Nav CTA subtle attention on load (once) */
  @keyframes mcPulseOnce {
    0%   { box-shadow: 0 0 0 0 rgba(45,106,106,0.35); }
    100% { box-shadow: 0 0 0 12px rgba(45,106,106,0); }
  }
  .nav-cta { animation: mcPulseOnce 1.2s var(--ease-out) 1s 1; }
}

/* Reduced motion: kill the legacy keyframe animations too */
@media (prefers-reduced-motion: reduce) {
  .animate-in { opacity: 1 !important; animation: none !important; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
