/* ==========================================================================
   Kids Hope USA — Static Replica
   Design system reconstructed from the live site (Astra theme + Spectra blocks)
   Palette: --coral #e75c55 · --yellow #ffba00 · --pink #ffc0cc · --teal #b4e6e6
            --green #acdf71 · --dark #313131 · --light #f2f2f2
   Headings: Fredoka (free stand-in for "Bobby Jones Soft")
   ========================================================================== */

:root {
  --coral: #e75c55;
  --coral-dark: #d14b44;
  --yellow: #ffba00;
  --pink: #ffc0cc;
  --teal: #b4e6e6;
  --green: #acdf71;
  --cream: #ffe6b4;
  --dark: #313131;
  --ink: #000000;
  --white: #ffffff;
  --light: #f2f2f2;
  --panel: #f6f6f6;
  --gray: #6b7280;
  --border: #e6e6e6;
  --shadow: 6px 6px 9px rgba(0, 0, 0, 0.13);
  --radius: 12px;
  --maxw: 1200px;
  --font-head: "Fredoka", "Bobby Jones Soft", "Comic Sans MS", system-ui, sans-serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.25;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
  padding: 12px 24px;
  border: 3px solid var(--coral);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  text-align: center;
}
.btn-solid { background: var(--coral); color: var(--white); border-color: var(--coral); }
.btn-solid:hover { background: var(--coral-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--coral); }
.btn-outline:hover { background: var(--coral); color: var(--white); }
.btn-white-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-white-outline:hover { background: var(--white); color: var(--coral); }
.btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-yellow:hover { background: #f0ae00; color: var(--ink); }
.btn-dark { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-dark:hover { background: #1f1f1f; color: var(--white); }
.btn-sm { font-size: 0.95rem; padding: 9px 18px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo img { height: 52px; width: auto; }
.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--coral);
  line-height: 1;
  letter-spacing: 0.3px;
  display: inline-block;
}
.logo-text:hover { color: var(--coral-dark); }

.main-nav > ul { list-style: none; display: flex; gap: 6px; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--ink);
  border-radius: 8px;
}
.main-nav > ul > li > a:hover { color: var(--coral); }

.dropdown { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--white);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,0.14);
  padding: 8px 0; display: none; z-index: 120; list-style: none; }
.main-nav > ul > li:hover .dropdown, .main-nav > ul > li:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 18px; color: var(--dark); font-size: 1rem; }
.dropdown a:hover { background: var(--light); color: var(--coral); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.login-link { font-size: 0.9rem; color: var(--gray); padding: 6px 10px; }
.login-link:hover { color: var(--coral); }
.btn-header { font-size: 0.95rem; padding: 10px 18px; white-space: nowrap; }

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

/* Mobile nav */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 10px; }
  .dropdown { position: static; display: none; box-shadow: none; border: none; padding-left: 20px; }
  .main-nav > ul > li.open .dropdown { display: block; }
  .header-actions .btn-header { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.45) 100%);
}
.hero .container { position: relative; z-index: 2; text-align: right; }
.hero h1 { color: var(--white); font-weight: 600; max-width: 720px; margin-left: auto; text-shadow: 0 2px 14px rgba(0,0,0,0.45); }
.hero p.lead { color: #fff; font-size: 1.25rem; max-width: 640px; margin: 18px 0 0 auto; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.hero .btn { margin-top: 26px; }

.page-hero {
  background: var(--coral);
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.95); max-width: 760px; margin: 14px auto 0; font-size: 1.15rem; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 70px 0; }
.section-panel { background: var(--panel); }
.section-light { background: var(--light); }
.section-cream { background: var(--cream); }
.section-coral { background: var(--coral); color: var(--white); }
.section-coral h1, .section-coral h2, .section-coral h3 { color: var(--white); }
.section-teal { background: var(--teal); }
.section-white { background: var(--white); }

.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { margin-bottom: 10px; }
.section-title p { color: var(--gray); max-width: 720px; margin: 0 auto; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.four-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 34px 28px;
}
.card h3 { margin-bottom: 12px; }
.card .btn { margin-top: 14px; }

.icon-block { text-align: center; }
.icon-block img { width: 72px; margin: 0 auto 16px; }
.icon-block h3 { font-size: 1.2rem; margin-bottom: 8px; }

/* Stats / counters */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stat .stat-num {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 4.6rem);
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
}
.stat .stat-label { margin-top: 10px; font-size: 1.05rem; color: var(--dark); }
.stat-note { font-size: 0.85rem; color: var(--gray); margin-top: 24px; text-align: center; }

/* Quote */
.quote {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--dark);
}
.quote .attribution { display: block; margin-top: 14px; font-size: 1rem; font-style: normal; color: var(--gray); font-family: var(--font-head); }
.quote.coral { color: var(--white); }
.quote.coral .attribution { color: rgba(255,255,255,0.85); }

/* ==========================================================================
   Instagram feed
   ========================================================================== */
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ig-grid a { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.ig-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform 0.25s; }
.ig-grid a:hover img { transform: scale(1.04); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 14px;
}
.faq summary {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}
.faq details p { margin: 12px 0 0; }

/* ==========================================================================
   Blog list
   ========================================================================== */
.post-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 26px 24px;
  border-left: 6px solid var(--coral);
}
.post-card .post-meta { font-size: 0.85rem; color: var(--gray); margin-bottom: 6px; }
.post-card h3 { margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--coral); }
.post-card p.excerpt { color: var(--dark); font-size: 0.98rem; }
.read-more { font-family: var(--font-head); font-size: 0.95rem; }

/* Team / board */
.person-card { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 28px 24px; }
.person-card .role { font-size: 0.9rem; color: var(--coral); font-family: var(--font-head); margin-bottom: 10px; }
.person-card .role-loc { font-size: 0.85rem; color: var(--gray); margin-bottom: 12px; }
.person-card p { font-size: 0.95rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--dark); color: #d5d5d5; padding: 60px 0 30px; }
.site-footer h4 { color: var(--white); font-family: var(--font-head); margin-bottom: 18px; font-size: 1.1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: #d5d5d5; font-size: 0.95rem; }
.site-footer a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 18px;
}
.footer-social a:hover { background: var(--coral); }
.footer-badges { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.footer-badges img { height: 52px; width: auto; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  font-size: 0.85rem;
  color: #a8a8a8;
  text-align: center;
}
.footer-bottom a { color: #c9c9c9; }
.scroll-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--coral); color: var(--white); border: none; font-size: 20px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3); display: none; z-index: 90; }
.scroll-top.show { display: block; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .two-col, .three-col, .four-col { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ig-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .two-col, .three-col, .four-col, .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .hero { min-height: 60vh; }
  .hero .container { text-align: center; }
  .hero h1, .hero p.lead { margin-left: auto; margin-right: auto; }
}
