/* ===== Recovery Companion Hub — Global Styles ===== */
:root {
  --cream:       #FDF6EC;
  --cream-dark:  #F5EBD8;
  --warm-white:  #FFFAF3;
  --text-primary:#3B2F1E;
  --text-secondary:#6B5D4D;
  --text-muted:  #9A8C7A;

  /* Product accents */
  --bill-amber:   #D4920B;
  --bill-light:   #FFF3D6;
  --jimmy-green:  #2D5016;
  --jimmy-light:  #E8F5E0;
  --lois-lavender:#7B5EA7;
  --lois-light:   #F0E8F7;

  --glass-bg:    rgba(255,255,255,0.55);
  --glass-border:rgba(255,255,255,0.3);
  --shadow:      0 8px 32px rgba(59,47,30,0.08);
  --radius:      16px;
  --radius-sm:   10px;
  --transition:  0.3s ease;
  --max-width:   1200px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* Lady Justice background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 700"><g opacity="0.04" fill="%233B2F1E"><circle cx="200" cy="90" r="35"/><rect x="185" y="125" width="30" height="180" rx="8"/><line x1="100" y1="200" x2="300" y2="200" stroke="%233B2F1E" stroke-width="8" stroke-linecap="round"/><path d="M80 200 L60 280 Q100 310 140 280 Z"/><path d="M260 200 L240 280 Q280 310 320 280 Z"/><rect x="170" y="305" width="60" height="15" rx="5"/><rect x="150" y="320" width="100" height="12" rx="4"/></g></svg>') center 20% / 300px no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p  { color: var(--text-secondary); max-width: 70ch; }

a { color: var(--bill-amber); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--jimmy-green); }

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

/* ===== Layout ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 1; }
.section { padding: 5rem 0; }
.section--alt { background: var(--cream-dark); }

/* ===== Glass Card ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59,47,30,0.12);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn--primary {
  background: var(--bill-amber);
  color: #fff;
}
.btn--primary:hover {
  background: #b87d08;
  color: #fff;
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  border: 2px solid var(--bill-amber);
  color: var(--bill-amber);
}
.btn--outline:hover {
  background: var(--bill-amber);
  color: #fff;
}
.btn--green { background: var(--jimmy-green); color: #fff; }
.btn--green:hover { background: #1E3B0D; color: #fff; }
.btn--lavender { background: var(--lois-lavender); color: #fff; }
.btn--lavender:hover { background: #5E4387; color: #fff; }
.btn--ghost { background: rgba(255,255,255,0.2); color: var(--text-primary); border: 1px solid var(--glass-border); }
.btn--ghost:hover { background: rgba(255,255,255,0.4); }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,246,236,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: .75rem 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.nav__logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}
.nav__logo span { color: var(--bill-amber); }
.nav__links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav__links a {
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--bill-amber); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  margin: 1.25rem auto 2rem;
  max-width: 600px;
}
.hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== Product Cards Grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.product-card { text-align: center; padding: 2.5rem 2rem; }
.product-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem;
}
.product-card__icon--bill   { background: var(--bill-light);  color: var(--bill-amber); }
.product-card__icon--jimmy  { background: var(--jimmy-light); color: var(--jimmy-green); }
.product-card__icon--lois   { background: var(--lois-light);  color: var(--lois-lavender); }
.product-card h3 { margin-bottom: .5rem; }
.product-card p  { margin: 0 auto 1.5rem; font-size: .95rem; text-align: center; }

/* ===== Feature Highlights ===== */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1.5rem;
  list-style: none;
}
.features-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.features-list .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  padding: 2rem;
  font-style: italic;
  color: var(--text-secondary);
}
.testimonial__author {
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text-primary);
  font-size: .9rem;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}
.pricing-card { text-align: center; padding: 2.5rem 2rem; position: relative; }
.pricing-card--featured {
  border: 2px solid var(--bill-amber);
  transform: scale(1.03);
}
.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bill-amber);
  color: #fff;
  padding: .3rem 1.2rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
}
.pricing-card__price {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin: 1rem 0 .25rem;
}
.pricing-card__period { color: var(--text-muted); font-size: .9rem; }
.pricing-card__features {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}
.pricing-card__features li {
  padding: .4rem 0;
  font-size: .95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.pricing-card__features li::before {
  content: '✓';
  color: var(--jimmy-green);
  font-weight: 700;
}

/* ===== Product Landing Pages ===== */
.product-hero {
  padding: 5rem 0 3rem;
  text-align: center;
}
.product-hero__badge {
  display: inline-block;
  padding: .4rem 1.2rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.badge--bill   { background: var(--bill-light);  color: var(--bill-amber); }
.badge--jimmy  { background: var(--jimmy-light); color: var(--jimmy-green); }
.badge--lois   { background: var(--lois-light);  color: var(--lois-lavender); }

.product-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 1.5rem;
}
.product-feature {
  padding: 1.75rem;
}
.product-feature h4 { margin-bottom: .5rem; }
.product-feature p  { font-size: .9rem; }

/* Disclaimer banner */
.disclaimer-banner {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.disclaimer-banner strong { color: var(--text-secondary); }

/* ===== Crisis Banner ===== */
.crisis-banner {
  background: #FFF4E5;
  border-left: 4px solid var(--bill-amber);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: .9rem;
}
.crisis-banner a { font-weight: 700; }

/* ===== Blog ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 2rem;
}
.blog-card { overflow: hidden; }
.blog-card__img {
  height: 180px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-radius: var(--radius) var(--radius) 0 0;
}
.blog-card__body { padding: 1.5rem; }
.blog-card__date { font-size: .8rem; color: var(--text-muted); }
.blog-card__body h3 { font-size: 1.15rem; margin: .4rem 0 .5rem; }
.blog-card__body p { font-size: .9rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--cream-dark);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: var(--text-secondary); font-size: .9rem; }
.footer-col a:hover { color: var(--bill-amber); }
.footer__bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  font-size: .8rem;
  color: var(--text-muted);
}

/* ===== Legal Pages ===== */
.legal { max-width: 800px; margin: 0 auto; padding: 3rem 1.25rem; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { margin: 2rem 0 .75rem; font-size: 1.3rem; }
.legal p, .legal li { font-size: .95rem; margin-bottom: .75rem; }
.legal ul { padding-left: 1.5rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(253,246,236,0.97);
    backdrop-filter: blur(12px);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    gap: .5rem;
  }
  .nav__toggle { display: block; }

  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3rem 0; }
  .products-grid { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeUp .6s ease forwards; opacity: 0; }
.animate--d1 { animation-delay: .1s; }
.animate--d2 { animation-delay: .2s; }
.animate--d3 { animation-delay: .3s; }
