/* ========================================
   NATURE NGO — Global Stylesheet
   naturengo.org
   ======================================== */

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

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

:root {
  --green-900: #071F10;
  --green-800: #0A3020;
  --green-700: #0F4A2A;
  --green-600: #1B6B3A;
  --green-500: #2D8A52;
  --green-400: #4CAF72;
  --green-100: #C8EACF;
  --green-50:  #E8F5ED;
  --gold-600:  #A8893A;
  --gold-500:  #C9A84C;
  --gold-400:  #E0C06A;
  --gold-100:  #F5E6C0;
  --gold-50:   #FBF5E0;
  --cream:     #FAFAF7;
  --white:     #FFFFFF;
  --text-900:  #111D15;
  --text-700:  #1A2B1F;
  --text-500:  #3D5445;
  --text-300:  #6B8A72;
  --border:    rgba(15,74,42,0.14);
  --shadow-sm: 0 2px 8px rgba(15,74,42,0.08);
  --shadow-md: 0 4px 20px rgba(15,74,42,0.12);
  --shadow-lg: 0 8px 40px rgba(15,74,42,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.25s ease;
  --nav-h: 70px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-700);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-900);
}
h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(26px, 3.5vw, 40px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
p { line-height: 1.8; }

em { font-style: italic; color: var(--green-600); }

a { color: var(--green-600); transition: color var(--transition); }
a:hover { color: var(--green-500); }

img { max-width: 100%; display: block; }

/* ===== UTILITY ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 5%; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }

.tag {
  display: inline-block;
  background: var(--green-50);
  color: var(--green-600);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 12px;
}
.tag-gold {
  background: var(--gold-50);
  color: var(--gold-600);
}
.tag-white {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.25);
}

.section-header { margin-bottom: 48px; }
.section-header .subtitle {
  font-size: 16px; color: var(--text-500);
  max-width: 560px; margin-top: 12px;
}
.section-header.centered { text-align: center; }
.section-header.centered .subtitle { margin: 12px auto 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold-500); color: var(--green-700);
}
.btn-gold:hover { background: var(--gold-400); transform: translateY(-2px); color: var(--green-700); }

.btn-green {
  background: var(--green-600); color: white;
}
.btn-green:hover { background: var(--green-500); transform: translateY(-2px); color: white; }

.btn-outline-white {
  background: transparent; color: white;
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); color: white; border-color: rgba(255,255,255,0.7); }

.btn-outline-green {
  background: transparent; color: var(--green-600);
  border: 1.5px solid var(--green-500);
}
.btn-outline-green:hover { background: var(--green-50); }

.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 9px 20px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 9999;
  height: var(--nav-h);
  background: rgba(10,48,32,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.navbar .container {
  display: flex; align-items: center;
  justify-content: space-between; height: 100%;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-brand-icon {
  width: 42px; height: 42px;
  background: var(--gold-500); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.nav-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  color: white; letter-spacing: 3px;
}
.nav-menu {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex; align-items: center; gap: 4px;
  color: rgba(255,255,255,0.82);
  text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 6px;
  transition: all var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: white; background: rgba(255,255,255,0.08);
}
/* dropdown */
.has-dropdown > a::after { content: ' ▾'; font-size: 10px; }
.dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  background: white; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  border: 1px solid var(--border);
  overflow: hidden;
  z-index: 100;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a {
  display: block; padding: 11px 18px;
  color: var(--text-700); text-decoration: none;
  font-size: 14px; border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--green-50); color: var(--green-600); }

.nav-donate {
  background: var(--gold-500) !important;
  color: var(--green-700) !important;
  padding: 9px 20px !important;
  border-radius: 6px;
  font-weight: 700 !important;
}
.nav-donate:hover { background: var(--gold-400) !important; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: white; border-radius: 2px;
  transition: all var(--transition);
}

/* Page header (inner pages) */
.page-hero {
  padding: calc(var(--nav-h) + 50px) 0 60px;
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 50%, var(--green-600) 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0; opacity: 0.05;
  background: repeating-linear-gradient(45deg, transparent, transparent 28px, rgba(255,255,255,0.4) 28px, rgba(255,255,255,0.4) 29px);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: white; margin-bottom: 10px; }
.page-hero h1 em { color: var(--gold-400); }
.page-hero .breadcrumb {
  font-size: 13px; color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: white; }
.page-hero .lead { font-size: 17px; color: rgba(255,255,255,0.78); max-width: 600px; margin-top: 12px; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-body { padding: 24px 26px; }
.card-icon {
  width: 54px; height: 54px;
  background: var(--green-50);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 16px;
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* Divider */
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* Badges */
.badge {
  display: inline-block; padding: 4px 12px;
  border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge-green { background: var(--green-50); color: var(--green-600); }
.badge-gold  { background: var(--gold-50);  color: var(--gold-600); }
.badge-red   { background: #FEE8E8; color: #B91C1C; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--green-800);
  color: rgba(255,255,255,0.68);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.3fr;
  gap: 40px; padding-bottom: 48px;
}
.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px; color: white; display: block; margin-bottom: 6px;
}
.footer-tagline { font-style: italic; font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 14px; display: block; }
.footer-brand p { font-size: 14px; line-height: 1.85; max-width: 270px; }
.footer-col h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-500); margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.62); text-decoration: none;
  font-size: 14px; transition: color var(--transition);
}
.footer-col ul li a:hover { color: white; }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.footer-contact-item .ico { font-size: 15px; margin-top: 2px; flex-shrink: 0; }
.footer-contact-item p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.footer-contact-item a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-contact-item a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-reg {
  background: rgba(255,255,255,0.07); border-radius: 6px;
  padding: 6px 14px; font-size: 12px; color: rgba(255,255,255,0.45);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.up    { transform: translateY(28px); }
.reveal.left  { transform: translateX(-28px); }
.reveal.right { transform: translateX(28px); }
.reveal.in { opacity: 1; transform: none !important; }
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== FORM ELEMENTS ===== */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-500); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--text-700);
  background: var(--cream);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-500); background: white;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--green-800);
    padding: 20px; gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-menu.open > li > a { padding: 12px 16px; }
  .dropdown {
    display: none !important;
    position: static; box-shadow: none; border: none;
    background: rgba(255,255,255,0.06); border-radius: var(--radius-sm);
    margin-top: 4px;
  }
  .has-dropdown.open .dropdown { display: block !important; }
  .dropdown a { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.08); }
  .dropdown a:hover { background: rgba(255,255,255,0.1); color: white; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
