@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --dark:          #052e16;
  --dark-2:        #0f3d20;
  --primary:       #16a34a;
  --primary-light: #22c55e;
  --pale:          #f0fdf4;
  --pale-2:        #dcfce7;
  --gold:          #d97706;
  --gold-light:    #fbbf24;
  --white:         #ffffff;
  --surface:       #f8faf8;
  --border:        rgba(22,163,74,0.15);
  --text:          #0c1a0c;
  --muted:         #4a7060;

  /* Backward compatibility */
  --primary-color:  #16a34a;
  --primary-dark:   #052e16;
  --secondary-color:#d97706;
  --surface-border: rgba(22,163,74,0.15);
  --text-muted:     #4a7060;
  --off-white:      #f0fdf4;
  --surface-color:  #f8faf8;
  --bg-color:       #ffffff;

  --font-h: 'Playfair Display', Georgia, serif;
  --font-b: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-u: 'Space Grotesk', system-ui, sans-serif;

  --radius:      20px;
  --radius-sm:   12px;
  --radius-pill: 100px;

  --shadow:    0 2px 16px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.13);
  --shadow-lg: 0 20px 64px rgba(0,0,0,0.18);

  --ease: cubic-bezier(0.25,0.8,0.25,1);
  --t:    all 0.3s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-h); font-weight: 700; line-height: 1.15; color: var(--dark); }
a { text-decoration: none; color: inherit; transition: var(--t); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
header {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 5%;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: var(--t);
}
header.scrolled {
  padding: 0.8rem 5%;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo img {
  height: 44px; width: 44px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--pale-2);
  box-shadow: 0 2px 10px rgba(22,163,74,0.18);
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
  font-family: var(--font-h); font-size: 1rem; font-weight: 700;
  color: var(--dark);
}
.logo-tag {
  font-family: var(--font-u); font-size: 0.6rem; font-weight: 700;
  color: var(--primary); letter-spacing: 0.08em; text-transform: uppercase;
}

/* Fallback: old logo span still works */
.logo > span {
  font-family: var(--font-h); font-size: 1.1rem; font-weight: 700;
  color: var(--dark);
}

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a {
  font-family: var(--font-u); font-size: 0.87rem; font-weight: 600;
  color: var(--muted); position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--primary);
  border-radius: 2px; transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.menu-toggle {
  display: none; font-size: 1.4rem; cursor: pointer;
  color: var(--dark); line-height: 1;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5,46,22,0.91) 0%,
    rgba(5,46,22,0.70) 55%,
    rgba(15,61,32,0.82) 100%
  );
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 9rem 5% 5rem;
  max-width: 800px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-u); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(22,163,74,0.14);
  border: 1px solid rgba(34,197,94,0.28);
  padding: 7px 18px; border-radius: var(--radius-pill);
  margin-bottom: 1.75rem;
  animation: fadeUp 0.7s ease 0.1s both;
}
.hero-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary-light); flex-shrink: 0;
  animation: pulse 2s infinite;
}
.hero h1 {
  font-size: clamp(2.6rem,5.5vw,4.6rem);
  color: var(--white); line-height: 1.08;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s ease 0.25s both;
}
.hero h1 em { color: var(--primary-light); font-style: normal; }
.hero-desc {
  font-size: 1.05rem; color: rgba(255,255,255,0.72);
  max-width: 580px; line-height: 1.85;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s ease 0.4s both;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.55s both;
}
.hero-theme {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.13);
  font-style: italic; color: rgba(255,255,255,0.48);
  font-size: 0.88rem; line-height: 1.7;
  animation: fadeUp 0.7s ease 0.7s both;
}
.hero-theme strong { color: rgba(255,255,255,0.7); font-style: normal; }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: var(--radius-pill);
  font-family: var(--font-u); font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: var(--t);
  border: 2px solid transparent; white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: 0 4px 24px rgba(22,163,74,0.35);
}
.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 8px 36px rgba(22,163,74,0.5);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,0.38);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.65);
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--pale); color: var(--dark);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--pale-2); border-color: var(--primary);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════ */
.stats-bar { background: var(--dark); }
.stats-inner {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-left: 1px solid rgba(255,255,255,0.07);
}
.stat-item {
  padding: 2.75rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s;
}
.stat-item:hover { background: rgba(22,163,74,0.07); }
.stat-num {
  font-family: var(--font-h); font-size: 2.8rem; font-weight: 700;
  color: var(--primary-light); line-height: 1; margin-bottom: 0.5rem;
}
.stat-lbl {
  font-family: var(--font-u); font-size: 0.78rem; font-weight: 500;
  color: rgba(255,255,255,0.42); line-height: 1.55;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════ */
.section { padding: 6.5rem 5%; }
.section--alt { background: var(--surface); }
.section--dark { background: var(--dark); color: var(--white); }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-u); font-size: 0.72rem; font-weight: 700;
  color: var(--primary); letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.9rem,3.5vw,3rem);
  color: var(--dark); margin-bottom: 1rem; line-height: 1.15;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--muted);
  max-width: 560px; margin: 0 auto 3.5rem;
  text-align: center; line-height: 1.8;
  font-family: var(--font-b);
}

/* ══════════════════════════════════════════
   GRID
══════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 1.5rem; }

/* ══════════════════════════════════════════
   FEATURE SECTION
══════════════════════════════════════════ */
.feature-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.feature-img-wrap { position: relative; }
.feature-img-wrap img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  object-fit: cover; aspect-ratio: 4/3;
}
.feature-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--dark); color: var(--white);
  padding: 1.2rem 1.6rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); font-family: var(--font-u);
}
.feature-badge strong {
  display: block; font-size: 1.55rem; font-weight: 800;
  color: var(--primary-light);
}
.feature-badge span { font-size: 0.72rem; opacity: 0.55; letter-spacing: 0.06em; text-transform: uppercase; }
.feature-list { margin: 1.75rem 0; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 0.9rem;
  margin-bottom: 1rem; font-size: 0.96rem; color: var(--muted); line-height: 1.65;
}
.feature-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px; height: 22px; min-width: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pale-2); color: var(--primary);
  border-radius: 50%; font-size: 0.65rem; font-weight: 900;
  margin-top: 1px;
}

/* ══════════════════════════════════════════
   GLASS / CARD PANELS
══════════════════════════════════════════ */
.glass-panel {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
  transition: var(--t);
}
.glass-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(22,163,74,0.3);
}

/* ══════════════════════════════════════════
   PILLAR CARDS
══════════════════════════════════════════ */
.pillar-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.75rem; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: var(--t);
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(22,163,74,0.3);
}
.pillar-number {
  position: absolute; top: -16px; right: -8px;
  font-size: 5.5rem; font-weight: 800; font-family: var(--font-h);
  color: rgba(22,163,74,0.06); line-height: 1; pointer-events: none;
  transition: color 0.4s;
}
.pillar-card:hover .pillar-number { color: rgba(22,163,74,0.12); }
.pillar-title { font-size: 1.15rem; color: var(--dark); margin-bottom: 0.65rem; position: relative; z-index: 1; }
.pillar-desc { font-size: 0.91rem; color: var(--muted); line-height: 1.75; position: relative; z-index: 1; flex: 1; }
.pillar-img {
  width: 100%; border-radius: 12px; margin-top: 1.25rem;
  object-fit: cover; height: 190px; display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: transform 0.5s var(--ease);
}
.pillar-card:hover .pillar-img { transform: scale(1.04); }

/* ══════════════════════════════════════════
   IMPACT GALLERY
══════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.25rem;
}
.gallery-item {
  position: relative; border-radius: var(--radius-sm);
  overflow: hidden; aspect-ratio: 4/3;
  box-shadow: var(--shadow); cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(5,46,22,0.9) 0%, transparent 100%);
  color: var(--white);
  font-family: var(--font-u); font-size: 0.82rem; font-weight: 600;
  line-height: 1.4;
  transform: translateY(4px); transition: transform 0.3s var(--ease);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-tag {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary-light); margin-bottom: 3px;
}

/* ══════════════════════════════════════════
   ELDER CARDS
══════════════════════════════════════════ */
.elder-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--border); transition: var(--t);
}
.elder-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.elder-img-wrap { position: relative; height: 300px; overflow: hidden; }
.elder-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
  transition: transform 0.5s var(--ease);
}
.elder-card:hover .elder-img-wrap img { transform: scale(1.05); }
.elder-info { padding: 1.5rem; text-align: center; }
.elder-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); background: var(--pale-2);
  padding: 4px 12px; border-radius: var(--radius-pill);
  margin-bottom: 0.6rem; font-family: var(--font-u);
}
.elder-name { font-size: 1.05rem; color: var(--dark); line-height: 1.3; }
.elder-role { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; font-family: var(--font-u); }

/* ══════════════════════════════════════════
   HIGHLIGHT BOX
══════════════════════════════════════════ */
.highlight-box {
  background: linear-gradient(135deg,rgba(22,163,74,0.06),rgba(22,163,74,0.02));
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.5rem 2rem; margin: 2rem 0;
}
.highlight-box p { color: var(--dark); font-weight: 500; font-style: italic; margin: 0; }

/* ══════════════════════════════════════════
   MOTTO BANNER
══════════════════════════════════════════ */
.motto-banner {
  padding: 2.5rem 5%;
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  text-align: center;
}
.motto-banner .motto-text {
  font-family: var(--font-h); font-size: 1.6rem; font-weight: 700;
  color: var(--primary-light); margin-bottom: 6px;
}
.motto-banner .motto-meaning {
  font-family: var(--font-u); font-size: 0.8rem; font-weight: 500;
  color: rgba(255,255,255,0.42); letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════
   PAGE HEADER (inner pages)
══════════════════════════════════════════ */
.page-header {
  padding: 11rem 5% 5.5rem;
  background: var(--dark);
  position: relative; overflow: hidden; text-align: center;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(22,163,74,0.1), transparent);
}
.page-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--white));
}
.page-header h1 {
  position: relative; z-index: 1;
  font-size: clamp(2.2rem,4.5vw,3.8rem);
  color: var(--white); margin-bottom: 1rem;
}
.page-header p,
.page-header .section-subtitle {
  position: relative; z-index: 1;
  font-size: 1.05rem; color: rgba(255,255,255,0.58);
  max-width: 560px; margin: 0 auto; line-height: 1.8;
  text-align: center;
}

/* ══════════════════════════════════════════
   TEXT CONTENT
══════════════════════════════════════════ */
.text-content p { margin-bottom: 1.5rem; font-size: 1rem; color: var(--muted); line-height: 1.85; }
.text-content h3 { color: var(--dark); font-size: 1.4rem; margin-bottom: 0.5rem; }
.text-content ul { margin-bottom: 1.5rem; }
.text-content li {
  margin-bottom: 0.8rem; position: relative;
  padding-left: 1.75rem; color: var(--muted); font-size: 0.96rem; line-height: 1.7;
}
.text-content li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.feature-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ══════════════════════════════════════════
   CONTACT FORM
══════════════════════════════════════════ */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; margin-bottom: 0.5rem;
  font-family: var(--font-u); font-size: 0.78rem; font-weight: 700;
  color: var(--dark); letter-spacing: 0.06em; text-transform: uppercase;
}
.form-control {
  width: 100%; padding: 14px 18px;
  background: var(--pale); border: 1.5px solid var(--border);
  color: var(--text); border-radius: var(--radius-sm);
  font-family: var(--font-b); font-size: 0.95rem;
  transition: var(--t); outline: none;
}
.form-control:focus {
  border-color: var(--primary); background: var(--white);
  box-shadow: 0 0 0 4px rgba(22,163,74,0.1);
}
textarea.form-control { resize: vertical; min-height: 140px; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer { background: var(--dark); padding: 5rem 5% 2rem; }
.footer-content {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo > span { color: var(--white); }
.footer-brand .logo-tag { color: var(--primary-light); }
.footer-brand .logo img { border-color: rgba(22,163,74,0.35); }
.footer-brand p { color: rgba(255,255,255,0.5); margin-top: 1.25rem; font-size: 0.9rem; line-height: 1.8; }
.footer-brand a { color: var(--primary-light); }
.footer-links h4 {
  font-family: var(--font-u); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 1.5rem;
}
.footer-links ul li { margin-bottom: 0.75rem; }
.footer-links ul a { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.footer-links ul a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-links ul li strong { color: rgba(255,255,255,0.65); font-size: 0.85rem; }
.footer-bottom {
  text-align: center; color: rgba(255,255,255,0.28);
  font-family: var(--font-u); font-size: 0.78rem; letter-spacing: 0.03em;
}

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp  { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes pulse   { 0%,100% { opacity:1; } 50% { opacity:0.35; } }
@keyframes float   { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-14px); } }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .stats-inner    { grid-template-columns: repeat(2,1fr); }
  .feature-wrap   { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-badge  { display: none; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .gallery-grid   { grid-template-columns: repeat(2,1fr); }
  .grid-2         { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; left: -100%; width: 280px; height: 100vh;
    background: rgba(5,46,22,0.97); backdrop-filter: blur(20px);
    flex-direction: column; align-items: flex-start;
    padding: 5.5rem 2rem 2.5rem; gap: 0.5rem; z-index: 998;
    transition: left 0.35s var(--ease);
  }
  .nav-links.nav-active { left: 0; }
  .nav-links a { color: rgba(255,255,255,0.8); font-size: 1rem; padding: 10px 0; width: 100%; }
  .nav-links a:hover, .nav-links a.active { color: var(--primary-light); }
  .hero h1 { font-size: 2.4rem; }
  .section { padding: 4.5rem 5%; }
  .stats-inner  { grid-template-columns: repeat(2,1fr); }
  .grid-3       { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .page-header { padding: 8rem 5% 4.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
}
