/* ==========================================================================
   Turkmen — site stylesheet
   One family (Plus Jakarta Sans, self-hosted), one accent (brand orange),
   paper / sand / ink surfaces. No framework.
   ========================================================================== */

/* ---------- Fonts ------------------------------------------------------- */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/PlusJakartaSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/PlusJakartaSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/PlusJakartaSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/PlusJakartaSans-Bold.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2"); }

/* ---------- Tokens ------------------------------------------------------ */
:root {
  --ink: #151515;
  --paper: #ffffff;
  --sand: #f4f2ee;

  --orange: #fb9804;
  --orange-deep: #de8300;
  --orange-soft: #fff1da;

  --text: #151515;
  --muted: #5d5d5d;
  --faint: #8d8d8d;
  --line: rgba(21, 21, 21, 0.12);
  --line-strong: rgba(21, 21, 21, 0.28);
  --surface: #ffffff;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --section: clamp(64px, 4vw + 40px, 120px);
  --header-h: 72px;

  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 14px;
}
@media (min-width: 720px)  { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

/* dark surfaces flip the neutrals; everything else stays the same */
.theme-ink {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.45);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.35);
  --surface: #1f1f1f;
  background: var(--ink);
  color: var(--text);
}

/* ---------- Base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--text); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 3px; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--tight { padding-block: calc(var(--section) * 0.7); }

/* ---------- Type -------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; font-weight: 800; color: var(--text); text-wrap: balance; }

h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 15ch;
}
h2 {
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 20ch;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34em;
  text-wrap: pretty;
}
.copy { color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.copy p { margin-bottom: 1.1em; }
.copy p:last-child { margin-bottom: 0; }

/* section heading block: h2 (+ lead) with consistent rhythm */
.section-head { margin-bottom: clamp(36px, 4vw, 56px); display: grid; gap: 18px; }
.section-head--split {
  display: grid;
  gap: 24px 64px;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .section-head--split .lead { max-width: 30em; }
}

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--orange); color: #151515; }
.btn--primary:hover { background: var(--orange-deep); }

.btn--ink { background: #151515; color: #fff; }
.btn--ink:hover { background: #2c2c2c; }

.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }

.btn--small { min-height: 44px; padding: 0 18px; font-size: 0.9rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 150px; height: auto; }

.site-nav { display: none; }
.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.is-active { color: var(--text); background: var(--sand); }

.header-tools { display: none; align-items: center; gap: 20px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.lang-switch a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--faint);
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="page"] { background: var(--ink); color: #fff; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.menu-btn .burger {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff;
}
.menu-btn .burger svg { width: 18px; height: 18px; }
.menu-btn .burger .x { display: none; }
.menu-btn[aria-expanded="true"] .burger .lines { display: none; }
.menu-btn[aria-expanded="true"] .burger .x { display: block; }

@media (min-width: 1000px) {
  .site-nav { display: block; }
  .header-tools { display: flex; }
  .menu-btn { display: none; }
}

/* mobile navigation panel */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  background: var(--paper);
  padding: 24px var(--gutter) 40px;
  display: none;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a.nav-link {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mobile-nav .mobile-nav-foot {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
body.nav-open { overflow: hidden; }

/* ---------- Hero -------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 96px) clamp(40px, 5vw, 72px);
}
.hero-inner { position: relative; z-index: 1; }

/* the brand lattice, drawn large — the one loud element on the page */
.hero-mark {
  position: absolute;
  z-index: 0;
  color: var(--orange);
  pointer-events: none;
  inset-inline-end: -14vw;
  top: -6%;
  width: min(78vw, 300px);
  opacity: 0.9;
}
.hero-mark svg { width: 100%; height: auto; }

.hero-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.hero-kicker img { height: 26px; width: auto; }

.hero h1 { margin-bottom: 26px; }
.hero .lead { margin-bottom: 36px; max-width: 30em; }
.hero .lead strong { color: var(--text); font-weight: 700; }

@media (min-width: 720px) {
  .hero-mark { width: min(46vw, 560px); inset-inline-end: -6vw; top: -8%; }
  .hero-inner { max-width: 62%; }
}
@media (min-width: 1100px) {
  .hero-mark { width: 620px; inset-inline-end: calc((100vw - var(--container)) / 2 - 80px); top: 4%; }
  .hero-inner { max-width: 60%; }
}

/* fade the mark out behind the text on narrow screens */
@media (max-width: 719px) {
  .hero-mark { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .hero-inner { padding-top: 120px; }
}

/* stats ledger under the hero */
.ledger {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ledger > div { padding: 22px 0; border-top: 1px solid var(--line); }
.ledger > div:first-child { border-top: 0; }
.ledger strong {
  display: block;
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.ledger span { color: var(--muted); font-size: 0.95rem; }
@media (min-width: 720px) {
  .ledger { grid-template-columns: repeat(3, 1fr); }
  .ledger > div { border-top: 0; border-inline-start: 1px solid var(--line); padding: 30px 32px; }
  .ledger > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
}

/* ---------- Two-column blocks ------------------------------------------ */
.split { display: grid; gap: 40px; align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .split--wide-text { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .split--media-first > .split-media { order: -1; }
}

.split-copy h2 { margin-bottom: 22px; }
.split-copy .lead { margin-bottom: 18px; }
.split-copy .actions { margin-top: 32px; }

/* soft framed panel for images that carry their own composition */
.media-panel {
  background: var(--sand);
  border-radius: var(--radius-l);
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  place-items: center;
}
.media-panel img { width: 100%; max-width: 520px; }

.map-panel {
  background: var(--sand);
  border-radius: var(--radius-l);
  padding: clamp(16px, 3vw, 40px);
}
.map-panel img { width: 100%; }

/* ---------- Feature grids (rule above each item) ----------------------- */
.feature-grid {
  display: grid;
  gap: 0;
}
.feature-grid article {
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  align-content: start;
}
.feature-grid article p { color: var(--muted); margin: 0; text-wrap: pretty; }
.feature-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius-m);
  background: var(--orange-soft);
  color: var(--orange-deep);
  margin-bottom: 6px;
}
.theme-ink .feature-icon { background: rgba(251, 152, 4, 0.14); color: var(--orange); }
.feature-icon svg { width: 24px; height: 24px; }

@media (min-width: 760px) {
  .feature-grid { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 0 48px; }
  .feature-grid article { padding: 32px 0 8px; }
}
.feature-grid--2 { --cols: 2; }
@media (min-width: 760px) { .feature-grid--2 article { padding-inline-end: 12%; } }

/* ---------- VisualMH ---------------------------------------------------- */
.visualmh-media img { width: 100%; }

/* ---------- Call to action --------------------------------------------- */
.cta { position: relative; overflow: hidden; }
.cta .split { align-items: end; }
.cta-copy { padding-block: var(--section); }
.cta-copy h2 { margin-bottom: 22px; max-width: 16ch; }
.cta-copy .copy { margin-bottom: 32px; }
.cta-media { display: none; }
@media (min-width: 900px) {
  .cta-media { display: block; align-self: end; margin-top: 48px; }
  .cta-media img { width: min(100%, 420px); margin-inline: auto; }
}

/* ---------- Contact form ------------------------------------------------ */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
}
.contact-aside h2 { margin-bottom: 18px; }
.contact-aside .copy { margin-bottom: 28px; }
.contact-aside dl { margin: 0; display: grid; gap: 6px; }
.contact-aside dt { font-size: 0.85rem; font-weight: 600; color: var(--faint); }
.contact-aside dd { margin: 0 0 14px; font-weight: 600; }

.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(24px, 3vw, 40px);
}
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 13px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(251, 152, 4, 0.22);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #c62828; }
.field-error { font-size: 0.85rem; color: #c62828; display: none; }
.field.is-invalid .field-error { display: block; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-size: 0.85rem; color: var(--faint); }
.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  font-size: 0.95rem;
  display: none;
}
.form-status.is-success { display: block; background: #e8f5e9; color: #1b5e20; }
.form-status.is-error { display: block; background: #fdecea; color: #b71c1c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ------------------------------------------------------ */
.site-footer { padding-block: 72px 36px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 0.7fr)); gap: 48px; } }
.footer-brand img { width: 180px; margin-bottom: 20px; }
.footer-brand p { color: var(--muted); max-width: 38ch; }
.footer-col h3 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; color: var(--faint); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--faint);
  font-size: 0.9rem;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
