﻿/* KIDOIR — layer 2: brand system, header, homepage, inquiry modal */

:root {
  --ink: #141414;
  --ink-2: #55524d;
  --ink-3: #8c8880;
  --line: #e3ded5;
  --line-soft: #efebe3;
  --bg: #f8f6f1;
  --alt: #f1ece3;
  --card: #ffffff;
  --accent: #c0181b;
  --accent-ink: #8e1214;
  --accent-soft: #f8e9e8;
  --muted: #a6813c;
  --radius: 0;
  --display: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink);
  letter-spacing: -.005em;
}
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.022em; color: var(--ink); }
a { color: inherit; }

/* ------------------------------- top bar -------------------------------- */

.topbar {
  background: #161616;
  color: rgba(255, 255, 255, .66);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 36px; }
.tb-markets { display: flex; gap: 20px; }
.tb-markets a { color: rgba(255, 255, 255, .66); transition: color .15s; }
.tb-markets a:hover { color: #fff; }
.tb-mail { color: rgba(255, 255, 255, .8); text-transform: none; letter-spacing: .01em; }
.tb-mail:hover { color: #fff; }

/* --------------------------------- brand -------------------------------- */

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; height: 26px; width: auto; }
.brand-lg img { height: 34px; }

/* -------------------------------- mega ---------------------------------- */

.header-inner { position: relative; }
.nav-item.has-mega { position: static; }

.has-mega .mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  width: auto;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px 30px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 34px;
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 60;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }

.mega-col h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.mega-col h4 a { color: var(--ink); }
.mega-col h4 a:hover { color: var(--accent); }
.mega-note {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-weight: 500;
}
.mega-sub { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.mega-sub a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 5px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mega-sub a:hover { color: var(--accent); border-color: var(--line); }

/* --------------------------------- hero --------------------------------- */

.hero-v3 {
  position: relative;
  padding: 64px 0 60px;
  background:
    radial-gradient(1100px 480px at 88% -12%, rgba(192, 24, 27, .07), transparent 62%),
    radial-gradient(700px 400px at 2% 108%, rgba(20, 20, 20, .05), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 18px;
}
.kicker::before { content: ''; width: 26px; height: 2px; background: var(--accent); }

.hero-title {
  font-size: clamp(32px, 4.1vw, 50px);
  line-height: 1.12;
  letter-spacing: -.028em;
  max-width: 22ch;
  margin: 0 0 20px;
  font-weight: 700;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-v3 .lead { font-size: 17px; line-height: 1.68; max-width: 50ch; color: var(--ink-2); }

.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.hero-facts { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.hero-facts > div { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.hero-facts span { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }

/* ----------------------------- placeholders ------------------------------ */

.ph3 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, #eeeadf 0 9px, #f5f2eb 9px 18px);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ph3 span {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a8a196;
  background: rgba(248, 246, 241, .92);
  padding: 5px 10px;
  font-weight: 500;
}
.ar-4x3 { aspect-ratio: 4 / 3; }
.ar-3x2 { aspect-ratio: 3 / 2; }
.ar-1x1 { aspect-ratio: 1 / 1; }
.ar-wide { aspect-ratio: 16 / 9; }

/* ------------------------------ section head ----------------------------- */

.sec-v3 { padding: 66px 0; }
.sec-v3.alt { background: var(--alt); }

.shead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.shead h2 { font-size: clamp(23px, 2.4vw, 30px); margin: 0 0 6px; letter-spacing: -.03em; }
.shead p { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 54ch; }
.shead .btn { flex: 0 0 auto; }

/* -------------------------------- buttons -------------------------------- */

.btn-lg { padding: 13px 26px; font-size: 15px; }

/* --------------------------- product categories -------------------------- */

.pcat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pcat {
  display: block;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.pcat:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 26px 40px -34px rgba(0, 0, 0, .4);
}
.pcat .ph3 { border: none; border-bottom: 1px solid var(--line); }
.pcat-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; }
.pcat-bar h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.pcat-bar .arrow { color: var(--accent); font-size: 16px; transition: transform .18s; }
.pcat:hover .arrow { transform: translateX(4px); }

.pcat-all { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 34px 30px; background: #161616; border: 1px solid #161616; }
.pcat-all h3 { color: #fff; font-size: 20px; margin: 0; }
.pcat-all p { color: rgba(255, 255, 255, .62); font-size: 13.5px; margin: 0; }

/* -------------------------------- solutions ------------------------------ */

.sol-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.sol { display: grid; grid-template-columns: 46% 54%; border: 1px solid var(--line); background: var(--card); }
.sol .ph3 { border: none; border-right: 1px solid var(--line); }
.sol-body { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.sol-body h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.sol-body p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.66; }
.sol-body .go { margin-top: auto; font-size: 13.5px; color: var(--accent); font-weight: 600; }

/* -------------------------------- projects ------------------------------- */

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case { border: 1px solid var(--line); background: var(--card); }
.case-body { padding: 20px 22px 22px; }
.case-tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.case-body h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.case-body p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------------------------------- about -------------------------------- */

.about-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.about-split h2 { font-size: clamp(23px, 2.4vw, 30px); margin: 0 0 16px; letter-spacing: -.03em; }
.about-split p { font-size: 15px; color: var(--ink-2); line-height: 1.75; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat-grid > div { background: var(--card); padding: 24px 22px; }
.stat-grid strong { display: block; font-size: 32px; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: 6px; }
.stat-grid span { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }

/* --------------------------------- markets ------------------------------- */

.mkt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mkt-card {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .18s, transform .18s;
}
.mkt-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.flags { display: flex; gap: 8px; align-items: center; }
.flags img {
  width: 40px;
  height: 27px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, .1);
  display: block;
}
.flags .flag-pair { display: flex; gap: 6px; }
.mkt-card h3 { margin: 0; font-size: 18px; font-weight: 600; }
.mkt-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.mkt-card li { position: relative; padding-left: 13px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.mkt-card li::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; background: var(--accent); }
.mkt-card li strong { font-weight: 600; color: var(--ink); }
.mkt-card .go { margin-top: auto; font-size: 13.5px; color: var(--accent); font-weight: 600; }

/* --------------------------------- tables -------------------------------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matrix, .ridx { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.matrix th, .matrix td, .ridx th, .ridx td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.matrix thead th, .ridx thead th {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
.matrix tbody tr:hover, .ridx tbody tr:hover { background: var(--alt); }
.matrix td:first-child, .ridx td:first-child { font-weight: 600; }
.ridx-link { color: inherit; border-bottom: 1px solid var(--line); }
.ridx-link:hover { color: var(--accent); border-color: var(--accent); }

/* ----------------------------------- faq --------------------------------- */

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: '\2013'; }
.faq p { margin: 12px 0 0; font-size: 15px; line-height: 1.72; color: var(--ink-2); max-width: 84ch; }

/* ------------------------------ inquiry modal ---------------------------- */

.qm {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.qm.is-open { display: flex; }
.qm-backdrop { position: absolute; inset: 0; background: rgba(14, 14, 14, .55); backdrop-filter: blur(3px); }
.qm-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--card);
  border-top: 3px solid var(--accent);
  padding: 34px 34px 30px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .6);
}
.qm-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
}
.qm-close:hover { color: var(--ink); }
.qm-kicker {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 8px;
}
.qm-panel h2 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.03em; }
.qm-sub { font-size: 14px; color: var(--ink-2); margin: 0 0 22px; }

.qm-form { display: grid; gap: 14px; }
[hidden] { display: none !important; }
.qm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qm-form .field { display: flex; flex-direction: column; gap: 6px; }
.qm-form label { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.qm-form input,
.qm-form select,
.qm-form textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 12px;
  width: 100%;
}
.qm-form input:focus,
.qm-form select:focus,
.qm-form textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.qm-form textarea { min-height: 96px; resize: vertical; }
.qm-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qm-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.qm-status { font-size: 13px; color: var(--ink-3); margin: 0; }
.qm-status a { color: var(--accent); text-decoration: underline; }
.qm-done { text-align: left; }
.qm-done h3 { font-size: 22px; margin: 0 0 10px; }
.qm-done p { font-size: 15px; color: var(--ink-2); }

body.qm-lock { overflow: hidden; }

/* ------------------------------- responsive ------------------------------ */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .pcat-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; gap: 34px; }
  .sol-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .topbar { display: none; }
  .nav { margin-left: 0; }
  .mkt { grid-template-columns: 1fr; }
  .hero-v3 { padding: 40px 0 36px; }
  .sec-v3 { padding: 44px 0; }
  .shead { align-items: flex-start; }
  .shead .btn { margin-top: 10px; }

  .has-mega .mega {
    position: static;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: auto;
    padding: 2px 0 12px;
    border: none;
    box-shadow: none;
    background: transparent;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .mega-col { padding: 6px 0 6px 14px; }
  .mega-col h4 { font-size: 14.5px; font-weight: 500; }
  .mega-note, .mega-sub { display: none; }
}

@media (max-width: 640px) {
  .hero-title { max-width: none; }
  .pcat-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .sol { grid-template-columns: 1fr; }
  .sol .ph3 { border-right: none; border-bottom: 1px solid var(--line); }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .qm-panel { padding: 26px 20px 22px; }
  .qm-row { grid-template-columns: 1fr; }
  .hero-facts { gap: 24px; }
}

/* -------------------------------- cta band ------------------------------- */

.cta-band { background: #161616; }
.cta-band .btn-primary { background: var(--accent); color: #fff; }
.cta-band .btn-primary:hover { background: var(--accent-ink); }
/* ------------------------------- social icons ---------------------------- */

.tb-right { display: flex; align-items: center; gap: 16px; }
.social { display: flex; align-items: center; gap: 10px; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid transparent;
  color: var(--ink-2);
  transition: color .15s, border-color .15s, background .15s;
}
.social a:hover { color: var(--accent); border-color: var(--accent); }
.social-top a { color: rgba(255, 255, 255, .72); }
.social-top a:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
.social-foot { margin-top: 18px; }
.social-foot a { width: 32px; height: 32px; border-color: var(--line); color: var(--ink-2); }
.social-foot a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

@media (max-width: 860px) {
  .tb-right { display: none; }
  .social-foot { margin-top: 16px; }
}