/* ============================================
   BYS Global — Original Design System (Exact Match)
   Extracted from beyourselfglobal.com
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

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

:root {
  --sage: #8FA98F;
  --sage-light: #A8C5A8;
  --sage-lighter: #D4E4D4;
  --sage-lightest: #EFF5EF;
  --sage-dark: #6B8A6B;
  --sage-darker: #4A6B4A;
  --charcoal: #2B2B2B;
  --charcoal-light: #444444;
  --warm-white: #FAFAF8;
  --cream: #F5F3EE;
  --gold: #C9A96E;
  --gold-light: #E8D5A8;
  --coral: #E07A5F;
  --white: #FFFFFF;
  --text-primary: #2B2B2B;
  --text-secondary: #666666;
  --text-light: #999999;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 80px;
  --section-padding: 120px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text-primary); background: var(--white); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* --- Container --- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* --- Typography --- */
.section-label { display: inline-block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; color: var(--sage-dark); margin-bottom: 16px; }
.section-title { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.2; margin-bottom: 20px; }
.section-subtitle { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; max-width: 600px; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 36px; border-radius: 60px; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.3px; cursor: pointer; border: none; transition: var(--transition); font-family: var(--font-body); }
.btn-primary { background: var(--sage); color: var(--white); }
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(143,169,143,0.35); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--charcoal-light); transform: translateY(-2px); }
.btn-sage-outline { background: transparent; color: var(--sage-dark); border: 2px solid var(--sage-lighter); }
.btn-sage-outline:hover { border-color: var(--sage); background: var(--sage-lightest); }

/* --- Navbar --- */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; transition: var(--transition); }
.navbar.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 1px 30px rgba(0,0,0,0.06); padding: 12px 0; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white); transition: var(--transition); }
.navbar.scrolled .nav-logo { color: var(--charcoal); }
.nav-logo-icon { width: 28px; height: 28px; border: 2px solid currentColor; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0; line-height: 1; }
.nav-logo-icon span { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-logo-icon span i { width: 8px; height: 8px; background: currentColor; border-radius: 2px; display: block; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(255,255,255,0.85); transition: var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--sage-light); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--white); }
.navbar.scrolled .nav-links a { color: var(--text-secondary); }
.navbar.scrolled .nav-links a:hover { color: var(--charcoal); }
.navbar.scrolled .nav-links a::after { background: var(--sage); }
.nav-cta { padding: 10px 24px !important; background: var(--white) !important; color: var(--sage-dark) !important; border-radius: 50px !important; font-weight: 600 !important; }
.nav-cta:hover { background: var(--sage-lightest) !important; transform: translateY(-1px); }
.navbar.scrolled .nav-cta { background: var(--sage) !important; color: var(--white) !important; }
.navbar.scrolled .nav-cta:hover { background: var(--sage-dark) !important; }

/* Nav Toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; padding: 4px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--white); transition: var(--transition); display: block; }
.navbar.scrolled .nav-toggle span { background: var(--charcoal); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Page Hero (subpages) --- */
.page-hero { position: relative; padding: 180px 0 100px; background: linear-gradient(135deg, var(--charcoal) 0%, #3d5a3d 50%, var(--sage) 100%); color: var(--white); overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 700px; height: 700px; background: radial-gradient(circle, rgba(143,169,143,0.15) 0%, transparent 70%); border-radius: 50%; }
.page-hero::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(143,169,143,0.08) 0%, transparent 70%); border-radius: 50%; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .section-label { color: var(--sage-light); }
.page-hero .section-title { color: var(--white); font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 16px; }
.page-hero .section-subtitle { color: rgba(255,255,255,0.75); font-size: 1.15rem; max-width: 600px; }

/* --- Stats Bar --- */
.stats-bar { padding: 48px 0; background: var(--white); border-bottom: 1px solid rgba(0,0,0,0.04); }
.stats-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; text-align: center; }
.stat-item .number { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; color: var(--sage-dark); line-height: 1.1; }
.stat-item .label { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; font-weight: 500; }

/* --- About Section --- */
.about { padding: var(--section-padding) 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; }
.about-visual { position: relative; }
.about-image { border-radius: 24px; overflow: hidden; aspect-ratio: 4/5; background: linear-gradient(135deg, var(--sage-lightest), var(--sage-lighter)); }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-quote-card { position: absolute; bottom: -20px; right: -20px; background: var(--white); border-radius: 16px; padding: 20px 24px; box-shadow: 0 16px 48px rgba(0,0,0,0.1); max-width: 240px; }
.about-quote-card p { font-family: var(--font-heading); font-style: italic; font-size: 1.1rem; line-height: 1.5; }
.about-text .section-subtitle { margin-bottom: 32px; }
.about-pillars { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; }
.pillar { display: flex; gap: 20px; align-items: flex-start; padding: 20px 24px; background: var(--sage-lightest); border-radius: 16px; transition: var(--transition); }
.pillar:hover { background: var(--sage-lighter); transform: translateX(8px); }
.pillar-icon { width: 48px; height: 48px; min-width: 48px; background: var(--sage); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.1rem; }
.pillar h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.pillar p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* --- Programs Section --- */
.programs { padding: var(--section-padding) 0; background: var(--cream); }
.programs-header { text-align: center; margin-bottom: 72px; }
.programs-header .section-subtitle { margin: 0 auto; }
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.program-card { background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.05); transition: var(--transition); }
.program-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.program-card-image { height: 220px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--sage), var(--sage-dark)); }
.program-card-image img { width: 100%; height: 100%; object-fit: cover; }
.program-badge { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,0.95); color: var(--sage-dark); padding: 6px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.program-card-body { padding: 28px; }
.program-card-body h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 12px; }
.program-card-body p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.program-meta { display: flex; flex-wrap: wrap; gap: 12px; }
.program-meta span { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-light); }
.program-meta i { color: var(--sage); }

/* --- Get Involved / Role Cards --- */
.get-involved { padding: var(--section-padding) 0; background: var(--white); }
.get-involved-header { text-align: center; margin-bottom: 72px; }
.get-involved-header .section-subtitle { margin: 0 auto; }
.roles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.role-card { background: var(--white); border: 2px solid var(--sage-lighter); border-radius: 24px; padding: 40px; transition: var(--transition); position: relative; overflow: hidden; }
.role-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--sage), var(--sage-light)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s; }
.role-card:hover::before { transform: scaleX(1); }
.role-card:hover { border-color: var(--sage); box-shadow: 0 16px 48px rgba(143,169,143,0.12); transform: translateY(-4px); }
.role-icon { width: 64px; height: 64px; background: var(--sage-lightest); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--sage-dark); margin-bottom: 24px; }
.role-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.role-card > p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 24px; }
.role-perks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.role-perks span { background: var(--sage-lightest); color: var(--sage-darker); padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 500; }
.role-card .btn { width: 100%; justify-content: center; }

/* --- Investors / Growth Section --- */
.investors { padding: var(--section-padding) 0; background: var(--charcoal); color: var(--white); position: relative; overflow: hidden; }
.investors::before { content: ''; position: absolute; top: -200px; right: -200px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(143,169,143,0.15) 0%, transparent 70%); border-radius: 50%; }
.investors-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.investors-text .section-label { color: var(--gold); }
.investors-text .section-title { color: var(--white); }
.investors-text .section-subtitle { color: rgba(255,255,255,0.65); margin-bottom: 36px; }
.investor-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.investor-highlight { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 24px; transition: var(--transition); }
.investor-highlight:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); }
.investor-highlight .number { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; color: var(--sage-light); margin-bottom: 4px; }
.investor-highlight .label { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.timeline { margin-top: 48px; }
.timeline-item { position: relative; padding-left: 32px; padding-bottom: 36px; border-left: 2px solid rgba(255,255,255,0.1); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; background: var(--sage); border-radius: 50%; border: 3px solid var(--charcoal); }
.timeline-year { font-size: 0.82rem; font-weight: 700; color: var(--gold); margin-bottom: 6px; letter-spacing: 0.5px; }
.timeline-item h4 { font-size: 1.05rem; color: var(--white); margin-bottom: 6px; }
.timeline-item p { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.7; }

/* --- Before & After --- */
.before-after { padding: var(--section-padding) 0; background: var(--white); }
.ba-header { text-align: center; margin-bottom: 72px; }
.ba-header .section-subtitle { margin: 0 auto; }
.ba-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ba-card { background: var(--white); border-radius: 24px; overflow: hidden; border: 2px solid var(--sage-lighter); transition: var(--transition); }
.ba-card:hover { border-color: var(--sage); box-shadow: 0 16px 48px rgba(143,169,143,0.15); }
.ba-card-header { background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%); padding: 28px 32px; color: var(--white); text-align: center; }
.ba-card-header h4 { font-size: 1.1rem; margin-bottom: 4px; }
.ba-card-header span { font-size: 0.82rem; opacity: 0.8; }
.ba-card-body { padding: 32px; }
.ba-row { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; }
.ba-row:not(:last-child) { border-bottom: 1px solid var(--sage-lightest); }
.ba-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; min-width: 56px; padding-top: 2px; }
.ba-before .ba-label { color: var(--text-light); }
.ba-after .ba-label { color: var(--sage-dark); }
.ba-row p { font-size: 0.92rem; line-height: 1.6; color: var(--text-secondary); }

/* --- Community / Gallery --- */
.community { padding: var(--section-padding) 0; background: var(--sage-lightest); }
.community-header { text-align: center; margin-bottom: 72px; }
.community-header .section-subtitle { margin: 0 auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 64px; }
.gallery-item { border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; position: relative; background: var(--sage-lighter); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 20px 16px; background: linear-gradient(transparent, rgba(0,0,0,0.6)); color: var(--white); font-size: 0.85rem; font-weight: 500; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--white); border-radius: 20px; padding: 32px; box-shadow: 0 4px 24px rgba(0,0,0,0.05); transition: var(--transition); }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.08); }
.testimonial-stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75; font-style: italic; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sage-lighter); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.9rem; color: var(--sage-dark); }
.testimonial-author .name { font-weight: 600; font-size: 0.9rem; }
.testimonial-author .role { font-size: 0.8rem; color: var(--text-light); }

/* --- CTA Banner --- */
.cta-banner { padding: 100px 0; background: linear-gradient(135deg, var(--charcoal) 0%, #3d5a3d 60%, var(--sage) 100%); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(143,169,143,0.2) 0%, transparent 70%); border-radius: 50%; }
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner .section-label { color: var(--sage-light); }
.cta-banner .section-title { color: var(--white); margin-bottom: 16px; }
.cta-banner .section-subtitle { color: rgba(255,255,255,0.7); margin: 0 auto 40px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Footer --- */
.footer { background: var(--charcoal); padding: 80px 0 40px; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand .nav-logo { color: var(--white); margin-bottom: 16px; }
.footer-brand > p { font-size: 0.9rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-top: 16px; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); transition: var(--transition); font-size: 1rem; }
.footer-social a:hover { background: var(--sage); color: var(--white); }
.footer h4 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.35); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-links a:hover { color: var(--sage-light); transform: translateX(4px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: var(--sage-light); transition: var(--transition); }
.footer-bottom a:hover { color: var(--white); }

/* --- Reveal Animations --- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s, transform 0.8s; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  :root { --section-padding: 80px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .investors-grid { grid-template-columns: 1fr; gap: 48px; }
  .roles-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-padding: 64px; }
  .container { padding: 0 20px; }
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(43,43,43,0.98); flex-direction: column; justify-content: center; align-items: center; gap: 28px; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--white) !important; font-size: 1.1rem !important; text-transform: uppercase; letter-spacing: 2px; }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .programs-grid, .ba-cards, .testimonials-grid, .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-hero { padding: 140px 0 64px; }
}

@media (max-width: 480px) {
  .stat-item .number { font-size: 1.6rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .investor-highlights { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
