/* Doname — emotional joy-of-giving theme */
:root {
  --red: #c41e3a;
  --red-deep: #9a1830;
  --red-soft: #fce8ec;
  --cream: #faf7f2;
  --gold: #c9a962;
  --ink: #1a1214;
  --ink-muted: #5c4f52;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(26, 18, 20, 0.12);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

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

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red-deep);
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.narrow {
  width: min(720px, 92vw);
  margin-inline: auto;
}

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--red);
  font-style: italic;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 18, 20, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}

.logo__mark {
  color: var(--red);
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.nav__cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.45rem 1rem;
  border-radius: 999px;
}

.nav__cta:hover {
  background: var(--red-deep);
  color: var(--white) !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero-gift-joy.png") center right / cover no-repeat;
  background-color: #f0eeeb;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(250, 247, 242, 0.97) 0%,
    rgba(250, 247, 242, 0.88) 42%,
    rgba(250, 247, 242, 0.35) 68%,
    rgba(250, 247, 242, 0.1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero h1 em {
  font-style: italic;
  color: var(--red);
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
  margin: 0 0 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__actions--center {
  justify-content: center;
}

.hero__proof {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.hero__proof strong {
  color: var(--red);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(196, 30, 58, 0.35);
}

.btn--primary:hover {
  background: var(--red-deep);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(26, 18, 20, 0.15);
}

.btn--ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn--lg {
  padding: 0.95rem 1.75rem;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.section h2 em {
  font-style: italic;
  color: var(--red);
}

.section__intro {
  font-size: 1.1rem;
  color: var(--ink-muted);
  margin: 0 0 2rem;
}

.section--warm {
  background: var(--white);
}

.section--contrast {
  background: var(--red-soft);
}

.section--give {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.section--stories {
  background: var(--white);
}

.section--faq {
  background: var(--cream);
}

.section--cta-final {
  background: var(--red);
  color: var(--white);
  text-align: center;
}

.section--cta-final h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.section--cta-final .btn--primary {
  background: var(--white);
  color: var(--red);
  box-shadow: var(--shadow);
}

.section--cta-final .btn--primary:hover {
  background: var(--cream);
  color: var(--red-deep);
}

/* Joy grid */
.joy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.joy-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(26, 18, 20, 0.06);
}

.joy-card h3 {
  font-family: var(--font-display);
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.joy-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.joy-card__icon {
  font-size: 1.5rem;
}

.cite {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0;
}

.difference-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 1.05rem;
  color: var(--ink-muted);
}

.difference-list li {
  margin-bottom: 0.75rem;
}

/* Donate */
.give-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.give-copy p {
  color: var(--ink-muted);
}

.impact-meter {
  height: 8px;
  background: var(--red-soft);
  border-radius: 999px;
  overflow: hidden;
  margin: 1.25rem 0 0.5rem;
}

.impact-meter__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.impact-meter__label {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0;
}

.donate-card {
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 30, 58, 0.08);
}

.frequency-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  background: var(--cream);
  border-radius: 999px;
}

.frequency-toggle__btn {
  border: none;
  background: transparent;
  padding: 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: var(--ink-muted);
  transition: background 0.2s, color 0.2s;
}

.frequency-toggle__btn.is-active {
  background: var(--white);
  color: var(--red);
  box-shadow: 0 2px 8px rgba(26, 18, 20, 0.08);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.amount-btn {
  padding: 0.85rem 0.5rem;
  border: 2px solid rgba(26, 18, 20, 0.1);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.amount-btn:hover {
  border-color: var(--red);
}

.amount-btn.is-selected {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red-deep);
}

.custom-amount {
  display: block;
  margin-bottom: 1rem;
}

.custom-amount span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.custom-amount__wrap {
  display: flex;
  align-items: center;
  border: 2px solid rgba(26, 18, 20, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.custom-amount__wrap:focus-within {
  border-color: var(--red);
}

.custom-amount__currency {
  padding: 0.75rem 0 0.75rem 1rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.custom-amount input {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem 0.75rem 0.25rem;
  font-size: 1.25rem;
  font-family: inherit;
  min-width: 0;
}

.custom-amount input:focus {
  outline: none;
}

.custom-amount small {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.donate-error {
  color: var(--red-deep);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.donate-trust {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 1rem 0 0;
}

/* Quotes */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.quotes blockquote {
  margin: 0;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 4px solid var(--red);
}

.quotes p {
  margin: 0;
  font-style: italic;
  color: var(--ink-muted);
}

/* FAQ */
.faq {
  border-bottom: 1px solid rgba(26, 18, 20, 0.08);
  padding: 0.75rem 0;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style-position: outside;
}

.faq p {
  color: var(--ink-muted);
  margin: 0.5rem 0 0;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.site-footer a {
  color: var(--gold);
}

.site-footer__tagline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  margin: 0 0 1rem;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.site-footer__links a {
  text-decoration: none;
  font-weight: 600;
}

.site-footer__legal {
  font-size: 0.8rem;
  margin: 0;
}

/* Inner pages */
.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.page-hero--success {
  background: linear-gradient(180deg, var(--red-soft), var(--cream));
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.prose h1 {
  font-family: var(--font-display);
}

.prose code {
  background: var(--red-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Responsive */
@media (max-width: 900px) {
  .give-layout {
    grid-template-columns: 1fr;
  }

  .hero__bg {
    background-position: 70% center;
  }

  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(250, 247, 242, 0.96) 0%,
      rgba(250, 247, 242, 0.92) 55%,
      rgba(250, 247, 242, 0.5) 100%
    );
  }

  .hero__content {
    max-width: none;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__proof {
    align-items: center;
  }
}

@media (max-width: 600px) {
  .nav a:not(.nav__cta) {
    display: none;
  }

  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .amount-grid .amount-btn:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }
}
