/* ============================================================
   KANASA TECHNOLOGY — Shared design tokens
   ------------------------------------------------------------
   Edit the values in :root to re-theme the whole site.
   The admin portal / Claude Code should only need to touch
   --primary-color and --secondary-color for brand changes.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@400;500;600;700;800&family=Saira:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* ---- BRAND (editable) ---------------------------------- */
  --primary-color:        #ff3b30;   /* Kanasa red */
  --primary-600:          #e02d23;   /* pressed / deeper */
  --primary-400:          #ff5e55;   /* hover / lighter */
  --primary-tint:         rgba(255,59,48,0.12);
  --secondary-color:      #e9eef5;   /* cool near-white accent */

  /* ---- SURFACES (dark studio) ---------------------------- */
  --bg-base:   #08090b;
  --bg-900:    #0b0c0f;
  --bg-800:    #111317;
  --bg-700:    #181b21;
  --bg-600:    #20242c;
  --line:      #2a2f38;
  --line-soft: #1b1f26;

  /* ---- TEXT ---------------------------------------------- */
  --text:       #f3f5f8;
  --text-muted: #9aa1ad;
  --text-dim:   #646b77;

  /* ---- TYPE --------------------------------------------- */
  --font-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Saira', system-ui, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  /* ---- METRICS ------------------------------------------ */
  --maxw: 1320px;
  --radius: 4px;
  --gutter: clamp(20px, 4vw, 64px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---------- shared atoms ---------- */
.kx-wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.kx-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kx-eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--primary-color);
}

.kx-btn {
  --b: var(--primary-color);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 15px;
  padding: 14px 26px;
  border: 1px solid var(--b);
  background: var(--b);
  color: #fff;
  border-radius: var(--radius);
  transition: background .18s, border-color .18s, transform .18s;
}
.kx-btn:hover { background: var(--primary-400); border-color: var(--primary-400); }
.kx-btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.kx-btn--ghost:hover { border-color: var(--primary-color); color: #fff; background: transparent; }
.kx-btn svg { width: 16px; height: 16px; }

/* ---------- labelled image placeholder ---------- */
.kx-ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 9px),
    radial-gradient(120% 120% at 50% 0%, #15171c 0%, #0c0d10 100%);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--text-dim);
}
.kx-ph::before, .kx-ph::after { /* corner ticks */
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 2px solid var(--primary-color); opacity: .85;
}
.kx-ph::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.kx-ph::after  { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.kx-ph__label {
  text-align: center; padding: 18px; max-width: 80%;
}
.kx-ph__label .ic { width: 30px; height: 30px; margin: 0 auto 12px; opacity: .55; }
.kx-ph__label .t {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-muted);
}
.kx-ph__label .d {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim);
  margin-top: 6px; letter-spacing: .08em;
}

/* ---------- mobile nav drawer (shared) ---------- */
.kx-burger {
  display: none; width: 44px; height: 40px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); flex: 0 0 auto;
}
.kx-burger svg { width: 21px; height: 21px; }
.kx-burger:hover { border-color: var(--primary-color); }

.kx-scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 90;
}
.kx-scrim.is-open { opacity: 1; visibility: visible; }

.kx-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(84vw, 350px);
  background: var(--bg-800); border-right: 1px solid var(--line);
  transform: translateX(-100%); transition: transform .34s cubic-bezier(.4,0,.2,1);
  z-index: 100; display: flex; flex-direction: column; padding: 20px; overflow-y: auto;
}
.kx-drawer.is-open { transform: none; box-shadow: 24px 0 60px rgba(0,0,0,.5); }
.kx-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.kx-drawer__brand { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.kx-drawer__brand .mk { width: 9px; height: 9px; background: var(--primary-color); }
.kx-drawer__brand b { color: var(--primary-color); }
.kx-drawer__close { width: 38px; height: 38px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.kx-drawer__close svg { width: 18px; height: 18px; }
.kx-drawer__close:hover { border-color: var(--primary-color); color: var(--primary-color); }
.kx-drawer__nav { display: flex; flex-direction: column; }
.kx-drawer__nav a {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  font-size: 19px; padding: 15px 8px; border-bottom: 1px solid var(--line-soft); color: var(--text);
  display: flex; justify-content: space-between; align-items: center; transition: color .15s, padding .15s;
}
.kx-drawer__nav a:hover { color: var(--primary-color); padding-left: 14px; }
.kx-drawer__nav a svg { width: 16px; height: 16px; color: var(--text-dim); }
.kx-drawer__foot { margin-top: auto; padding-top: 22px; }
.kx-drawer__lang { display: flex; gap: 8px; margin-bottom: 16px; }
.kx-drawer__lang button { flex: 1; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; padding: 11px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-muted); }
.kx-drawer__lang button[aria-pressed="true"] { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.kx-drawer__contact { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--text-dim); line-height: 1.9; }
.kx-drawer__contact a { color: var(--text-muted); }

body.kx-noscroll { overflow: hidden; }

@media (max-width: 980px) { .kx-burger { display: flex; } }

/* ---------- header search overlay ---------- */
.kx-search {
  position: fixed; inset: 0; z-index: 120; display: none;
}
.kx-search.is-open { display: block; }
.kx-search__backdrop { position: absolute; inset: 0; background: rgba(4,5,7,.86); backdrop-filter: blur(6px); }
.kx-search__bar {
  position: absolute; left: 50%; top: 22vh; transform: translateX(-50%);
  width: min(680px, 92vw); display: flex; align-items: center; gap: 12px;
  background: var(--bg-800); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 10px 10px 18px; box-shadow: 0 30px 80px rgba(0,0,0,.55);
  animation: kxSearchIn .22s cubic-bezier(.4,0,.2,1);
}
@keyframes kxSearchIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.kx-search__bar .mag { width: 22px; height: 22px; color: var(--text-dim); flex: 0 0 auto; }
.kx-search__bar input {
  flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(18px, 2.4vw, 24px); letter-spacing: .01em; color: var(--text);
  background: transparent; border: 0; outline: none; padding: 6px 0;
}
.kx-search__go {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  font-size: 14px; padding: 11px 20px; border: 1px solid var(--primary-color);
  background: var(--primary-color); color: #fff; border-radius: var(--radius); flex: 0 0 auto;
}
.kx-search__go:hover { background: var(--primary-400); border-color: var(--primary-400); }
.kx-search__close {
  width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-muted);
}
.kx-search__close:hover { border-color: var(--primary-color); color: var(--primary-color); }
.kx-search__close svg { width: 18px; height: 18px; }
.kx-search__hint {
  position: absolute; left: 50%; top: calc(22vh + 78px); transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); white-space: nowrap;
}
@media (max-width: 560px){
  .kx-search__go { padding: 11px 14px; font-size: 13px; }
  .kx-search__bar { top: 16vh; }
  .kx-search__hint { top: calc(16vh + 78px); }
}

/* ---------- cookie consent banner ---------- */
.kx-cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  transform: translateY(120%); transition: transform .4s cubic-bezier(.4,0,.2,1);
  padding: 0 var(--gutter) clamp(14px, 2vw, 22px);
  pointer-events: none;
}
.kx-cookie.is-on { transform: none; pointer-events: auto; }
.kx-cookie__in {
  max-width: var(--maxw); margin-inline: auto;
  background: var(--bg-800); border: 1px solid var(--line); border-left: 2px solid var(--primary-color);
  border-radius: 8px; box-shadow: 0 18px 50px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 16px 20px; flex-wrap: wrap;
}
.kx-cookie__txt { font-size: 14px; color: var(--text-muted); max-width: 64ch; }
.kx-cookie__txt a { color: var(--primary-color); }
.kx-cookie__txt a:hover { text-decoration: underline; }
.kx-cookie__btns { display: flex; gap: 10px; flex: 0 0 auto; }
.kx-cookie__btns .kx-btn { padding: 11px 22px; font-size: 13.5px; }
@media (max-width: 600px){
  .kx-cookie__in { flex-direction: column; align-items: stretch; }
  .kx-cookie__btns { justify-content: flex-end; }
}

/* ---------- bilingual helper ----------
   Elements carry data-en / data-id text; site.js swaps them.
   Default (no JS) shows EN via the data-en already in the DOM. */
[data-lang-hide] { display: none !important; }

::selection { background: var(--primary-color); color: #fff; }

/* footer legal links (shared) */
.ft-legal { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.ft-legal a { color: inherit; }
.ft-legal a:hover { color: var(--primary-color); }

/* scrollbar */
* { scrollbar-color: var(--bg-600) var(--bg-900); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-900); }
::-webkit-scrollbar-thumb { background: var(--bg-600); border-radius: 8px; border: 3px solid var(--bg-900); }
