/* MEKALERUN — corporate web prototype
   Colors: PANT 7540 C #495053 dark gray · PANT 5415 C #5F849C steel blue
   Type: Saira
*/

:root {
  --ink: #1c2022;
  --ink-2: #495053;        /* corporate dark */
  --ink-3: #6e767a;
  --ink-4: #a8aeb1;
  --line: #e2e4e6;
  --line-2: #d2d6d8;
  --paper: #ffffff;
  --paper-2: #f4f5f6;
  --paper-3: #ebedee;
  --steel: #5F849C;        /* corporate blue */
  --steel-2: #4a6e85;
  --steel-soft: #e3ecf1;
  --steel-tint: #f1f6f9;
  --accent: var(--steel);
  --grid-gap: 24px;
  --shell-pad: clamp(20px, 4vw, 56px);
  --shell-max: 1480px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Saira', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "tnum";
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

/* Type scale -- industrial, tight */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; background: var(--steel);
  vertical-align: middle; margin-right: 10px; transform: translateY(-1px);
}

.h-display {
  font-weight: 800;
  font-size: clamp(48px, 6.4vw, 112px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  text-transform: uppercase;
  margin: 0;
}
.h1 {
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}
.h2 {
  font-weight: 700;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}
.h3 {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  margin: 0;
}

/* Always leave room between a big heading and following copy */
.h-display + .lede,
.h1 + .lede,
.h2 + .lede { margin-top: 36px; }
.lede {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink-2);
  max-width: 60ch;
}
.body { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.small { font-size: 13px; color: var(--ink-3); }
.mono {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: 0.04em;
}

.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--shell-pad);
  padding-right: var(--shell-pad);
}

/* Section frame */
.section {
  padding: clamp(64px, 9vw, 140px) 0;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .meta { padding-top: 6px; }
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
}

/* Top nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
.nav-inner {
  height: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
  display: flex; align-items: center; gap: 40px;
}
.nav-logo {
  display: flex; align-items: center; gap: 0; height: 44px;
}
.nav-logo img { height: 28px; width: auto; }
.nav-menu {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto;
}
.nav-item {
  position: relative;
  padding: 26px 14px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  transition: color 0.18s;
}
.nav-item:hover, .nav-item.active { color: var(--steel); }
.nav-item.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 2px; background: var(--steel);
}
.nav-item .chev { display: inline-block; margin-left: 6px; font-size: 9px; transform: translateY(-1px); }
.nav-linkedin { transition: color 0.18s; }
.nav-linkedin:hover { color: var(--steel); }

.nav-lang {
  display: flex; align-items: center; gap: 0;
  border-left: 1px solid var(--line);
  padding-left: 18px; margin-left: 12px;
}
.nav-lang button {
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.nav-lang button.active { color: var(--steel); }
.nav-lang button:hover { color: var(--ink-2); }
.nav-lang span { color: var(--line-2); font-size: 12px; }

.megamenu {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 36px -22px rgba(28,32,34,0.18);
  padding: 40px 0 48px;
}
.megamenu-grid {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
  display: grid;
  grid-template-columns: 240px repeat(4, 1fr);
  gap: 40px;
}
.megamenu-col h4 {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-4); margin: 0 0 16px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.megamenu-col ul { list-style: none; padding: 0; margin: 0; }
.megamenu-col li { margin-bottom: 10px; }
.megamenu-col a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  display: inline-block; padding: 2px 0;
  border-bottom: 1px solid transparent;
}
.megamenu-col a:hover { color: var(--steel); border-bottom-color: var(--steel); }
.megamenu-feature {
  background: var(--ink-2); color: white; padding: 24px; position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 200px;
}
.megamenu-feature .mono { color: var(--steel); font-size: 11px; }
.megamenu-feature h3 { color: white; font-size: 24px; line-height: 1; text-transform: uppercase; font-weight: 800; }
.megamenu-feature .arrow { font-size: 22px; }

/* Mobile menu */
.nav-burger { display: none; }
@media (max-width: 1100px) {
  .nav-menu { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    padding: 8px;
  }
  .nav-burger span {
    width: 22px; height: 2px; background: var(--ink-2);
  }
  .nav-lang { margin-left: 8px; padding-left: 12px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--ink-2);
  color: white;
  border: 1px solid var(--ink-2);
  transition: all 0.2s;
  cursor: pointer;
}
.btn:hover { background: var(--steel); border-color: var(--steel); }
.btn.btn-outline { background: transparent; color: var(--ink-2); }
.btn.btn-outline:hover { background: var(--ink-2); color: white; border-color: var(--ink-2); }
.btn.btn-ghost {
  background: transparent; color: var(--ink-2); border-color: var(--line-2);
}
.btn.btn-ghost:hover { background: var(--paper-2); border-color: var(--ink-2); }
.btn-arrow { display: inline-block; transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Image placeholder (industrial striped) */
.imgph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(73,80,83,0.04) 14px 15px),
    linear-gradient(180deg, #dde1e3, #c8ced1);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--ink-2);
}
.imgph::before {
  content: ""; position: absolute; inset: 12px;
  border: 1px solid rgba(73,80,83,0.18);
}
.imgph-label {
  position: relative;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  background: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border: 1px solid rgba(73,80,83,0.2);
}
.imgph.dark {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,0.04) 14px 15px),
    linear-gradient(180deg, #3a4144, #25292b);
  color: white;
}
.imgph.dark::before { border-color: rgba(255,255,255,0.18); }
.imgph.dark .imgph-label { background: rgba(0,0,0,0.45); color: white; border-color: rgba(255,255,255,0.25); }
.imgph.steel {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,0.06) 14px 15px),
    linear-gradient(180deg, #6b91a8, #4a6c83);
  color: white;
}
.imgph.steel::before { border-color: rgba(255,255,255,0.25); }
.imgph.steel .imgph-label { background: rgba(0,0,0,0.25); color: white; border-color: rgba(255,255,255,0.3); }

/* Footer */
.footer {
  background: var(--ink-2);
  color: #cfd3d5;
  padding: 80px 0 32px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer h5 {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: #8b9094; margin: 0 0 18px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { font-size: 14px; color: #cfd3d5; }
.footer a:hover { color: var(--steel); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; gap: 32px; flex-wrap: wrap;
  font-size: 12px;
  color: #8b9094;
  align-items: center;
}
.footer-bottom .legal-links { display: flex; gap: 24px; margin-left: auto; }

/* Utility */
.divider { height: 1px; background: var(--line); }
.divider-thick { height: 2px; background: var(--ink-2); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line-2);
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.pill .dot { width: 6px; height: 6px; background: var(--steel); border-radius: 50%; }

.tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel); font-weight: 500;
}

/* Fade in */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s cubic-bezier(0.2,0.7,0.2,1) both; }

/* Scrollbar refinement */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 0; }
::-webkit-scrollbar-track { background: var(--paper-2); }

/* Focus */
:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
