/*
Theme Name: The Wellbeing Collective
Theme URI: https://wellbeingcollective.org
Author: The Wellbeing Collective
Author URI: https://wellbeingcollective.org
Description: A warm, community-focused theme for The Wellbeing Collective mental health support group. Features a custom animated tree logo, sage green and lavender palette, and sections for Our Work, Get Involved, and About Us.
Version: 1.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wellbeing-collective
Tags: mental-health, community, one-page, custom-logo, full-width-template
*/

/* =============================================
   THE WELLBEING COLLECTIVE
   Colours from logo:
   - Sage green:   #4a7c5e / #2d5a3d
   - Pale cream:   #f5f2e8
   - Soft lavender:#b8a8cc / #c8b8d8
   - Leaf green:   #b8cba6
   - Gold:         #d4c882
============================================= */

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

:root {
  --green-deep: #2d5a3d;
  --green-mid: #4a7c5e;
  --green-light: #b8cba6;
  --green-pale: #e8eee9;
  --lavender: #9b87b8;
  --lavender-light: #e6e0f0;
  --gold: #d4c882;
  --cream: #f5f2e8;
  --cream-mid: #ede8da;
  --text-dark: #1e2e24;
  --text-mid: #3d5447;
  --text-muted: #6b8075;
  --white: #ffffff;
  --radius: 16px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  margin: 0;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.25; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { font-weight: 300; }
a  { text-decoration: none; color: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  letter-spacing: 0.02em;
}
.btn-primary { background: var(--green-deep); color: var(--white); border: 2px solid var(--green-deep); }
.btn-primary:hover { background: var(--green-mid); border-color: var(--green-mid); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--green-deep); border: 2px solid var(--green-deep); }
.btn-outline:hover { background: var(--green-deep); color: var(--white); transform: translateY(-2px); }
.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  background: transparent;
  border: 1.5px solid var(--green-mid);
  color: var(--green-mid);
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition);
  margin-top: 0.75rem;
  display: inline-block;
  font-family: 'Nunito', sans-serif;
}
.btn-sm:hover { background: var(--green-mid); color: var(--white); }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 242, 232, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-mid);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(45, 90, 61, 0.1); }
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; color: var(--text-dark); }
.logo-circle { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 1.5px solid var(--green-mid); }
.logo-circle--sm { width: 36px; height: 36px; }
.logo-svg { width: 100%; height: 100%; }
.logo-text {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--green-deep);
  letter-spacing: 0.01em;
}
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-mid);
  position: relative;
  transition: color var(--transition);
  letter-spacing: 0.03em;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--green-mid);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--green-deep); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--green-deep); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6rem 1.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  gap: 3rem;
  position: relative;
  overflow: visible;
}
.hero-bg-shapes { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.shape { position: absolute; border-radius: 50%; }
.shape-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(184,203,166,0.25), transparent 70%); top: -200px; right: -150px; }
.shape-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(200,184,216,0.2), transparent 70%); bottom: 100px; left: -100px; }
.shape-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(212,200,130,0.15), transparent 70%); top: 40%; left: 40%; }
.hero-content { flex: 1; max-width: 540px; animation: fadeUp 0.8s ease both; }
.hero-badge {
  display: inline-block;
  background: var(--lavender-light);
  color: var(--lavender);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-content h1 { color: var(--text-dark); margin-bottom: 1.25rem; }
.hero-content h1 em { font-style: italic; color: var(--green-mid); }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 420px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-emblem { width: 340px; flex-shrink: 0; animation: fadeIn 1s ease 0.3s both; filter: drop-shadow(0 8px 24px rgba(45,90,61,0.12)); }
.hero-emblem svg { width: 100%; height: auto; }

/* ---- HERO LOGO ANIMATIONS ---- */
.hero-logo-svg { width: 100%; height: auto; overflow: visible; }
.hero-logo-svg .ring-outer { animation: spinRingOut 80s linear infinite; transform-origin: 150px 150px; }
.hero-logo-svg .ring-inner { animation: spinRingIn 50s linear infinite reverse; transform-origin: 150px 150px; }
.hero-logo-svg .seg { transform-origin: 150px 150px; opacity: 0; }
.hero-logo-svg .seg-1 { animation: segIn 0.5s 0.05s ease-out forwards; }
.hero-logo-svg .seg-2 { animation: segIn 0.5s 0.15s ease-out forwards; }
.hero-logo-svg .seg-3 { animation: segIn 0.5s 0.25s ease-out forwards; }
.hero-logo-svg .seg-4 { animation: segIn 0.5s 0.35s ease-out forwards; }
.hero-logo-svg .seg-5 { animation: segIn 0.5s 0.45s ease-out forwards; }
.hero-logo-svg .seg-6 { animation: segIn 0.5s 0.55s ease-out forwards; }
.hero-logo-svg .seg-7 { animation: segIn 0.5s 0.65s ease-out forwards; }
.hero-logo-svg .seg-8 { animation: segIn 0.5s 0.75s ease-out forwards; }
.hero-logo-svg .trunk { stroke-dasharray: 200; stroke-dashoffset: 200; animation: drawLine 0.6s 0.9s ease-out forwards; }
.hero-logo-svg .br { stroke-dasharray: 120; stroke-dashoffset: 120; }
.hero-logo-svg .br1 { animation: drawLine 0.4s 1.30s ease-out forwards; }
.hero-logo-svg .br2 { animation: drawLine 0.4s 1.36s ease-out forwards; }
.hero-logo-svg .br3 { animation: drawLine 0.35s 1.42s ease-out forwards; }
.hero-logo-svg .br4 { animation: drawLine 0.35s 1.48s ease-out forwards; }
.hero-logo-svg .br5 { animation: drawLine 0.3s 1.54s ease-out forwards; }
.hero-logo-svg .br6 { animation: drawLine 0.3s 1.60s ease-out forwards; }
.hero-logo-svg .leaf { opacity: 0; }
.hero-logo-svg .l1  { animation: leafIn 0.35s 1.75s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero-logo-svg .l2  { animation: leafIn 0.35s 1.80s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero-logo-svg .l3  { animation: leafIn 0.35s 1.85s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero-logo-svg .l4  { animation: leafIn 0.35s 1.90s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero-logo-svg .l5  { animation: leafIn 0.35s 1.95s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero-logo-svg .l6  { animation: leafIn 0.35s 2.00s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero-logo-svg .l7  { animation: leafIn 0.35s 2.05s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero-logo-svg .l8  { animation: leafIn 0.35s 2.10s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero-logo-svg .l9  { animation: leafIn 0.35s 2.15s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero-logo-svg .l10 { animation: leafIn 0.35s 2.20s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero-logo-svg .l11 { animation: leafIn 0.35s 2.25s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero-logo-svg .l12 { animation: leafIn 0.35s 2.30s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero-logo-svg .l13 { animation: leafIn 0.35s 2.35s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero-logo-svg .l14 { animation: leafIn 0.35s 2.40s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero-logo-svg .l15 { animation: leafIn 0.35s 2.45s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero-logo-svg .l16 { animation: leafIn 0.35s 2.50s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero-logo-svg .l17 { animation: leafIn 0.35s 2.55s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero-logo-svg .l18 { animation: leafIn 0.35s 2.60s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero-logo-svg .l19 { animation: leafIn 0.35s 2.65s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero-logo-svg .l20 { animation: leafIn 0.35s 2.70s cubic-bezier(.34,1.56,.64,1) forwards; }

@keyframes segIn    { from { opacity:0; transform:scale(0.5); } to { opacity:1; transform:scale(1); } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes leafIn   { from { opacity:0; transform:scale(0); } to { opacity:1; transform:scale(1); } }
@keyframes spinRingOut { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
@keyframes spinRingIn  { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
@keyframes fadeUp   { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }

/* ---- SECTIONS ---- */
.section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-mid);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-intro { max-width: 560px; margin: 0 auto; color: var(--text-muted); font-size: 1.05rem; }

/* ---- OUR WORK ---- */
.our-work { background: var(--white); }
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.day-card {
  background: var(--cream);
  border: 1.5px solid var(--cream-mid);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.day-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(45,90,61,0.1); border-color: var(--green-light); }
.day-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lavender); margin-bottom: 0.5rem; }
.day-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.day-card h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--green-deep); margin-bottom: 0.5rem; }
.day-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.75rem; }
.free-badge { display: inline-block; background: var(--green-pale); color: var(--green-mid); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.7rem; border-radius: 50px; }
.all-free-banner {
  display: flex; align-items: center; justify-content: center; gap: 1.25rem;
  background: linear-gradient(135deg, var(--green-pale), var(--lavender-light));
  border: 1.5px solid var(--green-light);
  border-radius: var(--radius);
  padding: 1.5rem 2rem; text-align: center; flex-wrap: wrap;
}
.all-free-banner span { font-size: 1.5rem; }
.all-free-banner p { font-size: 1rem; color: var(--text-mid); }
.all-free-banner p strong { color: var(--green-deep); font-weight: 700; }

/* ---- GET INVOLVED ---- */
.get-involved { background: var(--cream); }
.involve-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.involve-card {
  background: var(--white);
  border: 1.5px solid var(--cream-mid);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.involve-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(45,90,61,0.08); }
.involve-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.involve-card h3 { color: var(--green-deep); margin-bottom: 0.5rem; }
.involve-card p  { font-size: 0.9rem; color: var(--text-muted); }

/* ---- ABOUT US ---- */
.about-us { background: var(--green-deep); color: var(--white); }
.about-us .section-tag { background: rgba(255,255,255,0.12); color: var(--green-light); }
.about-us h2 { color: var(--white); }
.about-inner { display: flex; align-items: flex-start; gap: 4rem; flex-wrap: wrap; }
.about-text { flex: 1; min-width: 280px; }
.about-text p { color: rgba(255,255,255,0.82); margin-bottom: 1rem; font-size: 1.02rem; }
.about-text em { color: var(--gold); font-style: italic; }
.about-text strong { color: var(--green-light); font-weight: 700; }
.about-text h2 { margin-bottom: 1.25rem; }
.about-values { display: flex; flex-direction: column; gap: 0.75rem; min-width: 200px; }
.value-pill { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 50px; padding: 0.6rem 1.25rem; font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.9); transition: background var(--transition); }
.value-pill:hover { background: rgba(255,255,255,0.15); }

/* ---- FOOTER ---- */
.footer { background: var(--text-dark); color: rgba(255,255,255,0.7); padding: 3rem 1.5rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.footer-brand p { font-family: 'Lora', serif; font-size: 1rem; color: var(--white); font-weight: 400; margin: 0; }
.footer-brand small { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding-top: 5rem; padding-bottom: 3rem; }
  .hero-ctas { justify-content: center; }
  .hero-sub { max-width: 100%; }
  .hero-emblem { width: 260px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 1.5rem; gap: 1rem; border-bottom: 1px solid var(--cream-mid); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .about-inner { gap: 2.5rem; }
  .about-values { flex-direction: row; flex-wrap: wrap; }
  .value-pill { flex: 1; min-width: 140px; text-align: center; }
}
