/* ===========================================
   Heart of God Women's Ministry
   styles.css — shared across all pages
   https://www.transforming-hearts.org
   =========================================== */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: 'Lato', sans-serif;
  color: #2c2c2c;
  background: #fff;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== CSS VARIABLES ===== */
:root {
  --navy: #0d1240;
  --purple: #7d5c7d;
  --purple-light: #f5eff5;
  --gold: #c9a84c;
  --cream: #faf8f5;
  --text: #2c2c2c;
  --text-light: #666;
  --radius: 4px;
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e8e0e8;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: 48px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 0.1rem;
  list-style: none;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}
.nav-links a {
  color: var(--navy);
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.4rem 0.5rem;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--purple); }
.nav-links a.active { color: var(--purple) !important; font-weight: 700 !important; }
.nav-mobile-drawer li a.active { color: var(--purple) !important; font-weight: 700 !important; }
.nav-cta {
  background: var(--purple);
  color: #fff !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 2px;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}
.nav-cta:hover { background: var(--navy) !important; color: #fff !important; }

/* ===== HAMBURGER MENU ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0.75rem 0;
  background: none;
  border: none;
  position: relative;
  z-index: 200;
  flex-shrink: 0;
  margin-left: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,18,64,0.5);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-mobile-overlay.open { display: block; opacity: 1; }
.nav-mobile-drawer {
  position: fixed !important;
  top: 0 !important;
  right: -100% !important;
  left: auto !important;
  width: min(300px, 85vw) !important;
  height: 100% !important;
  background: #fff !important;
  z-index: 160 !important;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  padding: 5rem 2rem 3rem !important;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15) !important;
  overflow-y: auto !important;
  border-bottom: none !important;
  gap: 0 !important;
}
.nav-mobile-drawer.open { right: 0 !important; }
.nav-mobile-drawer ul {
  list-style: none;
  width: 100%;
  padding: 0;
  margin: 0;
}
.nav-mobile-drawer li {
  list-style: none;
  border-bottom: 1px solid #f0e8f0;
  width: 100%;
}
.nav-mobile-drawer li a {
  display: block;
  padding: 1rem 0;
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: color 0.2s, padding-left 0.2s;
}
.nav-mobile-drawer li a:hover { color: var(--purple); padding-left: 0.5rem; }
.nav-mobile-drawer .nav-cta {
  background: var(--purple);
  color: #fff !important;
  padding: 0.85rem 1.5rem !important;
  border-radius: 2px;
  font-weight: 700 !important;
  text-align: center;
  display: block;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-mobile-drawer .nav-cta:hover { background: var(--navy) !important; padding-left: 0 !important; }

/* ===== PAGE HERO (subpages) ===== */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}
.page-hero-inner { position: relative; }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.page-hero p {
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }

/* ===== SECTION COMMONS ===== */
section { padding: 3.5rem 2rem; scroll-margin-top: 72px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--purple); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 0.85rem 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.875rem;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: #b8963e; transform: translateY(-1px); }
.btn-secondary {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 0.85rem 2rem;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.875rem;
  text-transform: uppercase;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 0.85rem 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.875rem;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s;
}
.btn-gold:hover { background: #b8963e; }

/* ===== FOOTER (full — index.html) ===== */
footer {
  background: #0a0c2e;
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; }
footer h4 { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.5rem; font-size: 0.875rem; }
footer ul li a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
footer ul li a:hover { color: var(--gold); }
.footer-contact p { font-size: 0.875rem; margin-bottom: 0.5rem; }
.footer-contact a { color: var(--gold); }
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== FOOTER (simple — subpages) ===== */
footer.footer-simple {
  background: #0a0c2e;
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.875rem;
}
footer.footer-simple a { color: var(--gold); }
footer.footer-simple p + p { margin-top: 0.5rem; }

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 900px) {
  .about-grid, .pillars-grid, .needs-grid, .footer-inner { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-badge { right: 0; bottom: 0; }
  .hero-stats { display: none; }
  nav .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .contact-grid, .donate-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  section { padding: 2.5rem 1.5rem; }
  .footer-inner { gap: 2rem; }
}

/* Mobile */
@media (max-width: 600px) {
  .programs-grid { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr; height: auto; }
  .photo-strip img { height: 240px; }
  nav { padding: 0 1.25rem; height: 64px; }
  .nav-logo img { height: 40px; }
  section { padding: 2rem 1.25rem; }
  .page-hero { padding: 2rem 1.25rem; }
  main { padding: 2rem 1.25rem !important; }
  body { line-height: 1.55; }
  .section-title { margin-bottom: 1rem; }
  p { font-size: 0.95rem; }
  .section-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  /* Buttons full-width on small screens */
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn-primary,
  .hero-btns .btn-secondary { text-align: center; width: 100%; }
  /* Footer */
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-inner { padding: 0; }
  /* Contact page */
  form { padding: 1.5rem 1.25rem; }
  /* Donate page */
  .methods-card { padding: 1.5rem 1.25rem; }
  /* FAQ tap targets */
  .faq-question { font-size: 0.95rem; padding: 0.25rem 0; }
  /* Crisis grid */
  .crisis-grid { grid-template-columns: 1fr 1fr; }
  /* Resource grid always 1 col */
  .resource-grid { grid-template-columns: 1fr; }
}
