:root {
  --ink: #221716;
  --muted: #675c5a;
  --paper: #fff8f6;
  --surface: #ffffff;
  --forest: #ee2d24;
  --forest-2: #9f1713;
  --green: #0f6f4a;
  --green-2: #0b4634;
  --green-soft: #e9f4ee;
  --sky: #f2f2f2;
  --amber: #ee2d24;
  --coral: #c01814;
  --line: rgba(17, 32, 34, 0.12);
  --shadow: 0 24px 70px rgba(120, 22, 18, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  outline-color: var(--amber);
  outline-offset: 3px;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--amber);
  color: var(--ink);
  border-radius: 6px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 248, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand__logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand__text {
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 10px 13px;
  border-radius: 6px;
  color: #213130;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-menu a:hover {
  background: rgba(15, 111, 74, 0.1);
}

.nav-menu .nav-cta {
  margin-left: 6px;
  background: var(--green);
  color: #fff;
}

.nav-menu .nav-cta:hover {
  background: var(--green-2);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.nav-toggle span:not(.visually-hidden) {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 99px;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media {
  background-image: url("../images/hero-turkish-scouts-two-flags.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
  filter: saturate(0.94);
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(11, 70, 52, 0.92) 0%, rgba(90, 15, 13, 0.68) 42%, rgba(20, 20, 20, 0.1) 72%),
    linear-gradient(0deg, rgba(11, 70, 52, 0.48) 0%, rgba(80, 10, 8, 0) 40%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 90px 84px;
}

.hero__logo {
  width: clamp(92px, 12vw, 148px);
  height: auto;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fff;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.24rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 0;
  border-radius: 6px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button--primary {
  background: var(--green);
  color: #fff;
}

.button--primary:hover {
  background: var(--green-2);
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.button--full {
  width: 100%;
}

.metric-band {
  position: relative;
  z-index: 2;
  margin-top: -40px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.metric {
  min-height: 180px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.metric span {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 850;
}

.metric p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding-block: 96px;
}

.section--intro {
  padding-top: 118px;
}

.section h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.section-copy p,
.mission-card p,
.section--support p,
.section--contact p {
  color: var(--muted);
  font-size: 1.08rem;
}

.mission-card {
  padding: 30px;
  border: 1px solid rgba(15, 111, 74, 0.22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 111, 74, 0.1);
}

.mission-card p {
  margin: 0;
}

.mission-card p + p {
  margin-top: 14px;
}

.mission-card a {
  display: inline-flex;
  margin-top: 20px;
  color: var(--green);
  font-weight: 900;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 70px;
  align-items: start;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}

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

.focus-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}

.tabs {
  display: grid;
  gap: 10px;
  align-content: start;
}

.tab-button {
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 75, 63, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--forest-2);
  text-align: left;
  font-weight: 850;
  cursor: pointer;
}

.tab-button.is-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.focus-panels {
  min-height: 336px;
}

.focus-panel {
  display: none;
  height: 100%;
  padding: 42px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid rgba(15, 75, 63, 0.16);
  box-shadow: 0 18px 42px rgba(15, 75, 63, 0.1);
}

.focus-panel.is-active {
  display: block;
}

.focus-panel h3 {
  max-width: 560px;
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.focus-panel p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
}

.panel-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--coral);
  font-weight: 900;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section--projects {
  background: linear-gradient(135deg, #0b4634 0%, #9f1713 100%);
  color: #fff;
}

.section--projects .eyebrow {
  color: #fff;
}

.project-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.project-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  padding: 8px;
  border-radius: 50%;
  background: #fff;
}

.project-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.section--support {
  background: #fff;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: center;
}

.donation-box {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  box-shadow: 0 16px 44px rgba(17, 32, 34, 0.08);
}

.donation-box fieldset {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.donation-box legend {
  margin-bottom: 12px;
  font-weight: 900;
}

.donation-box label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.donation-box input {
  accent-color: var(--forest);
}

.news-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.news-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--coral);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.news-card p {
  color: var(--muted);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: 58px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--forest-2);
  font-weight: 800;
}

.contact-list a {
  color: var(--green);
}

.contact-form {
  display: grid;
  gap: 10px;
  padding: 28px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid rgba(15, 75, 63, 0.16);
  box-shadow: 0 18px 44px rgba(15, 75, 63, 0.12);
}

.contact-form label {
  color: #223332;
  font-size: 0.92rem;
  font-weight: 850;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 32, 34, 0.18);
  border-radius: 6px;
  padding: 13px 14px;
  background: #fbfaf6;
  color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form span,
.validation-summary {
  color: #ad352a;
  font-size: 0.9rem;
}

.form-status {
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(15, 75, 63, 0.1);
  color: var(--forest-2);
  font-weight: 800;
}

.site-footer {
  padding: 58px 0 24px;
  background: #0b1d17;
  color: rgba(255, 255, 255, 0.78);
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(11, 29, 23, 0.72);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.support-modal {
  position: relative;
  width: min(430px, 100%);
  padding: 34px;
  border: 1px solid rgba(15, 111, 74, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(11, 29, 23, 0.32);
}

.event-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: min(92svh, 900px);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(11, 29, 23, 0.34);
}

.event-modal > img {
  width: 100%;
  height: auto;
  max-height: 70svh;
  object-fit: contain;
  background: #fff;
}

.event-modal__body {
  padding: 22px 26px 26px;
}

.event-modal__body h2 {
  margin: 0;
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
}

.event-modal__body p:not(.eyebrow) {
  margin: 12px 0 20px;
  color: var(--muted);
}

.support-modal img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 18px;
}

.support-modal h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1.12;
}

.support-modal p:not(.eyebrow) {
  margin: 14px 0 22px;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 0.7fr 0.7fr;
  gap: 44px;
}

.brand--footer {
  color: #fff;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin-bottom: 9px;
}

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

.footer-bottom {
  width: min(1160px, calc(100% - 40px));
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 44px rgba(17, 32, 34, 0.16);
  }

  .nav-menu.is-open {
    display: grid;
  }

  .nav-menu a {
    width: 100%;
  }

  .nav-menu .nav-cta {
    margin-left: 0;
  }

  .metric-grid,
  .project-grid,
  .news-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-column,
  .focus-layout,
  .support-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .brand__text {
    max-width: 190px;
    white-space: normal;
    line-height: 1.12;
  }

  .hero {
    min-height: 78svh;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(11, 70, 52, 0.92) 0%, rgba(90, 15, 13, 0.72) 62%, rgba(30, 30, 30, 0.2) 100%),
      linear-gradient(0deg, rgba(11, 70, 52, 0.56) 0%, rgba(80, 10, 8, 0) 40%);
  }

  .hero__lead {
    font-size: 1.08rem;
  }

  .button {
    width: 100%;
  }

  .metric-band {
    margin-top: 0;
  }

  .metric-grid,
  .project-grid,
  .news-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .section {
    padding-block: 70px;
  }

  .section--intro {
    padding-top: 70px;
  }

  .focus-panel {
    padding: 28px;
  }
}
