/* ============================================================
   Operation Hypify — recreated site styles
   ============================================================ */
:root {
  --navy: #1b2447;
  --navy-deep: #141b38;
  --navy-soft: #26315f;
  --header-bg: #d7dae1;
  --header-bg-2: #c9cdd8;
  --yellow: #f6c945;
  --yellow-deep: #e6b52e;
  --text: #1d2333;
  --muted: #5a6178;
  --paper: #f4f5f8;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(20, 27, 56, 0.14);
  --shadow-sm: 0 6px 18px rgba(20, 27, 56, 0.10);
  --maxw: 1180px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--header-bg), var(--header-bg-2));
  border-bottom: 1px solid rgba(27, 36, 71, 0.12);
  backdrop-filter: blur(6px);
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--navy);
  margin-right: auto;
}
.brand .logo { width: auto; height: 58px; flex: 0 0 auto; display: block; }
.brand .brand-name {
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(27, 36, 71, 0.10); }
.nav-links a.active {
  background: var(--navy);
  color: #fff;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 3px;
  transition: .25s;
}

/* ---------------- Hero ---------------- */
.hero {
  background: radial-gradient(circle at 15% 0%, #2b3768, var(--navy) 55%, var(--navy-deep));
  color: #fff;
  padding: 70px 0 64px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero p {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  max-width: 760px;
  color: #d7dcf0;
  margin: 0;
}

/* ---------------- Photo strip ---------------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.photo-strip .ph { aspect-ratio: 16 / 10; }

/* Decorative photo placeholders */
.ph {
  position: relative;
  overflow: hidden;
  background: var(--navy-soft);
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(246,201,69,.25), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px);
}
.ph .ph-label {
  position: relative;
  z-index: 1;
  font-size: .8rem;
  font-weight: 600;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(20,27,56,.75), transparent);
  width: 100%;
}
.ph.v1 { background: linear-gradient(135deg, #3a4d8f, #1b2447); }
.ph.v2 { background: linear-gradient(135deg, #6a4f8f, #2b2447); }
.ph.v3 { background: linear-gradient(135deg, #2f6f7a, #16313a); }
.ph.v4 { background: linear-gradient(135deg, #8f6a3a, #472f1b); }
.ph.v5 { background: linear-gradient(135deg, #3a8f6a, #1b472f); }

/* ---------------- Sections ---------------- */
section { padding: 68px 0; }
.section-tight { padding: 48px 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--yellow-deep);
  margin: 0 0 12px;
}
h2.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  line-height: 1.1;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 820px;
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 30px;
  border-radius: 999px;
  transition: transform .15s, box-shadow .2s, background .2s;
  cursor: pointer;
  border: 0;
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy-deep);
  box-shadow: 0 10px 24px rgba(246,201,69,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(246,201,69,.5); }
.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-navy:hover { transform: translateY(-2px); background: var(--navy-soft); }

/* Impact / badge band */
.band {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px;
}
.impact-band {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.impact-band .impact-text { flex: 1 1 340px; }
.badge-link {
  flex: 0 0 auto;
  display: inline-block;
  text-decoration: none;
}
.badge {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: conic-gradient(from 220deg, #2f9e6b, #1f6f8f, #2f9e6b);
  color: #fff;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .2s;
  border: 5px solid #fff;
}
.badge:hover { transform: scale(1.04) rotate(-2deg); }
.badge b { font-size: 1rem; display: block; letter-spacing: .04em; }
.badge small { font-size: .72rem; opacity: .9; }

/* CTA + stats */
.cta-stats {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
  border-radius: var(--radius);
  padding: 52px 44px;
  text-align: center;
}
.cta-stats h2 { color:#fff; }
.cta-stats .lead { color: #cdd3ea; margin: 0 auto 28px; }
.stats {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 42px;
}
.stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 26px 40px;
  min-width: 190px;
}
.stat .num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}
.stat .label {
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  color: #cdd3ea;
}

/* Volunteer impact grid */
.vol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 26px;
}
.vol-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  text-align: center;
}
.vol-card .num { font-size: 2.6rem; font-weight: 800; color: var(--navy); }
.vol-card .label { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.quote {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  border-top: 5px solid var(--yellow);
}
.quote p { font-size: 1.05rem; font-style: italic; color: var(--text); }
.quote .who { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--yellow);
  display: grid; place-content: center; font-weight: 800;
  flex: 0 0 auto;
}
.quote .name { font-weight: 700; }
.quote .role { color: var(--muted); font-size: .85rem; }

/* Featured logos */
.featured {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
.featured .logo-chip {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 18px 26px;
  font-weight: 700;
  color: var(--navy);
  min-width: 150px;
  text-align: center;
  border: 1px solid rgba(27,36,71,.08);
}
.featured .logo-chip small { display:block; color: var(--muted); font-weight: 500; font-size: .72rem; }

/* Numbered offer list (Join) */
.offer-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 34px;
}
.offer {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.offer .n {
  font-size: 2rem;
  font-weight: 800;
  color: var(--yellow-deep);
  line-height: 1;
  flex: 0 0 auto;
}
.offer p { margin: 0; font-size: 1.08rem; }

/* Chapters gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.gallery .ph {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 26px;
  margin-top: 34px;
}
.member { text-align: center; }
.member .pic {
  width: 150px; height: 150px; border-radius: 50%;
  margin: 0 auto 16px;
  display: grid; place-content: center;
  color: #fff; font-size: 2.4rem; font-weight: 800;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, var(--navy-soft), var(--navy));
}
.member .name { font-weight: 700; font-size: 1.15rem; }
.member .role { color: var(--muted); font-size: .92rem; }
.member.founder .pic { background: linear-gradient(135deg, var(--yellow), var(--yellow-deep)); color: var(--navy-deep); }

/* ---------------- Real photo tiles ---------------- */
.photo {
  position: relative;
  overflow: hidden;
  background: #0d1330;
  border-radius: 0;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  padding: 12px 14px;
  background: linear-gradient(0deg, rgba(13,19,48,.85), transparent);
}
.photo-strip .photo { aspect-ratio: 16 / 10; }

/* Activities gallery */
.act-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.act-gallery .photo { aspect-ratio: 4 / 3; border-radius: 14px; box-shadow: var(--shadow-sm); }

.act-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.act-row .photo { aspect-ratio: 4 / 3; border-radius: 14px; box-shadow: var(--shadow-sm); }

/* CMHQ badge image */
.cmhq-badge { display: inline-block; transition: transform .2s; }
.cmhq-badge:hover { transform: scale(1.03); }
.cmhq-badge img { width: min(360px, 82vw); height: auto; border-radius: 14px; }

/* Association logos */
.assoc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-top: 26px;
}
.assoc-chip {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27,36,71,.08);
  padding: 16px 26px;
  height: 108px;
  min-width: 140px;
  display: grid;
  place-items: center;
}
.assoc-chip img { max-height: 74px; max-width: 160px; width: auto; object-fit: contain; }

/* Chapter logo cards */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.chapter-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27,36,71,.07);
  padding: 18px 16px;
  text-align: center;
  transition: transform .15s, box-shadow .2s;
}
.chapter-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.chapter-card .logo-box {
  height: 112px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.chapter-card .logo-box img { max-height: 104px; max-width: 100%; width: auto; object-fit: contain; }
.chapter-card .cname { font-weight: 700; font-size: .92rem; line-height: 1.25; color: var(--navy); }
.chapter-card .cloc { color: var(--muted); font-size: .78rem; margin-top: 3px; }

/* Center helper */
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-deep);
  color: #cdd3ea;
  padding: 54px 0 34px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { text-decoration: none; color: #cdd3ea; font-weight: 600; }
.footer-nav a:hover { color: var(--yellow); }
.footer h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; letter-spacing: .04em; }
.footer a.email { color: var(--yellow); text-decoration: none; font-weight: 600; }
.social-bar { display: flex; gap: 12px; margin-top: 8px; }
.social-bar a {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: grid; place-content: center;
  color: #fff; transition: background .2s, transform .2s;
}
.social-bar a:hover { background: var(--yellow); color: var(--navy-deep); transform: translateY(-2px); }
.social-bar svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: .9rem;
  color: #9aa2c4;
}

/* Wix-style top ad banner recreation (kept minimal / optional) */

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--header-bg);
    padding: 12px 16px 18px;
    gap: 4px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .testimonials { grid-template-columns: 1fr; }
  .offer-list { grid-template-columns: 1fr; }
  .vol-grid { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr; }
  .impact-band { justify-content: center; text-align: center; }
}
