/* ==========================================================================
   Tabitha Mission for Orphans and Widows Int'l (TAMOW) — Site Stylesheet
   ========================================================================== */

:root {
  --navy-950: #0a1f2e;
  --navy-900: #0f2b40;
  --navy-800: #163c56;
  --navy-700: #1f4f6f;
  --gold-500: #d99a2b;
  --gold-400: #e8ac48;
  --gold-100: #fbecd2;
  --cream: #faf7f1;
  --ink: #1b232c;
  --ink-soft: #4a5560;
  --white: #ffffff;
  --line: #e7e2d8;
  --shadow-sm: 0 2px 10px rgba(15, 43, 64, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 43, 64, 0.12);
  --shadow-lg: 0 20px 50px rgba(15, 43, 64, 0.18);
  --radius: 14px;
  --container: 1180px;
  --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 14px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--navy-950);
}
p { margin: 0 0 1em; font-size: .875rem; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy-950); color: #dce6ec; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }

/* --- Eyebrow / Kicker --- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lede { font-size: .975rem; color: var(--ink-soft); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { box-shadow: var(--shadow-md); }
.btn-outline {
  border-color: rgba(255,255,255,.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy {
  background: var(--navy-950);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-800); }
.btn-block { width: 100%; justify-content: center; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  background: var(--navy-950);
  color: #b9c8d3;
  font-size: .82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #dce6ec; }
.topbar a:hover { color: var(--gold-400); }
.topbar-links { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-socials { display: flex; gap: 12px; }
.topbar-socials a {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
}
.topbar-socials a:hover { border-color: var(--gold-400); background: rgba(233,172,72,.15); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
}
.brand img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.brand-text .brand-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy-950);
  display: block;
}
.brand-text .brand-sub {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: .93rem;
  font-weight: 500;
  color: var(--navy-800);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-950); border-color: var(--gold-500); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy-950);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* --- Hero --- */
.hero {
  position: relative;
  color: var(--white);
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(10,31,46,.88), rgba(15,43,64,.72)), url('../images/team-picture-with-tabitha-mission-banner.webp') center/cover no-repeat;
}
.hero-inner { max-width: 700px; padding-top: 60px; padding-bottom: 60px; }
.hero .kicker { color: var(--gold-400); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero p.lede { color: #dce6ec; font-size: 1.025rem; }
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.page-hero {
  position: relative;
  color: var(--white);
  padding: 130px 0 70px;
  background: linear-gradient(120deg, rgba(10,31,46,.9), rgba(15,43,64,.78)), url('../images/group-photo.webp') center/cover no-repeat;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 10px; }
.breadcrumb { font-size: .88rem; color: #cfe0e8; }
.breadcrumb a:hover { color: var(--gold-400); }

/* --- Stats strip --- */
.stats-strip {
  background: var(--navy-950);
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--gold-400);
}
.stat span { font-size: .85rem; color: #b9c8d3; }

/* --- Cards / Grids --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .icon-badge { margin-bottom: 18px; }
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .825rem; margin-bottom: 0; }

.icon-badge {
  width: 54px; height: 54px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--gold-100);
  color: var(--gold-500);
  display: flex; align-items: center; justify-content: center;
}
.icon-badge svg { width: 26px; height: 26px; }

.value-card { text-align: center; }
.value-card .icon-badge { margin: 0 auto 18px; }

.pillar-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--white);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
}
.pillar-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,31,46,0) 30%, rgba(10,31,46,.92));
}
.pillar-card .pillar-num {
  position: relative; z-index: 1;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold-400);
  font-size: .85rem;
  letter-spacing: .1em;
}
.pillar-card h3 { position: relative; z-index: 1; color: var(--white); margin: 6px 0 8px; }
.pillar-card p { position: relative; z-index: 1; color: #dce6ec; font-size: .795rem; margin: 0; }

/* --- Panel / split section --- */
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.badge-float {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  max-width: 220px;
}
.badge-float b { display: block; font-family: var(--font-head); color: var(--navy-950); font-size: 1.3rem; }
.badge-float span { font-size: .8rem; color: var(--ink-soft); }

.divider-list { list-style: none; margin-top: 10px; }
.divider-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .875rem;
}
.divider-list li:first-child { padding-top: 0; }
.divider-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--gold-500); width: 20px; height: 20px; }

/* --- Callout banner --- */
.callout {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  border-radius: var(--radius);
  padding: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.callout h2 { color: var(--white); margin-bottom: 8px; }
.callout p { color: #cfe0e8; max-width: 520px; margin: 0; }

.commend-banner {
  border: 1px dashed var(--gold-500);
  background: var(--gold-100);
  border-radius: var(--radius);
  padding: 26px 30px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.commend-banner .icon-badge { background: var(--gold-500); color: var(--white); flex-shrink: 0; }
.commend-banner h4 { margin-bottom: 6px; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--navy-900); }
.commend-banner p { margin: 0; color: var(--ink-soft); }

/* --- Team --- */
.team-card { text-align: center; }
.team-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 auto 16px;
  border: 3px solid var(--gold-400);
}
.team-card h4 { margin-bottom: 4px; font-size: 1rem; }
.team-card span { color: var(--gold-500); font-size: .84rem; font-weight: 600; }

.trustee-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.trustee-list li {
  background: var(--cream);
  border-radius: 10px;
  padding: 16px 18px;
  font-weight: 500;
  border-left: 3px solid var(--gold-500);
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3.2;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(10,31,46,.9));
  color: var(--white);
  font-size: .88rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
.gallery-item:hover .cap { opacity: 1; transform: translateY(0); }
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,15,20,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 22px; right: 30px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none; border: none;
}
.lightbox-cap { color: #dce6ec; text-align: center; margin-top: 14px; font-size: .825rem; }

/* --- Events --- */
.event-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.event-media { position: relative; min-height: 260px; background-size: cover; background-position: center; }
.event-date {
  position: absolute; top: 16px; left: 16px;
  background: var(--white);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  font-family: var(--font-head);
  box-shadow: var(--shadow-sm);
}
.event-date b { display: block; font-size: 1.3rem; color: var(--navy-950); line-height: 1; }
.event-date span { font-size: .72rem; text-transform: uppercase; color: var(--gold-500); font-weight: 700; }
.event-body { padding: 30px 30px 30px 0; display: flex; flex-direction: column; justify-content: center; }
.event-body h3 { font-size: 1.3rem; }
.event-body p { color: var(--ink-soft); }

/* --- Contact --- */
.contact-info-card {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-info-card h3 { color: var(--white); }
.contact-row { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-row .icon-badge { background: rgba(233,172,72,.16); color: var(--gold-400); flex-shrink: 0; }
.contact-row strong { display: block; color: var(--white); margin-bottom: 4px; font-family: var(--font-head); font-size: .95rem; }
.contact-row span, .contact-row a { color: #b9c8d3; font-size: .795rem; }
.contact-row a:hover { color: var(--gold-400); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--navy-900);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--cream);
  color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--white);
}
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* --- Footer --- */
.site-footer { background: var(--navy-950); color: #b9c8d3; }
.footer-top { padding-top: 70px; padding-bottom: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand { display: flex; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; }
.footer-brand .brand-name { color: var(--white); font-family: var(--font-head); font-weight: 700; }
.footer-col h4 {
  color: var(--white);
  font-size: .88rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 11px; font-size: .795rem; }
.footer-col ul li a:hover { color: var(--gold-400); }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
}
.footer-socials a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.newsletter-form { display: flex; gap: 0; margin-top: 6px; }
.newsletter-form input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 8px 0 0 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: var(--white);
  font-size: .9rem;
}
.newsletter-form input::placeholder { color: #7f92a0; }
.newsletter-form button {
  padding: 12px 18px;
  border-radius: 0 8px 8px 0;
  border: none;
  background: var(--gold-500);
  color: var(--navy-950);
  font-weight: 700;
  cursor: pointer;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  font-size: .84rem;
  color: #7f92a0;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a:hover { color: var(--gold-400); }

/* --- Video --- */
.video-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.video-wrap video { width: 100%; display: block; }

/* --- Blog --- */
.blog-list { display: grid; gap: 26px; max-width: 820px; margin: 0 auto; }
.blog-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.blog-card h3 { margin-bottom: 8px; }
.blog-meta { font-size: .78rem; color: var(--gold-500); font-weight: 600; margin-bottom: 12px; letter-spacing: .08em; text-transform: uppercase; }
.blog-card video, .blog-card img { width: 100%; border-radius: 10px; margin: 18px 0; display: block; }

/* --- Reveal animation --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .event-card { grid-template-columns: 1fr; }
  .event-body { padding: 0 26px 26px; }
}
@media (max-width: 760px) {
  .topbar { display: none; }
  .badge-float {
    position: static;
    margin: -30px 20px 0 auto;
    max-width: 200px;
    transform: none;
  }
  .commend-banner { flex-direction: column; padding: 22px; }
  .form-card, .contact-info-card { padding: 26px; }
  .callout { padding: 34px; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--navy-950);
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px 30px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 400;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--white); font-size: 1.05rem; }
  .nav-toggle { display: block; z-index: 600; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-cta .btn-gold { padding: 10px 18px; font-size: .85rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .callout { flex-direction: column; text-align: center; }
  .callout .btn { width: 100%; justify-content: center; }
  section { padding: 60px 0; }
  .trustee-list { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .brand-text .brand-sub { display: none; }
  .brand img { width: 38px; height: 38px; }
  .nav-cta { gap: 10px; }
  .nav-cta .btn-gold { padding: 9px 14px; font-size: .78rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .hero-actions .btn, .event-card .btn { width: 100%; justify-content: center; }
  .badge-float { margin-right: 12px; max-width: 160px; padding: 14px 16px; }
  .commend-banner, .form-card, .contact-info-card { padding: 20px; }
}
