/* ─────────────────────────────────────────────────────────
   LECHLER IT-SOLUTIONS · Shared brand system
   Used by index.html and all service subpages.
   ───────────────────────────────────────────────────────── */
:root {
  --ink:        #0B1220;
  --ink-2:      #111A2E;
  --ink-3:      #1A2238;

  --paper:      #F5F4EE;
  --paper-2:    #FAFAF7;
  --paper-3:    #ECE9DF;

  --line:       rgba(11,18,32,0.10);
  --line-2:     rgba(11,18,32,0.06);
  --line-dark:  rgba(245,244,238,0.10);

  --text:       #0B1220;
  --text-2:     rgba(11,18,32,0.72);
  --text-3:     rgba(11,18,32,0.55);
  --text-d:     #F5F4EE;
  --text-d2:    rgba(245,244,238,0.72);
  --text-d3:    rgba(245,244,238,0.50);

  --cyan:       #00B8D4;
  --cyan-soft:  rgba(0,184,212,0.10);
  --violet:     #6D28D9;
  --violet-soft:rgba(109,40,217,0.10);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --pad-page: clamp(20px, 4vw, 56px);
  --max-w:    1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--cyan); color: var(--ink); }

/* ───── Type scale ───── */
.display { font-family: 'Sora', sans-serif; font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; font-size: clamp(40px, 6.4vw, 84px); }
.h1      { font-family: 'Sora', sans-serif; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; font-size: clamp(32px, 4.5vw, 52px); }
.h2      { font-family: 'Sora', sans-serif; font-weight: 700; letter-spacing: -0.02em;  line-height: 1.15; font-size: clamp(24px, 2.6vw, 32px); }
.h3      { font-family: 'Sora', sans-serif; font-weight: 600; letter-spacing: -0.01em;  line-height: 1.25; font-size: 19px; }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.lede    { font-size: clamp(16px, 1.4vw, 19px); color: var(--text-2); line-height: 1.6; }
.small   { font-size: 13px; color: var(--text-3); }
.mono    { font-family: 'JetBrains Mono', monospace; }

/* ───── Layout primitives ───── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--pad-page); padding-right: var(--pad-page); }
section { position: relative; }

/* ───── Logo ───── */
.logo { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.logo svg { display: block; flex-shrink: 0; }
.logo .word    { font-family: 'Sora', sans-serif; font-weight: 700; letter-spacing: -0.02em; font-size: 19px; }
.logo .tagline { font-family: 'Sora', sans-serif; font-weight: 500; letter-spacing: 0.14em; font-size: 9px; text-transform: uppercase; color: var(--text-3); margin-top: 4px; display: block; }
.logo--dark .word { color: var(--text-d); }
.logo--dark .tagline { color: var(--text-d3); }

/* ───── Buttons ───── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--cyan); color: var(--ink); }
.btn--primary:hover { background: #00CFEC; transform: translateY(-1px); }
.btn--ghost   { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-dark { background: transparent; color: var(--text-d); border: 1px solid var(--line-dark); }
.btn--ghost-dark:hover { border-color: rgba(245,244,238,0.4); background: rgba(245,244,238,0.04); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ───── NAV ───── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245,244,238,0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 14px var(--pad-page);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--text-2);
  border-radius: var(--r-sm); transition: color .15s, background .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover { color: var(--text); background: rgba(11,18,32,0.04); }
.nav-link.is-active { color: var(--text); background: rgba(11,18,32,0.05); }
.nav-link .caret { width: 9px; height: 9px; opacity: 0.55; transition: transform .2s; }
.nav-item:hover .nav-link .caret { transform: rotate(180deg); }

.nav-item { position: relative; }
.nav-dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 280px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px;
  margin-top: 6px;
  box-shadow: 0 12px 32px rgba(11,18,32,0.10), 0 2px 6px rgba(11,18,32,0.04);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, visibility .15s, transform .15s;
  z-index: 110;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown::before {
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
.nav-dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--text-2);
  transition: background .12s, color .12s;
}
.nav-dropdown a:hover { background: rgba(0,184,212,0.08); color: var(--ink); }
.nav-dropdown a.is-current { background: rgba(0,184,212,0.10); color: var(--ink); }
.nav-dropdown a .arr { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-3); }
.nav-dropdown a:hover .arr { color: var(--cyan); }
.nav-cta { padding: 9px 16px; font-size: 13px; font-weight: 600; background: var(--ink); color: var(--text-d); border-radius: var(--r-sm); transition: background .15s; }
.nav-cta:hover { background: var(--ink-2); }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ───── SUBPAGE HERO ───── */
.sub-hero {
  padding: clamp(110px, 13vw, 160px) 0 clamp(56px, 7vw, 88px);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.sub-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(11,18,32,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,18,32,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 60%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 60%, #000 30%, transparent 90%);
}
.sub-hero .wrap { position: relative; z-index: 1; }

.crumb {
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 28px;
}
.crumb a { color: var(--text-3); transition: color .15s; }
.crumb a:hover { color: var(--cyan); }
.crumb .sep { opacity: 0.4; }
.crumb .current { color: var(--text); }

.sub-hero h1 { margin-bottom: 24px; max-width: 920px; }
.sub-hero h1 .accent { color: var(--cyan); }
.sub-hero p.lede { max-width: 680px; margin-bottom: 32px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row .tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12.5px; color: var(--text-2);
  font-weight: 500;
}
.tag-row .tag::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan);
}

/* ───── SUBPAGE INTRO BAND ───── */
.intro-band {
  padding: clamp(48px, 6vw, 72px) 0;
  background: var(--ink);
  color: var(--text-d);
  position: relative;
  overflow: hidden;
}
.intro-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 80% 0%, rgba(0,184,212,0.10), transparent 60%);
  pointer-events: none;
}
.intro-band .wrap { position: relative; }
.intro-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.intro-grid .eyebrow { color: var(--cyan); display: block; margin-bottom: 14px; }
.intro-grid h2 { color: var(--text-d); }
.intro-grid h2 .accent { color: var(--cyan); }
.intro-text p { color: var(--text-d2); font-size: 16px; line-height: 1.75; margin-bottom: 18px; max-width: 620px; }
.intro-text p:last-child { margin-bottom: 0; }
.intro-text strong { color: var(--text-d); font-weight: 600; }
@media (max-width: 880px) {
  .intro-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ───── FEATURE GRID ───── */
.feat-section { padding: clamp(72px, 9vw, 110px) 0; background: var(--paper); }
.feat-head { margin-bottom: 48px; max-width: 720px; }
.feat-head .eyebrow { display: block; margin-bottom: 14px; }
.feat-head h2 { color: var(--ink); margin-bottom: 14px; }
.feat-head p { color: var(--text-2); font-size: 15px; line-height: 1.7; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.feat {
  background: var(--paper-2);
  padding: 28px 26px;
  display: flex; gap: 18px;
  transition: background .2s ease;
}
.feat:hover { background: #fff; }
.feat-ico {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--cyan);
}
.feat-ico svg { width: 20px; height: 20px; }
.feat-body h3 { color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.feat-body p { color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
@media (max-width: 720px) {
  .feat-grid { grid-template-columns: 1fr; }
}

/* ───── DETAIL PROSE BAND ───── */
.prose-band { padding: clamp(72px, 9vw, 110px) 0; background: var(--paper-3); }
.prose-grid { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }
.prose-grid .eyebrow { display: block; margin-bottom: 14px; }
.prose-grid > .prose-side h2 { color: var(--ink); }
.prose-grid > .prose-side h2 .accent { color: var(--cyan); }
.prose-side { position: sticky; top: 100px; }
.prose-side p { color: var(--text-2); font-size: 14px; line-height: 1.65; margin-top: 16px; }

.prose-blocks { display: flex; flex-direction: column; gap: 18px; }
.prose-block {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 28px;
}
.prose-block .lbl {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px; display: block;
}
.prose-block h3 { color: var(--ink); margin-bottom: 12px; font-size: 18px; }
.prose-block p { color: var(--text-2); font-size: 14.5px; line-height: 1.75; margin-bottom: 12px; }
.prose-block p:last-child { margin-bottom: 0; }
.prose-block strong { color: var(--ink); font-weight: 600; }
.prose-block ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.prose-block ul li {
  position: relative; padding-left: 22px;
  color: var(--text-2); font-size: 14.5px; line-height: 1.65;
}
.prose-block ul li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 12px; height: 1px; background: var(--cyan);
}
.prose-block .callout {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--cyan-soft);
  border-left: 2px solid var(--cyan);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 13.5px; color: var(--text); line-height: 1.65;
}
.prose-block .callout strong { color: var(--ink); }
@media (max-width: 880px) {
  .prose-grid { grid-template-columns: 1fr; gap: 32px; }
  .prose-side { position: static; }
}

/* ───── ALSO SECTION ───── */
.also-section { padding: clamp(72px, 9vw, 110px) 0; background: var(--paper); border-top: 1px solid var(--line); }
.also-head { margin-bottom: 36px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.also-head .eyebrow { display: block; margin-bottom: 10px; }
.also-head h2 { color: var(--ink); }
.also-head h2 .accent { color: var(--cyan); }
.also-head p { color: var(--text-2); font-size: 14px; max-width: 320px; }

.also-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.also-card {
  background: var(--paper-2);
  padding: 24px 22px 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background .2s ease;
}
.also-card:hover { background: #fff; }
.also-card .ico {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: var(--ink); color: var(--cyan);
}
.also-card h3 { color: var(--ink); font-size: 15.5px; }
.also-card p { color: var(--text-3); font-size: 13px; line-height: 1.55; flex: 1; }
.also-card .link {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--cyan); letter-spacing: 0.08em;
  margin-top: 6px;
}
@media (max-width: 880px) { .also-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .also-grid { grid-template-columns: 1fr; } }

/* ───── CTA ───── */
.cta { padding: clamp(60px, 8vw, 100px) 0; background: var(--paper); }
.cta-card {
  background: var(--ink); color: var(--text-d);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 48px; align-items: center;
}
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(0,184,212,0.18), transparent 60%);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card .eyebrow { color: var(--cyan); margin-bottom: 16px; display: block; }
.cta-card h2 { color: var(--text-d); margin-bottom: 16px; }
.cta-card h2 .accent { color: var(--cyan); }
.cta-card p { color: var(--text-d2); font-size: 15px; line-height: 1.65; max-width: 460px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-actions .btn { justify-content: center; }
.cta-meta { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--line-dark); }
.cta-meta-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-d2); }
.cta-meta-row .ico { color: var(--cyan); }
@media (max-width: 880px) {
  .cta-card { grid-template-columns: 1fr; gap: 32px; }
}

/* ───── FOOTER ───── */
footer {
  background: var(--ink);
  color: var(--text-d2);
  padding: 48px 0 28px;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { max-width: 320px; }
.footer-brand p { font-size: 13px; line-height: 1.6; margin-top: 16px; color: var(--text-d3); }
.footer-col h4 { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-d3); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a, .footer-col ul li { font-size: 14px; color: var(--text-d2); transition: color .15s; }
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line-dark);
  font-size: 12px; color: var(--text-d3);
}
.footer-bottom .links { display: flex; gap: 20px; }
.footer-bottom .links a:hover { color: var(--text-d); }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: start; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
