/* Design tokens taken from the NOSH logo. */
:root {
  --brand: #3871c2;
  --brand-dark: #275896;
  --brand-soft: #eaf1fb;
  --accent: #ed1b24;
  --accent-soft: #fdecec;
  --success: #1f9d55;
  --ink: #0f1a33;
  --muted: #5a6478;
  --surface: #ffffff;
  --bg: #f6f8fc;
  --border: #e2e7f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(15, 26, 51, .08);
  --shadow-lg: 0 18px 50px rgba(15, 26, 51, .14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--white { background: var(--surface); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section__head p { color: var(--muted); margin: 0; max-width: 36rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.empty { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  border: 0; border-radius: 999px;
  font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
  background: var(--brand); color: #fff;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: #c8121a; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--surface); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f0f3f9; }
.btn--block { width: 100%; }
.btn--lg { padding: 1rem 1.75rem; font-size: 1.05rem; }

/* Chips & badges */
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font: inherit; font-size: .9rem; font-weight: 500; color: var(--ink);
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.chip:hover { border-color: var(--brand); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--overlay { position: absolute; top: .75rem; left: .75rem; padding: .3rem .75rem; font-size: .78rem; font-weight: 600; background: rgba(255,255,255,.92); border: 0; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #f0f2f6; color: var(--muted); white-space: nowrap; }
.badge--verified { background: var(--brand-soft); color: var(--brand-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.logo img { height: 40px; width: auto; }
.logo__tag { padding-left: .75rem; border-left: 1px solid var(--border); font-weight: 600; color: var(--muted); font-size: .95rem; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }
.nav .user-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .85rem .3rem .3rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; }
.nav .avatar--xs { width: 1.75rem; height: 1.75rem; font-size: .8rem; }
.nav__signout-form { margin: 0; }
button.nav__signout { padding: 0; border: 0; background: none; font: inherit; font-size: .92rem; font-weight: 500; color: var(--muted); cursor: pointer; }
button.nav__signout:hover { color: var(--brand); }

/* Status message after a form (session('status')) */
.flash { margin: 1.25rem 0 0; padding: .85rem 1.1rem; border-radius: var(--radius-sm); background: var(--brand-soft); border: 1px solid #cddcf2; color: var(--brand-dark); font-weight: 500; font-size: .95rem; }

@media (max-width: 860px) {
  .logo__tag { display: none; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 1rem; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav-open .nav { display: flex; }
  .nav .user-pill { align-self: flex-start; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--ink); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,18,40,.88) 0%, rgba(10,18,40,.6) 45%, rgba(10,18,40,.05) 100%); }
.hero .container { position: relative; z-index: 1; padding-block: clamp(5rem, 12vw, 9rem); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 14ch; margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: #ffb3b6; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 34rem; color: rgba(255,255,255,.85); margin: 0 0 2rem; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.5rem; font-size: .92rem; color: rgba(255,255,255,.8); }
@media (max-width: 700px) {
  .hero__bg { object-position: 70% center; }
  .hero::after { background: linear-gradient(180deg, rgba(10,18,40,.55) 0%, rgba(10,18,40,.85) 55%, rgba(10,18,40,.95) 100%); }
}
.hero__trust span::before { content: "✓"; margin-right: .4rem; color: #8fb8ee; font-weight: 700; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: -3rem; position: relative; z-index: 2; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); text-align: center; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--brand); }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; margin-top: 1.5rem; } }

/* Campaign cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--border); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 3 / 2; background: var(--brand-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.card__meta { margin: 0 0 .25rem; font-size: .82rem; color: var(--muted); }
.card__title { font-size: 1.12rem; margin-bottom: .4rem; }
.card__summary { margin: 0 0 1rem; font-size: .92rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__raised { margin: .6rem 0 0; font-size: .92rem; color: var(--muted); }
.card__raised strong { color: var(--ink); }
.card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 1rem; font-size: .82rem; color: var(--muted); }

.progress { height: 8px; border-radius: 999px; background: #e8ecf3; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #5a93e0); transition: width .8s ease; }
.progress--lg { height: 10px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 2rem 1.5rem 1.5rem; border-radius: var(--radius); background: var(--bg); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
.step h3 { font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }

/* Trust split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1rem; }
.checklist li { display: flex; gap: .85rem; }
.checklist li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: .85rem; }
.checklist strong { display: block; }
.checklist span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Payment logos strip */
.payments { display: flex; flex-wrap: wrap; gap: .6rem; }
.payments span { padding: .4rem .85rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; font-size: .85rem; font-weight: 600; color: var(--muted); }

/* CTA band */
.cta { border-radius: calc(var(--radius) * 1.5); padding: clamp(2.5rem, 6vw, 4rem); background: linear-gradient(135deg, var(--brand) 0%, #23508f 100%); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.07); top: -160px; right: -100px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); max-width: 36rem; margin: 0 auto 2rem; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding-block: 3.5rem 2rem; font-size: .92rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: #fff; margin: 0 0 .75rem; font-size: .95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-logo { background: #fff; display: inline-block; padding: .5rem .75rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.footer-logo img { height: 34px; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Campaign page */
.campaign { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2.5rem; align-items: start; padding-block: 2rem 4rem; }
.campaign__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .75rem 0 1.25rem; }
.campaign__image { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--brand-soft); }
.campaign__image img { width: 100%; height: 100%; object-fit: cover; }
.organiser { display: flex; gap: .85rem; align-items: center; padding-block: 1.25rem; border-bottom: 1px solid var(--border); }
.organiser small { color: var(--muted); }
.avatar { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.avatar--sm { width: 2.25rem; height: 2.25rem; background: var(--accent-soft); color: var(--accent); }
.trust-note { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.25rem; margin-block: 1.5rem; border-radius: var(--radius-sm); background: var(--brand-soft); }
.trust-note p { margin: 0; font-size: .92rem; color: var(--ink); }
.trust-note .badge { align-self: flex-start; background: #fff; }
.trust-note--pending { background: #fff7e6; }
.story { font-size: 1.05rem; }
.story h2, .updates h2 { font-size: 1.5rem; margin-top: 2rem; }
.updates ul, .donation-list { list-style: none; padding: 0; margin: 0; }
.updates li { padding: 1rem 1.25rem; margin-bottom: .75rem; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.updates li small { color: var(--muted); font-weight: 600; }
.updates li p { margin: .25rem 0 0; }
.share-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }

.donate-card { position: sticky; top: 90px; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); }
.donate-card__raised { margin: 0 0 .75rem; color: var(--muted); }
.donate-card__raised strong { display: block; font-family: var(--display); font-size: 2rem; color: var(--ink); line-height: 1.1; }
.donate-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1rem 0 1.25rem; text-align: center; }
.donate-card__stats strong { display: block; font-size: 1.15rem; }
.donate-card__stats span { font-size: .78rem; color: var(--muted); }
.donate-card .btn + .btn { margin-top: .6rem; }
.donation-list { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); display: grid; gap: .85rem; }
.donation-list li { display: flex; gap: .75rem; align-items: center; font-size: .92rem; }
.donation-list small { color: var(--muted); }
.mobile-donate { display: none; }

@media (max-width: 960px) {
  .campaign { grid-template-columns: 1fr; }
  .donate-card { position: static; }
  .mobile-donate { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .75rem 1rem; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(15,26,51,.08); }
  body:has(.mobile-donate) { padding-bottom: 5rem; }
}

/* Donate modal */
.modal { width: min(100% - 1.5rem, 520px); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(10,18,40,.55); backdrop-filter: blur(3px); }
.modal__head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.modal__head h3 { margin: 0; font-size: 1.05rem; }
.modal__head small { color: var(--muted); }
.modal__close { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal__body { padding: 1.5rem; display: grid; gap: 1.25rem; }
.field label, .field legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .5rem; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.input, select.input { width: 100%; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); font: inherit; background: #fff; }
.input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.amount-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: .6rem; }
.amount-presets button { padding: .75rem 0; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.amount-presets button.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.amount-input { position: relative; }
.amount-input::before { content: "$"; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.amount-input .input { padding-left: 2rem; font-size: 1.3rem; font-weight: 700; }
.impact-note { margin: .4rem 0 0; font-size: .85rem; color: var(--success); }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.methods label { display: flex; align-items: center; gap: .5rem; padding: .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; margin: 0; }
.methods label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.checkbox { display: flex; gap: .5rem; align-items: center; font-size: .92rem; }
.summary { padding: 1rem; border-radius: var(--radius-sm); background: var(--bg); font-size: .92rem; display: grid; gap: .3rem; }
.summary div { display: flex; justify-content: space-between; }
.summary .total { font-weight: 700; font-size: 1rem; padding-top: .4rem; margin-top: .2rem; border-top: 1px solid var(--border); }
.fineprint { font-size: .8rem; color: var(--muted); text-align: center; margin: 0; }
.success { padding: 2.5rem 1.5rem; text-align: center; }
.success__icon { display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 1.8rem; }

/* Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Line icons from assets/img/icons.svg (<x-icon name="..." />) */
.icon { display: inline-block; width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; color: inherit; }
.chip .icon { width: 1.05em; height: 1.05em; margin-right: .1rem; color: var(--brand); }
.chip.is-active .icon { color: currentColor; }
