:root {
  --bg: #fff9f2;
  --bg-alt: #fdf3e8;
  --ink: #102a43;
  --ink-soft: #2f4858;
  --muted: #5c677d;
  --accent: #e76f51;
  --accent-strong: #d95d39;
  --sea: #2a9d8f;
  --gold: #f4a261;
  --card: #ffffff;
  --border: #e7d9c7;
  --shadow: 0 18px 45px rgba(16, 42, 67, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 15%, #ffe8d1 0, transparent 32%),
    radial-gradient(circle at 85% 20%, #d7f4ef 0, transparent 38%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  opacity: 0.45;
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  font-family: "Baskerville", "Palatino Linotype", "Book Antiqua", serif;
  margin: 0 0 0.9rem;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

small,
.muted {
  color: var(--muted);
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 999;
}

.skip-link:focus {
  left: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(255, 249, 242, 0.92);
  border-bottom: 1px solid rgba(231, 217, 199, 0.7);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: conic-gradient(from 90deg, var(--accent), var(--gold), #ffd08a, var(--accent));
  box-shadow: 0 8px 20px rgba(231, 111, 81, 0.4);
  position: relative;
}

.brand-mark::after {
  content: "LF";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 0.2s ease;
}

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

.main-nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(42, 157, 143, 0.12);
  color: var(--ink);
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  padding: 5.6rem 0 3.6rem;
  overflow: clip;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 40%;
  pointer-events: none;
}

.hero::before {
  width: 320px;
  height: 320px;
  background: rgba(42, 157, 143, 0.12);
  top: -130px;
  right: -90px;
}

.hero::after {
  width: 260px;
  height: 260px;
  background: rgba(231, 111, 81, 0.12);
  bottom: -120px;
  left: -100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(16, 42, 67, 0.08);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 0.8rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #f08b6d);
  color: #fff;
  box-shadow: 0 12px 20px rgba(231, 111, 81, 0.3);
}

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

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #fffaf5;
}

.hero-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

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

.panel-card {
  border-radius: var(--radius-md);
  padding: 0.95rem;
  background: linear-gradient(160deg, #fff, #fff7ef);
  border: 1px solid #f0decc;
}

.panel-card strong {
  display: block;
  font-size: 1.35rem;
  color: var(--ink);
  font-family: "Baskerville", serif;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 250, 244, 0.8));
  border-top: 1px solid rgba(231, 217, 199, 0.55);
  border-bottom: 1px solid rgba(231, 217, 199, 0.55);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.7rem;
}

.section-head p {
  max-width: 60ch;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 9px 24px rgba(16, 42, 67, 0.08);
  padding: 1.3rem;
}

.card h3 {
  margin-top: 0.2rem;
}

.icon-pill {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(42, 157, 143, 0.12);
  color: var(--sea);
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f5ede3;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.trust-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.trust-item strong {
  display: block;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.timeline {
  position: relative;
  padding-left: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(var(--sea), rgba(42, 157, 143, 0.2));
}

.timeline-item {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.09rem;
  top: 0.4rem;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--sea);
  box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.16);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-box {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-family: "Baskerville", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink);
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: #f2e6d9;
  overflow: hidden;
  margin: 0.6rem 0 1rem;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sea), #4ec6b7);
  border-radius: inherit;
}

.feature-list {
  margin: 0;
  padding-left: 1.1rem;
}

.feature-list li {
  margin-bottom: 0.55rem;
}

.donation-wrap {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 1rem;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.amount-chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.2rem;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.amount-chip:hover,
.amount-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff5ef;
}

.switch-row {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.25rem;
  background: #f2e6d8;
  gap: 0.2rem;
  margin: 1rem 0;
}

.switch-row label {
  position: relative;
  cursor: pointer;
}

.switch-row input {
  position: absolute;
  opacity: 0;
}

.switch-row span {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
}

.switch-row input:checked + span {
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 42, 67, 0.12);
}

.summary-box {
  background: linear-gradient(150deg, #0f2f49, #184f75);
  color: #e9f3ff;
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  min-height: 100%;
}

.summary-box h3 {
  color: #fff;
}

.summary-box p {
  color: #d4e9ff;
}

.summary-impact {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  margin-top: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.72rem 0.78rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sea);
  box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.14);
  outline: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-field-full {
  grid-column: 1 / -1;
}

.notice {
  border-left: 4px solid var(--sea);
  background: #eef9f7;
  padding: 0.8rem 0.9rem;
  border-radius: 0 10px 10px 0;
  margin-bottom: 1rem;
}

.message {
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.95rem;
  display: none;
}

.message.show {
  display: block;
}

.message.success {
  background: #e9f9f0;
  color: #1f6a4f;
  border: 1px solid #bfe9d2;
}

.message.error {
  background: #fff1ee;
  color: #9f3121;
  border: 1px solid #f0beb4;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: #fff;
  margin-bottom: 0.85rem;
}

.contact-card h4 {
  margin-bottom: 0.4rem;
}

details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 0.8rem 0.9rem;
}

details + details {
  margin-top: 0.75rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  margin-bottom: 0.6rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(231, 217, 199, 0.8);
  background: #fff8ee;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
  padding: 2rem 0;
}

.footer-links {
  display: grid;
  gap: 0.35rem;
}

.footer-links a {
  color: var(--ink-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(231, 217, 199, 0.8);
  padding: 0.95rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .stat-band,
  .donation-wrap,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    background: #fff9f1;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a,
  .nav-cta {
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

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

@media (max-width: 700px) {
  .hero {
    padding-top: 4.8rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.2rem 0;
  }
}
