/*
Theme Name: Nepal Seva Foundation
Author: Nepal Seva Foundation
Description: An editable WordPress theme for Nepal Seva Foundation, a nonprofit organization dedicated to education, healthcare, sustainability, and empowerment across Nepal. Hero content, stats, mission values, projects, testimonials, contact info, and menus are all editable from wp-admin (Appearance > Customize and the Projects/Testimonials post types).
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 7.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nepal-seva
Tags: one-column, custom-menu, custom-colors, custom-logo, featured-images, translation-ready, nonprofit

This theme, along with all WordPress themes, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

:root {
  --crimson:     #B51C2E;
  --crimson-dk:  #8A1320;
  --gold:        #E8A020;
  --gold-lt:     #F5C45A;
  --sky:         #1C3F72;
  --sky-lt:      #2D5FAA;
  --earth:       #3D2414;
  --terra:       #C4663A;
  --cream:       #FEF6EC;
  --warm-white:  #FFFAF4;
  --muted:       #7A6553;
  --border:      rgba(61,36,20,0.12);
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--earth);
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--crimson); border-radius: 3px; }

/* ─── NAV ─── */
nav:where(#navbar) {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
  background: rgba(254,246,236,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
nav:where(#navbar).scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.08); }

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo-emblem {
  width: 42px; height: 42px;
  background: var(--crimson);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(181,28,46,0.35);
}
.nav-logo-text { line-height: 1.1; }
.nav-logo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 700;
  color: var(--crimson);
  display: block;
}
.nav-logo-sub {
  font-size: 10px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}

:where(#navbar) .nav-links { display: flex; align-items: center; gap: 32px; }
:where(#navbar) .nav-links a {
  text-decoration: none; color: var(--earth);
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
  position: relative; padding-bottom: 2px;
  transition: color .25s;
}
:where(#navbar) .nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--crimson);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
:where(#navbar) .nav-links a:hover { color: var(--crimson); }
:where(#navbar) .nav-links a:hover::after { transform: scaleX(1); }

.btn-nav {
  background: var(--crimson); color: #fff !important;
  padding: 9px 22px; border-radius: 6px;
  font-size: 13px !important; font-weight: 600 !important;
  letter-spacing: .04em;
  transition: background .25s, transform .2s !important;
  box-shadow: 0 3px 14px rgba(181,28,46,0.3);
}
.btn-nav::after { display: none !important; }
.btn-nav:hover { background: var(--crimson-dk) !important; transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
  background: none; border: 0;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--earth); border-radius: 2px;
  transition: all .3s;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(170deg, #0d1f3c 0%, #1C3F72 45%, #3d1520 100%);
  padding: 100px 5% 60px;
  text-align: center;
}

/* Stars */
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 15%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 8%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 22%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 10%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 18%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 5%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 35%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 50% 30%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 32% 42%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 55%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 48%, rgba(255,255,255,0.3) 0%, transparent 100%);
}

/* Mountains SVG */
.mountains {
  position: absolute; bottom: 0; left: 0; right: 0;
  width: 100%; height: auto;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,160,32,0.18);
  border: 1px solid rgba(232,160,32,0.4);
  color: var(--gold-lt);
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase;
  padding: 7px 18px; border-radius: 50px;
  margin-bottom: 28px;
  animation: fadeSlideDown .7s ease both;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold);
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.5; transform:scale(1.4); }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 7vw, 90px);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  max-width: 880px;
  margin: 0 auto 14px;
  animation: fadeSlideDown .8s ease .1s both;
}
.hero h1 span { color: var(--gold); font-style: italic; }

.hero-motto {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-style: italic; font-weight: 400;
  color: rgba(255,255,255,0.75);
  margin-bottom: 42px;
  animation: fadeSlideDown .8s ease .2s both;
}

.hero-ctas {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeSlideDown .8s ease .35s both;
  position: relative; z-index: 2;
}
.btn-primary {
  background: var(--crimson);
  color: #fff; border: none; cursor: pointer;
  padding: 15px 34px; border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  letter-spacing: .03em;
  transition: all .25s;
  box-shadow: 0 4px 24px rgba(181,28,46,0.45);
}
.btn-primary:hover {
  background: var(--crimson-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(181,28,46,0.55);
}
.btn-outline {
  background: transparent;
  color: #fff; border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 13px 32px; border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  letter-spacing: .03em;
  transition: all .25s;
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute; bottom: 220px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  animation: fadeSlideDown .8s ease .6s both;
}
.scroll-hint-arrow {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4));
  animation: dropLine 1.6s ease-in-out infinite;
}
@keyframes dropLine {
  0%,100% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── STATS STRIP ─── */
.stats-strip {
  background: var(--crimson);
  padding: 40px 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center; padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 700; color: #fff;
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 12px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
  margin-top: 4px; display: block;
}

/* ─── SECTION COMMONS ─── */
section { padding: 100px 5%; }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--crimson);
  margin-bottom: 16px;
}
.section-label::before {
  content: ''; display: block;
  width: 24px; height: 2px; background: var(--crimson);
}

h2.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 700; line-height: 1.1;
  color: var(--earth);
  margin-bottom: 20px;
}
h2.section-title em { font-style: italic; color: var(--crimson); }

.section-desc {
  font-size: 16px; line-height: 1.75;
  color: var(--muted); max-width: 600px;
}

/* ─── MISSION ─── */
.mission {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

.mission-visual {
  position: relative;
}
.mission-card {
  background: var(--sky);
  border-radius: 20px;
  padding: 50px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.mission-card::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.mission-card::after {
  content: '';
  position: absolute; bottom: -60px; left: -30px;
  width: 160px; height: 160px;
  background: rgba(232,160,32,0.08);
  border-radius: 50%;
}
.mission-card-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 68px; line-height: .8;
  color: var(--gold);
  margin-bottom: 20px; display: block;
}
.mission-card p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; line-height: 1.55;
  font-style: italic; color: rgba(255,255,255,0.9);
  position: relative; z-index: 1;
}
.mission-card-author {
  margin-top: 24px;
  font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-lt);
  position: relative; z-index: 1; display: block;
}

.mission-float-badge {
  position: absolute; bottom: -20px; right: 30px;
  background: var(--gold);
  border-radius: 14px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
}
.mission-float-badge strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 700;
  color: var(--earth); line-height: 1;
}
.mission-float-badge span {
  font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--earth); opacity: .7;
}

.mission-values {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 40px;
}
.value-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: box-shadow .25s, transform .25s;
}
.value-item:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.value-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.value-item h4 {
  font-size: 14px; font-weight: 600; margin-bottom: 4px;
  color: var(--earth);
}
.value-item p { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ─── PROJECTS ─── */
.projects { background: var(--warm-white); }
.projects-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 60px; flex-wrap: wrap; gap: 20px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all .3s;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.project-thumb {
  height: 200px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.project-thumb-icon {
  font-size: 56px; position: relative; z-index: 1;
}
.project-thumb-overlay {
  position: absolute; inset: 0;
  opacity: .15;
}
.project-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.9);
  border-radius: 20px; padding: 5px 14px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--crimson);
}
.project-body { padding: 26px; }
.project-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 700; margin-bottom: 10px;
  color: var(--earth);
}
.project-body p {
  font-size: 14px; line-height: 1.65; color: var(--muted);
  margin-bottom: 20px;
}
.project-progress-label {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 600; color: var(--earth);
  margin-bottom: 8px;
}
.project-progress-bar {
  height: 6px; background: #f0e8e0; border-radius: 3px; overflow: hidden;
}
.project-progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
  transition: width 1s ease;
}
.project-footer {
  padding: 16px 26px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.project-beneficiaries {
  font-size: 12px; color: var(--muted);
}
.project-beneficiaries strong { color: var(--earth); font-weight: 600; }
.project-link {
  font-size: 13px; font-weight: 600; color: var(--crimson);
  text-decoration: none; letter-spacing: .03em;
  display: flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.project-link:hover { gap: 10px; }

/* ─── GET INVOLVED ─── */
.involved {
  background: var(--sky);
  position: relative; overflow: hidden;
}
.involved::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: rgba(232,160,32,0.06);
  border-radius: 50%;
}
.involved::after {
  content: '';
  position: absolute; bottom: -80px; left: -80px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.involved .section-label { color: var(--gold-lt); }
.involved .section-label::before { background: var(--gold-lt); }
.involved h2.section-title { color: #fff; }
.involved .section-desc { color: rgba(255,255,255,0.65); max-width: 560px; }

.involved-header { margin-bottom: 60px; }

.involved-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  position: relative; z-index: 1;
}
.involved-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 36px 30px;
  transition: all .3s;
  position: relative; overflow: hidden;
}
.involved-card::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(232,160,32,0); border-radius: inherit;
  transition: background .3s;
}
.involved-card:hover::before { background: rgba(232,160,32,0.04); }
.involved-card:hover {
  border-color: rgba(232,160,32,0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}
.involved-icon {
  width: 56px; height: 56px;
  background: rgba(232,160,32,0.15);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 22px;
}
.involved-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 700;
  color: #fff; margin-bottom: 12px;
}
.involved-card p {
  font-size: 14px; line-height: 1.65;
  color: rgba(255,255,255,0.6); margin-bottom: 28px;
}
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold);
  color: var(--earth); padding: 11px 22px; border-radius: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-decoration: none;
  transition: all .25s;
}
.btn-gold:hover {
  background: var(--gold-lt);
  transform: translateX(3px);
}

/* ─── TESTIMONIALS ─── */
.testimonials {
  background: var(--cream);
}
.testimonials-header { text-align: center; margin-bottom: 60px; }
.testimonials-header .section-label { justify-content: center; }
.testimonials-header .section-label::before { display: none; }
.testimonials-header .section-label::after {
  content: ''; display: block;
  width: 24px; height: 2px; background: var(--crimson);
}

.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  border: 1px solid var(--border);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px; line-height: .7;
  color: var(--crimson); opacity: .15;
  position: absolute; top: 20px; left: 24px;
  pointer-events: none;
}
.testimonial-stars {
  color: var(--gold); font-size: 14px; margin-bottom: 14px;
  letter-spacing: 2px;
}
.testimonial-card p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; line-height: 1.6; font-style: italic;
  color: var(--earth); margin-bottom: 24px;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.testimonial-name {
  font-size: 14px; font-weight: 600; color: var(--earth);
  display: block;
}
.testimonial-role {
  font-size: 12px; color: var(--muted);
}

/* ─── DONATE ─── */
.donate {
  background: linear-gradient(135deg, var(--crimson-dk) 0%, var(--crimson) 50%, #8B1A40 100%);
  text-align: center;
  position: relative; overflow: hidden;
}
.donate::before {
  content: 'नेपाल';
  font-family: 'Cormorant Garamond', serif;
  font-size: 220px; font-weight: 700;
  color: rgba(255,255,255,0.04);
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}
.donate .section-label { color: var(--gold-lt); justify-content: center; }
.donate .section-label::before { display:none; }
.donate .section-label::after {
  content: ''; display: block; width: 24px; height: 2px; background: var(--gold-lt);
}
.donate h2.section-title { color: #fff; }
.donate .section-desc { color: rgba(255,255,255,0.7); margin: 0 auto 40px; }
.donate-amounts {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 28px;
}
.donate-amount-btn {
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.25);
  color: #fff; cursor: pointer;
  padding: 12px 24px; border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 600;
  transition: all .2s;
}
.donate-amount-btn:hover,
.donate-amount-btn.active {
  background: var(--gold); border-color: var(--gold);
  color: var(--earth);
}
.donate-cta { margin-top: 8px; }

/* ─── LOCATION ─── */
.location {
  background: var(--warm-white);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.location-info { order: 1; }
.location-map-wrap { order: 2; }
.location-map-wrap iframe {
  width: 100%; height: 420px;
  border-radius: 20px;
  border: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.contact-items { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px; background: var(--cream);
  border-radius: 12px; border: 1px solid var(--border);
}
.contact-item-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--crimson);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; color: #fff;
}
.contact-item h4 { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.contact-item p { font-size: 15px; color: var(--earth); font-weight: 500; }
.contact-item a { color: var(--crimson); text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

/* ─── NEWSLETTER ─── */
.newsletter {
  background: var(--earth);
  padding: 60px 5%;
  text-align: center;
}
.newsletter h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 700; color: #fff;
  margin-bottom: 8px;
}
.newsletter p { color: rgba(255,255,255,0.6); font-size: 15px; margin-bottom: 28px; }
.newsletter-form {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  max-width: 480px; margin: 0 auto;
}
.newsletter-form input {
  flex: 1; min-width: 220px;
  padding: 14px 20px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: #fff; font-family: 'DM Sans', sans-serif; font-size: 14px;
  outline: none; transition: border .25s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form button {
  background: var(--crimson); color: #fff; border: none; cursor: pointer;
  padding: 14px 28px; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  transition: all .25s;
}
.newsletter-form button:hover { background: var(--crimson-dk); }

/* ─── FOOTER ─── */
footer:where(.site-footer) {
  background: #1a0e07;
  color: rgba(255,255,255,0.55);
  padding: 60px 5% 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 700;
  color: #fff; margin-bottom: 6px;
}
.footer-brand-sub {
  font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px; display: block;
}
.footer-brand-desc {
  font-size: 13px; line-height: 1.7;
  color: rgba(255,255,255,0.45); max-width: 260px;
}
.footer-socials {
  display: flex; gap: 10px; margin-top: 22px;
}
.social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: all .25s;
}
.social-btn:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}
.footer-col h4 {
  font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 13px; color: rgba(255,255,255,0.45);
  text-decoration: none; transition: color .2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-bottom span { color: var(--crimson); }
.nepal-flag-strip {
  display: flex; gap: 4px; align-items: center;
}
.flag-c { width: 16px; height: 6px; border-radius: 2px; }

/* ─── ANIMATIONS ─── */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1; transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .involved-cards { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  nav:where(#navbar) { padding: 0 4%; }
  :where(#navbar) .nav-links { display: none; }
  :where(#navbar) .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 16px 5%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 999;
  }
  :where(#navbar) .nav-links.open a {
    width: 100%; padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  :where(#navbar) .nav-links.open a:last-child { border-bottom: none; }
  .btn-nav {
    display: block; text-align: center;
    margin-top: 8px; padding: 12px 22px !important;
  }
  .hamburger { display: flex; }

  .stats-strip { grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.15); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); background: var(--crimson); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.18); }

  .mission { grid-template-columns: 1fr; gap: 40px; }
  .projects-grid { grid-template-columns: 1fr; }
  .involved-cards { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .location { grid-template-columns: 1fr; gap: 40px; }
  .location-info { order: 2; }
  .location-map-wrap { order: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .projects-header { flex-direction: column; align-items: flex-start; }
  section { padding: 70px 4%; }
  .mission-values { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; max-width: 300px; text-align: center; }
  .donate-amounts { flex-direction: column; align-items: center; }
  .donate-amount-btn { width: 200px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── WORDPRESS CORE / EDITOR COMPATIBILITY ─── */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #fff; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
  clip: auto !important; clip-path: none; color: #21759b; display: block;
  font-size: 14px; font-weight: 700; height: auto; left: 5px; line-height: normal;
  padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000;
}
.alignleft { float: left; margin: 0 24px 12px 0; }
.alignright { float: right; margin: 0 0 12px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
img { max-width: 100%; height: auto; }
.wp-caption { max-width: 100%; }
.wp-block-image img { border-radius: 8px; }

/* Basic content page styling (for standard WP pages using page.php) */
.nsf-page-wrap {
  max-width: 840px; margin: 130px auto 100px; padding: 0 5%;
  font-family: 'DM Sans', sans-serif; color: var(--earth); line-height: 1.75;
}
.nsf-page-wrap h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(32px, 4vw, 48px);
  color: var(--crimson-dk); margin-bottom: 24px; line-height: 1.15;
}
.nsf-page-wrap h2, .nsf-page-wrap h3 { font-family: 'Cormorant Garamond', serif; color: var(--sky); margin: 32px 0 12px; }
.nsf-page-wrap p { margin-bottom: 18px; }
.nsf-page-wrap a { color: var(--crimson); }
.nsf-page-wrap ul, .nsf-page-wrap ol { margin: 0 0 18px 24px; }

/* Single Project / Testimonial fallback layouts */
.nsf-single-hero {
  padding: 150px 5% 60px; text-align: center; background: var(--cream);
}
.nsf-single-hero .project-tag { display: inline-block; margin-bottom: 14px; }
.nsf-single-hero h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(30px, 4vw, 46px); color: var(--crimson-dk);
}
.nsf-back-link {
  display: inline-block; margin: 40px 5% 0; font-weight: 600; color: var(--crimson); text-decoration: none;
}

/* ─── WORDPRESS MENUS ─── */
.nav-logo .custom-logo { width: auto; max-width: 160px; height: 42px; object-fit: contain; }
:where(#navbar) .nav-links ul { display: flex; align-items: center; gap: 32px; list-style: none; }
.footer-col ul li { list-style: none; }

@media (max-width: 768px) {
  :where(#navbar) .nav-links.open ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  :where(#navbar) .nav-links.open li a { display: block; }
  :where(#navbar) .nav-links.open li:not(:last-child) a { border-bottom: 1px solid var(--border); }
  :where(#navbar) .nav-links.open li:last-child a { border-bottom: none; }
}

/* ─── ADMIN BAR ─── */
.admin-bar nav:where(#navbar) { top: 32px; }
@media (max-width: 782px) {
  .admin-bar nav:where(#navbar) { top: 46px; }
  .admin-bar :where(#navbar) .nav-links.open { top: 116px; }
}

/* ─── PAGINATION, COMMENTS, SINGLE TESTIMONIAL ─── */
.pagination, .post-navigation { margin-top: 40px; }
.pagination .nav-links, .post-navigation .nav-links, .comment-navigation .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.page-numbers.current { font-weight: 700; }
.comments-area { margin-top: 48px; }
.comment-list { list-style-position: inside; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { display: block; width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.comment-form .submit { background: var(--crimson); color: #fff; border: 0; border-radius: 8px; padding: 12px 28px; cursor: pointer; font: inherit; font-weight: 600; }
.nsf-testimonial-single .fade-in { margin-bottom: 0; }

/* Hide the scroll hint on short screens, where it overlaps the hero text. */
@media (max-height: 960px) {
  .scroll-hint { display: none; }
}
