/* HopeSpring Foundation International */
/* Colors from Brand Kit */
:root {
  --primary-dark: #195429;
  --primary-green: #179917;
  --light-green: #b5c577;
  --accent-orange: #f78226;
  --light-bg: #f2f2f2;
  --dark-gray: #545454;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-muted: #666666;
  --shadow: 0 10px 40px rgba(0,0,0,0.08);
  --shadow-hover: 0 15px 50px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'ITC Avant Garde Gothic', 'Montserrat', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.section-label {
  display: inline-block;
  background: rgba(25, 84, 41, 0.1);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-orange);
  color: var(--white);
}

.btn-primary:hover {
  background: #e06e15;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(247, 130, 38, 0.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-dark);
  color: var(--primary-dark);
}

.btn-outline:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary-dark);
}

.btn-white:hover {
  background: var(--light-bg);
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.header .container {
  max-width: 100%;          /* Allows container to expand end-to-end */
  width: 100%;              /* Ensures full width execution */
  padding: 0 24px;          /* Prevents content from touching raw screen edges */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px 0;
  min-height: 72px;
} */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Spreads items out evenly */
  flex: 1;                         /* Takes up all remaining width in the header */
  padding: 10px 0;
  min-height: 72px;
}

/* Logo — left side, never shrinks */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  height: 60px;
  width: 190px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.15;
  white-space: nowrap;
}

.logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--dark-gray);
  letter-spacing: 0.4px;
}

/* Nav links — centered on desktop, evenly spaced */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-green);
  background: rgba(23, 153, 23, 0.08);
}

/* Donate button — right side */
.nav-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-cta .btn {
  padding: 11px 22px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Hamburger button (hidden on desktop) */
.mobile-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.mobile-toggle:hover {
  background: rgba(25, 84, 41, 0.08);
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  position: relative;
  transition: background 0.25s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* Open state — turns into X */
.mobile-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.mobile-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ========== RESPONSIVE — HEADER ========== */

/* Large tablets / small desktops — tighten nav spacing */
@media (max-width: 1100px) {
  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  /* .logo-text {
    font-size: 0.95rem;
  } */

  .logo-text span {
    font-size: 0.6rem;
  }
}

/* Tablets (portrait & landscape) */
@media (max-width: 992px) {
  .nav {
    gap: 16px;
  }
  .nav-links {
    gap: 0;
  }
  .nav-links a {
    padding: 8px 9px;
    font-size: 0.85rem;
  }
  .nav-cta .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .logo img {
    height: 40px;
    width: 40px;
  }
}

/* Mobile & small tablets — hamburger menu */
@media (max-width: 768px) {
  .nav {
    min-height: 64px;
    padding: 10px 0;
    gap: 12px;
  }
  .logo img {
    height: 80px;
    width: 120px;
  }
  .logo-text {
    font-size: 0.95rem;
  }
  .logo-text span {
    font-size: 0.58rem;
  }

  /* Hide desktop nav links, show as slide-down panel */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    padding: 12px 20px 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    gap: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  .nav-links li:last-child {
    border-bottom: none;
  }
  .nav-links a {
    padding: 14px 12px;
    font-size: 1rem;
    border-radius: 8px;
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(23, 153, 23, 0.1);
  }

  /* Keep Donate button visible on mobile (compact) */
  .nav-cta {
    display: flex;
    margin-left: auto;
  }
  .nav-cta .btn {
    display: inline-flex;
    padding: 9px 14px;
    font-size: 0.82rem;
  }
  .mobile-toggle {
    display: flex;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .nav {
    gap: 8px;
  }
  .logo-text span {
    display: none; /* hide long subtitle on very small screens */
  }
  .nav-cta .btn {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
}

/* Extra-small phones */
@media (max-width: 360px) {
  .logo-text {
    font-size: 0.85rem;
  }
  .nav-cta .btn {
    padding: 7px 10px;
    font-size: 0.75rem;
  }
}

/* Tablets landscape — keep desktop-style nav when wide enough */
@media (min-width: 769px) and (max-width: 992px) {
  .nav-links {
    display: flex;
  }
  .mobile-toggle {
    display: none;
  }
}

/* ========== CONTACT PAGE ========== */
.contact-page-hero {
  position: relative;
  padding: 120px 0 56px;
  color: #fff;
  overflow: hidden;
  background: #195429;
}

.contact-page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(25, 84, 41, 0.94) 0%, rgba(23, 153, 23, 0.85) 100%),
    url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?w=1600&q=80') center/cover no-repeat;
}

.contact-page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.contact-page-hero .program-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.contact-page-hero .program-breadcrumb a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 500;
}

.contact-page-hero .program-breadcrumb a:hover {
  color: var(--accent-orange);
}

.contact-page-hero .breadcrumb-sep { opacity: 0.5; }

.contact-page-hero [aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

.contact-page-hero .section-label {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
}

.contact-page-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.7rem);
  color: #fff !important;
  margin: 12px 0 14px;
  line-height: 1.2;
}

.contact-page-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.contact-page {
  padding: 64px 0 72px;
  background: #f7faf8;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.contact-info-panel {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid rgba(25, 84, 41, 0.08);
  box-shadow: 0 4px 20px rgba(25, 84, 41, 0.05);
}

.contact-info-heading {
  font-size: 1.25rem;
  margin: 0 0 6px;
  color: var(--text-dark);
}

.contact-info-intro {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

.contact-channels {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 18px;
}

.contact-channels li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-channel-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(25, 84, 41, 0.08);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-channel-icon--wa {
  background: rgba(37, 211, 102, 0.15);
  color: #128c7e;
}

.contact-channels strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-channels a {
  color: var(--primary-green);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
  word-break: break-word;
}

.contact-channels a:hover {
  color: var(--accent-orange);
}

.contact-channels span {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.45;
}

.contact-social {
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

.contact-social p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.contact-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-quick-links .btn {
  flex: 1;
  min-width: 150px;
  justify-content: center;
  text-align: center;
  font-size: 0.88rem;
}

.contact-form-panel {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid rgba(25, 84, 41, 0.08);
  box-shadow: 0 4px 20px rgba(25, 84, 41, 0.05);
}

.contact-form-panel h2 {
  font-size: 1.35rem;
  margin: 0 0 6px;
  color: var(--text-dark);
}

.contact-form-intro {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.contact-form-panel .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form-panel .form-group {
  margin-bottom: 16px;
}

.contact-form-panel label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.contact-form-panel .req {
  color: var(--accent-orange);
}

.contact-form-panel .optional {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.contact-form-panel input,
.contact-form-panel select,
.contact-form-panel textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(25, 84, 41, 0.12);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.contact-form-panel input:focus,
.contact-form-panel select:focus,
.contact-form-panel textarea:focus {
  outline: none;
  border-color: var(--primary-green);
}

.contact-form-panel textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.form-message {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  display: none;
}

.form-message.is-success {
  display: block;
  background: rgba(23, 153, 23, 0.1);
  color: #0d6b0d;
  border: 1px solid rgba(23, 153, 23, 0.25);
}

.form-message.is-error {
  display: block;
  background: rgba(220, 53, 69, 0.08);
  color: #a71d2a;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.contact-faq-teaser {
  padding: 48px 0;
  background: #fff;
  border-top: 1px solid rgba(25, 84, 41, 0.06);
}

.contact-faq-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.contact-faq-inner h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 8px 0 10px;
  color: var(--text-dark);
}

.contact-faq-inner p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-faq-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-faq-links a {
  font-weight: 600;
  color: var(--primary-green);
  text-decoration: none;
  font-size: 0.98rem;
}

.contact-faq-links a:hover {
  color: var(--accent-orange);
}

@media (max-width: 900px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
  .contact-faq-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .contact-page-hero {
    padding: 108px 0 44px;
  }
  .contact-page {
    padding: 40px 0 48px;
  }
  .contact-form-panel {
    padding: 24px 18px;
  }
  .contact-form-panel .form-row {
    grid-template-columns: 1fr;
  }
  .contact-info-panel {
    padding: 22px 18px;
  }
  .contact-quick-links {
    flex-direction: column;
  }
  .contact-quick-links .btn {
    width: 100%;
  }
}

/* ========== FINAL CTA ========== */
.final-cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(25, 84, 41, 0.92) 0%, rgba(23, 153, 23, 0.88) 100%),
    url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=1600&q=80') center/cover no-repeat;
  z-index: 0;
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta-content {
  max-width: 640px;
  margin: 0 auto;
}

.final-cta .section-label {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.final-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.25;
}

.final-cta-content > p {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.final-cta-actions .btn {
  min-width: 180px;
  justify-content: center;
}

.final-cta-note {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  letter-spacing: 0.2px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .final-cta {
    padding: 72px 0;
  }
  .final-cta-content > p {
    font-size: 1rem;
  }
  .final-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .final-cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .final-cta {
    padding: 56px 0;
  }
  .final-cta h2 {
    font-size: 1.7rem;
  }
}

/* ========== FOOTER ========== */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 40px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-brand .logo-text {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.footer-brand .logo-image {
  width: 320px;
  height: 120px;
  margin-bottom: 16px;
}

.footer-brand .logo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.footer-brand p {
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer-brand .tax-info {
  font-size: 0.6rem;
  opacity: 0.8;
  font-style: italic;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-orange);
}

.footer h4 {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-orange);
}

.newsletter p {
  opacity: 0.8;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: inherit;
}

.newsletter-form button {
  background: var(--accent-orange);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: #e06e15;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-box {
    grid-column: span 2;
  }
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .causes-grid,
  .programs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .testimonial-card {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 40px;
    max-width: 100%;
  }
  .testimonials {
    flex-direction: column;
    text-align: center;
  }
  .testimonial-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 16px;
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-cta .btn {
    display: none;
  }
  .hero {
    min-height: auto;
    padding: 140px 0 80px;
  }
  .hero-card,
  .watch-story {
    display: none;
  }
  .about-grid,
  .why-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-images {
    height: 360px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .trust-box {
    grid-column: auto;
  }
  .causes-grid,
  .programs-grid {
    grid-template-columns: 1fr;
  }
  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 20px;
  }
}