﻿/* Klisverse Design System â€” shared across corporate / tech / trade */

:root {
  --ink: #0c1b2a;
  --ink-soft: #243447;
  --muted: #5a6b7d;
  --line: #d5e0ea;
  --canvas: #f5f8fb;
  --surface: #ffffff;
  --accent: #0e7490;
  --accent-deep: #1d4e89;
  --accent-soft: #e7f4f7;
  --shadow: 0 18px 50px rgba(12, 27, 42, 0.08);
  --radius: 18px;
  --container: 1120px;
  --header-h: 72px;
  --ribbon-h: 42px;
  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, color-mix(in srgb, var(--accent-deep) 14%, transparent), transparent 55%),
    linear-gradient(180deg, #f7fafc 0%, var(--canvas) 40%, #eef3f7 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

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

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--accent); }

h1, h2, h3, .hero-brand, .brand-name, .footer-brand, .identity-brand {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1, h2, h3 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-weight: 700;
}

p { margin: 0 0 1rem; }
ul { margin: 0; padding-left: 1.1rem; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: 999px;
}

.skip-link:focus { top: 1rem; }

/* Identity ribbon */

.identity-ribbon {
  background: var(--ink);
  color: #d5dee8;
  min-height: var(--ribbon-h);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.identity-ribbon-inner {
  min-height: var(--ribbon-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.45rem 0;
}

.identity-brand {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.identity-brand:hover { color: #fff; opacity: 0.9; }

.identity-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  align-items: center;
}

.identity-nav a {
  color: #a8b4c2;
  text-decoration: none;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
}

.identity-nav a:hover { color: #fff; }

.identity-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.identity-nav .sep {
  color: #5a6b7d;
  padding: 0 0.15rem;
  user-select: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(245, 248, 251, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(213, 224, 234, 0.9);
  background: rgba(255, 255, 255, 0.92);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.35rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
  flex-shrink: 0;
}

.brand-name { font-size: 1.2rem; font-weight: 700; }

.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.1rem;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: var(--accent); }

.nav a.is-active {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--ink);
  color: #fff;
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 1rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.site-header.is-nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h) - var(--ribbon-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(245, 248, 251, 0.15) 0%, rgba(245, 248, 251, 0.72) 48%, rgba(245, 248, 251, 0.96) 100%),
    linear-gradient(90deg, rgba(245, 248, 251, 0.92) 0%, rgba(245, 248, 251, 0.55) 45%, rgba(245, 248, 251, 0.2) 100%);
}

.hero-content {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  max-width: 42rem;
  margin-left: max(1rem, calc((100% - var(--container)) / 2));
  margin-right: auto;
  width: min(100% - 2rem, 42rem);
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 800;
  color: var(--ink);
  animation: rise 0.9s var(--ease) both;
}

.hero h1 {
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 600;
  max-width: 20ch;
  color: var(--ink-soft);
  animation: rise 0.9s var(--ease) 0.08s both;
}

.hero-support {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38ch;
  animation: rise 0.9s var(--ease) 0.16s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise 0.9s var(--ease) 0.24s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), filter 0.2s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
}

.btn-primary:hover { color: #fff; filter: brightness(1.05); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* Sections */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }

.section-intro {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

.section-subtitle,
.prose {
  color: var(--muted);
  font-size: 1.05rem;
}

.prose p + p { margin-top: 1rem; }

.pillar-grid,
.why-grid {
  display: grid;
  gap: 1.5rem 2rem;
}

.pillar,
.why-grid article {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.pillar img,
.why-grid img,
.service-panel img,
.division-card img {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.pillar h3,
.why-grid h3,
.service-panel h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.pillar p,
.why-grid p,
.service-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.section-muted {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.8)),
    radial-gradient(700px 300px at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}

.service-grid {
  display: grid;
  gap: 1.25rem;
}

.service-panel,
.division-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(213, 224, 234, 0.95);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
}

.division-grid {
  display: grid;
  gap: 1.25rem;
}

.division-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow);
}

.division-card h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  margin: 0;
}

.division-card .card-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.division-card .card-points li {
  padding-left: 1rem;
  position: relative;
}

.division-card .card-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.division-card .btn { align-self: flex-start; margin-top: auto; }

.list-label {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.service-panel ul {
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}

.tech-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tech-grid li {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.tech-grid img {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
}

/* Cross-site CTA */

.cross-cta {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent-soft) 55%, #fff);
}

.cross-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cross-cta h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 0.4rem;
}

.cross-cta p {
  margin: 0;
  color: var(--muted);
  max-width: 40ch;
}

/* Contact */

.contact {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.85));
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
}

.contact-details {
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1rem;
}

.contact-details dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-details dd {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.contact-details a {
  text-decoration: none;
  color: var(--ink);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.field { display: grid; gap: 0.4rem; }

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--ink);
  background: #fbfcfd;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.form-note,
.form-status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-status:not(:empty) {
  color: var(--accent-deep);
  font-weight: 600;
}

/* Footer â€” identical structure across sites */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  background: rgba(255, 255, 255, 0.6);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-nav,
.footer-divisions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-nav a,
.footer-divisions a,
.site-footer a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-divisions a {
  font-weight: 600;
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Legal */

.legal-page { padding: clamp(3rem, 8vw, 5rem) 0; }
.legal-page article { max-width: 42rem; }
.legal-page .updated { color: var(--muted); font-size: 0.9rem; }
.legal-page .prose { margin-top: 1.5rem; }

/* Motion */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Breakpoints */

@media (min-width: 720px) {
  .pillar-grid,
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-toggle { display: none; }
  .nav { display: flex; }
}

@media (min-width: 800px) {
  .division-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
    gap: 3.5rem;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
  .copyright { grid-column: 1 / -1; }
  .tech-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 719px) {
  .site-header.is-nav-open .nav {
    display: flex;
    position: fixed;
    inset: calc(var(--header-h) + var(--ribbon-h)) 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
  }

  .site-header.is-nav-open .nav a {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--line);
    border-bottom-width: 1px;
    font-size: 1.05rem;
  }
}

/* Corporate accent — Mediterranean teal (default tokens) */
body.site-corporate {
  --accent: #0e7490;
  --accent-deep: #1d4e89;
  --accent-soft: #e7f4f7;
}
