/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --bg-paper: #F9F8F6;    /* Warm White */
  --bg-stone: #E6E4E0;    /* Light Grey/Tan */
  --bg-dark: #202326;     /* Dark Grey */
  --accent-teal: #466D6D; /* Brand Teal */
  --accent-earth: #8C735A;/* Brand Gold/Bronze */
  
  --text-dark: #1a1a1a;
  --text-body: #4A4A4A;
  
  --nav-height: 70px;
}

* { box-sizing: border-box; }

body {
  margin: 0; padding: 0;
  background-color: var(--bg-paper);
  color: var(--text-dark);
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  padding-top: var(--nav-height);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; margin: 0 0 1rem 0; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
p { margin-bottom: 1.2rem; color: var(--text-body); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; }
.text-center { text-align: center; }
.section-pad { padding: 80px 0; }

/* =========================================
   2. BUTTONS
   ========================================= */
/* Standard Buttons */
.btn {
  display: inline-block; padding: 12px 28px; font-weight: 900; 
  text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem;
  border: 2px solid transparent; cursor: pointer; border-radius: 4px;
}
.btn-primary { background: var(--accent-teal); color: white; }
.btn-primary:hover { background: #3a5c5c; }
.btn-outline { border-color: var(--text-dark); color: var(--text-dark); }
.btn-outline:hover { background: var(--text-dark); color: white; }

/* "Graphic Artist" Jump Buttons (Pill Style) */
.pill-btn {
  background: transparent;
  border: 1px solid #ccc;
  color: #666;
  padding: 10px 24px;
  border-radius: 50px; /* Full pill shape */
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
}

.pill-btn:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background: rgba(70, 109, 109, 0.05); /* Very subtle teal tint */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* --- BUTTON VARIATION: Light Outline (For Dark Backgrounds) --- */
.btn-outline-light {
  border: 2px solid white;
  color: white;
  background: transparent;
  transition: all 0.2s ease;
}

.btn-outline-light:hover {
  background: white;
  color: var(--text-dark); /* Turns text dark on hover for readability */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
  background: rgba(255,255,255,0.98); border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1000; display: flex; align-items: center;
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.4rem; z-index: 1002; }
.logo span { color: var(--accent-teal); }

nav ul { list-style: none; display: flex; gap: 25px; margin: 0; padding: 0; }
nav li { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; }
.btn-nav-donate { color: var(--accent-earth); border: 1px solid var(--accent-earth); padding: 5px 15px; border-radius: 4px; }

/* Mobile Menu Icon (Force Black) */
.mobile-toggle { 
  display: none; 
  cursor: pointer; 
  font-size: 1.5rem; 
  background:none; 
  border:none; 
  z-index:1002; 
  color: #000000 !important; 
}

/* =========================================
   4. HERO SECTIONS
   ========================================= */
/* Standard Hero (used on sub-pages if needed) */
.hero-banner {
  background: var(--bg-dark); color: white; padding: 100px 0; text-align: center;
  background-image: linear-gradient(rgba(32,35,38,0.7), rgba(32,35,38,0.7)), url('../images/hero.jpg');
  background-size: cover; background-position: center;
}

/* Bright Hero (New Home Page) */
.hero-bright {
  /* Dark gradient ONLY at the bottom to let the sky/image shine */
  background-image: linear-gradient(to bottom, rgba(32,35,38,0.1) 0%, rgba(32,35,38,0.6) 80%, rgba(32,35,38,1) 100%), url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  min-height: 650px;
  display: flex;
  align-items: center;
  position: relative;
}

/* Hero Typography Fixes */
.hero-eyebrow, .hero-lead {
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* =========================================
   5. STATS & FEATURES (Home Components)
   ========================================= */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -40px; margin-bottom: 60px; }
.stat-card { background: white; padding: 30px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center; }
.stat-num { font-size: 2.5rem; font-weight: 900; color: var(--accent-teal); display: block; font-family: 'Playfair Display', serif; }

/* Feature Grid (Why Section) */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 80px;
}
.feature-text h3 { font-size: 2rem; margin-bottom: 20px; color: var(--accent-teal); }
.feature-card {
  background: white; padding: 40px; border-left: 6px solid var(--accent-earth); box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Split CTA Section (Editorial Look) */
.split-cta-section {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 500px;
}
.cta-panel {
  padding: 80px 60px; display: flex; flex-direction: column; justify-content: center;
}
.cta-panel.invest {
  background: white; color: var(--text-dark); border-right: 1px solid #eee;
}
.cta-panel.join {
  background: var(--bg-dark); color: white; position: relative; overflow: hidden;
}
.cta-panel.join::before {
  content: ''; position: absolute; top:0; left:0; right:0; bottom:0;
  background: url('../images/practice.jpg'); /* Texture Overlay */
  background-size: cover; opacity: 0.15; mix-blend-mode: luminosity;
}
.cta-content { position: relative; z-index: 2; }

/* =========================================
   6. DONATE GRID (2x2 Layout)
   ========================================= */
.donate-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 0; 
  margin-bottom: 30px;
  border: none; 
}
.donate-option { 
  background: white; padding: 40px 30px; text-align: left; 
  cursor: pointer; transition: all 0.2s;
  border: 1px solid #eee; margin: -1px; /* Collapsing Borders */
  position: relative; z-index: 1;
}
.donate-option:hover { 
  background: #fafafa; z-index: 2; border-color: #ddd;
}
.donate-option.selected { 
  background: #fff8f5; border-color: var(--accent-earth); z-index: 3;
}
.donate-amt { font-size: 1.8rem; font-weight: 900; display: block; }

/* =========================================
   7. PRACTICE PAGE STYLES
   ========================================= */
.hero-eyebrow {
  font-family: 'Lato', sans-serif; font-weight: 900; letter-spacing: 0.2em;
  text-transform: uppercase; font-size: 0.9rem; color: var(--accent-earth);
  display: block; margin-bottom: 20px;
}
.hero-headline {
  font-size: 4rem; line-height: 1.1; margin-bottom: 30px; font-family: 'Playfair Display', serif;
}
.hero-lead {
  font-size: 1.4rem; line-height: 1.6; font-weight: 300; max-width: 700px; margin: 0 auto; opacity: 0.9;
}

/* Floating Logistics Bar */
.logistics-bar {
  background: white; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  padding: 40px; margin-top: -80px; position: relative; z-index: 10;
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
  border-bottom: 4px solid var(--accent-teal);
}
.logistics-item { flex: 1; min-width: 250px; }
.logistics-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: #888; font-weight: 700; margin-bottom: 10px; display: block; }
.logistics-value { font-size: 1.5rem; font-weight: 900; color: var(--text-dark); font-family: 'Playfair Display', serif; }

/* The Flow / Timeline */
.flow-container { max-width: 800px; margin: 80px auto; }
.flow-step { display: flex; gap: 30px; margin-bottom: 50px; align-items: flex-start; }
.flow-number {
  font-size: 3rem; font-weight: 900; color: rgba(70, 109, 109, 0.4); /* Darkened for visibility */
  line-height: 0.8; min-width: 60px; font-family: 'Playfair Display', serif;
}
.flow-content h3 { font-size: 1.8rem; margin-bottom: 10px; color: var(--accent-teal); }
.flow-content p { font-size: 1.2rem; color: #4a4a4a; line-height: 1.7; }
.logistics-value + div { color: #4a4a4a; }

/* Desktop Timeline Zig-Zag (Legacy, mostly used on old flow) */
.timeline-wrapper { position: relative; max-width: 800px; margin: 0 auto; padding: 20px 0; }
.timeline-item { position: relative; padding-left: 60px; margin-bottom: 50px; }
.timeline-marker {
  position: absolute; left: 0; top: 0; width: 42px; height: 42px;
  background: white; border: 2px solid var(--accent-teal); border-radius: 50%;
  text-align: center; line-height: 38px; font-weight: 900; color: var(--accent-teal); z-index: 1;
}

/* =========================================
   8. MEDIA PAGE STYLES (Video & List)
   ========================================= */
.video-wrapper {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: 8px; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.main-feature { border: 4px solid rgba(255,255,255,0.1); }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* Press List */
.press-list-item {
  display: flex; align-items: baseline; padding: 25px 0;
  border-bottom: 1px solid #eee; transition: 0.2s; text-decoration: none;
}
.press-list-item:hover { background: #fafafa; padding-left: 10px; }
.press-list-date {
  width: 120px; font-size: 0.85rem; color: #999; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; flex-shrink: 0;
}
.press-list-content { flex: 1; }
.press-list-source {
  color: var(--accent-teal); font-weight: 900; font-size: 0.75rem;
  text-transform: uppercase; margin-bottom: 5px; display: block;
}
.press-list-title {
  font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700;
  color: var(--text-dark); margin: 0; line-height: 1.2;
}
.press-list-arrow { color: #ddd; font-size: 1.5rem; margin-left: 20px; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.press-card { background: white; border: 1px solid #eee; border-radius: 4px; padding: 25px; display: block; }
.press-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.press-source { color: var(--accent-earth); font-weight: 900; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.1em; }

/* =========================================
   9. FOOTER
   ========================================= */
footer { background: var(--bg-dark); color: #aaa; padding: 60px 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-links a { display: block; margin-bottom: 8px; color: #ccc; }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.85rem; text-align: center; margin-top:40px; }

/* =========================================
   10. UTILITIES & HELPERS
   ========================================= */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Fixes Inline Style Issues (Desktop Border) */
.border-left-desktop { border-left: 1px solid #eee; padding-left: 40px; }

/* Scroll Offsets for Sticky Navs */
#burrito, #morning, #backbone, 
#method, #flow, #family,
#options, #impact, #practice {
  scroll-margin-top: 180px; 
}

/* =========================================
   11. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  /* Nav */
  .mobile-toggle { display: block; }
  nav {
    position: fixed; top: 70px; left: 0; width: 100%;
    background: white; border-bottom: 1px solid #ddd;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-150%); transition: transform 0.3s ease-in-out;
    z-index: 1001; padding-bottom: 20px;
  }
  nav.open { transform: translateY(0); }
  nav ul { flex-direction: column; padding: 0 24px; gap: 0; }
  nav li { width: 100%; border-bottom: 1px solid #f0f0f0; }
  nav a { display: block; padding: 15px 0; font-size: 1rem; color: var(--text-dark); }
  
  /* Grids Stack */
  .stats-grid, .donate-grid, .footer-grid, .press-grid, .video-grid, .feature-row, .split-cta-section { 
    grid-template-columns: 1fr; 
  }
  
  /* Hero Fixes */
  .hero-bright {
    background-image: linear-gradient(to bottom, rgba(20,20,20,0.3) 0%, rgba(20,20,20,0.9) 100%), url('../images/hero.jpg');
    align-items: flex-end; padding-bottom: 60px;
  }

  /* Component Adjustments */
  .stats-grid { margin-top: 20px; }
  .feature-row { gap: 30px; }
  .feature-card { padding: 30px; }
  .cta-panel { padding: 60px 30px; min-height: auto; }
  
  /* Practice Page */
  .hero-headline { font-size: 2.8rem; }
  .logistics-bar { flex-direction: column; align-items: flex-start; padding: 30px; margin-top: -40px; }
  .logistics-item { width: 100%; border-left: none; padding-left: 0; border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 20px; }
  .logistics-item:last-child { border: none; margin: 0; padding: 0; }
  .border-left-desktop { border-left: none !important; padding-left: 0 !important; }

  /* Donate & Media */
  .donate-grid { border-radius: 8px; overflow: hidden; }
  .donate-option { border-right: none; border-bottom: 1px solid #eee; }
  .press-list-item { flex-direction: column; }
  .press-list-date { margin-bottom: 8px; }
}

@media (min-width: 769px) {
  /* Timeline Logic (Desktop Only) */
  .timeline-wrapper::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #e0e0e0; margin-left: -1px; }
  .timeline-item { width: 50%; padding-left: 0; padding-right: 50px; margin-left: 0; text-align: right; }
  .timeline-item:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 50px; text-align: left; }
  .timeline-marker { left: 50%; margin-left: -21px; }
}

/* --- FAMILY PAGE: SCRIPT CARDS --- */
.script-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-left: 5px solid var(--accent-teal);
  padding: 30px;
  border-radius: 4px;
  height: 100%;
  transition: transform 0.2s;
}

.script-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.script-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.4;
  font-style: italic;
}

.script-label {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 10px;
  display: block;
}

/* Update Scroll Offset for Family IDs */
#approach, #scripts, #safety, #faq {
  scroll-margin-top: 180px; 
}

/* --- VISUAL WARMTH UPDATES --- */

/* Make emojis in the "Vibe Grid" look like icons */
.vibe-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: inline-block;
  transition: transform 0.2s;
}

.vibe-card:hover .vibe-icon {
  transform: scale(1.1) rotate(10deg); /* A little playful bounce */
}

/* Update the Flow Number color to be warmer */
.flow-number {
  color: rgba(140, 115, 90, 0.25); /* Uses the Earth tone (Gold/Bronze) instead of cold Teal */
}
