/* ============================================================
   DREAMS PEACE FOUNDATION — css/style.css (global)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── TOKENS ── */
:root {
  --accent:       #FCC50A;
  --black:        #111111;
  --white:        #ffffff;
  --grey-100:     #f5f5f3;
  --grey-200:     #e8e8e4;
  --grey-400:     #999990;
  --crimson:      #8B1A1A;
  --font-display: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; overflow-x: hidden; }
body  { font-family: var(--font-body); background: var(--white); color: var(--black); font-size: 16px; line-height: 1.6; overflow-x: hidden; max-width: 100%; }
img   { max-width: 100%; display: block; }

/* ── TYPE ── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; }
h1 { font-size: clamp(2.75rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.label {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 600; color: var(--grey-400); display: block; margin-bottom: 1rem;
}
.label-inv   { color: rgba(255,255,255,0.4); }
.label-red   { color: var(--crimson); }

.underline-accent { position: relative; display: inline; }
.underline-accent::after {
  content: ''; position: absolute; left: 0; bottom: 2px;
  width: 100%; height: 8px; background: var(--accent); z-index: -1; opacity: 0.65;
}

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5vw; }
.section   { padding: 7rem 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 0.875rem 2rem; font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; text-decoration: none;
  cursor: pointer; border: none; border-radius: 2px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover        { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.btn-yellow       { background: var(--accent); color: var(--black); }
.btn-black        { background: var(--black); color: var(--white); }
.btn-black:hover  { background: #222; }
.btn-outline      { background: transparent; color: var(--black); border: 2px solid var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-outline-w    { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.45); }
.btn-outline-w:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-white        { background: var(--white); color: var(--black); }
.btn-white:hover  { background: var(--accent); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 5vw; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled { border-color: var(--grey-200); box-shadow: 0 1px 24px rgba(0,0,0,0.07); }

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 48px; width: auto; display: block; }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--black); font-size: 0.875rem; font-weight: 500;
  position: relative; transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-donate {
  background: var(--accent) !important; color: var(--black) !important;
  padding: 0.5rem 1.25rem !important; font-weight: 600 !important;
  border-radius: 2px !important;
}
.nav-donate::after { display: none !important; }

.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; background: none; border: none; padding: 0; width: 24px; height: 24px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--black); transition: all 0.3s; }

/* ── FOOTER ── */
footer { background: var(--black); color: var(--white); padding: 5rem 5vw 2.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--white); display: block; margin-bottom: 0.25rem; }
.footer-brand p    { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.8; margin-top: 1rem; max-width: 280px; }
.footer-col h4     { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; font-weight: 600; }
.footer-col a      { display: block; text-decoration: none; color: rgba(255,255,255,0.55); font-size: 0.875rem; margin-bottom: 0.75rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; font-size: 0.8rem; color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: var(--accent); text-decoration: none; }

/* ── COOKIE CONSENT BANNER ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--black); border-top: 2px solid var(--accent);
  padding: 1.25rem 5vw; z-index: 9999;
}
.cookie-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 200px; }
.cookie-text strong { display: block; color: var(--white); font-size: 0.9rem; margin-bottom: 0.25rem; }
.cookie-text p { color: rgba(255,255,255,0.55); font-size: 0.8rem; margin: 0; line-height: 1.55; }
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
#cookie-decline {
  background: transparent; border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.6); padding: 0.5rem 1.25rem; border-radius: 4px;
  cursor: pointer; font-size: 0.85rem; font-family: var(--font-body); transition: all 0.2s;
}
#cookie-decline:hover { border-color: rgba(255,255,255,0.6); color: var(--white); }
#cookie-accept {
  background: var(--accent); border: none; color: var(--black);
  padding: 0.5rem 1.25rem; border-radius: 4px; cursor: pointer;
  font-size: 0.85rem; font-weight: 700; font-family: var(--font-body); transition: opacity 0.2s;
}
#cookie-accept:hover { opacity: 0.85; }
@media (max-width: 600px) {
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cookie-actions { width: 100%; }
  #cookie-decline, #cookie-accept { flex: 1; text-align: center; }
}

/* ── SCROLL REVEAL ── */
.reveal       { opacity: 0; transform: translateY(36px);  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-l     { opacity: 0; transform: translateX(-36px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-r     { opacity: 0; transform: translateX(36px);  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in, .reveal-l.in, .reveal-r.in { opacity: 1; transform: translate(0); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; }

/* ── STAT BAR ── */
.stat-bar  { background: var(--black); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 2.5rem; border-right: 1px solid rgba(255,255,255,0.08); }
.stat-item:last-child { border-right: none; }
.stat-n    { font-family: var(--font-display); font-size: clamp(2.25rem, 3.5vw, 3rem); font-weight: 900; color: var(--accent); display: block; line-height: 1; margin-bottom: 0.5rem; }
.stat-l    { font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.5; }

/* ── MARQUEE ── */
.marquee-wrap  { overflow: hidden; padding: 1.5rem 0; border-top: 1px solid var(--grey-200); border-bottom: 1px solid var(--grey-200); }
.marquee-track { display: flex; gap: 2rem; animation: marquee 24s linear infinite; width: max-content; align-items: center; }
.marquee-track span     { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--grey-400); white-space: nowrap; }
.marquee-track span.dot { color: var(--accent); font-size: 1rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── PAGE HERO (inner pages) ── */
.page-hero { padding: 14rem 5vw 7rem; background: var(--grey-100); position: relative; overflow: hidden; }
.page-hero-ghost {
  position: absolute; top: 50%; right: -2rem; transform: translateY(-50%);
  font-family: var(--font-display); font-size: clamp(9rem, 18vw, 22rem); font-weight: 900;
  color: rgba(0,0,0,0.04); line-height: 1; pointer-events: none; user-select: none;
}
.page-hero h1 { margin-bottom: 1.5rem; }
.page-hero p  { font-size: 1.1rem; color: #555; max-width: 520px; margin-top: 1.5rem; line-height: 1.8; }

/* ── CTA BAND ── */
.cta-band { background: var(--accent); padding: 5rem 5vw; }
.cta-band-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
.cta-band-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── SHARED FORM ── */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--grey-400); margin-bottom: 0.625rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.875rem 1rem; border: 1.5px solid var(--grey-200);
  font-family: var(--font-body); font-size: 0.95rem; border-radius: 2px;
  outline: none; transition: border-color 0.2s; background: var(--white); color: var(--black);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--black); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links  { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 72px; left: 0; right: 0; background: var(--white);
    padding: 2rem 5vw; gap: 1.5rem;
    border-bottom: 1px solid var(--grey-200);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08); z-index: 99;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid   { grid-template-columns: 1fr 1fr; }
  .stat-item   { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 1rem; }
  .stat-n      { font-size: clamp(1.6rem, 5vw, 2.25rem); }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .section     { padding: 4.5rem 0; }
  .form-row    { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid   { grid-template-columns: 1fr 1fr; }
  .stat-item   { padding: 1.25rem 0.75rem; }
  .stat-n      { font-size: clamp(1.4rem, 4.5vw, 1.8rem); }
  .stat-l      { font-size: 0.7rem; }
}
