/* ============================================================
   CHT WHKN — Design Overhaul v3
   Reference: iprights.org, landislife.org, aippnet.org
   Goal: Million-dollar NGO feel — professional, image-forward,
         clean mobile, dark green anchor nav, bright footer.
   ============================================================ */

/* ============================================================
   1. ROOT OVERRIDES — cleaner, more modern palette
   ============================================================ */
:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #EEF5F0;
  --color-bg-green: #F0F7F2;
  --nav-bg: #102818;
  --footer-bg: #0B1F12;
}

body {
  background: #FFFFFF;
}

/* ============================================================
   2. NAVBAR — always dark green, white text (like Land is Life)
   ============================================================ */
.ornament-strip {
  top: 0;
  z-index: 1001;
}

.nav-bar {
  background: var(--nav-bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  top: 6px !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-bar.scrolled {
  background: var(--nav-bg) !important;
  border-bottom-color: rgba(255,255,255,0.12) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

/* Brand in nav */
.brand-mark {
  background: linear-gradient(135deg, rgba(201,154,46,0.9) 0%, rgba(176,90,40,0.8) 100%) !important;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 1rem;
  font-weight: 700;
}

.brand-name {
  color: #FFFFFF !important;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.brand-tag {
  color: rgba(255,255,255,0.55) !important;
}

/* Nav links */
.nav-link {
  color: rgba(255,255,255,0.80) !important;
  font-size: 0.84rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent-light) !important;
  background: rgba(255,255,255,0.09) !important;
}

/* Lang toggle in nav */
.lang-toggle {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.18) !important;
}

.lang-toggle button {
  color: rgba(255,255,255,0.65) !important;
}

.lang-toggle button.active {
  background: var(--color-accent) !important;
  color: #1C1108 !important;
}

.lang-toggle button:not(.active):hover {
  color: white !important;
}

/* Hamburger toggle */
.nav-toggle {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Nav CTA button */
.nav-cta {
  background: var(--color-accent) !important;
  color: var(--color-ink) !important;
  border-color: transparent !important;
  font-weight: 700;
}

.nav-cta:hover {
  background: var(--color-accent-light) !important;
  color: var(--color-ink) !important;
}

/* ============================================================
   3. MOBILE MENU — full dark green overlay, no overlap
   ============================================================ */
@media (max-width: 1080px) {
  .nav-menu {
    background: var(--nav-bg) !important;
    padding-top: 5.5rem !important;
    gap: 0.15rem !important;
  }

  .nav-link {
    color: rgba(255,255,255,0.88) !important;
    font-size: 1.1rem !important;
    padding: 0.85rem 1.1rem !important;
    border-radius: 8px !important;
    width: 100% !important;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(255,255,255,0.1) !important;
    color: var(--color-accent-light) !important;
  }

  .lang-toggle {
    margin: 0.75rem 0 0.25rem 0 !important;
    width: auto !important;
    align-self: flex-start !important;
  }

  .nav-cta {
    margin: 0.5rem 0 0 0 !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 0.9rem !important;
  }

  /* Ensure nav is above everything */
  .nav-bar { z-index: 500 !important; }
  .nav-menu { z-index: 490 !important; }
  .ornament-strip { z-index: 501 !important; }
}

/* ============================================================
   4. SECTIONS — white body with green alternates
   ============================================================ */
section {
  background: #FFFFFF;
}

section.bg-cream {
  background: var(--color-bg-green) !important;
}

.stats-band {
  background: #0B1F12 !important;
}

/* ============================================================
   5. HERO — more immersive, deeper gradient
   ============================================================ */
.hero {
  background: linear-gradient(150deg,
    #050E09 0%,
    #0B1F12 20%,
    #1A4028 55%,
    #3D0E1C 100%
  ) !important;
  min-height: 96vh !important;
}

@media (max-width: 768px) {
  .hero {
    min-height: 100svh !important;
    padding-top: 5.5rem !important;
    padding-bottom: 3rem !important;
    display: flex;
    align-items: center;
  }

  .hero-title {
    font-size: clamp(2.4rem, 9vw, 3.2rem) !important;
    margin-top: 0.6rem !important;
    margin-bottom: 1rem !important;
  }

  .hero-text {
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }

  .hero-actions {
    gap: 0.75rem !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    max-width: 260px !important;
    padding: 1rem 1.5rem !important;
    font-size: 0.95rem !important;
    justify-content: center !important;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem 1.5rem !important;
    margin-top: 2rem !important;
  }
}

/* ============================================================
   6. PROGRAMMES GRID — nicer on mobile
   ============================================================ */
@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .program-card {
    border-radius: 14px !important;
    padding: 1.35rem !important;
  }

  .pillar {
    border-radius: 12px !important;
  }
}

/* ============================================================
   7. FEATURE / MISSION SECTION — better mobile
   ============================================================ */
@media (max-width: 880px) {
  .feature {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  .feature-media {
    aspect-ratio: 4 / 3 !important;
  }
}

/* ============================================================
   8. HOMEPAGE CONTACT SECTION
   ============================================================ */
.homepage-contact {
  background: linear-gradient(135deg, #102818 0%, #0B1F12 60%, #1A0A10 100%);
  padding: clamp(3rem, 6vw, 5rem) 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.homepage-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%23D4A845' stroke-width='0.5' opacity='0.15'/%3E%3C/svg%3E");
  pointer-events: none;
}

.homepage-contact::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(201,154,46,0.12) 0%, transparent 55%);
  pointer-events: none;
}

.homepage-contact .container {
  position: relative;
  z-index: 1;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 760px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-split-info {
    order: 2;
  }

  .contact-split-form {
    order: 1;
  }
}

.contact-split-info .eyebrow {
  color: var(--color-accent-light) !important;
}

.contact-split-info .eyebrow::before {
  background: var(--color-accent-light) !important;
}

.contact-split-info h2 {
  color: white !important;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.75rem 0 1rem;
  line-height: 1.15;
}

.contact-split-info h2 em {
  color: var(--color-accent-light);
  font-style: italic;
  font-weight: 300;
}

.contact-split-info p {
  color: rgba(255,255,255,0.78) !important;
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  line-height: 1.55;
}

.contact-info-item a {
  color: var(--color-accent-light);
  transition: color 0.2s;
}

.contact-info-item a:hover {
  color: white;
}

.contact-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-light);
  flex-shrink: 0;
}

/* Contact form card */
.contact-form-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  backdrop-filter: blur(8px);
}

.contact-form-panel h3 {
  color: white !important;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.contact-form-panel .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 480px) {
  .contact-form-panel .form-row {
    grid-template-columns: 1fr;
  }
}

.contact-form-panel input,
.contact-form-panel textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: white;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}

.contact-form-panel input::placeholder,
.contact-form-panel textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.contact-form-panel input:focus,
.contact-form-panel textarea:focus {
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.12);
}

.contact-form-panel textarea {
  min-height: 110px;
  resize: vertical;
  margin-bottom: 0.75rem;
  display: block;
}

.contact-form-panel .full-width {
  margin-bottom: 0.75rem;
}

.contact-form-panel .btn-send {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-ink);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-form-panel .btn-send:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,154,46,0.35);
}

/* ============================================================
   9. FOOTER — pure white text, darker bg
   ============================================================ */
.site-footer {
  background: var(--footer-bg) !important;
  padding-top: 3.5rem;
}

.footer-brand .brand-name {
  color: #FFFFFF !important;
  font-size: 1.05rem;
}

.footer-brand .brand-tag {
  color: rgba(255,255,255,0.55) !important;
}

.footer-brand .brand-mark {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-earth) 100%) !important;
}

.footer-about {
  color: rgba(255,255,255,0.78) !important;
  font-size: 0.88rem;
  line-height: 1.65;
}

.footer-title {
  color: #FFFFFF !important;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  margin-bottom: 1.1rem;
}

.footer-list a {
  color: rgba(255,255,255,0.78) !important;
  font-size: 0.87rem;
  padding: 0.1rem 0;
  display: inline-block;
}

.footer-list a:hover {
  color: var(--color-accent-light) !important;
}

.footer-contact-item {
  color: rgba(255,255,255,0.82) !important;
  font-size: 0.87rem;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.82) !important;
}

.footer-contact-item a:hover {
  color: var(--color-accent-light) !important;
}

.footer-bottom {
  color: rgba(255,255,255,0.55) !important;
  font-size: 0.76rem;
}

.footer-bottom a:hover {
  color: var(--color-accent-light) !important;
}

.footer-social a {
  color: rgba(255,255,255,0.70) !important;
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.10);
}

.footer-social a:hover {
  background: var(--color-accent) !important;
  color: var(--color-ink) !important;
  border-color: transparent !important;
}

.site-footer p {
  color: rgba(255,255,255,0.78) !important;
}

/* ============================================================
   10. SECTION BORDER ACCENT — adds visual richness
   ============================================================ */
.stats-band {
  background: #0B1F12 !important;
}

/* ============================================================
   11. BUTTONS — bolder CTA
   ============================================================ */
.btn-primary {
  font-weight: 700 !important;
}

/* ============================================================
   12. CARDS ON WHITE BG — subtle shadow lift
   ============================================================ */
.card, .program-card, .pillar, .network-card {
  box-shadow: 0 1px 4px rgba(16, 40, 24, 0.06);
}

.card:hover, .program-card:hover, .pillar:hover, .network-card:hover {
  box-shadow: 0 8px 28px rgba(16, 40, 24, 0.12) !important;
}

/* ============================================================
   13. MOBILE OVERALL POLISH
   ============================================================ */
@media (max-width: 640px) {
  /* Reduce section density */
  section {
    padding-block: 2.5rem !important;
  }

  section.section-lg {
    padding-block: 3rem !important;
  }

  /* Better typography rhythm on mobile */
  .lead {
    font-size: 0.98rem !important;
    line-height: 1.7 !important;
  }

  /* Check list more readable */
  .check-list li {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }

  /* Quote block mobile */
  .quote-block {
    padding: 1.5rem 1.25rem !important;
  }

  /* Stats band compact */
  .stats-band {
    padding: 2.5rem 0 !important;
  }

  .stat-num {
    font-size: 2rem !important;
  }

  /* Network cards */
  .grid-4 {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }

  /* Page hero padding */
  .page-hero {
    padding: 5rem 0 2.5rem !important;
  }

  /* Homepage contact */
  .homepage-contact {
    padding: 2.5rem 0 !important;
  }

  .contact-form-panel {
    padding: 1.5rem !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 2.1rem !important;
  }

  .hero-actions .btn {
    max-width: 100% !important;
  }

  .grid-4 {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   14. SMOOTH SCROLL RESET — slightly more modern
   ============================================================ */
html { scroll-behavior: smooth; }

/* ============================================================
   15. SELECTION COLOR
   ============================================================ */
::selection {
  background: rgba(201, 154, 46, 0.35);
  color: #0B1F12;
}
