/* ============================================================================
   HAMJIK CARE INITIATIVE — Clean Multi-Page NGO Website
   Inspired by airy, human-crafted charity layouts (e.g. nurtureroots.org)
   Palette: HCI Navy (#0B2241), HCI Gold (#E6B84C / #C6922B), Soft Gray (#F2F3F5), Pure White (#FFFFFF)
============================================================================ */

:root {
  --navy: #0B2241;
  --navy-hover: #14335E;
  --gold: #F0C351;
  --gold-deep: #C6922B;
  --accent-coral: #D9533F;
  --chat-teal: #2CA58D;
  --canvas: #F2F3F5;
  --white: #FFFFFF;
  --ink: #2B3440;
  --muted: #5C6672;
  --rule: #E6E8EC;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================================
   TOP NAVY NAVIGATION BAR (with Flush Gold SUPPORT US Block)
============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  height: 68px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(11, 34, 65, 0.14);
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 1.5rem;
  flex-shrink: 0;
}
.brand-crest { width: 34px; height: 34px; }
.brand-title {
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  color: var(--white);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.9rem;
  flex: 1;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.90);
  transition: color 0.18s ease;
}
.main-nav a:hover { color: var(--gold); }
.main-nav a.active { color: var(--gold); font-weight: 600; }

.support-block {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 2.1rem;
  flex-shrink: 0;
  transition: background 0.18s ease;
}
.support-block:hover { background: #F7D16E; }

.menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 0 1.25rem;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.menu-btn span { width: 22px; height: 2px; background: var(--white); }

.mobile-drawer {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem 1.75rem;
  gap: 1rem;
  z-index: 99;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.mobile-drawer[hidden] { display: none; }
.mobile-drawer a { color: var(--white); font-weight: 500; font-size: 1rem; }
.mobile-drawer a.active { color: var(--gold); }

/* ============================================================================
   FRAMED WHITE PAGE SHEET (Generous Airy Margins Like nurtureroots.org)
============================================================================ */
.page-sheet {
  width: min(1160px, 92%);
  margin: 0 auto;
  background: var(--white);
  min-height: calc(100vh - 68px);
  box-shadow: 0 0 28px rgba(11, 34, 65, 0.04);
}
.sheet-inner {
  width: min(940px, 88%);
  margin: 0 auto;
}

/* Floating Gold Social Bar on Right Edge */
.social-rail {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  background: var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  padding: 1.35rem 0.75rem;
  box-shadow: -2px 4px 14px rgba(11, 34, 65, 0.12);
}
.social-rail a {
  color: var(--navy);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.social-rail a:hover { transform: scale(1.12); opacity: 0.78; }
.social-rail svg { width: 18px; height: 18px; }

/* Floating WhatsApp "LET'S CHAT!" Button */
.chat-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.25rem;
  z-index: 90;
  background: var(--chat-teal);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(44, 165, 141, 0.35);
  transition: transform 0.18s ease, background 0.18s ease;
}
.chat-fab:hover { transform: translateY(-2px); background: #238C77; }
.chat-fab svg { width: 20px; height: 20px; }

/* ============================================================================
   HOME HERO (Clean, Spacious, Human)
============================================================================ */
.home-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.home-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.42;
}
.home-hero-content {
  position: relative;
  width: min(760px, 88%);
  margin: 0 auto;
  text-align: center;
  padding: 4.5rem 0;
}
.home-hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.95rem);
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 1.1rem;
  letter-spacing: -0.01em;
}
.home-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto 2rem;
  max-width: 58ch;
}
.hero-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================================
   PAGE HEADERS & BUTTONS
============================================================================ */
.page-title-block {
  text-align: center;
  padding: 4rem 0 2.5rem;
}
.page-title-block h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.page-title-block p {
  margin: 0.85rem auto 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.98rem;
}

.section-pad { padding: 4.25rem 0; }
.section-divider { border-top: 1px solid var(--rule); }
.section-title {
  text-align: center;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.65rem;
}
.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 auto 3rem;
}

/* Clean Pill CTA Button (like SEE OUR EVENTS on nurtureroots.org) */
.btn-pill {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 0.82rem 2rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn-pill:hover { background: var(--navy-hover); transform: translateY(-1px); }
.btn-pill-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-pill-gold:hover { background: #F7D16E; }
.btn-pill-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-pill-outline:hover { background: var(--navy); color: var(--white); }

.cta-center { text-align: center; margin-top: 3rem; }

/* ============================================================================
   CLEAN 2-COLUMN PHOTO + TEXT ROWS (Signature nurtureroots.org rhythm)
============================================================================ */
.feature-row {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 3.5rem;
  align-items: center;
  padding: 2.75rem 0;
}
.feature-row.reverse .feature-media { order: 2; }
.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.feature-copy h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1rem;
}
.feature-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
}
.clean-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}
.clean-list li { margin-bottom: 0.75rem; }
.clean-list strong { color: var(--ink); }
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}
.plain-list li { margin-bottom: 0.85rem; }
.plain-list strong { color: var(--ink); }

/* ============================================================================
   CLEAN 3-COLUMN SUMMARY GRID (Home & Who We Are)
============================================================================ */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}
.simple-col h3 {
  font-size: 1.08rem;
  color: var(--navy);
  margin: 0 0 0.55rem;
}
.simple-col p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* 7 Pillars Simple Two-Column List */
.pillars-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}
.pillar-item {
  padding-top: 1.1rem;
  border-top: 2px solid var(--gold);
}
.pillar-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--navy);
}
.pillar-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ============================================================================
   PROJECTS PHOTO GALLERY (Clean, Uncluttered)
============================================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.gallery-item { margin: 0; }
.gallery-item button {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery-item button:hover img { transform: scale(1.03); }
.gallery-item figcaption {
  margin-top: 0.45rem;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ============================================================================
   CONTACT FORM
============================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-block { margin-bottom: 1.5rem; }
.contact-block strong { display: block; color: var(--navy); font-size: 0.92rem; margin-bottom: 0.2rem; }
.contact-block p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.contact-block a:hover { color: var(--gold-deep); }

.form-field { margin-bottom: 1.15rem; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid #D1D6DE;
  font: inherit;
  font-size: 0.93rem;
  color: var(--ink);
  background: var(--white);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form-status { margin-top: 0.85rem; font-size: 0.88rem; color: var(--navy); min-height: 1.2em; }

/* ============================================================================
   FOOTER
============================================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.80);
  padding: 2.75rem 0;
  font-size: 0.86rem;
}
.footer-inner {
  width: min(940px, 88%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--gold); }

/* ============================================================================
   LIGHTBOX
============================================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(11, 34, 65, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
}
.lightbox figure { margin: 0; max-width: min(940px, 92vw); text-align: center; }
.lightbox img { max-height: 80vh; margin: 0 auto; }
.lightbox figcaption { margin-top: 0.85rem; color: rgba(255, 255, 255, 0.88); font-size: 0.9rem; }

/* ============================================================================
   RESPONSIVE
============================================================================ */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .menu-btn { display: flex; }
  .social-rail { display: none; }
  .page-sheet { width: 100%; }
  .feature-row, .three-col, .pillars-two-col, .gallery-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-row.reverse .feature-media { order: 0; }
}
@media (max-width: 540px) {
  .support-block { padding: 0 1.1rem; font-size: 0.76rem; }
  .brand-title { font-size: 0.86rem; }
  .chat-fab { right: 1rem; bottom: 1rem; padding: 0.72rem 1.1rem; font-size: 0.78rem; }
}
