:root {
  --navy: #171b58;
  --navy-2: #101445;
  --blue: #5b7fda;
  --gold: #c7a261;
  --text: #181818;
  --muted: #676767;
  --bg: #f7f4ee;
  --white: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  --radius: 22px;
  --container: 1200px;
  --header-height: 132px;
  --header-height-small: 104px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.72;
}

body.menu-open {
  overflow: hidden;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

/* HEADER */
.top-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  transition: background 0.25s ease, min-height 0.25s ease, box-shadow 0.25s ease;
}

.top-header.is-scrolled {
  background: rgba(23, 27, 88, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1340px;
  margin: 0 auto;
  min-height: var(--header-height);
  padding: 14px 28px 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: start;
  transition: min-height 0.25s ease, padding 0.25s ease;
}

.top-header.is-scrolled .header-inner {
  min-height: var(--header-height-small);
  padding-top: 10px;
  padding-bottom: 10px;
}

.nav {
  display: flex;
  gap: 28px;
  padding-top: 8px;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.nav-link {
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 600;
  position: relative;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.nav-link:hover {
  opacity: 0.76;
}

.nav-link.active::after,
.mobile-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

.nav-donate {
  color: #ffffff;
}

.brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-self: center;
}

.brand-icon {
  width: 42px;
  height: 42px;
  color: #ffffff;
  margin-bottom: 6px;
}

.brand-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-title {
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-white {
  color: #ffffff;
}

.brand-blue {
  color: var(--blue);
}

.brand-subtitle {
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.82);
}

.mobile-toggle {
  display: none;
  align-self: center;
  justify-self: end;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 0 24px 22px;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  color: #fff;
  font-weight: 600;
  position: relative;
  width: fit-content;
}

/* HERO */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(8, 10, 28, 0.42), rgba(8, 10, 28, 0.52)),
    url("https://images.unsplash.com/photo-1518717758536-85ae29035b6d?auto=format&fit=crop&w=1800&q=80")
      center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 120px 0 110px;
}

.eyebrow,
.section-label,
.project-tag {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 18px;
}

.section-label {
  color: var(--gold);
  margin-bottom: 14px;
}

.hero h1,
.mission-copy h2,
.section-heading h2,
.project-copy h3,
.overview-card h2,
.contact-copy h2 {
  font-family: "Cinzel", serif;
  line-height: 1.08;
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.6vw, 5.3rem);
  max-width: 760px;
  margin-bottom: 18px;
}

.hero-text {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.06rem;
  margin-bottom: 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-meta span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: #111;
}

.btn-outline {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

/* SECTIONS */
section {
  padding: 92px 0;
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 10px;
}

.section-heading.center {
  text-align: center;
}

.section-subtext {
  color: var(--muted);
  max-width: 780px;
}

.mission-block {
  background: var(--bg);
}

.mission-inner {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 34px;
  align-items: start;
}

.mission-copy h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  margin-bottom: 18px;
}

.mission-copy p {
  color: var(--muted);
}

.info-panel {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-panel h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.28rem;
}

.info-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-panel li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-panel li:last-child {
  border-bottom: 0;
}

/* QUICK LINKS */
.quick-links {
  padding: 0;
  background: var(--navy-2);
}

.quick-links-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-links a {
  color: #fff;
  text-align: center;
  padding: 22px 16px;
  font-weight: 600;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease;
}

.quick-links a:last-child {
  border-right: 0;
}

.quick-links a:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* PROJECTS */
.project-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 34px;
}

.project-row:last-child {
  margin-bottom: 0;
}

.project-row.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.project-row.reverse .project-image {
  order: 2;
}

.project-row.reverse .project-copy {
  order: 1;
}

.project-image img {
  height: 440px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-copy {
  padding: 12px 4px;
}

.project-tag {
  color: var(--gold);
  margin-bottom: 10px;
}

.project-copy h3 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  margin-bottom: 16px;
}

.project-copy p {
  color: var(--muted);
}

.project-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.project-pills span {
  padding: 9px 12px;
  border-radius: 999px;
  background: #f4efe7;
  color: #6f5730;
  font-size: 0.9rem;
  font-weight: 600;
}

/* OVERVIEW / DONATE */
.overview-section {
  background: var(--bg);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.overview-card {
  background: #fff;
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.overview-card.accent {
  background: linear-gradient(135deg, #ebe1cf, #f7f1e7);
}

.overview-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 14px;
}

.overview-card p {
  color: var(--muted);
}

/* OFFICERS */
.officers-section {
  background: #fff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mini-card {
  background: #fff;
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.mini-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

/* NEWS */
.news-section {
  background: var(--bg);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.news-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-card img {
  height: 280px;
}

.news-body {
  padding: 22px;
}

.news-body h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: start;
}

.contact-details p {
  margin-bottom: 14px;
}

.contact-form {
  background: #faf8f4;
  border: 1px solid #ece2d4;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d9d1c6;
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #8f7343;
  box-shadow: 0 0 0 4px rgba(199, 162, 97, 0.12);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #c75757;
  box-shadow: 0 0 0 4px rgba(199, 87, 87, 0.12);
}

.field-error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: #b23d3d;
  font-size: 0.88rem;
}

.form-feedback {
  display: none;
  margin-bottom: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  font-size: 0.94rem;
}

.form-feedback.success {
  display: block;
  background: #eaf8ef;
  color: #24633b;
  border: 1px solid #b8e2c3;
}

.form-feedback.error {
  display: block;
  background: #fff1f1;
  color: #9b3838;
  border: 1px solid #edc0c0;
}

.submit-btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* FOOTER */
.site-footer {
  background: #0f123a;
  color: rgba(255, 255, 255, 0.88);
  padding-top: 54px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner h3 {
  margin-top: 0;
  color: #fff;
}

.footer-right {
  text-align: right;
}

.footer-right a {
  color: #fff;
}

.footer-bottom {
  margin-top: 30px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* REVEAL */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: auto;
    padding-bottom: 20px;
  }

  .nav-left,
  .nav-right {
    display: none;
  }

  .mobile-toggle {
    display: block;
    position: absolute;
    right: 22px;
    top: 26px;
  }

  .brand-title {
    white-space: normal;
  }

  .mission-inner,
  .project-row,
  .project-row.reverse,
  .overview-grid,
  .card-grid,
  .news-grid,
  .contact-grid,
  .quick-links-inner {
    grid-template-columns: 1fr;
  }

  .project-row.reverse .project-image,
  .project-row.reverse .project-copy {
    order: initial;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .top-header {
    padding-top: 6px;
  }

  .header-inner {
    padding: 14px 18px 14px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .brand-title {
    font-size: 1.8rem;
  }

  .brand-subtitle {
    letter-spacing: 0.26em;
    font-size: 0.68rem;
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  section {
    padding: 74px 0;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    padding: 88px 0;
  }

  .project-image img {
    height: 300px;
  }

  .news-card img {
    height: 220px;
  }

  .hero-actions,
  .project-pills {
    flex-direction: column;
  }

  .btn,
  .project-pills span {
    width: 100%;
  }

  .hero-meta {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}