/* ============================================================
   Forever Friends Foundation — styles
   Palette pulled from the FFF logo (rainbow accents on cream)
   ============================================================ */

:root {
  --cream:      #FBF5E6;
  --cream-2:    #F4EAD2;
  --card:       #FFFFFF;
  --ink:        #2C3A33;
  --ink-soft:   #4f5e55;
  --red:        #E0533D;
  --coral:      #ED6A4C;
  --orange:     #F2913D;
  --yellow:     #F4C544;
  --green:      #6FA45C;
  --teal:       #D9791A;  /* "sunny" primary accent (warm marigold) */
  --teal-dark:  #A85A0C;  /* deeper burnt orange for contrast */
  --blue:       #4A90D9;
  --purple:     #8E72B5;

  --shadow:     0 10px 30px rgba(44, 58, 51, 0.10);
  --shadow-sm:  0 4px 14px rgba(44, 58, 51, 0.08);
  --radius:     22px;
  --radius-sm:  14px;
  --maxw:       1140px;

  --font-head:  "Baloo 2", system-ui, sans-serif;
  --font-body:  "Nunito Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; color: var(--ink); margin: 0 0 .4em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p  { margin: 0 0 1rem; }
a  { color: var(--teal-dark); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 86px 0; }
.section--tight { padding: 60px 0; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-head); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; font-size: .82rem; color: var(--teal-dark);
  margin-bottom: .5rem;
}
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); }
.btn--donate { background: var(--coral); color: #fff; }
.btn--donate:hover { background: var(--red); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-dark); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(44,58,51,.18); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--teal); color: var(--teal-dark); }
.btn--lg { padding: 16px 34px; font-size: 1.1rem; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 245, 230, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(44,58,51,.07);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__brand img { height: 46px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem;
  font-family: var(--font-head);
}
.nav__links a:hover { color: var(--teal); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 3px; margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(244,197,68,.28), transparent 60%),
    radial-gradient(800px 480px at -5% 30%, rgba(47,143,127,.16), transparent 60%),
    var(--cream);
  padding: 70px 0 90px;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 .hl { color: var(--teal); }
.hero__tagline {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  color: var(--teal-dark); background: #fff; padding: 6px 16px; border-radius: 999px;
  box-shadow: var(--shadow-sm); margin-bottom: 18px; font-size: .95rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__trust { margin-top: 22px; font-size: .92rem; color: var(--ink-soft); display:flex; align-items:center; gap:8px;}
.hero__art {
  background: linear-gradient(160deg, #fff, var(--cream-2));
  border-radius: 30px; box-shadow: var(--shadow); padding: 30px; position: relative;
}
.hero__art .quote { font-family: var(--font-head); font-size: 1.35rem; color: var(--ink); line-height: 1.35; }
.hero__art .quote span { color: var(--teal); }
.hero__art .by { margin-top: 14px; font-weight: 700; color: var(--ink-soft); }
.dots { position: absolute; font-size: 2rem; }

/* ---------- Stat strip ---------- */
.stats { background: var(--teal-dark); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 38px; padding-bottom: 38px; }
.stat { text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; }
.stat__label { font-size: .95rem; opacity: .92; margin-top: 6px; }

/* ---------- Generic two-column ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split--reverse .split__media { order: 2; }
.media-card {
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  background: var(--card); min-height: 320px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 30px; color: var(--ink-soft);
}
.media-card img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* ---------- FFF + BYG relationship ---------- */
.relationship { display: flex; align-items: stretch; gap: 14px; flex-wrap: wrap; justify-content: center; }
.rel-item {
  flex: 1; min-width: 230px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px; text-align: center; border-top: 6px solid var(--teal);
}
.rel-item--accent { border-top-color: var(--coral); background: linear-gradient(160deg, #fff, var(--cream-2)); }
.rel-name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--teal-dark); margin-bottom: 6px; }
.rel-item--accent .rel-name { color: var(--red); }
.rel-desc { color: var(--ink-soft); font-size: .97rem; }
.rel-op { display: flex; align-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--ink-soft); }
@media (max-width: 760px) { .relationship { flex-direction: column; } .rel-op { justify-content: center; } }

/* ---------- Cards grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm); border-top: 6px solid var(--teal);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico { font-size: 2.2rem; margin-bottom: 10px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 0; }
.card--red { border-top-color: var(--red); }
.card--orange { border-top-color: var(--orange); }
.card--yellow { border-top-color: var(--yellow); }
.card--green { border-top-color: var(--green); }
.card--blue { border-top-color: var(--blue); }
.card--purple { border-top-color: var(--purple); }

/* ---------- The Need ---------- */
.need { background: linear-gradient(160deg, #FFF4E2, var(--cream-2)); color: var(--ink); }
.need h2, .need h3 { color: var(--ink); }
.need .lead { color: var(--ink-soft); }
.need__quote {
  font-family: var(--font-head); font-size: clamp(1.4rem,2.6vw,2rem); line-height: 1.3;
  max-width: 24ch; color: var(--ink);
}
.need__after { color: var(--teal-dark); }

/* ---------- Impact / stories ---------- */
.story {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.story__photo { height: 220px; display: flex; align-items: center; justify-content: center; color: #fff; }
.story__photo .initial { font-family: var(--font-head); font-weight: 800; font-size: 4rem; opacity: .9; }
.story__body { padding: 24px 26px 28px; }
.story__body h3 { margin-bottom: .3em; }
.story__body p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Campaign / thermometer ---------- */
.campaign { background: linear-gradient(160deg, var(--cream-2), var(--cream)); }
.thermo-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; max-width: 760px; margin: 0 auto; }
.thermo { height: 30px; background: var(--cream-2); border-radius: 999px; overflow: hidden; margin: 18px 0 10px; }
.thermo__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--teal)); border-radius: 999px; transition: width 1.4s ease; }
.thermo__nums { display: flex; justify-content: space-between; font-family: var(--font-head); font-weight: 700; }
.thermo__nums .raised { color: var(--teal-dark); }
.thermo__nums .goal { color: var(--ink-soft); }

/* ---------- Ways to give ---------- */
.give-card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); text-align: center; }
.give-card img.qr { width: 120px; height: 120px; object-fit: contain; border-radius: 12px; background:#fff; padding:8px; box-shadow: var(--shadow-sm); }
.give-card h3 { margin-top: 14px; }
.give-card p { color: var(--ink-soft); font-size: .98rem; }
.tax-note {
  margin-top: 30px; background: #fff; border-radius: var(--radius-sm); padding: 20px 24px;
  box-shadow: var(--shadow-sm); font-size: .98rem; color: var(--ink-soft); border-left: 6px solid var(--green);
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.member__avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; background: var(--cream-2); display:flex;align-items:center;justify-content:center; font-family:var(--font-head); font-weight:800; color:var(--teal); font-size:1.8rem;}
.member h3 { margin-bottom: .1em; }
.member .role { color: var(--teal); font-weight: 700; font-size: .95rem; font-family: var(--font-head); margin-bottom: .5em; }
.member p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--coral); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.92); }
.cta-band .btn--donate { background: #fff; color: var(--red); }
.cta-band .btn--donate:hover { background: var(--cream); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 56px 0 30px; }
.footer a { color: var(--yellow); text-decoration: none; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.footer img.flogo { height: 60px; background:#fff; padding:8px 12px; border-radius: 14px; }
.footer h4 { color: #fff; font-family: var(--font-head); margin-bottom: .6em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; font-size: .85rem; color: rgba(255,255,255,.6); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;}

/* ---------- Reveal animation (gated by .js so content always shows if JS fails) ---------- */
.reveal { transition: opacity .7s ease, transform .7s ease; }
html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Placeholder note ---------- */
.ph {
  display:inline-block; background: #fff5d6; color:#8a6d1f; border:1px dashed #d8b84a;
  font-size:.8rem; padding:2px 8px; border-radius:8px; font-weight:700; font-family:var(--font-body);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid, .split, .grid-3, .grid-2, .team-grid, .footer__grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .nav__links {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cream); box-shadow: var(--shadow); padding: 10px 0; display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; text-align: center; padding: 12px 0; border-bottom: 1px solid rgba(44,58,51,.06); }
  .nav__toggle { display: block; }
  .nav__cta .btn--ghost { display: none; }
}

/* ---------- Donation quick amounts ---------- */
.amounts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 6px; }
.amt {
  font-family: var(--font-head); font-weight: 700; padding: 9px 18px; border-radius: 999px;
  text-decoration: none; color: var(--teal-dark); background: var(--cream-2); transition: .15s; cursor: pointer;
}
.amt:hover, .amt.active { background: var(--teal); color: #fff; transform: translateY(-1px); }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--card); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm); border-left: 6px solid var(--yellow);
}
.quote-card p { font-size: 1.08rem; color: var(--ink); font-style: italic; }
.quote-card .who { font-family: var(--font-head); font-weight: 700; color: var(--teal); font-style: normal; margin-top: 10px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 42px; }
.gallery .tile {
  aspect-ratio: 1; border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 2.2rem; box-shadow: var(--shadow-sm);
}
.gallery .tile img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Get Involved ---------- */
.involve-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 42px; }
@media (max-width: 900px) { .involve-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .involve-grid { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter { background: linear-gradient(160deg, var(--yellow), #f0b833); text-align: center; }
.nl-form { display: flex; gap: 10px; max-width: 540px; margin: 22px auto 6px; flex-wrap: wrap; justify-content: center; }
.nl-form input {
  flex: 1; min-width: 230px; padding: 14px 20px; border-radius: 999px; border: 2px solid rgba(44,58,51,.18);
  font-family: var(--font-body); font-size: 1rem; background: #fff;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 42px auto 0; }
.faq details { background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin-bottom: 14px; padding: 2px 24px; }
.faq summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--teal); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--ink-soft); margin: 0 0 18px; font-size: 1rem; }

/* ---------- Transparency / Trust ---------- */
.trust-badges { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 30px; }
.trust-badge { background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 22px 28px; text-align: center; min-width: 190px; }
.trust-badge .big { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--teal-dark); }
.trust-badge .sub { font-size: .92rem; color: var(--ink-soft); margin-top: 4px; }

/* ---------- Floating donate button ---------- */
.float-donate {
  position: fixed; right: 16px; bottom: 16px; z-index: 85;
  background: var(--coral); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px; box-shadow: var(--shadow); text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.float-donate:hover { background: var(--red); transform: translateY(-2px); color: #fff; }

/* ---------- Accessibility toolbar ---------- */
.a11y-btn {
  position: fixed; left: 16px; bottom: 16px; z-index: 90; background: var(--teal); color: #fff; border: 0;
  border-radius: 999px; padding: 12px 18px; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  box-shadow: var(--shadow); cursor: pointer;
}
.a11y-btn:hover { background: var(--teal-dark); }
.a11y-panel {
  position: fixed; left: 16px; bottom: 72px; z-index: 90; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow); padding: 16px; width: 230px; display: none;
}
.a11y-panel.open { display: block; }
.a11y-panel h4 { margin: 0 0 10px; font-family: var(--font-head); }
.a11y-panel button {
  display: block; width: 100%; text-align: left; background: var(--cream-2); border: 0; border-radius: 10px;
  padding: 11px 14px; margin-bottom: 8px; font-family: var(--font-body); font-weight: 700; cursor: pointer; color: var(--ink);
}
.a11y-panel button:hover, .a11y-panel button[aria-pressed="true"] { background: var(--teal); color: #fff; }

/* larger-text mode */
body.a11y-large { font-size: 21px; }
body.a11y-large h1 { font-size: clamp(2.6rem, 5.5vw, 4.1rem); }
body.a11y-large h2 { font-size: clamp(2.05rem, 4vw, 3.0rem); }
body.a11y-large .lead { font-size: 1.34rem; }

/* higher-contrast mode (re-maps text color tokens, keeps layout intact) */
body.a11y-contrast { --ink: #111111; --ink-soft: #242424; }
body.a11y-contrast a { text-decoration: underline; }
body.a11y-contrast .card, body.a11y-contrast .give-card, body.a11y-contrast .quote-card { border: 1px solid rgba(0,0,0,.35); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
