/*
Theme Name: WayYounger
Theme URI: https://wayyounger.com
Author: WayYounger
Description: Holistic wellness theme for natural living, anti-aging, and healthy habits.
Version: 1.0
*/

/* ===========================
   BRAND COLORS (from Figma)
   Primary:   #1a3a2a (dark green)
   Secondary: #4caf7d (medium green)
   Accent:    #ff7043 (orange)
   BG:        #f9f9f6 (off-white)
=========================== */

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

:root {
  --primary:    #1a3a2a;
  --secondary:  #4caf7d;
  --accent:     #ff7043;
  --bg:         #f9f9f6;
  --white:      #ffffff;
  --muted:      #e8ebe8;
  --muted-fg:   #6b7c70;
  --text:       #1a3a2a;
  --border:     rgba(26,58,42,0.1);
  --radius:     12px;
  --max-width:  1200px;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p  { line-height: 1.7; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 4rem 0; }
.section-white { background: var(--white); }
.section-muted  { background: var(--muted); }
.section-gradient { background: linear-gradient(135deg, rgba(76,175,125,0.1), rgba(26,58,42,0.05)); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { color: var(--primary); margin-bottom: 0.75rem; }
.section-header p  { color: var(--muted-fg); font-size: 1.1rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  border: none;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary   { background: var(--primary);   color: var(--white); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-accent    { background: var(--accent);    color: var(--white); }
.btn-outline   { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: rgba(26,58,42,0.07); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.1rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.875rem; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); transform: translateY(-2px); }
.card-body { padding: 1.5rem; }

/* ===== GRID HELPERS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }

/* ===========================
   HEADER
=========================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

/* Desktop Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--secondary); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: color 0.2s;
}
.nav-dropdown > button:hover { color: var(--secondary); }
.nav-dropdown > button svg { width: 14px; height: 14px; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 220px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  padding: 0.5rem 0;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.dropdown-menu a:hover { background: var(--muted); }

/* Header icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.header-icons button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.header-icons button:hover { color: var(--secondary); background: var(--muted); }
.header-icons svg { width: 20px; height: 20px; display: block; }
.cart-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}
.mobile-toggle svg { width: 24px; height: 24px; display: block; }

/* Mobile nav */
.mobile-nav {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: block; }
.mobile-nav a, .mobile-nav-heading {
  display: block;
  padding: 0.6rem 0;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--secondary); }
.mobile-sub { padding-left: 1rem; }
.mobile-sub a { font-weight: 400; color: var(--muted-fg); border: none; padding: 0.4rem 0; }
.mobile-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font: inherit;
  font-weight: 500;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26,58,42,0.08), rgba(76,175,125,0.08));
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1546029029-75c0ba113405?q=80&w=1080&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}
.hero-content h1 { color: var(--primary); margin-bottom: 1rem; }
.hero-content p  { font-size: 1.25rem; color: var(--text); margin-bottom: 2rem; opacity: 0.85; }
.hero-buttons     { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===========================
   VALUE PROPS (3 icons)
=========================== */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.value-item  { text-align: center; }
.value-icon  {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(76,175,125,0.12);
  margin-bottom: 1rem;
}
.value-icon svg { width: 32px; height: 32px; color: var(--secondary); }
.value-item h3  { margin-bottom: 0.5rem; }
.value-item p   { color: var(--muted-fg); font-size: 0.95rem; }

/* ===========================
   CATEGORIES
=========================== */
.category-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 260px;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transition: box-shadow 0.25s, transform 0.25s;
}
.category-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.18); transform: translateY(-3px); }
.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.category-card:hover img { transform: scale(1.08); }
.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,58,42,0.80) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
}
.category-overlay h3 { color: var(--white); padding: 1.25rem 1.5rem; font-size: 1.15rem; }

/* ===========================
   BLOG CARDS
=========================== */
.blog-card .card-img { position: relative; height: 200px; overflow: hidden; }
.blog-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .card-img img { transform: scale(1.05); }
.blog-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--secondary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.blog-date { font-size: 0.85rem; color: var(--muted-fg); margin-bottom: 0.5rem; }
.blog-card h3 { margin-bottom: 1rem; font-size: 1.05rem; }
.read-more {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.read-more:hover { gap: 10px; }
.read-more svg { width: 16px; height: 16px; }

/* ===========================
   PROGRAMS
=========================== */
.program-card .card-img { height: 260px; overflow: hidden; }
.program-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.program-price { font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.program-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }

/* ===========================
   SHOP / PRODUCTS
=========================== */
.product-card .card-img { position: relative; height: 260px; overflow: hidden; }
.product-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .card-img img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; }
.product-price  { font-size: 1.1rem; font-weight: 700; color: var(--primary); }

/* ===========================
   TESTIMONIALS
=========================== */
.testimonial-card { padding: 2rem; }
.testimonial-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.testimonial-header img {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial-header h4  { font-size: 1rem; margin-bottom: 2px; }
.testimonial-header p   { font-size: 0.85rem; color: var(--muted-fg); }
.stars { display: flex; gap: 2px; margin-bottom: 0.75rem; }
.stars svg { width: 18px; height: 18px; fill: var(--accent); color: var(--accent); }
.testimonial-text { color: var(--muted-fg); font-style: italic; line-height: 1.7; }

/* ===========================
   LEAD MAGNET / CTA CARD
=========================== */
.cta-card {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--white);
  border-radius: 20px;
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(26,58,42,0.25);
}
.cta-card h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.cta-card p  { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; }
.email-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.email-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.8rem 1.25rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  outline: none;
}
.text-center { text-align: center; }
.mt-8 { margin-top: 2rem; }

/* ===========================
   NEWSLETTER
=========================== */
.newsletter { text-align: center; }
.newsletter h2 { color: var(--primary); margin-bottom: 0.75rem; }
.newsletter p  { color: var(--muted-fg); font-size: 1.1rem; margin-bottom: 2rem; }

/* ===========================
   FOOTER
=========================== */
#site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3.5rem 0 2.5rem;
}
.footer-col h4  { color: var(--white); font-size: 1rem; margin-bottom: 1rem; font-weight: 600; }
.footer-col p   { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1rem; }
.footer-col ul  { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.footer-col li a:hover { color: var(--secondary); }
.social-links { display: flex; gap: 1rem; }
.social-links a {
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.social-links a:hover { color: var(--secondary); }
.social-links svg { width: 20px; height: 20px; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--secondary); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
}
@media (max-width: 640px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .email-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}
