/* ==========================================================================
   Gifts For Good Foundation — stylesheet
   ========================================================================== */

:root {
  --purple: #762FDF;
  --purple-dark: #5B2496;
  --purple-light: #9B5FEA;
  --gold: #F4B942;
  --gold-dark: #D99A1E;
  --berry: #B33951;
  --cream: #FDF8F3;
  --cream-dark: #F5EBDD;
  --charcoal: #2D2A32;
  --white: #FFFFFF;
  --gray: #6B6570;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(118, 47, 223, 0.12);
  --shadow-sm: 0 4px 14px rgba(45, 42, 50, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Nunito', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); }

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--gold-dark); color: var(--charcoal); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); color: var(--white); }

.btn-berry {
  background: var(--berry);
  color: var(--white);
}
.btn-berry:hover { background: #8f2a3f; color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--purple);
  letter-spacing: 0.2px;
}
.logo svg { flex-shrink: 0; }
.logo span.tag {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--gray);
  text-transform: uppercase;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .logo-img { height: 32px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--purple);
  border-bottom-color: var(--gold);
}
.nav-links .btn { padding: 10px 22px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--purple);
  border-radius: 2px;
  transition: 0.2s;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 24px 20px;
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 0; }
  .nav-links .btn { margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 100px 24px 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(244,185,66,0.18), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(179,57,81,0.25), transparent 45%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-badge {
  width: 72px;
  height: auto;
  margin: 0 auto 20px;
  filter: invert(1);
  opacity: 0.95;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-hero {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 70px 24px;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 600px; margin: 0 auto; }

/* ---------- Quote ---------- */
.quote-section {
  text-align: center;
  padding: 56px 24px;
  background: var(--cream-dark);
}
.quote-section blockquote {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 600;
  color: var(--purple-dark);
  max-width: 720px;
  margin: 0 auto 10px;
}
.quote-section cite {
  font-style: normal;
  color: var(--gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* ---------- Cards / Grid ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--berry);
  margin-bottom: 10px;
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
}
.card.card-berry { border-top-color: var(--berry); }
.card.card-purple { border-top-color: var(--purple); }
.card h3 { color: var(--purple-dark); }

/* ---------- Donate band ---------- */
.donate-band {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px;
  margin: 0 auto;
  max-width: 900px;
  text-align: center;
  transform: translateY(-60px);
}
.donate-band h2 { color: var(--purple-dark); }
.donate-band p { max-width: 560px; margin: 0 auto 26px; color: var(--gray); }
.donate-note {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 16px;
}

/* ---------- Impact / campaign cards ---------- */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.impact-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.impact-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--cream-dark), #EEE1F7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  padding: 16px;
}
.impact-photo img { width: 100%; height: 100%; object-fit: cover; }
.impact-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.impact-body h3 { color: var(--purple-dark); margin-bottom: 8px; }
.impact-stat {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--berry);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  width: fit-content;
}
.impact-body p { color: var(--gray); flex: 1; }
.placeholder-note {
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 700;
  margin-top: 10px;
}
.impact-credit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--cream-dark);
}
.impact-credit img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
}
.impact-credit span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 22px;
  text-align: center;
}
.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.6rem;
  overflow: hidden;
  border: 4px solid var(--cream-dark);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 2px; color: var(--charcoal); }
.team-role {
  color: var(--berry);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}
.team-bio { color: var(--gray); font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 36px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #E4DCEE;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--cream);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--purple);
}
.form-note {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 14px;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-success, .form-error {
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 20px;
}
.form-success { background: #E7F6EC; color: #1E6B3E; }
.form-error { background: #FCEBEC; color: var(--berry); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 50px 24px 26px;
  text-align: center;
}
.site-footer .footer-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.footer-logo-img {
  width: 84px;
  height: auto;
  margin: 0 auto 14px;
  filter: invert(1);
  opacity: 0.95;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.footer-links a { color: rgba(255,255,255,0.75); font-weight: 600; }
.footer-links a:hover { color: var(--gold); }
.footer-social {
  margin: 18px 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  margin: 0 6px;
}
.footer-social a:hover { background: var(--purple); }
.copyright {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-top: 20px;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.12);
  padding: 18px 24px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 200;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.88rem; max-width: 620px; color: var(--gray); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
