:root {
  --eggshell: #f6efe8;
  --orange: #f28c28;
  --blue: #002F6C;
  --navy: #16324f;
  --text: #284159;
  --muted: #5f7388;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--eggshell);
}

body.modal-open {
  overflow: hidden;
}

main,
.site-header,
.site-footer {
  background: var(--eggshell);
}

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

button {
  border: none;
  cursor: pointer;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Header & Navigation */
.site-header {
  background: rgba(246, 239, 232, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(22, 50, 79, 0.08);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.nav-links a {
  transition: color 0.2s ease;
}

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

/* Hero Section */
.hero {
  padding: 4.5rem 0 3.5rem;
}

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

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  font-size: 0.8rem;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 1rem;
}

.hero-copy p,
.section-intro p,
.card p,
.split-section p,
.site-footer p {
  color: var(--muted);
  max-width: 720px;
}

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

.action-banner {
  padding-top: 0;
}

.action-row {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

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

.btn-large {
  padding: 1.2rem 2.2rem;
  font-size: 1.05rem;
  min-width: 210px;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(242, 140, 40, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 20px 40px rgba(242, 140, 40, 0.35);
}

.btn-secondary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(31, 95, 191, 0.2);
}

.btn-secondary:hover {
  box-shadow: 0 20px 40px rgba(31, 95, 191, 0.3);
}

/* Cards */
.hero-card,
.card,
.stat-card,
.split-section,
.site-footer {
  background: var(--white);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 16px 34px rgba(22, 50, 79, 0.08);
}

.hero-card h2,
.section-intro h2,
.split-section h2,
.site-footer h2 {
  color: var(--navy);
  margin-top: 0;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

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

.section-alt {
  padding-top: 1rem;
}

.section-intro {
  margin-bottom: 1.4rem;
}

.card-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

/* Counter */
.counter-banner {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white);
  border-radius: 24px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 16px 34px rgba(15, 76, 129, 0.2);
}

.counter-number {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
}

.counter-label {
  margin-top: 0.4rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.95;
}

/* Stats */
.stat-card {
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  color: var(--blue);
}

.stat-card span {
  color: var(--muted);
}

/* Split Section */
.split-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Footer */
.site-footer {
  margin: 2rem auto 3rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(22, 50, 79, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(560px, 100%);
  background: var(--white);
  border-radius: 24px;
  padding: 1.7rem;
  box-shadow: 0 20px 60px rgba(22, 50, 79, 0.25);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--navy);
}

/* Forms */
.modal-form {
  display: grid;
  gap: 0.9rem;
}

.modal-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--navy);
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  border: 1px solid rgba(22, 50, 79, 0.16);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  transition: border-color 0.2s ease;
}

.modal-form input:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.modal-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 0.3rem;
}

#donation-form-success,
#request-form-success {
  margin: 0;
  color: var(--blue);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 860px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero-grid,
  .card-grid,
  .stats-grid,
  .split-section,
  .footer-wrap {
    grid-template-columns: 1fr;
    display: grid;
  }

  .split-section {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
  }

  .modal-card {
    padding: 1.2rem;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 1.1rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-copy h1 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 0.8rem 1.4rem;
    font-size: 0.95rem;
  }

  .btn-large {
    padding: 1rem 1.8rem;
    min-width: auto;
  }
}

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

.modal-form input:focus,
.modal-form textarea:focus,
.btn:focus-visible,
.nav-links a:focus-visible,
.brand:focus-visible,
.brand-sub:focus-visible {
  outline: 3px solid rgba(242, 140, 40, 0.45);
  outline-offset: 3px;
}
