/* Loteka — industrial B2B (light surfaces, readable type) */
:root {
  --primary-blue: #0d4a7c;
  --radius-global: 12px;
  --section-padding: 100px 0;
  --section-padding-y: 100px;
  --transition-global: all 0.3s ease;

  --color-bg: #e8ecf2;
  --color-surface: #ffffff;
  --color-surface-alt: #f1f4f8;
  --color-text: #15202b;
  --color-text-muted: #3d4d5f;
  --color-text-subtle: #5c6b7d;
  --color-border: #d8dee8;
  --color-border-strong: #c5ced9;
  --color-accent: var(--primary-blue);
  --color-accent-bright: #1565a8;
  --color-accent-deep: #083454;
  --color-header-bg: rgba(255, 255, 255, 0.94);
  --color-footer-bg: #1a2332;
  --color-footer-text: #e8edf3;
  --color-footer-muted: #9aa8bc;
  --color-hero-overlay: rgba(8, 22, 38, 0.72);

  --space-gutter: clamp(1.25rem, 4vw, 2.75rem);
  --space-section-y: var(--section-padding-y);
  --space-section-y-sm: clamp(2.5rem, 5vw, 4rem);
  --header-h: 4.5rem;

  --container-max: 76rem;
  --grid-gap-x: clamp(1.25rem, 3vw, 2rem);
  --grid-gap-y: clamp(1.75rem, 4vw, 3rem);

  --radius-sm: var(--radius-global);
  --radius-md: var(--radius-global);
  --radius-lg: var(--radius-global);
  --radius-xl: var(--radius-global);
  --radius-2xl: var(--radius-global);
  --radius-pill: 9999px;

  --shadow-soft: 0 16px 48px rgba(15, 23, 42, 0.1);
  --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-header: 0 1px 0 rgba(15, 23, 42, 0.06);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --letter-display: -0.025em;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:is(a, button, input, textarea, select, .site-nav a, .lang-switch button, .footer-social a, .skip-link) {
  transition: var(--transition-global);
}

:is(article, figure) img {
  transition: var(--transition-global);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  background-color: var(--color-bg);
  /* 100vw / off-canvas transforms can extend past the layout viewport; clip avoids horizontal scroll. */
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  :is(article, figure) img,
  .client-logo,
  .svc-tile__media,
  .svc-panel__img {
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
}

html {
  scrollbar-gutter: stable;
}

body.nav-lock {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: var(--space-gutter);
  top: -100px;
  z-index: 10050;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--color-accent-bright);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1023px) {
  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
    /* Content height only — not full viewport; cap for many links. */
    height: auto;
    max-height: calc(100dvh - var(--header-h) - 0.5rem);
    /* Stacking above logo/toggle row inside header (header uses z-[2000] vs main). */
    z-index: 50;
    padding: var(--space-gutter) var(--space-gutter) clamp(1rem, 3vw, 1.5rem);
    gap: 0.15rem;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    overflow-y: auto;
  }

  .site-header.is-open .site-nav {
    transform: translateX(0);
  }
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
  }

  .nav-toggle {
    display: none;
  }
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: var(--transition-global);
}

.site-nav a:hover {
  color: var(--color-text);
  background: var(--color-surface-alt);
}

.site-nav a.is-active {
  color: var(--color-accent);
  background: rgba(13, 74, 124, 0.08);
  box-shadow: inset 0 0 0 1px rgba(13, 74, 124, 0.15);
}

/* Simple pad behind header logo (footer background) */
.site-header__brand-slot {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-lg);
  background: var(--color-footer-bg);
}

.site-header__brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.nav-toggle__bars {
  display: grid;
  gap: 5px;
  width: 1.25rem;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.site-header.is-open .nav-toggle__bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.lang-switch {
  display: flex;
  gap: 0.35rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 1024px) {
  .lang-switch {
    margin-top: 0;
    margin-left: 0.5rem;
    padding-top: 0;
    padding-left: 0.85rem;
    border-top: none;
    border-left: 1px solid var(--color-border);
  }
}

.lang-switch button {
  width: auto;
  min-width: unset;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0.2rem 0.15rem;
}

.lang-switch button:hover {
  color: var(--color-text);
}

.lang-switch button[aria-pressed="true"] {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
  font-weight: 800;
  background: transparent;
}

/* Clients rail: text-only logos — monochrome, low contrast until hover */
.client-logo {
  flex-shrink: 0;
  padding: 0.65rem 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  background: transparent;
  border: none;
  filter: grayscale(100%);
  opacity: 0.6;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Geography country chips */
.country-chip[data-cc] {
  cursor: pointer;
}

.country-chip {
  display: inline-flex;
  align-items: center;
  cursor: default;
  border-radius: var(--radius-global);
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.country-chip:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #fff;
}

.country-chip:focus-visible {
  outline: 2px solid var(--color-accent-bright);
  outline-offset: 2px;
}

/* Footer — premium framing on existing dark background */
.site-footer--premium {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.site-footer--premium::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.35), transparent);
}

.site-footer--premium::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.12), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(29, 78, 216, 0.1), transparent 38%);
  opacity: 0.9;
}

.site-footer--premium > * {
  position: relative;
  z-index: 1;
}

.site-footer__col {
  position: relative;
}

.site-footer__rek {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.site-footer__rek-img {
  display: block;
  width: auto;
  max-width: min(100%, 7.5rem);
  max-height: 7.5rem;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.65);
}

.site-footer__brand {
  position: relative;
  letter-spacing: -0.01em;
}

.site-footer__brand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.55rem;
  width: 2.8rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent-bright), transparent);
  opacity: 0.75;
}

.site-footer__col a {
  text-underline-offset: 0.2em;
}

.footer-social--premium {
  align-items: center;
  flex-wrap: wrap;
}

.footer-social__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  color: #d7e2f1;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04) 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  box-shadow:
    0 10px 24px -14px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transition:
    transform 0.35s var(--ease-out),
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.footer-social__link::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 180deg, rgba(56, 189, 248, 0.45), rgba(59, 130, 246, 0.28), rgba(56, 189, 248, 0.45));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
  filter: blur(8px);
}

.footer-social__link:hover,
.footer-social__link:focus-visible {
  transform: translateY(-2px) scale(1.03);
  color: #ffffff;
  border-color: rgba(125, 211, 252, 0.7);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.06) 44%),
    linear-gradient(145deg, rgba(56, 189, 248, 0.18), rgba(59, 130, 246, 0.06));
  box-shadow:
    0 14px 28px -14px rgba(2, 6, 23, 0.95),
    0 0 0 1px rgba(125, 211, 252, 0.28) inset;
}

.footer-social__link:hover::before,
.footer-social__link:focus-visible::before {
  opacity: 0.72;
}

@media (prefers-reduced-motion: reduce) {
  .footer-social__link {
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  }

  .footer-social__link:hover,
  .footer-social__link:focus-visible {
    transform: none;
  }
}
