:root {
  --red: #e31e26;
  --orange: #f47721;
  --ink: #1c1412;
  --muted: #5e554f;
  --cream: #f7f1ea;
  --paper: #fffdfb;
  --line: #eadfd4;
  --shadow: 0 18px 40px rgba(60, 24, 12, 0.08);
  --radius: 22px;
  --header: 76px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(244, 119, 33, 0.16), transparent 60%),
    radial-gradient(700px 380px at -10% 8%, rgba(227, 30, 38, 0.1), transparent 55%),
    var(--cream);
  line-height: 1.6;
}

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

a { color: var(--red); }

main {
  flex: 1 0 auto;
  padding-bottom: 20px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img:first-child { width: 38px; height: auto; }
.wordmark { width: 108px; height: auto; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

#site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  padding: 8px 12px;
  border-radius: 999px;
}

#site-nav a:hover,
#site-nav a[aria-current="page"] {
  background: #fff;
  color: var(--red);
  box-shadow: inset 0 0 0 1px var(--line);
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 28px 0 10px;
}

.banner {
  position: relative;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f3d2b0;
}

.banner > img {
  width: 100%;
  height: auto;
}

.banner-lockup {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px;
  text-align: center;
  pointer-events: none;
}

.banner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(520px, 58%);
  animation: banner-float 3.6s ease-in-out infinite;
}

.banner-icon {
  width: min(96px, 14vw);
  height: auto;
}

.banner-word {
  width: 100%;
  height: auto;
  opacity: 0.9;
}

@keyframes banner-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@media (prefers-reduced-motion: reduce) {
  .banner-logo,
  .banner-lockup p { animation: none; }
}

.banner-lockup p {
  margin: 4px 0 0;
  color: #fff;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 18px rgba(40, 12, 4, 0.45);
  animation: banner-float-down 3.6s ease-in-out infinite;
}

@keyframes banner-float-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(18px); }
}

.intro {
  margin-top: 28px;
}

.intro-card {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 36px;
  align-items: center;
}

.qr-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  width: min(180px, 100%);
  margin-inline: auto;
  text-align: center;
}

.qr-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.qr-panel a {
  display: block;
  width: 100%;
}

.qr-panel img {
  width: 100%;
  height: auto;
  background: #fff;
}

.qr-panel > img {
  border: 1px solid #d5ccc4;
  border-radius: 10px;
}

.qr-panel .play-badge {
  width: 100%;
  height: auto;
  background: transparent;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 600;
}

h1 { margin: 0 0 12px; font-size: clamp(2.2rem, 4vw, 3.5rem); }
h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { margin: 0 0 8px; font-size: 1.25rem; }

.pashto {
  font-family: "Noto Naskh Arabic", "Segoe UI", serif;
  font-weight: 600;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.play-badge { height: 58px; width: auto; }
.play-badge:hover { transform: translateY(-2px); }

.qr-panel .play-badge {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

.qr {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qr img {
  width: 92px;
  height: 92px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
}

.qr span {
  max-width: 9rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.section { padding: 54px 0; }

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

.card h3 { margin-top: 4px; }
.card p { margin: 0; color: var(--muted); }

.mark {
  width: 42px;
  height: auto;
  margin-bottom: 12px;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.services span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 500;
}

.page-head {
  padding: 42px 0 8px;
}

.page-head p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}

.cert-layout {
  display: grid;
  grid-template-columns: 1fr min(260px, 32%);
  gap: 32px;
  align-items: center;
}

.certificate {
  display: block;
  justify-self: end;
  width: 100%;
  max-width: 260px;
  background: transparent;
}

.stack {
  display: grid;
  gap: 22px;
}

.certificate img {
  width: 100%;
  border-radius: 0;
}

.note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.team {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
}

.portrait {
  width: 220px;
  height: 260px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 20px;
}

.meta { color: var(--muted); margin: 0 0 10px; }

.map-frame {
  border: 0;
  width: 100%;
  height: 420px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  margin-top: 22px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list strong { display: block; }
.contact-list a { font-weight: 600; text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 999px;
}

.legal h2 { margin-top: 32px; font-size: 1.45rem; }
.legal h3 { margin-top: 22px; }
.legal p, .legal li { color: #3d342f; }
.legal ul, .legal ol { padding-left: 1.2rem; }
.updated { color: var(--muted); margin-top: 0; }

.callout {
  background: #fff6f2;
  border-left: 4px solid var(--red);
  padding: 14px 16px;
  border-radius: 10px;
}

.site-footer {
  margin-top: auto;
  background: #1c1412;
  color: #f6ece6;
}

.footer-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 22px 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-brand img:first-child { width: 34px; }
.footer-brand .wordmark { width: 96px; filter: none; }

.site-footer p { margin: 0; color: #d9cfc8; }

.footer-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer-play {
  display: inline-block;
}

.footer-play img {
  height: 48px;
  width: auto;
}

.footer-play:hover img {
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-content: start;
  justify-content: flex-end;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover { color: #ffc29a; }

.legal-line {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
  font-size: 0.88rem;
  color: #cbbfb6;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  #site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(var(--header) - 6px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  #site-nav.open { display: flex; }

  .intro-card,
  .cards,
  .split,
  .team,
  .contact-grid,
  .footer-wrap,
  .cert-layout {
    grid-template-columns: 1fr;
  }

  .intro { margin-top: 18px; }
  .footer-links,
  .footer-side { justify-content: flex-start; align-items: flex-start; }
  .portrait { width: 180px; height: 210px; }
  .map-frame { height: 300px; }
}

@media (max-width: 560px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .panel { padding: 22px; }
  .banner { border-radius: 18px; }
}
