/* ============================================
   Design System - Marysia 1.5% Landing Page
   Warm, credible, mobile-first
   ============================================ */

:root {
  /* Backgrounds */
  --bg: #fffaf7;
  --bg-alt: #fff4ed;
  --bg-card: #fff;
  --bg-hero: linear-gradient(175deg, #fff4ed 0%, #fffaf7 100%);

  /* Primary - warm coral */
  --accent: #c8513b;
  --accent-hover: #a8412e;
  --accent-light: #fff0ec;
  --accent-border: #f5c5bb;

  /* Trust - sage green */
  --trust: #1b7a4a;
  --trust-bg: #eefaf3;
  --trust-border: #b7e4c7;

  /* Text */
  --text: #2c2420;
  --text-muted: #6b5e57;
  --text-light: #a09088;

  /* Borders & shadows */
  --border: #e8ddd6;
  --border-light: #f0e6de;
  --shadow-sm: 0 1px 3px rgb(44 36 32 / 6%);
  --shadow-md: 0 4px 16px rgb(44 36 32 / 8%);
  --shadow-lg: 0 8px 32px rgb(44 36 32 / 12%);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Layout */
  --container-max: 720px;
  --container-pad: 1.5rem;
  --section-pad: 4rem;
}

/* ── Reset ── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Container ── */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── Navigation ── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 250 247 / 92%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.25rem;
}

.nav-brand {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: none;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ── Hero ── */

.hero {
  background: var(--bg-hero);
}

.hero-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  line-height: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 55% 30%;
}

.hero-content {
  text-align: center;
  padding: 2rem 0 1.75rem;
}

.hero-content h1 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.intro {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 1.25rem;
}

.trust-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto 1.5rem;
  padding: 0.625rem 1.125rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--trust);
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  border-radius: 100px;
}

.trust-line::before {
  content: "\2714";
  font-size: 0.875rem;
}

.hero-cta {
  margin-top: 0;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.1s;
  text-align: center;
  line-height: 1.4;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 1rem 1.75rem;
  font-size: 1.0625rem;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 8px rgb(200 81 59 / 25%);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgb(200 81 59 / 35%);
}

.btn-secondary {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--accent);
  background: transparent;
  border: 2px solid var(--accent-border);
}

.btn-secondary:hover {
  background: var(--accent-light);
}

/* ── Donation Card (the star) ── */

.pit-data {
  padding: 3rem 0;
}

.donation-card {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.donation-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}

.donation-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.donation-instruction {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.donation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.donation-row:last-of-type {
  margin-bottom: 0;
}

.donation-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.donation-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.donation-value {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}

.copy-btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.1s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.copy-btn:hover {
  background: #ffe4de;
}

.copy-btn:active {
  transform: scale(0.96);
}

.copy-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.copy-btn.copied {
  color: var(--trust);
  background: var(--trust-bg);
  border-color: var(--trust-border);
}

.donation-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--trust);
  background: var(--trust-bg);
  border-radius: var(--radius-sm);
}

.donation-trust::before {
  content: "\1F6E1\FE0F";
  font-size: 1rem;
}

.filing-window {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Section headings (shared) ── */

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.section-heading p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Shared utilities ── */

.section-cta {
  text-align: center;
  margin-top: 1.5rem;
}

/* ── How-to Steps ── */

.how-to {
  padding: var(--section-pad) 0;
  background: var(--bg-alt);
}

.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step-counter;
}

.step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
  counter-increment: step-counter;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.4;
  padding-top: 0.125rem;
}

.step-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* stylelint-disable-next-line no-descending-specificity */
.step-content a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.step-content a:hover {
  color: var(--accent-hover);
}

.step-content .copy-btn {
  font-size: 0.6875rem;
  padding: 0.25rem 0.625rem;
  margin-left: 0.375rem;
  vertical-align: middle;
}

.how-to-note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-align: center;
}

.how-to-deadline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 100px;
}

.how-to-deadline::before {
  content: "\1F4C5";
}

.how-to-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ── Story Section ── */

.story {
  padding: 2.5rem 0 var(--section-pad);
}

.story-flow {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.story-flow > p {
  margin-bottom: 1rem;
}

.story-photo-inline {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.story-photo-inline img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Story signature ── */

.story-signature {
  font-style: italic;
  color: var(--text);
  font-weight: 500;
}

/* ── Story "read more" link ── */

.story-read-more {
  margin-top: 2rem;
  text-align: center;
}

.story-read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent-border);
  padding-bottom: 0.125rem;
  transition:
    color 0.15s,
    border-color 0.15s;
}

.story-read-more-link:hover {
  color: var(--accent-hover);
  border-color: var(--accent);
}

.story-read-more-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Photo Gallery ── */

.gallery {
  padding: var(--section-pad) 0;
  background: var(--bg-alt);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.gallery-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

/* ── Media Mentions - ticker bar ── */

.media-mentions {
  padding: var(--section-pad) 0 0;
}

.media-mentions .section-heading {
  margin-bottom: 2rem;
}

.media-ticker {
  overflow: hidden;
  padding: 1.5rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);

  /* fade edges */
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.media-ticker-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: media-scroll 28s linear infinite;
}

.media-ticker:hover .media-ticker-track,
.media-ticker:focus-within .media-ticker-track {
  animation-play-state: paused;
}

@keyframes media-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.media-ticker-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.media-ticker-item:hover {
  opacity: 1;
}

.media-ticker-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
  opacity: 1;
}

.media-logo {
  width: 220px;
  height: auto;
  display: block;
}

/* ── FAQ ── */

.faq {
  padding: var(--section-pad) 0;
  background: var(--bg-alt);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: background 0.15s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-light);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item summary:hover {
  background: var(--bg);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── FAQ Page ── */

.faq-page-header {
  padding-top: calc(var(--section-pad) + 2rem);
}

.faq-page-header .section-heading h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.faq-category-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-border);
}

.faq-back-cta {
  padding: 2rem 0 var(--section-pad);
  text-align: center;
}

.faq-answer blockquote {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-left: 3px solid var(--accent-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.7;
}

.faq-answer ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.faq-answer li {
  margin-bottom: 0.25rem;
}

.faq-answer p {
  margin: 0.5rem 0 0;
}

.faq-answer p:first-child {
  margin-top: 0;
}

/* ── Bank Transfer ── */

.bank {
  padding: var(--section-pad) 0;
}

.bank-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
}

.bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.bank-row:last-of-type {
  margin-bottom: 0;
}

/* ── Updates / Links ── */

.updates {
  padding: var(--section-pad) 0;
  background: var(--bg-alt);
}

.updates-list {
  display: grid;
  gap: 0.75rem;
}

.update-link {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.update-link:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-sm);
}

.update-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  padding-top: 0.125rem;
}

.update-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ── Footer ── */

.site-footer {
  padding: 3rem 0 2rem;
  background: var(--text);
  color: rgb(255 255 255 / 70%);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  text-align: center;
}

.footer-brand {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-krs {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgb(255 255 255 / 90%);
  background: rgb(255 255 255 / 10%);
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* stylelint-disable-next-line no-descending-specificity */
.footer-links a {
  color: rgb(255 255 255 / 70%);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 10%);
  text-align: center;
  font-size: 0.75rem;
  color: rgb(255 255 255 / 40%);
}

/* ── Sticky Mobile CTA ── */

.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0.75rem var(--container-pad);
  background: rgb(255 250 247 / 95%);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 16px rgb(44 36 32 / 8%);
}

.sticky-cta-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  gap: 0.625rem;
}

.sticky-cta .btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.sticky-cta .copy-btn {
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Desktop ── */

@media (width >= 640px) {
  :root {
    --container-pad: 2rem;
    --section-pad: 5rem;
  }

  .nav-links {
    display: flex;
  }

  .hero-media img {
    aspect-ratio: 21 / 9;
    object-position: 55% 35%;
  }

  .hero-content {
    padding: 2.5rem 0 2.25rem;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .story {
    padding-top: 3rem;
  }

  .btn-primary,
  .btn-secondary {
    display: inline-flex;
    width: auto;
  }

  .section-heading h2 {
    font-size: 1.75rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .footer-links {
    justify-content: flex-end;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

@media (width < 640px) {
  .sticky-cta {
    display: block;
  }

  /* prevent content from being hidden behind sticky bar */
  body {
    padding-bottom: 4.5rem;
  }
}
