/* Keep Pointing Up — replica design system */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --navy: rgb(20, 112, 175);
  --light-blue: rgb(142, 182, 220);
  --light-gray: rgb(234, 234, 238);
  --black: #000000;
  --white: #ffffff;
  --text: #1a1a1a;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  margin: 0 0 .5em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 12px 28px;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: #222; }
.btn-light {
  background: var(--white);
  color: var(--black);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo img { height: 44px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
}
.site-nav a:hover { text-decoration: underline; }
.header-social {
  display: flex;
  gap: 12px;
  align-items: center;
}
.header-social a { color: var(--white); font-size: 15px; }
.header-give .btn { background: var(--black); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-nav { display: none; flex-direction: column; align-items: flex-start; width: 100%; }
  .site-nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background-size: cover;
  background-position: center;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.hero-overlay {
  background: rgba(0,0,0,.15);
  width: 100%;
  min-height: 380px;
}
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 60px 24px;
  text-align: center;
}
.page-hero h1 { font-size: 2.4rem; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-gray { background: var(--light-gray); }
.section-blue { background: var(--light-blue); color: #06263f; }
.section-navy { background: var(--navy); color: var(--white); }
.section-center { text-align: center; }

.underline-heading {
  display: inline-block;
  border-bottom: 2px solid var(--text);
  padding-bottom: 6px;
  font-size: 2.2rem;
}

.cards-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0;
}
.cards-row .btn { min-width: 220px; }

/* ---------- Forms ---------- */
.form-stub {
  max-width: 600px;
  margin: 0 auto;
}
.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.form-field { flex: 1; min-width: 220px; }
.form-field label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 14px;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h3, .footer-grid h4 { color: var(--white); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { text-decoration: underline; }
.footer-signup { display: flex; margin-top: 10px; max-width: 320px; }
.footer-signup input {
  flex: 1;
  padding: 10px 12px;
  border: none;
  font-family: inherit;
}
.footer-signup button {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 500;
}
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.25);
  padding-top: 16px;
  font-size: 12px;
  opacity: .85;
}

.legal-section {
  background: var(--white);
  color: var(--text);
  padding: 48px 0;
  max-width: 900px;
  margin: 0 auto;
}
.legal-section h2 { margin-top: 0; }
.legal-section p { font-size: 14px; }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.8rem; }
  .underline-heading { font-size: 1.6rem; }
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--white);
  padding: 40px;
  max-width: 420px;
  width: 90%;
  position: relative;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* ---------- Generic content ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid #e2e2e2;
  padding: 20px;
}
.card img { margin-bottom: 12px; width: 100%; height: 200px; object-fit: cover; }

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid #ddd;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}
.faq-answer {
  display: none;
  padding: 0 4px 16px;
  font-size: .95rem;
  color: #444;
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .2s; font-size: 1.2rem; }

.stub-badge {
  display: inline-block;
  background: #fff3cd;
  color: #664d03;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}
