/* ============================================================
   WSFI — World Survivors Fund International
   styles.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&family=Inter:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ---- Custom Properties ---- */
:root {
  --c-bg-top:    #010602;
  --c-bg-mid:    #040e07;
  --c-bg-deep:   #091808;
  --c-bg-warm:   #102214;

  --c-green:     #5c9e64;
  --c-green-lt:  #7ec882;
  --c-tan:       #c48a3a;
  --c-tan-lt:    #e0aa52;

  --c-white:     #ffffff;
  --c-text:      #d8edd8;
  --c-muted:     rgba(216, 237, 216, 0.60);

  --glass:        rgba(1, 6, 2, 0.72);
  --glass-border: rgba(92, 158, 100, 0.22);

  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --r:        14px;
  --r-sm:      7px;
  --shadow:   0 10px 40px rgba(0,0,0,0.65);
  --glow:     0 0 24px rgba(92, 158, 100, 0.4);
  --glow-tan: 0 0 24px rgba(196, 138, 58, 0.4);
  --t:        0.25s ease;
  --max-w:    1100px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.65;
  color: var(--c-text);
  background: linear-gradient(155deg,
    var(--c-bg-top)  0%,
    var(--c-bg-mid)  28%,
    var(--c-bg-deep) 55%,
    var(--c-bg-warm) 80%,
    #1a3018          100%);
  min-height: 100vh;
}

main {
  background: linear-gradient(180deg, #030803 0%, #000000 50%, #000200 100%);
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; }
ul  { list-style: none; }

/* ---- Accessibility ---- */
.skip-link {
  position: absolute;
  top: -999px; left: 1rem;
  padding: 0.5rem 1.2rem;
  background: var(--c-tan);
  color: #000;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--r-sm);
  z-index: 9999;
  text-decoration: none;
  transition: top var(--t);
}
.skip-link:focus { top: 0.75rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2.5px solid var(--c-tan);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---- Header ---- */
header {
  position: sticky; top: 0; z-index: 200;
  background: linear-gradient(180deg, rgba(0,2,0,0.97) 0%, rgba(3,8,3,0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

.logo-link {
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}
.logo-text {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: -3px;
  text-shadow: 0 0 30px rgba(92,158,100,0.55), 0 0 70px rgba(92,158,100,0.2);
  line-height: 0.9;
}

.header-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.company-name {
  font-family: var(--font-head);
  font-size: clamp(0.5rem, 1.05vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-green);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Nav ---- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.85rem;
  background: linear-gradient(145deg, #0c3414, #1a5422);
  color: var(--c-white);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  border: 1px solid rgba(92,158,100,0.28);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  transition: all var(--t);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  background: linear-gradient(145deg, #1a5422, #226e2e);
  border-color: rgba(92,158,100,0.55);
  box-shadow: var(--glow), 0 4px 16px rgba(0,0,0,0.35);
  transform: translateY(-1px);
  outline: none;
}

.main-nav a[aria-current="page"] {
  cursor: default;
  background: linear-gradient(145deg, #1e6028, #2a7835);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(92,158,100,0.35);
  border-radius: var(--r-sm);
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Page content wrapper ---- */
.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* ---- Section label ---- */
.section-label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-tan);
  opacity: 0.9;
  margin-bottom: 0.6rem;
}

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-img-wrap {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
  min-height: 290px;
}

.hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.hero-img.active { opacity: 1; }

/*
  Hero photos — Pexels CDN (free licence).
  Photo IDs: home=30564957, mission=9968380, whatwedo=15808831,
             whoweare=30712158, help=8730116
*/
.hero-img-home {
  background-image: url('https://images.pexels.com/photos/30564957/pexels-photo-30564957.jpeg?auto=compress&cs=tinysrgb&w=1200'),
                    linear-gradient(155deg, #010602 0%, #091808 50%, #1a3018 100%);
  background-size: cover, cover;
  background-position: center, center;
}
.hero-img-mission {
  background-image: url('https://images.pexels.com/photos/9968380/pexels-photo-9968380.jpeg?auto=compress&cs=tinysrgb&w=1200'),
                    linear-gradient(155deg, #020802 0%, #0a1c0c 50%, #162814 100%);
  background-size: cover, cover;
  background-position: center, center;
}
.hero-img-whatwedo {
  background-image: url('https://images.pexels.com/photos/15808831/pexels-photo-15808831.jpeg?auto=compress&cs=tinysrgb&w=1200'),
                    linear-gradient(155deg, #010602 0%, #081608 50%, #142018 100%);
  background-size: cover, cover;
  background-position: center, center;
}
.hero-img-whoweare {
  background-image: url('https://images.pexels.com/photos/30712158/pexels-photo-30712158.jpeg?auto=compress&cs=tinysrgb&w=1200'),
                    linear-gradient(155deg, #020804 0%, #0a1c0c 50%, #162818 100%);
  background-size: cover, cover;
  background-position: center, center;
}
.hero-img-help {
  background-image: url('https://images.pexels.com/photos/8730116/pexels-photo-8730116.jpeg?auto=compress&cs=tinysrgb&w=1200'),
                    linear-gradient(155deg, #020802 0%, #081808 50%, #142214 100%);
  background-size: cover, cover;
  background-position: center, center;
}

.hero-img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(1,3,1,0.90) 0%, transparent 100%);
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: clamp(0.9rem, 2.2vw, 1.3rem);
  font-weight: 400;
  color: var(--c-tan-lt);
  line-height: 1.1;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 900;
  color: var(--c-green-lt);
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}

/* Right-side text panel */
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.hero-text h1 {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: var(--c-green);
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.hero-text p {
  color: var(--c-text);
  font-size: clamp(0.9rem, 1.7vw, 1.05rem);
  line-height: 1.78;
}
.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

/* WSFI logo in home hero */
.wsfi-hero-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 6px;
  filter: brightness(0.92) saturate(1.1);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--r-sm);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--t);
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, #8c5c1c, #c48a3a);
  color: var(--c-white);
  border-color: rgba(196,138,58,0.45);
  box-shadow: 0 4px 16px rgba(140,92,28,0.4);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #c48a3a, #e0aa52);
  box-shadow: var(--glow-tan), 0 6px 20px rgba(140,92,28,0.5);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--c-green);
  border-color: rgba(92,158,100,0.45);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(92,158,100,0.12);
  border-color: var(--c-green);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

/* ---- Text card ---- */
.text-card {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.text-card h2 {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--c-green);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.text-card h3 {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--c-tan);
  margin: 1.5rem 0 0.6rem;
  line-height: 1.3;
}
.text-card p {
  color: var(--c-text);
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  line-height: 1.78;
  margin-bottom: 0.8rem;
}
.text-card p:last-child { margin-bottom: 0; }
.text-card .sub-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ---- Intro card ---- */
.intro-card {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
}
.intro-card p {
  color: var(--c-text);
  font-size: clamp(0.95rem, 1.9vw, 1.1rem);
  line-height: 1.78;
}

/* ---- Focus cards (home page, 3-up) ---- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.focus-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 1.75rem;
  overflow: hidden;
  transition: all var(--t);
}
.focus-card:hover {
  background: rgba(18,60,22,0.45);
  border-color: rgba(92,158,100,0.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.focus-icon {
  width: 42px; height: 42px;
  color: var(--c-tan);
  margin-bottom: 1rem;
}
.focus-icon svg { width: 100%; height: 100%; }
.focus-card h2 {
  font-family: var(--font-head);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 700;
  color: var(--c-green);
  margin-bottom: 0.6rem;
}
.focus-card p {
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.65;
}

/* ---- Programs grid (what we do, 4-up) ---- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}
.program-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 1.75rem;
  transition: all var(--t);
}
.program-card:hover {
  background: rgba(18,60,22,0.45);
  border-color: rgba(92,158,100,0.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.program-icon {
  width: 38px; height: 38px;
  color: var(--c-green);
  margin-bottom: 0.8rem;
}
.program-icon svg { width: 100%; height: 100%; }
.program-card h2 {
  font-family: var(--font-head);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 700;
  color: var(--c-tan);
  margin-bottom: 0.5rem;
}
.program-card p {
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.65;
}

/* ---- People grid (who we are) ---- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}
.person-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 1.75rem;
  transition: border-color var(--t);
}
.person-card:hover { border-color: rgba(92,158,100,0.45); }
.person-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0c3414, #1a5422);
  border: 2px solid rgba(92,158,100,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--c-green-lt);
  margin-bottom: 0.9rem;
  letter-spacing: -1px;
}
.person-card h2 {
  font-family: var(--font-head);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 700;
  color: var(--c-green);
  margin-bottom: 0.2rem;
}
.person-title {
  font-size: 0.8rem;
  color: var(--c-tan);
  font-style: italic;
  margin-bottom: 0.7rem;
}
.person-bio {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.65;
}

/* ---- Needs grid (help page) ---- */
.needs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1rem;
}
.need-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  transition: all var(--t);
}
.need-card:hover {
  background: rgba(18,60,22,0.4);
  border-color: rgba(92,158,100,0.45);
  transform: translateY(-3px);
}
.need-icon {
  width: 36px; height: 36px;
  color: var(--c-tan);
}
.need-icon svg { width: 100%; height: 100%; }
.need-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text);
}

/* ---- Contact card ---- */
.contact-card {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
}
.contact-card h2 {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: var(--c-green);
  margin-bottom: 1.2rem;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.contact-icon {
  width: 26px; height: 26px;
  color: var(--c-tan);
  flex-shrink: 0;
}
.contact-icon svg { width: 100%; height: 100%; }
.contact-item a,
.contact-item span {
  color: var(--c-text);
  text-decoration: none;
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  transition: color var(--t);
}
.contact-item a:hover { color: var(--c-tan-lt); }

/* ---- World banner (shared footer callout) ---- */
.world-banner {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow);
}
.world-icon {
  flex-shrink: 0;
  width: clamp(52px, 8vw, 72px);
  color: var(--c-green);
  filter: drop-shadow(0 0 10px rgba(92,158,100,0.45));
}
.world-icon svg { width: 100%; height: auto; }
.world-text h2 {
  font-family: var(--font-head);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--c-tan);
  margin-bottom: 0.35rem;
  font-style: italic;
  line-height: 1.4;
}
.world-text p {
  color: var(--c-text);
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  line-height: 1.7;
}

/* ---- Footer ---- */
footer {
  background: linear-gradient(180deg, rgba(0,2,0,0.95) 0%, rgba(1,4,1,0.98) 100%);
  border-top: 1px solid var(--glass-border);
  margin-top: 1rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: -2px;
  text-decoration: none;
  text-shadow: 0 0 20px rgba(92,158,100,0.4);
  line-height: 1;
}
.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--glass-border);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
.footer-nav a {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--t);
}
.footer-nav a:hover { color: var(--c-green); }
.footer-contact {
  display: flex;
  gap: 0.5rem 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.footer-contact a {
  font-size: 0.9rem;
  color: var(--c-tan);
  text-decoration: none;
  transition: color var(--t);
}
.footer-contact a:hover { color: var(--c-tan-lt); }
.footer-sep { color: var(--c-muted); font-size: 0.8rem; }
.footer-legal {
  font-size: 0.72rem;
  color: rgba(216,237,216,0.38);
  line-height: 1.6;
  max-width: 600px;
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; }
  .hero-img-wrap { min-height: 220px; }

  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(0,3,0,0.98);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    z-index: 199;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; justify-content: center; }

  .focus-grid, .programs-grid, .people-grid, .needs-grid { grid-template-columns: 1fr; }
  .world-banner { flex-direction: column; text-align: center; }
  .text-card, .contact-card { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
