/* ============================================================
   Gaza Aid Donation Page — Option C: Bold Modern
   Mobile-first, tested down to 375 px
   ============================================================ */

/* ── Self-hosted Inter font ──────────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:         #FFFFFF;
  --bg-section: #F4F9FA;
  --bg-card:    #FFFFFF;
  --primary:    #0D5C63;
  --primary-dk: #09474D;
  --primary-lt: #E0F4F5;
  --accent:     #E85D3E;
  --accent-dk:  #C94A2D;
  --text:       #111827;
  --muted:      #6B7280;
  --border:     #E5E7EB;
  --green:      #1A6B4A;
  --radius:     14px;
  --shadow:     0 4px 20px rgba(0,0,0,.08);
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06);
  --font:       'Inter', sans-serif;
  --max-w:      820px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
ul { list-style: none; }

/* ── Layout ──────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--border); }

/* ── Site header ─────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.site-header > div {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
}
.logo-icon {
  width: 30px; height: 30px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .95rem;
  font-weight: 900;
}
.tagline { display: none; }
.header-nav { display: flex; align-items: center; gap: .75rem; }
.header-link { font-size: .85rem; color: var(--muted); text-decoration: none; font-weight: 500; }
.header-link:hover { color: var(--text); }
.header-cta {
  background: var(--accent);
  color: #fff;
  padding: .5rem 1.2rem;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(232,93,62,.3);
  transition: background .2s, transform .15s;
}
.header-cta:hover { background: var(--accent-dk); color: #fff; transform: translateY(-1px); }

/* ── Hero ────────────────────────────────────────────────── */
#hero {
  background: var(--bg);
  padding: 3rem 0 0;
  border-bottom: 1px solid var(--border);
}
#hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-image {
  width: 100%;
  height: 380px;
  background: url('food_boxes.webp') center / cover no-repeat;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: 2.5rem;
}
@media (min-width: 700px) {
  .hero-image { height: 460px; }
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.1rem;
}
.kicker-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: kicker-pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes kicker-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}
.kicker-text {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

#hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
  color: var(--text);
}
#hero h1 em { color: var(--primary); font-style: normal; }
#hero .sub {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

/* ── Trust signals ────────────────────────────────────────── */
.trust-list { display: flex; flex-direction: column; gap: .55rem; margin: 0 0 2rem; }
.trust-item { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--text); }
.trust-check {
  width: 20px; height: 20px;
  background: var(--primary-lt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: .65rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: .1rem;
}
.trust-icon { display: none; }

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  padding: .95rem 2.2rem;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -.2px;
  box-shadow: 0 6px 24px rgba(232,93,62,.4);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-hero:hover { background: var(--accent-dk); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,93,62,.45); }


/* ── How it works ────────────────────────────────────────── */
#how-it-works { background: var(--bg-section); }
#how-it-works h2 { text-align: left; color: var(--accent); margin-bottom: .5rem; font-size: 1.75rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
#how-it-works .section-sub { text-align: left; color: var(--muted); font-size: .95rem; margin-bottom: 2.5rem; }

.steps { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.4rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.step-num { font-size: 2.5rem; font-weight: 900; color: var(--primary-lt); line-height: 1; margin-bottom: .4rem; letter-spacing: -2px; }
.step-icon { display: block; margin-bottom: .6rem; color: var(--primary); }
.step h3 { color: var(--text); font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .88rem; line-height: 1.55; }

/* ── Donation Form section ───────────────────────────────── */
#donate { background: var(--bg); }
#donate h2 { color: var(--accent); font-size: 1.75rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .5rem; }
#donate .section-sub { color: var(--muted); font-size: .92rem; margin-bottom: 1.75rem; }

/* ── Item cards grid ─────────────────────────────────────── */
.item-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1.5rem; }
@media (min-width: 480px) { .item-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .item-grid { grid-template-columns: repeat(3, 1fr); } }

.item-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .15s;
}
.item-card:hover { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-lt), var(--shadow); transform: translateY(-2px); }
.item-card.selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-lt); }
.item-name  { font-weight: 700; font-size: .95rem; color: var(--text); }
.item-desc  { font-size: .8rem; color: var(--muted); flex: 1; }
.item-price { font-size: 1.1rem; font-weight: 700; color: var(--accent); }

.qty-row { display: flex; align-items: center; gap: .5rem; margin-top: .25rem; }
.qty-btn {
  width: 32px; height: 32px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  border-radius: 6px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.qty-btn:hover:not(:disabled) { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-btn:disabled { opacity: .35; cursor: default; }
.qty-display { min-width: 28px; text-align: center; font-weight: 600; font-size: 1rem; }

/* ── Live total bar ──────────────────────────────────────── */
.total-bar {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.total-label { font-size: .9rem; opacity: .8; }
.total-amount { font-size: 1.6rem; font-weight: 800; }

/* ── Contact fields ──────────────────────────────────────── */
.form-fields { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.25rem; }
.field-group { display: flex; flex-direction: column; gap: .3rem; }
.field-group label { font-size: .85rem; font-weight: 600; color: var(--primary); }
.field-group input,
.field-group textarea,
.field-group select {
  padding: .65rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: .95rem;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color .15s;
  width: 100%;
}
.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus { outline: none; border-color: var(--primary); }
.field-group textarea { resize: vertical; min-height: 80px; }
.field-hint { font-size: .78rem; color: var(--muted); }
.contact-row { display: grid; grid-template-columns: 1fr 2fr; gap: .75rem; }

/* ── Anonymous toggle ────────────────────────────────────── */
.anon-toggle { display: flex; align-items: center; gap: .75rem; cursor: pointer; user-select: none; margin-bottom: .25rem; }
.anon-toggle input[type="checkbox"] { display: none; }
.toggle-track { width: 42px; height: 24px; background: var(--border); border-radius: 12px; position: relative; transition: background .2s; flex-shrink: 0; }
.toggle-track::after { content: ''; width: 18px; height: 18px; background: #fff; border-radius: 50%; position: absolute; top: 3px; left: 3px; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.anon-toggle input:checked + .toggle-track { background: var(--primary); }
.anon-toggle input:checked + .toggle-track::after { transform: translateX(18px); }
.anon-toggle .toggle-label { font-size: .92rem; color: var(--text); }
.anon-fields { overflow: hidden; transition: max-height .3s ease, opacity .3s ease; }

/* ── GDPR checkbox ───────────────────────────────────────── */
.gdpr-row {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  background: #FFF9F0;
  border: 1px solid #FDDBA0;
  border-radius: 10px;
  padding: .9rem 1rem;
  margin-bottom: 1.25rem;
}
.gdpr-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; margin-top: 2px; cursor: pointer; }
.gdpr-row label { font-size: .85rem; color: var(--text); cursor: pointer; line-height: 1.5; }
.gdpr-row a { color: var(--accent); }

/* Honeypot */
.hp-field { display: none !important; }

/* ── PayPal / action buttons ─────────────────────────────── */
.btn-paypal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  background: #0070BA;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .9rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  font-family: var(--font);
  box-shadow: 0 4px 16px rgba(0,112,186,.3);
}
.btn-paypal:hover:not(:disabled) { background: #005ea6; transform: translateY(-1px); }
.btn-paypal:disabled { opacity: .45; cursor: not-allowed; }
.btn-paypal svg { flex-shrink: 0; }

/* ── Confirm section ─────────────────────────────────────── */
#confirm-section {
  background: #F0FAF4;
  border: 1.5px solid #A8D5B5;
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  margin-top: 1.25rem;
  text-align: center;
}
#confirm-section h3 { color: var(--primary); margin-bottom: .5rem; }
#confirm-section p  { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }

.btn-confirm {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .8rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background .2s;
}
.btn-confirm:hover:not(:disabled) { background: #1e8449; }
.btn-confirm:disabled { opacity: .5; cursor: not-allowed; }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 50px;
  padding: .6rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  margin-top: .75rem;
  transition: background .2s, color .2s;
}
.btn-download:hover { background: var(--primary); color: #fff; }

.spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Transparency section ────────────────────────────────── */
#transparency { background: var(--bg-section); }
#transparency h2 { color: var(--accent); font-size: 1.75rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1.25rem; }
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: .6rem; top: 0; bottom: 0; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 0 0 1.5rem 1rem; }
.tl-icon { position: absolute; left: -1.6rem; top: 0; background: var(--bg-section); color: var(--primary); display: flex; align-items: center; justify-content: center; padding: 1px 0; }
.tl-item h4 { color: var(--primary); font-size: .95rem; margin-bottom: .2rem; }
.tl-item p  { color: var(--muted); font-size: .85rem; }

/* ── Footer ──────────────────────────────────────────────── */
footer { background: var(--text); color: rgba(255,255,255,.65); padding: 2.5rem 1.5rem; text-align: center; font-size: .85rem; line-height: 1.9; }
footer a { color: rgba(255,255,255,.65); text-decoration: underline; }
footer strong { color: #fff; }

/* ── Toast ───────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1a1a1a;
  color: #fff;
  padding: .7rem 1.25rem;
  border-radius: 50px;
  font-size: .88rem;
  z-index: 9999;
  transition: transform .3s;
  white-space: nowrap;
  max-width: calc(100vw - 2rem);
  text-align: center;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ── TEMPORARY: prices unstable ─────────────────────────── */
.qty-row,
.item-price,
.total-bar { display: none !important; }

/* ── Share widget ────────────────────────────────────────── */
.share-widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.25rem 1.25rem; text-align: center; }
.share-title { font-weight: 700; color: var(--text); font-size: 1rem; margin-bottom: 1.25rem; }
.share-icons { display: flex; justify-content: center; gap: .75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.share-icon-btn { width: 50px; height: 50px; background: var(--bg-section); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); text-decoration: none; transition: background .15s, color .15s, transform .15s; flex-shrink: 0; }
.share-icon-btn svg { width: 20px; height: 20px; }
.share-icon-btn:hover { background: var(--primary); color: #fff; transform: scale(1.08); }
.share-copy-bar { display: flex; align-items: center; background: var(--bg-section); border-radius: 8px; padding: .65rem 1rem; gap: .75rem; }
.share-copy-url { flex: 1; font-size: .85rem; color: var(--muted); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-copy-btn { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); border-radius: 50px; padding: .35rem .9rem; font-size: .85rem; font-weight: 600; cursor: pointer; font-family: var(--font); transition: background .15s, color .15s; flex-shrink: 0; white-space: nowrap; }
.share-copy-btn:hover { background: var(--primary); color: #fff; }

/* ── Utility ─────────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Mobile tweaks (≤ 480 px) ────────────────────────────── */
@media (max-width: 600px) {
  .header-link { display: none; }
}
@media (max-width: 480px) {
  .contact-row { grid-template-columns: 1fr; }
  .total-bar { padding: .85rem 1rem; }
  .total-amount { font-size: 1.35rem; }
  #confirm-section { padding: 1.25rem 1rem; }
}
