/* ===== THE CLEANSE — Global Styles ===== */
:root {
  --green-dark: #2D5016;
  --green: #4A7C2E;
  --green-light: #7BA95B;
  --green-pale: #E8F0E0;
  --earth: #8B6F47;
  --earth-light: #C4A67A;
  --earth-pale: #F5EDE0;
  --cream: #FBF8F3;
  --white: #FFFFFF;
  --text: #2C2C2C;
  --text-light: #6B6B6B;
  --gold: #C8A94E;
  --red-soft: #C45B4A;
  --shadow: 0 2px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .3s ease;
  --max-width: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--green { background: var(--green-dark); color: var(--white); }
.section--green a { color: var(--earth-light); }
.section--pale { background: var(--green-pale); }
.section--earth { background: var(--earth-pale); }
.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: .9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  letter-spacing: .02em;
}
.btn--primary {
  background: var(--green);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn--secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn--secondary:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--gold {
  background: var(--gold);
  color: var(--white);
}
.btn--gold:hover {
  background: #b8992e;
  color: var(--white);
  transform: translateY(-2px);
}
.btn--large {
  padding: 1.1rem 3rem;
  font-size: 1.1rem;
}
.btn--white {
  background: var(--white);
  color: var(--green-dark);
}
.btn--white:hover {
  background: var(--cream);
  color: var(--green-dark);
  transform: translateY(-2px);
}

/* ===== Header / Nav ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(251,248,243,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: all var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-dark);
}
.nav__logo span { color: var(--green-light); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav__links a {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
}
.nav__links a:hover { color: var(--green); }
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width var(--transition);
}
.nav__links a:hover::after { width: 100%; }

/* Dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-toggle { cursor: pointer; }
.nav__dropdown-toggle::after {
  content: ' ▾';
  font-size: .7em;
}
.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  list-style: none;
  z-index: 100;
}
.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown-menu a {
  display: block;
  padding: .6rem 1.2rem;
  font-size: .9rem;
}
.nav__dropdown-menu a:hover {
  background: var(--green-pale);
}
.nav__dropdown-menu a::after { display: none; }

.nav__cta .btn { padding: .6rem 1.5rem; font-size: .9rem; }

/* Mobile nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}
.nav__hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

@media (max-width: 900px) {
  .nav__hamburger { display: flex; }
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition);
    box-shadow: var(--shadow-lg);
    align-items: flex-start;
    overflow-y: auto;
  }
  .nav__links.open { right: 0; }
  .nav__dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding-left: 1rem;
  }
  .nav__dropdown.open .nav__dropdown-menu { display: block; }
  .nav__cta { display: none; }
}

/* ===== Hero ===== */
.hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(135deg, var(--green-dark) 0%, #1a3a0a 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(122,169,91,.2) 0%, transparent 70%);
  border-radius: 50%;
}
.hero__content { position: relative; z-index: 1; max-width: 700px; }
.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  padding: .4rem 1.2rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(5px);
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em {
  font-style: normal;
  color: var(--green-light);
}
.hero p {
  font-size: 1.2rem;
  opacity: .9;
  margin-bottom: 2rem;
  max-width: 550px;
}
.hero__buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero for condition pages */
.hero--condition {
  padding: 9rem 0 5rem;
  text-align: center;
}
.hero--condition .hero__content {
  max-width: 800px;
  margin: 0 auto;
}

/* ===== Celebrity Testimonial Banner ===== */
.celebrity-quote {
  background: var(--earth-pale);
  padding: 4rem 0;
  position: relative;
}
.celebrity-quote__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.celebrity-quote__stars {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 4px;
}
.celebrity-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.celebrity-quote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--green-dark);
  font-size: 1.1rem;
}
.celebrity-quote cite span {
  display: block;
  font-weight: 400;
  color: var(--text-light);
  font-size: .9rem;
  margin-top: .3rem;
}

/* ===== 3-Step Process ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.step {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.step:hover { transform: translateY(-5px); }
.step__number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.2rem;
  font-family: var(--font-serif);
}
.step h3 { margin-bottom: .8rem; }
.step p { color: var(--text-light); font-size: .95rem; }

@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

/* ===== Product Cards ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.product-card__image {
  height: 220px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.product-card__body { padding: 1.5rem; }
.product-card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: .5rem;
}
.product-card__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: .3rem;
}
.product-card__price-note {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.product-card__desc {
  color: var(--text-light);
  font-size: .95rem;
  margin-bottom: 1.5rem;
}
.product-card .btn { width: 100%; }

/* ===== Testimonial Cards ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--green-pale);
  position: absolute;
  top: .5rem;
  left: 1.5rem;
  line-height: 1;
}
.testimonial-card__stars {
  color: var(--gold);
  margin-bottom: .8rem;
  letter-spacing: 2px;
}
.testimonial-card blockquote {
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: var(--text);
}
.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--green-dark);
}
.testimonial-card cite span {
  display: block;
  font-weight: 400;
  color: var(--text-light);
  font-size: .85rem;
}

/* ===== Email Capture ===== */
.email-capture {
  background: linear-gradient(135deg, var(--green-dark) 0%, #1a3a0a 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.email-capture h2 { margin-bottom: .8rem; }
.email-capture p { opacity: .9; margin-bottom: 2rem; }
.email-form {
  display: flex;
  gap: .8rem;
  max-width: 500px;
  margin: 0 auto;
}
.email-form input {
  flex: 1;
  padding: .9rem 1.2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
}
.email-form .btn { white-space: nowrap; }
.email-form__msg {
  margin-top: .8rem;
  font-size: .9rem;
  min-height: 1.4em;
}
@media (max-width: 500px) {
  .email-form { flex-direction: column; }
}

/* ===== Pain Points ===== */
.pain-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.pain-point {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--green);
}
.pain-point h4 { margin-bottom: .5rem; color: var(--green-dark); }
.pain-point p { font-size: .9rem; color: var(--text-light); margin: 0; }

/* ===== About / Feature Sections ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
@media (max-width: 768px) {
  .split, .split--reverse { grid-template-columns: 1fr; gap: 2rem; }
}
.split__image {
  background: var(--green-pale);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.credential-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.credential-badge {
  background: var(--green-pale);
  padding: .5rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--green-dark);
}

/* ===== Day-by-Day Timeline ===== */
.timeline {
  max-width: 700px;
  margin: 2rem auto;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--green-light);
}
.timeline__item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}
.timeline__marker {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
  z-index: 1;
  text-align: center;
  line-height: 1.1;
}
.timeline__content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  flex: 1;
}
.timeline__content h4 { margin-bottom: .5rem; color: var(--green-dark); }
.timeline__content p { margin: 0; font-size: .95rem; color: var(--text-light); }

/* ===== What's In The Box ===== */
.box-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.box-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.box-item__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.box-item h4 { margin-bottom: .5rem; font-size: 1rem; }
.box-item p { font-size: .85rem; color: var(--text-light); margin: 0; }

/* ===== Blog Placeholder ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.blog-card__image {
  height: 200px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-card__body { padding: 1.5rem; }
.blog-card__date { font-size: .8rem; color: var(--text-light); margin-bottom: .5rem; }
.blog-card__title { font-size: 1.1rem; margin-bottom: .8rem; }
.blog-card__excerpt { font-size: .9rem; color: var(--text-light); }

/* ===== Contact Form ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: .5rem;
  font-size: .9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .8rem 1rem;
  border: 2px solid #e0ddd8;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 150px; }

/* ===== Affiliate Dashboard ===== */
.affiliate-login {
  max-width: 400px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.affiliate-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.stat-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-card__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-serif);
}
.stat-card__label {
  font-size: .85rem;
  color: var(--text-light);
  margin-top: .3rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__brand .nav__logo { color: var(--white); margin-bottom: 1rem; }
.footer__brand p { font-size: .9rem; opacity: .8; }
.footer h4 {
  color: var(--white);
  font-family: var(--font);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .6rem; }
.footer ul a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer ul a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 2rem;
  text-align: center;
  font-size: .85rem;
  opacity: .7;
}

/* ===== Condition page specifics ===== */
.condition-how {
  counter-reset: howstep;
}
.condition-how__item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.condition-how__item::before {
  counter-increment: howstep;
  content: counter(howstep);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.condition-how__text h4 { margin-bottom: .3rem; }
.condition-how__text p { color: var(--text-light); font-size: .95rem; margin: 0; }

/* ===== Misc ===== */
.badge-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.badge-item {
  text-align: center;
}
.badge-item__icon { font-size: 2rem; margin-bottom: .3rem; }
.badge-item__text { font-size: .85rem; color: var(--text-light); }

.divider {
  height: 1px;
  background: rgba(0,0,0,.08);
  margin: 3rem 0;
}

/* Animation on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Schema / Hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
