/* ================================================================
   SUFA — Special Forces Academy · redesign
   Palette: charcoal field-dark / logo olive / desert sand
   Type: Staatliches (display stencil-poster) + Barlow (body)
   ================================================================ */
:root {
  --ink: #12140d;
  --ink-2: #1a1d13;
  --panel: #22261a;
  --olive: #3c4a12;
  --olive-bright: #7e9a2d;
  --sand: #d9cfae;
  --sand-dim: #a89f82;
  --paper: #efeadb;
  --line: rgba(217, 207, 174, .18);
  --bar-bg: rgba(18, 20, 13, .92);
  --head-overlay: rgba(18, 20, 13, .78);
  --glow: rgba(126, 154, 45, .10);
  --display: "Staatliches", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", sans-serif;
}

/* light theme */
:root[data-theme="light"] {
  --ink: #f2eee1;
  --ink-2: #e9e3cf;
  --panel: #faf7ec;
  --olive-bright: #5c7420;
  --sand: #3a3d2c;
  --sand-dim: #6f7058;
  --paper: #1c2012;
  --line: rgba(40, 45, 20, .22);
  --bar-bg: rgba(242, 238, 225, .92);
  --head-overlay: rgba(242, 238, 225, .82);
  --glow: rgba(126, 154, 45, .14);
}

/* hero content always sits on the dark photo — keep dark-theme tokens */
.hero-inner, .hero-media {
  --paper: #efeadb;
  --sand: #d9cfae;
  --sand-dim: #a89f82;
  --line: rgba(217, 207, 174, .18);
  --olive-bright: #7e9a2d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--sand);
  background:
    radial-gradient(1200px 500px at 80% -100px, var(--glow), transparent 60%),
    var(--ink);
  transition: background .3s ease, color .3s ease;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.05;
  color: var(--paper);
}

a { color: var(--olive-bright); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--olive-bright); color: var(--ink); padding: .5em 1em; z-index: 99;
}
.skip:focus { left: 0; }

.center { text-align: center; margin-top: 2.5rem; }

/* ---------------- buttons: stencil chips with clipped corners */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .14em;
  text-decoration: none;
  padding: .65em 1.9em;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid {
  background: var(--olive-bright);
  color: var(--ink);
  border: none;
}
.btn-solid:hover { background: var(--paper); }
.btn-line {
  color: var(--sand);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--sand-dim);
}
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--olive-bright); color: var(--olive-bright); }

/* ---------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: .7rem clamp(1rem, 4vw, 3rem);
  background: var(--bar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}
.brand img {
  height: 46px; width: auto;
  background: #efeadb;
  padding: 5px 12px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.topbar nav { margin-left: auto; }
.topbar ul { display: flex; gap: 2.2rem; list-style: none; }
.topbar nav a {
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: .16em;
  color: var(--sand);
  text-decoration: none;
  padding: .3em 0;
  border-bottom: 2px solid transparent;
}
.topbar nav a:hover, .topbar nav a.active { color: var(--olive-bright); border-bottom-color: var(--olive-bright); }
.nav-toggle { display: none; }
.theme-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--sand);
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: color .2s ease, border-color .2s ease;
}
.theme-btn:hover { color: var(--olive-bright); border-color: var(--olive-bright); }
.theme-btn .ic-moon { display: none; }
:root[data-theme="light"] .theme-btn .ic-moon { display: block; }
:root[data-theme="light"] .theme-btn .ic-sun { display: none; }

/* ---------------- hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: right top;
  filter: saturate(.85) contrast(1.05);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7, 8, 5, .99) 30%, rgba(7, 8, 5, .82) 55%, rgba(7, 8, 5, .45));
}
.hero-inner {
  position: relative;
  padding: 4rem clamp(1rem, 6vw, 5rem);
  max-width: 780px;
}
.hero-kicker {
  font-family: var(--display);
  letter-spacing: .5em;
  font-size: clamp(.9rem, 1.6vw, 1.2rem);
  color: var(--olive-bright);
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.hero h1 {
  font-size: clamp(5rem, 16vw, 11rem);
  letter-spacing: .08em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .6);
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 34em;
  color: var(--paper);
  margin: 1rem 0 0;
}
.hero-sub2 {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  max-width: 44em;
  color: var(--sand-dim);
  margin: .9rem 0 1.4rem;
}
.hero-facts {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: .7rem;
  margin: 0 0 2rem;
}
.hero-facts li {
  font-family: var(--display);
  letter-spacing: .12em;
  font-size: .95rem;
  color: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--olive-bright);
  background: rgba(18, 20, 13, .55);
  padding: .35em .9em;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(transparent, var(--ink));
}
.hero-inner > * { opacity: 0; transform: translateY(18px); animation: rise .7s ease forwards; }
.hero-inner > :nth-child(2) { animation-delay: .1s; }
.hero-inner > :nth-child(3) { animation-delay: .2s; }
.hero-inner > :nth-child(4) { animation-delay: .3s; }
.hero-inner > :nth-child(5) { animation-delay: .4s; }
.hero-inner > :nth-child(6) { animation-delay: .5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------------- section heads */
section { padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 6vw, 5rem); }
.sect-head { margin-bottom: 2.8rem; }
.sect-head h2 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}
.kicker {
  display: block;
  margin-top: .2rem;
  font-family: var(--display);
  letter-spacing: .4em;
  color: var(--olive-bright);
  text-transform: uppercase;
  font-size: .95rem;
}

/* ---------------- about */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-text { font-size: 1.13rem; color: var(--sand); max-width: 62ch; }
.about-photo { position: relative; margin: 0; }
.about-photo > img:first-child {
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.about-emblem {
  position: absolute;
  right: -18px; bottom: -26px;
  width: 120px;
  background: #efeadb;
  padding: .8rem;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transform: rotate(-3deg);
}

/* ---------------- cards */
.sect-dark {
  background: linear-gradient(var(--ink-2), var(--ink-2)) padding-box;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.6rem;
}

/* ---------------- carousel (home activities) */
.car-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}
.car-head .sect-head { margin-bottom: 1.2rem; }
.car-nav { display: flex; gap: .6rem; margin-bottom: 1.2rem; }
.car-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 24px 4px;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-card {
  flex: 0 0 min(360px, 82vw);
  scroll-snap-align: start;
}
.card-img { position: relative; }
.card-num {
  position: absolute; top: 10px; left: 14px;
  font-family: var(--display);
  font-size: 2.2rem;
  color: #efeadb;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}
.meta-sm { font-size: .85rem; }
.car-btn {
  width: 46px; height: 46px;
  font-size: 1.8rem; line-height: 1;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--olive-bright);
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background .2s ease, color .2s ease;
}
.car-btn:hover { background: var(--olive-bright); color: var(--ink); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .2s ease, border-color .2s ease;
}
.card::before, .card::after {
  content: "";
  position: absolute; width: 18px; height: 18px; z-index: 2;
  border: 2px solid var(--olive-bright);
}
.card::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.card::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.card:hover { transform: translateY(-6px); border-color: var(--olive-bright); }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; filter: saturate(.9); }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1.6rem 1.5rem 1.9rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.card-body h3 { font-size: 1.7rem; letter-spacing: .1em; }
.card-body p { color: var(--sand-dim); font-size: .98rem; }
.card-body .btn { align-self: flex-start; margin-top: auto; }
.read-more {
  align-self: flex-start;
  background: none; border: none; padding: 0;
  font-family: var(--body);
  font-size: .92rem; font-weight: 600;
  color: var(--olive-bright);
  border-bottom: 1px dashed var(--olive-bright);
  cursor: pointer;
}
.read-more:hover { color: var(--paper); border-color: var(--paper); }

/* ---------------- gallery strip (home) */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.strip-item { overflow: hidden; aspect-ratio: 1; }
.strip-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); transition: filter .3s ease, transform .4s ease; }
.strip-item:hover img { filter: none; transform: scale(1.05); }

/* ---------------- contact / forms */
.form { max-width: 720px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.form label {
  display: block;
  font-family: var(--display);
  letter-spacing: .18em;
  font-size: .95rem;
  color: var(--olive-bright);
  margin-bottom: 1.2rem;
}
.form input, .form textarea, .form select {
  display: block;
  width: 100%;
  margin-top: .45em;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  padding: .75em .9em;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--olive-bright);
  box-shadow: 0 0 0 3px rgba(126, 154, 45, .18);
}
.form-ok { display: none; color: var(--olive-bright); margin-top: 1rem; font-weight: 600; }
.form-err { color: #c0392b; margin-top: 1rem; font-weight: 600; }
.form.sent .form-ok { display: block; }
.form.sent button { display: none; }

/* ---------------- page heads (inner pages) */
.page-head {
  position: relative;
  padding: clamp(5rem, 12vw, 8rem) clamp(1rem, 6vw, 5rem) clamp(2.5rem, 6vw, 4rem);
  background:
    linear-gradient(var(--head-overlay), var(--ink)),
    var(--bg, linear-gradient(var(--ink-2), var(--ink-2))) center / cover;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(3rem, 9vw, 6rem); }
.page-head-sm { padding-top: clamp(3.5rem, 8vw, 5rem); }

/* ---------------- activities rows */
.rows { display: flex; flex-direction: column; gap: clamp(2.5rem, 6vw, 4.5rem); }
.row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.row-flip .row-img { order: 2; }
.row-img { position: relative; }
.row-img img {
  aspect-ratio: 3 / 2; width: 100%; object-fit: cover;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}
.row-num {
  position: absolute; top: -18px; left: -8px;
  font-family: var(--display);
  font-size: 3.4rem;
  color: var(--olive-bright);
  text-shadow: 0 3px 14px rgba(0, 0, 0, .8);
}
.row-flip .row-num { left: auto; right: -8px; }
.row-body h3 { font-size: 2.1rem; margin-bottom: .7rem; }
.row-body p { color: var(--sand-dim); margin-bottom: 1rem; }
.meta {
  font-family: var(--display);
  letter-spacing: .12em;
  color: var(--paper);
  border-left: 3px solid var(--olive-bright);
  padding-left: .8em;
}
.row-body .btn { margin-top: .4rem; }

/* ---------------- package pages */
.pkg-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pkg-text p { margin-bottom: 1.2rem; color: var(--sand); max-width: 68ch; }
.meta-big { font-size: 1.25rem; margin: 1.8rem 0; }
.pkg-cta {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--olive-bright);
  padding: 1.8rem;
  margin-top: 2rem;
}
.signup-title { font-size: 2rem; letter-spacing: .16em; }
.pkg-cta-name { color: var(--sand-dim); margin: .3rem 0 1.2rem; }
.pkg-side { position: sticky; top: 90px; }
.pkg-side > img {
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.pkg-nav { margin-top: 1.6rem; border: 1px solid var(--line); padding: 1.3rem 1.4rem; }
.pkg-nav h4 { letter-spacing: .18em; margin-bottom: .8rem; color: var(--olive-bright); }
.pkg-nav a {
  display: block;
  color: var(--sand);
  text-decoration: none;
  padding: .45em 0;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}
.pkg-nav a:last-child { border-bottom: 0; }
.pkg-nav a:hover { color: var(--olive-bright); padding-left: .4em; transition: all .15s ease; }

/* ---------------- gallery page */
.g-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 240px;
  gap: .9rem;
}
.g-item { overflow: hidden; position: relative; }
.g-item:nth-child(5n + 1) { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform .45s ease, filter .3s ease; }
.g-item:hover img { transform: scale(1.05); filter: saturate(1.1); }

/* ---------------- Q&A */
.qa { max-width: 780px; }
.qa details {
  border: 1px solid var(--line);
  border-left: 3px solid var(--olive-bright);
  background: var(--panel);
  margin-bottom: 1rem;
}
.qa summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: .12em;
  color: var(--paper);
  padding: 1rem 1.3rem;
  list-style: none;
  position: relative;
}
.qa summary::after {
  content: "+";
  position: absolute; right: 1.2rem; top: 50%;
  transform: translateY(-50%);
  color: var(--olive-bright);
  font-size: 1.5rem;
}
.qa details[open] summary::after { content: "–"; }
.qa details p { padding: 0 1.3rem 1.2rem; color: var(--sand-dim); }
.qa-note { margin-top: 1.6rem; color: var(--sand); font-style: italic; }

/* ---------------- footer */
.footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: 3rem clamp(1rem, 6vw, 5rem) 2rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem;
}
.footer-logo {
  height: 40px; width: auto;
  background: #efeadb; padding: 4px 10px;
}
.footer-nav, .social { display: flex; gap: 1.8rem; list-style: none; }
.footer a {
  color: var(--sand-dim);
  text-decoration: none;
  font-family: var(--display);
  letter-spacing: .14em;
  font-size: .95rem;
}
.footer a:hover { color: var(--olive-bright); }
.social { margin-left: auto; }
.footer-note { margin-top: 2rem; color: var(--sand-dim); font-size: .85rem; letter-spacing: .1em; }

/* ---------------- talk to us */
.talk { position: fixed; right: 22px; bottom: 22px; z-index: 60; }
.talk-btn {
  display: flex; align-items: center; gap: .55em;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .12em;
  color: var(--ink);
  background: var(--olive-bright);
  border: none;
  padding: .7em 1.4em;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  transition: transform .15s ease, background .2s ease;
}
.talk-btn:hover { transform: translateY(-2px); background: var(--paper); }
.talk-panel {
  position: absolute;
  right: 0; bottom: calc(100% + 14px);
  width: min(320px, calc(100vw - 44px));
  background: var(--panel);
  border: 1px solid var(--olive-bright);
  padding: 1.6rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  animation: rise .3s ease;
}
.talk-title {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: .06em;
  color: var(--paper);
  margin-bottom: .3rem;
}
.talk-sub { color: var(--sand-dim); margin-bottom: 1.1rem; }
.talk-close {
  position: absolute; top: 6px; right: 10px;
  background: none; border: none;
  color: var(--sand-dim);
  font-size: 1.5rem;
  cursor: pointer;
}
.talk-close:hover { color: var(--paper); }

/* ---------------- responsive */
@media (max-width: 900px) {
  .about-grid, .pkg-grid, .row { grid-template-columns: 1fr; }
  .about-emblem { right: 8px; bottom: -20px; width: 96px; }
  .row-flip .row-img { order: 0; }
  .pkg-side { position: static; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .sect-head h2::after { display: none; }
}
@media (max-width: 760px) {
  .topbar nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem 1.5rem;
  }
  body.nav-open .topbar nav { display: block; }
  .topbar ul { flex-direction: column; gap: .6rem; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    margin-left: auto;
    background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav-toggle span { width: 26px; height: 2.5px; background: var(--sand); }
  .hero { min-height: 70vh; }
}

/* Legal pages */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { margin: 2.4rem 0 .7rem; font-size: 1.4rem; }
.legal p { margin: 0 0 1rem; line-height: 1.75; }
.legal-date { color: var(--sand); font-style: italic; }
.footer-note a { color: inherit; text-decoration: underline; }
