/*
Theme Name: Elara Health
Theme URI: https://www.elarahealthandwellness.com
Author: JTE Medical, LLC
Author URI: https://www.elarahealthandwellness.com
Description: Custom theme for Elara Health and Wellness. Physician-guided GLP-1 weight loss programs. Built for performance, SEO, and conversions.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://www.elarahealthandwellness.com/terms-of-service/
Text Domain: elara-health
*/

/* ============================================
   DESIGN SYSTEM - CSS VARIABLES
   ============================================ */

:root {
  --color-primary: #1A5C5E;
  --color-primary-dark: #0F3D3F;
  --color-primary-light: #2A7D80;
  --color-secondary: #C8965A;
  --color-secondary-dark: #A67842;
  --color-secondary-light: #D4AC7A;
  --color-bg: #FAF8F5;
  --color-bg-alt: #F2EEEA;
  --color-surface: #FFFFFF;
  --color-text: #1C1C1E;
  --color-text-secondary: #6B6B6F;
  --color-text-light: #9A9A9E;
  --color-border: #E5E1DC;
  --color-cta: #1A5C5E;
  --color-cta-hover: #0F3D3F;
  --color-cta-secondary: #C8965A;
  --color-success: #2D8B5F;
  --color-error: #C4453C;
  --color-info: #3A7FBF;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --h1-size: clamp(2.5rem, 5vw, 3.75rem);
  --h2-size: clamp(1.875rem, 3.5vw, 2.5rem);
  --h3-size: clamp(1.375rem, 2.5vw, 1.75rem);
  --h4-size: 1.25rem;
  --body-size: 1.0625rem;
  --small-size: 0.9375rem;
  --caption-size: 0.8125rem;
  --container-max: 1200px;
  --section-padding: clamp(4rem, 8vw, 7rem) 0;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(28,28,30,0.06);
  --shadow-md: 0 4px 20px rgba(28,28,30,0.08);
  --shadow-lg: 0 8px 40px rgba(28,28,30,0.1);
  --shadow-glow: 0 0 60px rgba(26,92,94,0.08);
}


/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul, ol { list-style: none; }


/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3 { font-family: var(--font-display); color: var(--color-text); }
h1 { font-size: var(--h1-size); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: var(--h2-size); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: var(--h3-size); font-weight: 500; line-height: 1.3; }
h4 { font-size: var(--h4-size); font-weight: 600; line-height: 1.35; font-family: var(--font-body); }
h5 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; font-family: var(--font-body); }
h6 { font-size: 1rem; font-weight: 700; line-height: 1.4; font-family: var(--font-body); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }


/* ============================================
   LAYOUT
   ============================================ */

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(1.25rem, 3vw, 2rem); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section-eyebrow { font-size: var(--caption-size); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-secondary); margin-bottom: 12px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: var(--body-size); color: var(--color-text-secondary); max-width: 520px; margin: 0 auto; }


/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 12px 24px; font-size: var(--small-size); }
.btn-lg { padding: 20px 40px; font-size: 1.0625rem; }
.btn-primary { background: var(--color-cta); color: #fff; box-shadow: 0 2px 8px rgba(26,92,94,0.25); }
.btn-primary:hover { background: var(--color-cta-hover); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(26,92,94,0.35); }
.btn-secondary { background: transparent; color: var(--color-cta); border: 2px solid var(--color-cta); }
.btn-secondary:hover { background: var(--color-cta); color: #fff; }
.btn-gold { background: var(--color-cta-secondary); color: #fff; box-shadow: 0 2px 8px rgba(200,150,90,0.3); }
.btn-gold:hover { background: var(--color-secondary-dark); transform: translateY(-2px); }


/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.animate-up { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.animate-up.d1 { animation-delay: 0.1s; }
.animate-up.d2 { animation-delay: 0.2s; }
.animate-up.d3 { animation-delay: 0.3s; }
.animate-up.d4 { animation-delay: 0.4s; }
.animate-up.d5 { animation-delay: 0.5s; }


/* ============================================
   PROMO BAR
   ============================================ */

.promo-bar { background: var(--color-primary-dark); color: rgba(255,255,255,0.9); text-align: center; padding: 10px 16px; font-size: var(--caption-size); font-weight: 500; letter-spacing: 0.02em; }
.promo-bar a { color: var(--color-secondary-light); text-decoration: underline; text-underline-offset: 2px; }
.promo-bar a:hover { color: #fff; }


/* ============================================
   HEADER
   ============================================ */

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250,248,245,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--color-border); transition: box-shadow 0.3s ease; }
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(1.25rem, 3vw, 2rem); height: 72px; }
.logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--color-primary); letter-spacing: -0.02em; }
.logo span { color: var(--color-secondary); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: var(--small-size); font-weight: 500; color: var(--color-text-secondary); position: relative; }
.nav a:hover { color: var(--color-primary); }
.nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--color-primary); transition: width 0.3s ease; }
.nav a:hover::after { width: 100%; }
.nav-cta { background: var(--color-cta); color: #fff !important; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600 !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--color-cta-hover); color: #fff !important; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--color-text); margin: 5px 0; transition: all 0.3s; }


/* ============================================
   HERO
   ============================================ */

.hero { padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 10vw, 7rem); position: relative; overflow: hidden; background: linear-gradient(105deg, rgba(250,248,245,0.97) 0%, rgba(250,248,245,0.92) 38%, rgba(250,248,245,0.65) 55%, rgba(250,248,245,0.15) 75%, rgba(250,248,245,0.0) 100%), url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?auto=format&fit=crop&w=1600&q=80') center right / cover no-repeat; }
.hero::before { content: ''; position: absolute; top: -30%; right: -15%; width: 700px; height: 700px; background: radial-gradient(circle, rgba(26,92,94,0.04) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -20%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(200,150,90,0.04) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--caption-size); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-primary); margin-bottom: 20px; }
.hero-eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--color-secondary); }
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { color: var(--color-primary); font-style: italic; font-weight: 500; }
.hero-sub { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--color-text-secondary); line-height: 1.65; margin-bottom: 16px; max-width: 540px; }
.hero-price { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; font-size: var(--small-size); color: var(--color-text-secondary); }
.hero-price .strike { text-decoration: line-through; opacity: 0.6; }
.hero-price .elara-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--color-primary); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-assurance { display: flex; gap: 24px; flex-wrap: wrap; font-size: var(--caption-size); color: var(--color-text-light); }
.hero-assurance span { display: flex; align-items: center; gap: 6px; }
.hero-assurance svg { width: 14px; height: 14px; color: var(--color-success); flex-shrink: 0; }


/* ============================================
   TRUST BAR
   ============================================ */

.trust-bar { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 24px 0; }
.trust-bar-inner { display: flex; justify-content: center; align-items: center; gap: clamp(16px, 4vw, 48px); flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: var(--caption-size); font-weight: 600; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.06em; }
.trust-item svg { width: 20px; height: 20px; color: var(--color-primary); }


/* ============================================
   HOW IT WORKS
   ============================================ */

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2rem); position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 44px; left: 16.5%; right: 16.5%; height: 2px; background: repeating-linear-gradient(90deg, var(--color-border) 0, var(--color-border) 8px, transparent 8px, transparent 16px); z-index: 0; }
.step-card { background: var(--color-surface); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); position: relative; z-index: 1; text-align: center; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s, transform 0.3s; }
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.step-number { width: 56px; height: 56px; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: #fff; box-shadow: 0 4px 12px rgba(26,92,94,0.3); }
.step-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 12px; }
.step-card p { font-size: var(--small-size); color: var(--color-text-secondary); line-height: 1.65; }


/* ============================================
   PROGRAMS / PACK CARDS
   ============================================ */

.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(1.5rem, 3vw, 2rem); margin-bottom: 2.5rem; }
.program-card { background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s, transform 0.3s; display: flex; flex-direction: column; }
.program-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.program-card.featured { border: 2px solid var(--color-primary); position: relative; }
.program-card.featured::before { content: 'Most Popular'; position: absolute; top: 16px; right: 16px; background: var(--color-primary); color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; z-index: 1; }
.program-card-img { height: 200px; overflow: hidden; background: linear-gradient(135deg, var(--color-bg-alt), var(--color-border)); display: flex; align-items: center; justify-content: center; }
.program-card-img .icon-placeholder { width: 80px; height: 80px; background: rgba(26,92,94,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.program-card-img .icon-placeholder svg { width: 36px; height: 36px; color: var(--color-primary); }
.program-card-body { padding: clamp(1.25rem, 2.5vw, 2rem); flex: 1; display: flex; flex-direction: column; }
.program-card-body h3 { font-family: var(--font-display); font-size: 1.375rem; margin-bottom: 10px; }
.program-card-body p { font-size: var(--small-size); color: var(--color-text-secondary); line-height: 1.65; margin-bottom: 20px; flex: 1; }
.program-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--color-border); }
.program-card-footer .price { font-family: var(--font-display); font-weight: 700; color: var(--color-primary); font-size: 1.125rem; }
.program-card-footer .price span { font-size: var(--caption-size); font-weight: 400; color: var(--color-text-light); font-family: var(--font-body); }
.program-card-footer a { font-size: var(--small-size); font-weight: 600; color: var(--color-primary); display: flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.program-card-footer a:hover { gap: 8px; }
.program-card-footer a svg { width: 16px; height: 16px; }


/* ============================================
   WHY ELARA
   ============================================ */

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.why-content h2 { margin-bottom: 24px; }
.why-content > p { font-size: var(--body-size); color: var(--color-text-secondary); margin-bottom: 32px; max-width: 500px; }
.why-features li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.why-features li:last-child { border-bottom: none; }
.why-icon { width: 44px; height: 44px; background: rgba(26,92,94,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why-icon svg { width: 22px; height: 22px; color: var(--color-primary); }
.why-features h4 { margin-bottom: 4px; font-size: 1rem; }
.why-features p { font-size: var(--small-size); color: var(--color-text-secondary); line-height: 1.6; }

/* Comparison Table */
.comparison-table { background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.comparison-table table { width: 100%; border-collapse: collapse; font-size: var(--small-size); }
.comparison-table thead th { padding: 16px 20px; text-align: left; font-weight: 600; background: var(--color-bg-alt); border-bottom: 2px solid var(--color-border); font-size: var(--caption-size); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-secondary); }
.comparison-table thead th:last-child { background: var(--color-primary); color: #fff; }
.comparison-table tbody td { padding: 14px 20px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody td:last-child { font-weight: 600; color: var(--color-primary); }
.comparison-table .check { color: var(--color-success); font-weight: 700; }
.comparison-table .x { color: var(--color-text-light); }


/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials { padding: var(--section-padding); background: var(--color-primary-dark); color: #fff; position: relative; overflow: hidden; }
.testimonials::before { content: ''; position: absolute; top: -50%; right: -20%; width: 800px; height: 800px; background: radial-gradient(circle, rgba(200,150,90,0.08) 0%, transparent 60%); border-radius: 50%; }
.testimonials .section-eyebrow { color: var(--color-secondary-light); }
.testimonials .section-header h2 { color: #fff; }
.testimonials .section-header p { color: rgba(255,255,255,0.65); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.5rem, 3vw, 2rem); position: relative; z-index: 1; }
.testimonial-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); backdrop-filter: blur(10px); }
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 16px; }
.testimonial-stars svg { width: 16px; height: 16px; color: var(--color-secondary); }
.testimonial-card blockquote { font-size: var(--body-size); line-height: 1.7; color: rgba(255,255,255,0.9); margin-bottom: 20px; font-style: italic; font-family: var(--font-display); font-weight: 300; }
.testimonial-author { font-size: var(--caption-size); color: rgba(255,255,255,0.5); font-weight: 500; }
.testimonial-rating-summary { text-align: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.testimonial-rating-summary .big-number { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--color-secondary); }
.testimonial-rating-summary p { color: rgba(255,255,255,0.5); font-size: var(--small-size); }


/* ============================================
   FAQ
   ============================================ */

.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; background: none; border: none; cursor: pointer; font-family: var(--font-body); font-size: var(--body-size); font-weight: 600; color: var(--color-text); text-align: left; transition: color 0.2s; }
.faq-question:hover { color: var(--color-primary); }
.faq-question svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.3s; color: var(--color-text-light); }
.faq-item.open .faq-question svg { transform: rotate(45deg); color: var(--color-primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 0 20px; font-size: var(--small-size); color: var(--color-text-secondary); line-height: 1.7; }
.faq-more { text-align: center; margin-top: 2.5rem; }


/* ============================================
   FINAL CTA
   ============================================ */

.final-cta { padding: var(--section-padding); background: var(--color-bg); text-align: center; }
.final-cta-inner { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-primary) 100%); border-radius: var(--radius-lg); padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem); color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-glow); }
.final-cta-inner::before { content: ''; position: absolute; top: -50%; left: -30%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(200,150,90,0.15) 0%, transparent 60%); border-radius: 50%; }
.final-cta-inner h2 { color: #fff; margin-bottom: 16px; font-size: clamp(1.75rem, 3.5vw, 2.5rem); position: relative; z-index: 1; }
.final-cta-inner p { color: rgba(255,255,255,0.8); font-size: var(--body-size); max-width: 520px; margin: 0 auto 32px; position: relative; z-index: 1; }
.final-cta .btn { background: #fff; color: var(--color-primary); font-weight: 700; position: relative; z-index: 1; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.final-cta .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(0,0,0,0.2); }


/* ============================================
   FOOTER
   ============================================ */

.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.7); padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 3rem; }
.footer-brand .logo { color: #fff; font-size: 1.375rem; margin-bottom: 16px; display: block; }
.footer-brand .logo span { color: var(--color-secondary-light); }
.footer-brand p { font-size: var(--small-size); line-height: 1.7; color: rgba(255,255,255,0.5); max-width: 300px; margin-bottom: 20px; }
.footer-contact-item { display: flex; align-items: center; gap: 8px; font-size: var(--caption-size); margin-bottom: 8px; }
.footer-contact-item svg { width: 14px; height: 14px; opacity: 0.5; }
.footer-col h4 { font-size: var(--caption-size); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.footer-col a { display: block; font-size: var(--small-size); color: rgba(255,255,255,0.6); padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem; }
.footer-legal { font-size: 0.75rem; color: rgba(255,255,255,0.35); line-height: 1.8; max-width: 900px; }
.footer-legal p { margin-bottom: 8px; }
.footer-copyright { font-size: var(--caption-size); color: rgba(255,255,255,0.3); margin-top: 16px; }


/* ============================================
   STICKY MOBILE CTA
   ============================================ */

.mobile-sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--color-surface); padding: 12px 16px; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); z-index: 90; border-top: 1px solid var(--color-border); }
.mobile-sticky-cta .btn { width: 100%; justify-content: center; }


/* ============================================
   BLOG / SINGLE POST
   ============================================ */

.entry-content { max-width: 740px; margin: 0 auto; font-size: var(--body-size); line-height: 1.8; }
.entry-content h2 { margin: 2.5rem 0 1rem; }
.entry-content h3 { margin: 2rem 0 0.75rem; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol { margin: 1rem 0 1.5rem 1.5rem; list-style: disc; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--color-primary-dark); }
.entry-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.entry-content blockquote { border-left: 3px solid var(--color-secondary); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--color-bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--color-text-secondary); }


/* ============================================
   WORDPRESS / WOOCOMMERCE OVERRIDES
   ============================================ */

body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

.woocommerce .products { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.woocommerce .product { background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s, transform 0.3s; }
.woocommerce .product:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce .cart .button, .woocommerce .checkout-button { background: var(--color-cta) !important; color: #fff !important; font-family: var(--font-body) !important; font-weight: 600 !important; font-size: 1rem !important; padding: 14px 28px !important; border-radius: var(--radius-sm) !important; border: none !important; cursor: pointer; transition: all 0.25s ease !important; text-transform: none !important; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--color-cta-hover) !important; }
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--color-cta) !important; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--color-cta-hover) !important; }
.woocommerce-cart .woocommerce { max-width: var(--container-max); margin: 0 auto; padding: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 3vw, 2rem); }
.woocommerce table.shop_table { border: 1px solid var(--color-border) !important; border-radius: var(--radius) !important; overflow: hidden; }
.woocommerce table.shop_table th { background: var(--color-bg-alt) !important; font-family: var(--font-body) !important; font-weight: 600 !important; font-size: var(--caption-size) !important; text-transform: uppercase !important; letter-spacing: 0.06em !important; color: var(--color-text-secondary) !important; padding: 14px 16px !important; }
.woocommerce table.shop_table td { padding: 16px !important; border-top: 1px solid var(--color-border) !important; font-family: var(--font-body) !important; vertical-align: middle !important; }
.woocommerce .cart-collaterals { margin-top: 2rem; }
.woocommerce .cart_totals { background: var(--color-surface); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.woocommerce-checkout .woocommerce { max-width: var(--container-max); margin: 0 auto; padding: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 3vw, 2rem); }
.woocommerce form .form-row label { font-family: var(--font-body) !important; font-weight: 600 !important; font-size: var(--small-size) !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { padding: 12px 16px !important; border: 1px solid var(--color-border) !important; border-radius: var(--radius-sm) !important; font-family: var(--font-body) !important; font-size: var(--small-size) !important; background: var(--color-bg) !important; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row select:focus { border-color: var(--color-primary) !important; outline: none !important; }
.nav-cart { color: var(--color-text-secondary); transition: color 0.2s; }
.nav-cart:hover { color: var(--color-primary); }
.nav-cart::after { display: none !important; }
.woocommerce-message { background: var(--color-bg-alt) !important; border-top-color: var(--color-success) !important; font-family: var(--font-body) !important; border-radius: var(--radius-sm) !important; }
.woocommerce-error { border-top-color: var(--color-error) !important; }


/* ============================================
   SUPPLEMENT CARD & DETAIL PAGE BUTTONS
   ============================================ */

.program-card-footer .elara-btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: var(--small-size) !important;
  font-weight: 700 !important;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--color-primary) !important;
  color: #fff !important;
  transition: all 0.25s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.program-card-footer .elara-btn-cart:hover {
  background: var(--color-primary-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,92,94,0.3);
  gap: 6px;
}

.elara-btn-add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px 32px;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff !important;
  background: var(--color-primary) !important;
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(26,92,94,0.35);
}
.elara-btn-add-to-cart:hover {
  background: var(--color-primary-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,92,94,0.45);
}
.elara-btn-add-to-cart svg { width: 20px; height: 20px; }

.purchase-option { transition: all 0.2s ease; }
.purchase-option.selected { border-color: var(--color-primary) !important; background: rgba(26,92,94,0.03) !important; }
.purchase-option:not(.selected) { border-color: var(--color-border) !important; background: transparent !important; }
.purchase-option:not(.selected):hover { border-color: var(--color-primary-light) !important; }


/* ============================================
   RESPONSIVE - TABLET (1024px)
   ============================================ */

@media (max-width: 1024px) {
  /* Homepage hero */
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero {
    background:
      linear-gradient(180deg, rgba(250,248,245,0.95) 0%, rgba(250,248,245,0.85) 60%, rgba(250,248,245,0.7) 100%),
      url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?auto=format&fit=crop&w=1200&q=75') center center / cover no-repeat;
  }

  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }

  /* Supplement pack detail page - stack hero grid */
  .container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Unstick the right column on tablet */
  div[style*="position: sticky; top: 100px"] {
    position: static !important;
  }
}


/* ============================================
   RESPONSIVE - MOBILE (768px)
   ============================================ */

@media (max-width: 768px) {

  /* ============================================
     MOBILE NAVIGATION - Production drawer
     Architecture:
     - .mobile-toggle: hamburger button (z-index 110, always tappable)
     - .nav-backdrop: fullscreen tap-catcher overlay (z-index 100)
     - .nav: 320px right drawer (z-index 105, sits above backdrop)
     - body.menu-open: locks scroll without jumping
     ============================================ */

  /* Hamburger button — must escape the header's stacking context
     by using a very high z-index so it stays tappable when the drawer is open */
  .mobile-toggle {
    display: block;
    position: relative;
    z-index: 10000;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: -10px;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1C1C1E;
    margin: 5px 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease;
    transform-origin: center;
    border-radius: 1px;
  }
  .mobile-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-toggle.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .mobile-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Backdrop — fullscreen tap target that closes the drawer.
     z-index 9998 to beat all page content and the sticky header (z-index 100),
     but sit BELOW the drawer. */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 25, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    z-index: 9998;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
  }

  /* Drawer — narrower than viewport so backdrop is tappable beside it.
     Uses !important on positioning because something in WordPress.com or the
     parent theme is overriding right: 0 with left: 0. Explicit left: auto
     guarantees the drawer anchors to the right edge. */
  .nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    width: min(85vw, 340px) !important;
    max-width: 340px !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #FAF8F5 !important;
    padding: 24px 24px max(32px, env(safe-area-inset-bottom, 32px)) !important;
    padding-top: max(80px, calc(env(safe-area-inset-top, 0px) + 80px)) !important;
    box-shadow: -16px 0 48px rgba(15, 23, 25, 0.15) !important;
    transform: translate3d(100%, 0, 0) !important;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1) !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    will-change: transform !important;
    margin: 0 !important;
  }
  .nav.is-open {
    transform: translate3d(0, 0, 0) !important;
  }

  /* Nav links inside the drawer */
  .nav a {
    display: block;
    width: 100%;
    padding: 18px 4px;
    font-size: 1.0625rem;
    font-weight: 500;
    color: #1C1C1E;
    border-bottom: 1px solid #E5E1DC;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, padding-left 0.2s ease;
  }
  .nav a:active,
  .nav a:hover {
    color: #1A5C5E;
    padding-left: 8px;
  }
  /* Kill the desktop underline animation on mobile */
  .nav a::after {
    display: none !important;
  }

  /* Cart icon row */
  .nav .nav-cart {
    border-bottom: 1px solid #E5E1DC;
    padding: 18px 4px !important;
    color: #1C1C1E;
  }
  .nav .nav-cart svg {
    width: 22px !important;
    height: 22px !important;
  }

  /* CTA at the bottom — full-width button, primary teal */
  .nav .nav-cta {
    margin-top: 24px;
    padding: 18px 24px;
    text-align: center;
    border-bottom: none;
    border-radius: 8px;
    background: #1A5C5E;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 1rem;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(26, 92, 94, 0.3);
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .nav .nav-cta:active,
  .nav .nav-cta:hover {
    background: #0F3D3F;
    color: #FFFFFF !important;
    padding-left: 24px;
  }

  /* Body scroll lock — uses position fixed trick.
     The JS preserves and restores scroll position so the page
     doesn't visually jump when the drawer opens or closes. */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
  }

  /* When drawer is open, raise the entire header above the backdrop
     so the hamburger button stays tappable and escapes its stacking context */
  body.menu-open .site-header {
    z-index: 10000 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #FAF8F5 !important;
  }

  /* ============================================
     EXISTING MOBILE RULES
     ============================================ */
  .steps-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .comparison-table { overflow-x: auto; }
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 70px; }
  .hero { padding-top: 3rem; }

  /* Supplement detail page buttons */
  .elara-btn-add-to-cart { font-size: 1rem; padding: 16px 24px; }

  /* Product image max width on mobile */
  .animate-up[style*="max-width: 380px"],
  .animate-up[style*="max-width: 400px"] {
    max-width: 280px !important;
  }

  /* Purchase option labels - tighter padding */
  .purchase-option { padding: 12px !important; }

  /* Trust signals wrap better */
  .trust-bar-inner { gap: 12px; }

  /* Quiz options single column */
  .quiz-options { grid-template-columns: 1fr !important; }

  /* Cart page responsive */
  .woocommerce table.shop_table { font-size: var(--caption-size); }
  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td { padding: 10px 12px !important; }

  /* WooCommerce checkout fields full width */
  .woocommerce .col2-set .col-1,
  .woocommerce .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
  }

  /* Final CTA buttons stack */
  .final-cta-inner .btn { width: 100%; justify-content: center; }

  /* Legal page padding */
  .legal-content { font-size: var(--small-size); }
}


/* ============================================
   RESPONSIVE - SMALL MOBILE (480px)
   ============================================ */

@media (max-width: 480px) {
  .trust-bar-inner { flex-direction: column; gap: 12px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-price { flex-direction: column; gap: 4px; }

  /* Buttons full width on small screens */
  .btn { width: 100%; justify-content: center; padding: 14px 24px; }
  .btn-lg { padding: 16px 28px; }
  .btn-sm { padding: 10px 20px; }

  /* H1 sizing */
  h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }

  /* Card image height */
  .program-card-img { height: 180px; }

  /* Pricing text in cards */
  .program-card-footer { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Container less padding */
  .container { padding: 0 16px; }

  /* Purchase box - radio buttons */
  .purchase-option { gap: 10px !important; }

  /* Section padding tighter */
  :root { --section-padding: clamp(3rem, 6vw, 5rem) 0; }

  /* Footer tighter */
  .site-footer { padding: 3rem 0 1.5rem; }

  /* Header height */
  .header-inner { height: 60px; }
  .logo { font-size: 1.25rem; }
}


/* ============================================
   RESPONSIVE - TOUCH DEVICE OPTIMIZATIONS
   ============================================ */

@media (hover: none) {
  /* Remove hover transforms on touch devices - they stick */
  .program-card:hover { transform: none; }
  .step-card:hover { transform: none; }
  .btn-primary:hover { transform: none; }
  .btn-gold:hover { transform: none; }
  .elara-btn-cart:hover { transform: none; }
  .elara-btn-add-to-cart:hover { transform: none; }

  /* Larger tap targets */
  .quiz-option-box { padding: 20px; min-height: 56px; }
  .faq-question { padding: 24px 0; min-height: 56px; }
  .nav-cart { padding: 12px; }

  /* Ensure touch-friendly checkout */
  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row select {
    min-height: 48px !important;
    font-size: 16px !important; /* prevents iOS zoom on focus */
  }
}


/* ============================================
   SAFE AREA (iPhone notch/home indicator)
   ============================================ */

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-sticky-cta {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
  /* Drawer respects iPhone safe area at the bottom */
  @media (max-width: 768px) {
    .nav {
      padding-bottom: calc(32px + env(safe-area-inset-bottom));
    }
  }
}