:root {
  --blue: #0b2a4a;
  --blue-light: #153d68;
  --gold: #d4a017;
  --gold-soft: #fff3d2;
  --text: #1f2937;
  --muted: #5b6675;
  --soft: #f5f8fc;
  --white: #ffffff;
  --border: #d9e2ec;
  --shadow: 0 18px 40px rgba(11, 42, 74, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: var(--white);
}

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

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(11, 42, 74, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  text-decoration: none;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.brand img {
  width: 76px;
  height: 58px;
  object-fit: contain;
  border-radius: 4px;
  flex: 0 0 76px;
  background: var(--white);
}

.brand span {
  font-size: 14px;
  max-width: 390px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--blue);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--blue);
  color: var(--white);
}

.hero {
  min-height: 610px;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11, 42, 74, 0.9) 0%, rgba(11, 42, 74, 0.68) 48%, rgba(11, 42, 74, 0.18) 100%),
    url("images/gallery-01.jpeg");
  background-position: center;
  background-size: cover;
}

.hero-content {
  padding: 88px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 630px;
  margin: 22px 0 0;
  color: #e8eef6;
  font-size: 21px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(11, 42, 74, 0.18);
}

.btn-primary {
  background: var(--gold);
  color: var(--blue);
}

.btn-secondary {
  border-color: var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--blue);
}

.section {
  padding: 78px 0;
}

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

.section-dark {
  background: var(--blue);
  color: var(--white);
}

.intro-grid,
.split-layout,
.donate-layout,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.intro-grid {
  margin-bottom: 36px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 21px;
}

p {
  margin: 0 0 14px;
  color: var(--muted);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--white);
}

.cards-grid {
  display: grid;
  gap: 24px;
}

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

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

.card,
.address-card,
.info-panel,
.donate-panel,
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card {
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 160, 23, 0.7);
}

.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--blue);
  font-size: 28px;
}

.service-card h2 {
  font-size: 24px;
}

.mission-band {
  padding: 86px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
}

.mission-content h2 {
  max-width: 880px;
  color: var(--white);
  font-size: clamp(30px, 4vw, 52px);
}

.page-hero {
  padding: 84px 0 92px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11, 42, 74, 0.95), rgba(21, 61, 104, 0.86)),
    radial-gradient(circle at 85% 20%, rgba(212, 160, 23, 0.28), transparent 30%);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.image-placeholder,
.map-placeholder {
  min-height: 300px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(11, 42, 74, 0.22);
  border-radius: 8px;
  color: var(--blue);
  font-weight: 800;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(212, 160, 23, 0.12), rgba(11, 42, 74, 0.08)),
    var(--soft);
}

.image-placeholder.light {
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.about-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.about-photo figcaption {
  padding: 14px 18px;
  color: var(--blue);
  font-weight: 800;
}

.about-photo.light {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.about-photo.light figcaption {
  color: var(--white);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.value-item {
  min-height: 94px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  text-align: center;
}

.gallery-section + .gallery-section {
  margin-top: 46px;
}

.gallery-section h2 {
  margin-bottom: 20px;
}

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

.gallery-item {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.gallery-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 14px 16px;
  color: var(--blue);
  font-weight: 800;
  line-height: 1.35;
}

.gallery-item.highlight-card {
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--blue);
  font-weight: 800;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(212, 160, 23, 0.16), rgba(11, 42, 74, 0.08)),
    var(--soft);
}

.donate-panel,
.info-panel,
.contact-form {
  padding: 32px;
}

.info-block {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.info-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.info-block h3 {
  font-size: 18px;
}

.contact-grid {
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 20px;
}

.address-card {
  padding: 24px;
}

address {
  color: var(--muted);
  font-style: normal;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form h2 {
  margin-bottom: 6px;
}

label {
  color: var(--blue);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  background: var(--white);
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(212, 160, 23, 0.24);
  border-color: var(--gold);
}

textarea {
  resize: vertical;
}

button.btn {
  width: fit-content;
  border: 0;
}

.map-placeholder {
  min-height: 360px;
}

.site-footer {
  background: #081f38;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 24px;
  padding: 28px 0;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
}

.site-footer h2 {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.35;
}

.site-footer h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.site-footer p,
.site-footer a {
  color: #d8e3ef;
  font-size: 14px;
  line-height: 1.45;
}

.site-footer a {
  display: block;
  margin: 4px 0;
  text-decoration: none;
}

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

.footer-bottom {
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #d8e3ef;
  font-size: 12px;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .intro-grid,
  .split-layout,
  .donate-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .three-columns,
  .two-columns,
  .gallery-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 560px;
    background:
      linear-gradient(90deg, rgba(11, 42, 74, 0.9), rgba(11, 42, 74, 0.58)),
      url("images/gallery-01.jpeg");
    background-position: center;
    background-size: cover;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .brand span {
    font-size: 12px;
  }

  .brand img {
    width: 68px;
    height: 52px;
    flex-basis: 68px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

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

  .hero-content,
  .section,
  .page-hero,
  .mission-band {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero p:not(.eyebrow) {
    font-size: 18px;
  }

  .three-columns,
  .two-columns,
  .gallery-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .address-card,
  .donate-panel,
  .info-panel,
  .contact-form {
    padding: 22px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
