/* ============================================================
   I AM Isaiah 61 — modern-minimalist design system
   Palette: paper white, warm sand, ink black, Isaiah pink
   Type: Fraunces (display) + Manrope (UI/body)
   ============================================================ */

:root {
  --ink: #131315;
  --ink-soft: #3c4045;
  --muted: #6a7076;
  --paper: #ffffff;
  --sand: #f7f4ef;
  --line: #e8e4de;
  --pink: #e2318c;
  --pink-deep: #bb1e70;
  --pink-soft: #fdeef6;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(19, 19, 21, .08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--pink-deep); text-decoration: none; }
a:hover { color: var(--pink); }

h1, h2, h3, h4 { font-family: var(--font-body); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -.015em; }
h1.display { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2.display { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }

.container { width: min(1180px, 92%); margin-inline: auto; }
.narrow { width: min(760px, 92%); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 999; }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #cfd2d6; text-align: center; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.topbar p { margin: 0; padding: 7px 12px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.brand-name { font-weight: 800; color: var(--ink); font-size: 1.05rem; letter-spacing: .01em; white-space: nowrap; }
.brand-name em { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--pink); }

.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); border-bottom-color: var(--pink); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: .18s; font-family: var(--font-body);
}
.btn-sm { padding: 9px 20px; font-size: .88rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-deep); color: #fff; transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.cart-badge { background: #fff; color: var(--pink-deep); border-radius: 999px; font-size: .72rem; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }

/* ---------- Flash ---------- */
.flash { padding: 12px 0; font-weight: 600; }
.flash-success { background: #e8f7ee; color: #14683a; }
.flash-error { background: #fdeaea; color: #a02020; }
.flash-info { background: var(--pink-soft); color: var(--pink-deep); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,19,21,.18) 0%, rgba(19,19,21,.62) 78%);
}
.hero-content { position: relative; z-index: 2; padding: 72px 0 84px; }
.hero-kicker { text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; font-weight: 700; color: #ffd7ea; margin-bottom: 18px; }
.hero h1 { color: #fff; margin-bottom: 18px; max-width: 15ch; }
.hero p.lede { font-size: 1.2rem; max-width: 52ch; color: #eceef0; margin: 0 0 30px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--ink); color: #fff; }
.stats-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 34px 0; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--pink); }
.stat span { font-size: .9rem; color: #b9bdc2; letter-spacing: .04em; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-sand { background: var(--sand); }
.section-pink { background: var(--pink-soft); }
.kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 800; color: var(--pink); margin: 0 0 14px; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { font-size: 1.08rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split .photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.4; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--pink-soft); color: var(--pink-deep); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 18px; }
.card h3 { font-size: 1.15rem; }
.card p { font-size: .95rem; margin: 0; }

/* ---------- Gallery ---------- */
.masonry { columns: 3 300px; column-gap: 16px; }
.masonry a { display: block; margin-bottom: 16px; border-radius: 12px; overflow: hidden; }
.masonry img { transition: .3s; width: 100%; }
.masonry a:hover img { transform: scale(1.03); }
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-strip img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; }

/* ---------- Quote band ---------- */
.quote-band { background: var(--ink); color: #fff; text-align: center; }
.quote-band .display { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); font-style: italic; max-width: 26ch; margin: 0 auto 14px; }
.quote-band cite { color: var(--pink); font-style: normal; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-weight: 700; font-size: .88rem; color: var(--ink); display: block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number],
select, textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff; transition: .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(226,49,140,.12); }
.field-help { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }

/* ---------- Donate funnel ---------- */
.donate-hero { background: var(--ink); color: #fff; padding: 72px 0 56px; }
.donate-hero h1 { color: #fff; }
.donate-hero p { color: #c8ccd1; max-width: 56ch; }
.freq-toggle { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px; margin-bottom: 26px; }
.freq-toggle button {
  border: 0; background: transparent; padding: 10px 26px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; cursor: pointer; color: var(--muted); font-family: inherit;
}
.freq-toggle button.active { background: var(--ink); color: #fff; }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.amount-btn {
  border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 20px 12px;
  cursor: pointer; text-align: center; font-family: inherit; transition: .15s;
}
.amount-btn b { display: block; font-size: 1.35rem; color: var(--ink); }
.amount-btn span { font-size: .78rem; color: var(--muted); }
.amount-btn.active { border-color: var(--pink); background: var(--pink-soft); box-shadow: 0 0 0 3px rgba(226,49,140,.12); }
.custom-amount { position: relative; }
.custom-amount .dollar { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--muted); }
.custom-amount input { padding-left: 34px; }
.impact-note { background: var(--pink-soft); border-radius: 10px; padding: 14px 18px; font-size: .92rem; color: var(--pink-deep); font-weight: 600; margin: 18px 0; }

/* ---------- Cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 16px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.cart-remove:hover { color: #a02020; }
.cart-total-row td { font-weight: 800; color: var(--ink); font-size: 1.1rem; }

/* ---------- Scheduler (goods) ---------- */
.method-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
.method-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; cursor: pointer; background: #fff; text-align: left; font-family: inherit; transition: .15s; }
.method-card.active { border-color: var(--pink); background: var(--pink-soft); }
.method-card b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.method-card span { font-size: .88rem; color: var(--muted); }

.calendar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head b { font-size: 1.02rem; color: var(--ink); }
.cal-nav { background: none; border: 1px solid var(--line); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 1rem; color: var(--ink); }
.cal-nav:hover { border-color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; padding: 6px 0; }
.cal-day {
  aspect-ratio: 1; border: 0; background: transparent; border-radius: 10px; font-family: inherit;
  font-weight: 600; color: var(--ink); cursor: pointer; font-size: .92rem;
}
.cal-day:hover:not(:disabled) { background: var(--pink-soft); }
.cal-day:disabled { color: #c9c5bf; cursor: not-allowed; text-decoration: line-through; }
.cal-day.selected { background: var(--pink); color: #fff; }
.cal-legend { display: flex; gap: 18px; margin-top: 12px; font-size: .78rem; color: var(--muted); }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 12px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: .88rem; color: var(--ink); }
.slot-btn.active { border-color: var(--pink); background: var(--pink-soft); }
.slot-btn:disabled { opacity: .4; cursor: not-allowed; }

.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.check-pill { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; cursor: pointer; font-size: .9rem; font-weight: 600; background: #fff; }
.check-pill:has(input:checked) { border-color: var(--pink); background: var(--pink-soft); }
.check-pill input { accent-color: var(--pink); }

.steps { display: flex; gap: 10px; margin-bottom: 34px; }
.step { flex: 1; text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); padding-bottom: 10px; border-bottom: 3px solid var(--line); }
.step.active { color: var(--pink-deep); border-color: var(--pink); }
.step.done { color: var(--ink); border-color: var(--ink); }

/* ---------- Auth & account ---------- */
.auth-wrap { min-height: 70vh; display: flex; align-items: center; padding: 60px 0; background: var(--sand); }
.auth-card { width: min(460px, 92%); margin-inline: auto; }
.auth-card .form-card { padding: 44px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: .92rem; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
table.data th { background: var(--sand); text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 12px 14px; }
table.data td { padding: 13px 14px; border-top: 1px solid var(--line); font-size: .93rem; }
table.data tr:hover td { background: #fbfaf8; }

.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .03em; }
.badge-green { background: #e8f7ee; color: #14683a; }
.badge-yellow { background: #fdf3e0; color: #92600a; }
.badge-red { background: #fdeaea; color: #a02020; }
.badge-gray { background: #eef0f2; color: #566; }
.badge-pink { background: var(--pink-soft); color: var(--pink-deep); }

/* ---------- Sticky give bar ---------- */
.give-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--ink); color: #fff; padding: 12px 0;
  transform: translateY(110%); transition: .35s;
}
.give-bar.visible { transform: translateY(0); }
.give-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.give-bar p { margin: 0; font-weight: 600; font-size: .95rem; }
.give-bar .close-bar { background: none; border: 0; color: #9aa0a6; font-size: 1.2rem; cursor: pointer; margin-left: 6px; }

/* ---------- Footer ---------- */
.footer-cta { background: linear-gradient(135deg, var(--pink-deep), var(--pink)); color: #fff; text-align: center; padding: 80px 0; }
.footer-cta h2 { color: #fff; margin-bottom: 8px; }
.footer-cta p { color: #ffe3f1; margin: 0 0 28px; font-size: 1.1rem; }
.footer-cta .cta-row { justify-content: center; }
.footer-cta .btn-primary { background: #fff; color: var(--pink-deep); }

.site-footer { background: var(--ink); color: #b9bdc2; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #2a2b2e; }
.footer-brand { font-size: 1.3rem; font-weight: 800; color: #fff; margin: 0 0 10px; }
.footer-brand em { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--pink); }
.footer-verse { font-size: .92rem; }
.footer-head { color: #fff; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.site-footer a { display: block; color: #b9bdc2; padding: 4px 0; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.newsletter { margin-top: 18px; }
.newsletter label { color: #fff; font-size: .85rem; }
.newsletter-row { display: flex; gap: 8px; }
.newsletter-row input { background: #232427; border-color: #33353a; color: #fff; }
.newsletter-done { color: #7ee2a8; font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; font-size: .82rem; color: #7d8288; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--sand); padding: 72px 0 56px; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { max-width: 60ch; font-size: 1.1rem; margin: 0; }

/* ---------- Thank you ---------- */
.thanks-hero { text-align: center; padding: 90px 0 40px; }
.thanks-heart { font-size: 3rem; color: var(--pink); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
  .cards-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .amount-grid, .slot-grid, .check-grid { grid-template-columns: repeat(2, 1fr); }

  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; padding: 10px 4%;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
}
@media (max-width: 620px) {
  .form-row, .method-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 4px; }
  .stats-inner { grid-template-columns: 1fr; }
  .hero { min-height: 68vh; }
  .btn-ghost.btn-sm { display: none; }
}
