/* ===========================================================
   Kelajak Zamon Sardori — Corporate site styles
   Brand: #000972 (deep blue), #001E34 (navy)
   =========================================================== */

:root {
  --brand: #006372;
  --brand-2: #001e34;
  --brand-ink: #001e34;
  --brand-soft: #ecf5f7;
  --brand-soft-2: #d8e9ec;
  --accent: #c9a25b; /* subtle premium accent */
  --text: #14182a;
  --text-soft: #4a5168;
  --muted: #8a90a3;
  --line: #e2e8ea;
  --line-strong: #cfd7da;
  --bg: #ffffff;
  --bg-alt: #f4f7f8;
  --bg-dark: #001e34;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 19, 48, 0.06);
  --shadow-md: 0 12px 30px -12px rgba(10, 19, 48, 0.18);
  --shadow-lg: 0 30px 60px -25px rgba(0, 99, 114, 0.35);
  --container: 1200px;
  --header-h: 112px;
  --font-sans:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html {
  /* Prevent any tiny rendering overflow (e.g. off-canvas mobile menu) from
     producing a horizontal scrollbar on small viewports. `clip` keeps
     `position: sticky` working — `hidden` would not. */
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--brand-2);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
p {
  margin: 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}
/* Desktop / tablet: title on the left, eyebrow flushed right on the same row. */
.section-headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  width: 100%;
  margin-bottom: 56px;
}
.section-headline .section-title {
  margin: 0;
  min-height: auto;
  line-height: 1.15;
  text-align: left;
  flex: 1 1 auto;
}
.section-headline .section-eyebrow {
  text-align: right;
  flex: 0 0 auto;
  max-width: 100%;
  line-height: 1.5;
}
.section-main {
  display: block;
}
/* Mobile: stack the eyebrow ABOVE the title (DOM order is title→eyebrow,
   so column-reverse renders eyebrow first without touching markup). */
@media (max-width: 760px) {
  .section-headline {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 14px;
  }
  .section-headline .section-eyebrow {
    text-align: left;
    /* Stack the decorative dash above the text instead of beside it */
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--brand);
}
.section-head-light .section-eyebrow {
  color: #7fd3df;
}
.section-head-light .section-eyebrow::before {
  background: #7fd3df;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  min-height: 12.5em;
}
.section-lede {
  margin-top: 18px;
  color: var(--text-soft);
  max-width: 60ch;
  font-size: 17px;
  min-height: 3.5em;
}

/* ===== Language switching stabilizer ===== */
main,
.site-nav,
.site-footer {
  transition: opacity 0.25s ease;
}
[data-i18n] {
  transition: opacity 0.2s ease;
}
.is-switching-lang main,
.is-switching-lang .site-nav,
.is-switching-lang .site-footer {
  opacity: 0.35;
}
.is-switching-lang [data-i18n] {
  opacity: 0;
}

/* ===== Buttons ===== */
.btn {
  --btn-bg: var(--brand);
  --btn-color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--btn-bg);
  color: var(--btn-color);
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(0, 99, 114, 0.5);
}
.btn-primary:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--brand-2);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--brand-2);
  color: var(--brand-2);
  background: var(--brand-soft);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}
.hero-cta .btn {
  min-width: 220px;
}

/* ===== Page header (banner) ===== */
/* The <header> wraps the navbar + hero. It carries the soft tinted gradient
   (the same one that used to live on <body>), so the (transparent) navbar
   nested inside visually shares one continuous background with the hero. */
.site-header {
  position: relative;
  /* Reserve space at the top for the fixed navbar so the hero starts at
     the same y-position it had when the navbar was sticky and in-flow. */
  padding-top: 5rem;
  background: #d9fafa;
  background: linear-gradient(
    176deg,
    rgba(217, 250, 250, 0.8) 0%,
    rgba(217, 250, 250, 0.6) 43%,
    rgba(244, 247, 248, 1) 100%
  );
}

/* ===== Site navigation bar ===== */
/* At the top of the page the navbar is fully transparent so it visually
   blends with the hero. Once `is-scrolled` is set (window.scrollY > 8) the
   navbar gains a translucent blurred backdrop, a hairline border and a soft
   shadow, and it slightly compacts (smaller logo, tighter vertical padding).
   `position: fixed` is used (not sticky) because the navbar is now nested
   inside <header> rather than directly under <body>; fixed keeps it pinned
   to the viewport regardless of the <header>'s height. */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease;
}
.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  /* Soft tinted off-white matching the hero's lightest stop (#f5fafb) — */
  /* keeps the navbar visually part of the page palette rather than pure white. */
  background: rgba(216, 240, 245, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 0.2rem 0;
}
.site-nav .nav-wrap {
  max-width: none;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0.8rem 28px;
  transition: padding 0.3s ease;
}
.site-nav.is-scrolled .nav-wrap {
  padding: 0.45rem 28px;
}
@media (max-width: 760px) {
  .site-nav .nav-wrap {
    padding: 0.4rem 20px;
  }
  .site-nav.is-scrolled .nav-wrap {
    padding: 0.2rem 20px;
  }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 0.5rem 0;
  transition: padding 0.3s ease;
}
.site-nav.is-scrolled .brand {
  padding: 0.3rem 0;
}
.brand-logo {
  width: auto;
  height: 70px;
  object-fit: contain;
  display: block;
  transition: height 0.3s ease;
}
.site-nav.is-scrolled .brand-logo {
  height: 46px;
}

.primary-nav {
  margin-left: auto;
  padding-top: 0.5rem;
}

.primary-nav ul {
  display: flex;
  gap: 6px;
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 10px;
  min-width: 110px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 14.5px;
  text-align: center;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    font-size 0.3s ease,
    padding 0.3s ease;
}
.site-nav.is-scrolled .primary-nav a {
  font-size: 13px;
  padding: 8px 10px;
}
.primary-nav a:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 0.5rem;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  /* Allow the bar itself to compress when its children collapse */
  transition: gap 0.3s ease;
}
/* Collapsed state: only the active language pill is visible.
   Active when the header is scrolled AND the user hasn't explicitly expanded. */
.site-nav.is-scrolled .lang-switch:not(.is-expanded) {
  gap: 0;
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  border-radius: 999px;
  cursor: pointer;
  /* Enable collapse animation */
  overflow: hidden;
  white-space: nowrap;
  max-width: 80px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    max-width 0.32s ease,
    padding 0.3s ease,
    opacity 0.25s ease;
}
.site-nav.is-scrolled .lang-switch:not(.is-expanded) .lang-btn:not(.is-active) {
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  opacity: 0;
  pointer-events: none;
}
.lang-btn:hover {
  color: var(--brand-2);
  background: var(--brand-soft);
}
.lang-btn.is-active {
  background: var(--brand-2);
  color: #fff;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--brand-2);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    top 0.25s ease;
}
.nav-toggle span:nth-child(1) {
  top: 14px;
}
.nav-toggle span:nth-child(2) {
  top: 20px;
}
.nav-toggle span:nth-child(3) {
  top: 26px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 120px) 0 clamp(72px, 10vw, 130px);
  /* The hero's background is now painted by `body` so the navbar and the
     hero share one continuous gradient with no seam between them. */
  overflow: hidden;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: flex-start;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 99, 114, 0.12);
}
.hero-title {
  position: relative;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  color: var(--brand-2);
  letter-spacing: -0.03em;
  min-height: 3.45em;
}
.hero-lede {
  min-height: 7.2em;
  text-align: justify;
}
.eyebrow {
  min-height: 39px;
  min-width: 230px;
}
.hero-title .accent {
  background: linear-gradient(
    120deg,
    var(--brand) 0%,
    #008a9e 50%,
    var(--brand) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 56ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-stats {
  margin: 48px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
}
.hero-stats dt {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: var(--brand-2);
  letter-spacing: -0.02em;
}
.hero-stats dd {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-media {
  position: relative;
}
.hero-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  aspect-ratio: 1 / 1;
  background: var(--bg-dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.9s ease,
    visibility 0s linear 0.9s;
  z-index: 1;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.9s ease,
    visibility 0s linear 0s;
  z-index: 2;
}
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-carousel-dots {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-dot {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  width: 22px;
  height: 3px;
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.25s ease,
    width 0.25s ease;
}
.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}
.hero-dot.is-active {
  background: #fff;
  width: 32px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 30, 52, 0.35);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}
.hero-arrow svg {
  width: 20px;
  height: 20px;
}
.hero-arrow:hover {
  background: rgba(0, 30, 52, 0.6);
}
.hero-arrow-prev {
  left: 14px;
}
.hero-arrow-next {
  right: 14px;
}
.hero-carousel:hover .hero-arrow {
  opacity: 1;
}
.hero-arrow:focus-visible {
  opacity: 1;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
/* ===== Hero rating badge ===== */
.hero-rating {
  position: absolute;
  right: -14px;
  top: 28px;
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 28px -14px rgba(0, 30, 52, 0.5);
  text-decoration: none;
  line-height: 1;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  text-align: center;
}
.hero-rating:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -14px rgba(0, 30, 52, 0.6);
}
.hero-rating-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.7;
}
.hero-rating-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

/* ===== Credentials (Licenses & certificates) ===== */
/* Carousel container */
.cred-carousel {
  position: relative;
  width: 100%;
  --cred-visible: 5;
  --cred-gap: 22px;
}

/* Clipping viewport keeps the off-screen slides hidden without fade masks */
.cred-viewport {
  overflow: hidden;
  width: 100%;
}

/* Step-based track: transform driven by JS, smooth transition on each step */
.cred-track {
  display: flex;
  gap: var(--cred-gap);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  width: max-content;
  transform: translate3d(0, 0, 0);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.cred-track.is-jumping {
  transition: none;
}

.cred-slide {
  flex: 0 0 var(--cred-card-w, 220px);
  display: block;
}

.cred-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  /* Fixed card height keeps every card identical regardless of text length */
  height: var(--cred-card-h, 360px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
}

/* Navigation arrows */
.cred-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--brand-2);
  z-index: 2;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.cred-nav:hover {
  background: var(--brand-soft);
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--shadow-md);
}
.cred-nav:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.cred-nav svg {
  width: 18px;
  height: 18px;
}
.cred-nav-prev {
  left: -10px;
}
.cred-nav-next {
  right: -10px;
}
@media (max-width: 640px) {
  .cred-nav-prev {
    left: 4px;
  }
  .cred-nav-next {
    right: 4px;
  }
}
.cred-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.cred-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.cred-thumb {
  position: relative;
  background: var(--bg-alt);
  flex: 0 0 var(--cred-thumb-h, 240px);
  height: var(--cred-thumb-h, 240px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.cred-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 70%,
    rgba(0, 30, 52, 0.04) 100%
  );
  pointer-events: none;
}
.cred-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}
.cred-card:hover .cred-thumb img {
  transform: scale(1.03);
}

.cred-meta {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.cred-cat {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
}
.cred-info {
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Lightbox */
.cred-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 18, 32, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 32px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cred-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.cred-lightbox[hidden] {
  display: none;
}
.cred-lightbox-figure {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(280px, 60vw) minmax(260px, 320px);
  gap: 24px;
  max-width: 1100px;
  width: 100%;
  max-height: 88vh;
  align-items: stretch;
}
.cred-lightbox-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 88vh;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.cred-lightbox-caption {
  align-self: end;
  color: #d8dcea;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: rgba(0, 30, 52, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.cred-lightbox-cat {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #7fd3df;
}
.cred-lightbox-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.cred-lightbox-info {
  margin: 0;
  font-size: 14px;
  color: rgba(216, 220, 234, 0.85);
}
.cred-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cred-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}
.cred-lightbox-close svg {
  width: 22px;
  height: 22px;
}

/* Carousel responsive — visible card count adapts to viewport */
@media (max-width: 1024px) {
  .cred-carousel {
    --cred-visible: 3;
  }
}
@media (max-width: 640px) {
  .cred-carousel {
    --cred-visible: 2;
  }
}
@media (max-width: 380px) {
  .cred-carousel {
    --cred-visible: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cred-track {
    animation: none;
  }
}

@media (max-width: 900px) {
  .cred-lightbox-figure {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .cred-lightbox-img {
    max-height: 60vh;
  }
  .cred-lightbox-caption {
    align-self: stretch;
  }
}

/* ===== Trust section ===== */
.section-trust {
  padding: clamp(56px, 8vw, 100px) 0;
  background: linear-gradient(180deg, #f4f7f8 0%, #ffffff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cred-divider {
  padding-top: clamp(40px, 5vw, 56px);
}
.trust-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.trust-body {
  order: 1;
  width: 80%;
}
.trust-badge {
  order: 2;
}
.trust-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  isolation: isolate;
  overflow: hidden;
}
.trust-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      120% 80% at 50% -20%,
      rgba(255, 255, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(80% 100% at 50% 120%, rgba(0, 0, 0, 0.2), transparent 60%);
  z-index: -1;
}
.trust-badge-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 6vw, 84px);
  line-height: 1;
  margin: 10px 0 12px;
  letter-spacing: 0.02em;
}
.trust-badge-source {
  font-size: 10px;
  letter-spacing: 0.04em;
  opacity: 0.75;
  text-align: center;
  max-width: 25ch;
}

.trust-lede {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 15.5px;
  padding-right: 5rem;
  text-align: justify;
}
.trust-metrics {
  margin: 24px 0 0;
  display: flex;
  padding: 1rem 5rem 1rem 0;
  border-top: 1px solid var(--line);
  gap: 6rem;
}
.trust-metric {
  display: flex;
  flex-direction: column;
}
.trust-metric dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.trust-metric dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--brand-2);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.trust-metric dd span {
  color: var(--muted);
  font-weight: 500;
}

.trust-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;

  flex-wrap: wrap;
  gap: 2rem;
}
.trust-verified {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .hero-rating {
    display: none;
  }
  .trust-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .trust-badge {
    margin: 0 auto;
  }
  .trust-metrics {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }
  .trust-actions {
    justify-content: center;
  }
}

/* ===== Sections ===== */
.section {
  padding: clamp(72px, 10vw, 130px) 0;
  /* Explicit page background so the body's top-of-page gradient does not
     bleed through transparent sections. `.section-alt` / `.section-dark`
     override this with their own backgrounds. */
  background: var(--bg);
}
.section-alt {
  background: var(--bg-alt);
}
.section-dark {
  position: relative;
  background:
    radial-gradient(
      900px 600px at 12% -10%,
      rgba(0, 99, 114, 0.22),
      transparent 60%
    ),
    radial-gradient(
      700px 500px at 90% 110%,
      rgba(127, 211, 223, 0.08),
      transparent 65%
    ),
    linear-gradient(180deg, #001022 0%, #001e34 60%, #000c1a 100%);
  color: #d8dcea;
  overflow: hidden;
}
.section-dark .container {
  position: relative;
  z-index: 1;
}
.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-main > .section-lede {
  margin-top: 0;
  max-width: 900px;
  margin-bottom: 56px;
}

.about-body p + p {
  margin-top: 16px;
}
.about-body p {
  color: var(--text-soft);
  font-size: 16.5px;
  text-align: justify;
}

.pillars {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pillar {
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background 0.5s !important;
  cursor: pointer;
}

.pillar:hover {
  background: var(--brand);
}

.section-alt .pillar {
  background: #fff;
}
.pillar h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 8px;
  transition: color 0.5s !important;
}
.pillar p {
  color: var(--text-soft);
  font-size: 14.5px;
  transition: color 0.5s !important;
}

.pillar:hover h3 {
  color: white;
}
.pillar:hover p {
  color: white;
}

/* ===== Services ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 18px;
  padding: 6px 10px;
  background: var(--brand-soft);
  border-radius: 6px;
}
.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--brand-2);
}
.service-card p {
  color: var(--text-soft);
  font-size: 15px;
}

/* ===== Stats ===== */
.stats {
  background: linear-gradient(
    135deg,
    var(--brand) 0%,
    #024d59 50%,
    var(--brand-2) 100%
  );
  color: #fff;
  padding: clamp(56px, 8vw, 90px) 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      70% 100% at 0% 0%,
      rgba(255, 255, 255, 0.1),
      transparent 60%
    ),
    radial-gradient(70% 100% at 100% 100%, rgba(0, 0, 0, 0.18), transparent 60%);
  pointer-events: none;
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  text-align: left;
  padding: 6px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 24px;
}
.stat:first-child {
  border-left: 0;
  padding-left: 0;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.stat-label {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-height: 3em;
}

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
}
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  isolation: isolate;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.project-card-lg {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.project-image {
  position: absolute;
  inset: 0;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 30, 52, 0) 30%,
    rgba(0, 30, 52, 0.85) 100%
  );
  z-index: 1;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.project-card:hover .project-image img {
  transform: scale(1.05);
}
.project-meta {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  justify-content: flex-end;
}
.project-tag {
  align-self: flex-start;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.project-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}
.project-card-lg .project-title {
  font-size: 26px;
}
.project-loc {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}
/* ===== Project archive ===== */
.archive {
  margin-top: 56px;
  padding-top: 40px;
}

.archive-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  position: relative;
}
.archive-list::before {
  content: "";
  position: absolute;
  left: 90px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--line);
}
.archive-item {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 8px 16px 0;
  border-top: 1px solid var(--line);
  transition: background 0.2s ease;
}
.archive-item[hidden] {
  display: none;
}
.archive-item:first-of-type {
  border-top: 0;
}
.archive-item:last-of-type {
  border-bottom: 1px solid var(--line);
}
.archive-item:hover {
  background: var(--brand-soft);
}
.archive-item::before {
  content: "";
  position: absolute;
  left: 90px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
  transform: translate(-50%, -50%);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.archive-item:hover::before {
  background: var(--brand);
  transform: translate(-50%, -50%) scale(1.15);
}
.archive-item:not(.is-year-start)::before {
  width: 5px;
  height: 5px;
  border-width: 1.5px;
}
.archive-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--brand);
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.2;
}
.archive-name {
  font-weight: 600;
  color: var(--brand-2);
  font-size: 15.5px;
  padding-left: 24px;
}
.archive-loc {
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
}

/* Extra rows transition both ways: they're collapsed by default and expand
   when the archive gets `.is-expanded`. Using transitions (instead of a
   one-way keyframe + the `hidden` attribute) lets the collapse animate too. */
.archive-item.is-extra {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  padding-top: 0;
  padding-bottom: 0;
  border-top-color: transparent;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    transform 0.4s ease,
    padding-top 0.4s ease,
    padding-bottom 0.4s ease,
    border-color 0.4s ease;
}
.archive.is-expanded .archive-item.is-extra {
  max-height: 200px;
  opacity: 1;
  transform: none;
  padding-top: 16px;
  padding-bottom: 16px;
  border-top-color: var(--line);
}
/* Slight cascade on expand for a nicer wave effect (mirrored on collapse). */
.archive-item.is-extra:nth-of-type(7) {
  transition-delay: 30ms;
}
.archive-item.is-extra:nth-of-type(8) {
  transition-delay: 60ms;
}
.archive-item.is-extra:nth-of-type(9) {
  transition-delay: 90ms;
}
.archive-item.is-extra:nth-of-type(10) {
  transition-delay: 120ms;
}
.archive-item.is-extra:nth-of-type(11) {
  transition-delay: 150ms;
}
.archive-item.is-extra:nth-of-type(12) {
  transition-delay: 180ms;
}
.archive-item.is-extra:nth-of-type(13) {
  transition-delay: 210ms;
}
.archive-item.is-extra:nth-of-type(14) {
  transition-delay: 240ms;
}
.archive-item.is-extra:nth-of-type(15) {
  transition-delay: 270ms;
}

.archive-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px auto 0;
  padding: 12px 22px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-2);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.archive-toggle:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}
.archive-toggle-icon {
  transition: transform 0.3s ease;
}
.archive-toggle[aria-expanded="true"] .archive-toggle-icon {
  transform: rotate(180deg);
}

@media (max-width: 760px) {
  .archive-list::before {
    left: 60px;
  }
  .archive-item {
    grid-template-columns: 60px 1fr;
    gap: 12px;
    padding: 14px 4px 14px 0;
  }
  .archive-item::before {
    left: 60px;
  }
  .archive-year {
    font-size: 15px;
    text-align: left;
    padding-left: 4px;
  }
  .archive-name {
    font-size: 14.5px;
    padding-left: 14px;
    grid-column: 2;
  }
  .archive-loc {
    grid-column: 2;
    padding-left: 14px;
    white-space: normal;
    font-size: 12.5px;
  }
}

/* ===== Vehicles & equipment gallery ===== */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  /* dense flow lets the small tiles wrap around the explicitly placed big ones */
  grid-auto-flow: dense;
  gap: 14px;
}
.fleet-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  /* Subtle gradient backdrop so transparent PNGs read against a soft surface */
  background: linear-gradient(160deg, #0a1f33 0%, #021a2e 100%);
  isolation: isolate;
  text-decoration: none;
  color: #fff;
  border: 1px solid var(--line);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  grid-row: span 1;
  grid-column: span 1;
  cursor: pointer;
}
.fleet-tile-xl {
  grid-column: span 2;
  grid-row: span 2;
}
/* Anchor the big tiles to alternating sides per row */
.fleet-xl-left {
  grid-column: 1 / span 2;
}
.fleet-xl-right {
  grid-column: 3 / span 2;
}

.fleet-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Fill the tile fully; vehicle is cropped to fit edge-to-edge */
  object-fit: cover;
  object-position: center;
  transition:
    transform 0.7s ease,
    filter 0.35s ease;
}
.fleet-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 30, 52, 0) 45%,
    rgba(0, 30, 52, 0.78) 100%
  );
  z-index: 1;
  transition: background 0.35s ease;
}
.fleet-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.fleet-tile:hover img {
  transform: scale(1.05);
}
.fleet-tile:hover::after {
  background: linear-gradient(
    180deg,
    rgba(0, 30, 52, 0.18) 0%,
    rgba(0, 30, 52, 0.88) 100%
  );
}

.fleet-tile-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  transform: translateY(4px);
  transition: transform 0.35s ease;
}
.fleet-tile:hover .fleet-tile-meta {
  transform: none;
}
.fleet-tile-cat {
  /* Pill keeps its intrinsic size — never shrinks or wraps */
  align-self: center;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
}
.fleet-tile-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 30, 52, 0.4);
  /* Allow the name to shrink and truncate so the meta row always fits
     on a single line. Overflowed names get an ellipsis. */
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fleet-tile-xl .fleet-tile-name {
  font-size: 20px;
}

@media (max-width: 1024px) {
  .fleet-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  /* On narrower viewports each big tile simply spans both columns */
  .fleet-tile-xl,
  .fleet-xl-left,
  .fleet-xl-right {
    grid-column: 1 / -1;
    grid-row: span 2;
  }
}
@media (max-width: 600px) {
  .fleet-grid {
    grid-auto-rows: 140px;
  }
  .fleet-tile-xl,
  .fleet-xl-left,
  .fleet-xl-right {
    grid-row: span 2;
  }
  .fleet-tile-name {
    font-size: 14px;
  }
  .fleet-tile-xl .fleet-tile-name {
    font-size: 17px;
  }
}

/* ===== Partners marquee ===== */
.section-partners {
  padding: clamp(56px, 8vw, 100px) 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.partners-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.partners-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  padding: 50px 0;
  list-style: none;
  margin: 0;
  will-change: transform;
}

.partner-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  width: auto;
  padding: 0 12px;
  cursor: default;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    filter 0.4s ease;
  /* Pale brand-tint that preserves internal detail:
     grayscale(1) strips original color but keeps each logo's
     light/dark structure, then sepia + hue-rotate re-tints those
     luminance values toward a soft brand-teal (paler than --brand). */
  opacity: 0.85;
  filter: grayscale(1) brightness(1.3);
}
.partner-item:hover {
  opacity: 1;
  /* Drop the tint so the original logo colors show through */
  filter: none;
  transform: translateY(-2px);
}
.partner-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.partner-mark-wide {
  max-height: 90px;
}
.partner-mark-emblem {
  max-height: 140px;
  max-width: 140px;
}
img.partner-mark {
  user-select: none;
  -webkit-user-drag: none;
}
.partner-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none;
  }
}

/* ===== Geography (Coverage map) ===== */
.geo-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.geo-lede {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 17px;
  max-width: 48ch;
}
.geo-stats {
  margin-top: 32px;
  display: flex;
  padding: 22px 0;
  justify-content: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.geo-stat {
  display: flex;
  text-align: center;
  flex-direction: column;
}
.geo-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 6vw) !important;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1;
}

.geo-stat-num.total {
  font-weight: 200;
  font-size: clamp(34px, 3vw, 6vw) !important;
  color: #aaaaaa;
}
.geo-stat-label {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.geo-list {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
}
.geo-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.geo-list li:hover {
  background: var(--brand-soft);
}
.geo-list li.is-hover {
  background: var(--brand-soft-2);
}
.geo-list-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 99, 114, 0.12);
  flex-shrink: 0;
}

.geo-map-wrap {
  position: relative;
}
.geo-map {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 30, 52, 0.08));
}
.geo-map path {
  fill: #e2e8ea;
  stroke: #ffffff;
  stroke-width: 1.5;
  transition:
    fill 0.25s ease,
    transform 0.25s ease;
  cursor: pointer;
  transform-origin: center;
  transform-box: fill-box;
}
.geo-map path:hover {
  fill: #cbd6d9;
}
.geo-map path.is-active {
  fill: var(--brand);
}
.geo-map path.is-active:hover {
  fill: var(--brand-2);
}
.geo-map path.is-highlight {
  fill: var(--brand-2);
}

.geo-legend {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-soft);
}
.geo-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.geo-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #e2e8ea;
}
.geo-legend-swatch.is-active {
  background: var(--brand);
}

.geo-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--brand-2);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transform: translate(-50%, -120%);
  box-shadow: 0 10px 24px -10px rgba(0, 30, 52, 0.4);
  z-index: 10;
}
.geo-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: var(--brand-2);
  transform: translateX(-50%) rotate(45deg);
}
.geo-tooltip.is-active-region {
  background: var(--brand);
}
.geo-tooltip.is-active-region::after {
  background: var(--brand);
}

/* ===== Features (Why us) ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  background: #001e34;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.3s ease;
}
.feature:hover {
  background: #002748;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(127, 211, 223, 0.12),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #7fd3df;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.feature h3 {
  font-size: 19px;
  color: #fff;
}
.feature p {
  color: rgba(216, 220, 234, 0.78);
  font-size: 14.5px;
}

/* ===== Catalog ===== */
.catalog-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.catalog-copy p {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 17px;
  max-width: 52ch;
}
.catalog-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.catalog-card {
  position: relative;
  padding: 6px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: var(--shadow-lg);
}
.catalog-card-inner {
  background: #fff;
  border-radius: calc(var(--radius-lg) - 6px);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.catalog-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}
.catalog-meta h3 {
  margin: 10px 0 18px;
  font-size: 24px;
  color: var(--brand-2);
}
.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.catalog-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--text-soft);
}
.catalog-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 2px;
  background: var(--brand);
}
.catalog-format {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--brand-soft);
  padding: 18px 20px;
  border-radius: 12px;
  min-width: 88px;
}
.catalog-format span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
  font-size: 22px;
  letter-spacing: 0.05em;
}
.catalog-format small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

/* ===== Contact ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-copy p {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 17px;
  max-width: 46ch;
}
.contact-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.contact-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.contact-list a,
.contact-list span:last-child {
  color: var(--brand-2);
  font-weight: 600;
  font-size: 16px;
}
.contact-list a:hover {
  color: var(--brand);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 99, 114, 0.12);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-note {
  margin: 6px 0 0;
  color: #0a7c4a;
  font-size: 14px;
  font-weight: 500;
}

/* ===== Footer ===== */
.site-footer {
  background: #00131f;
  color: rgba(255, 255, 255, 0.74);
  padding: 64px 2rem 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.6);
}
.footer-logo img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}
.site-footer .footer-grid {
  max-width: var(--container);
  padding-left: 24px;
  padding-right: 24px;
}
.site-footer .footer-bottom {
  max-width: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .footer-logo {
  margin-bottom: 20px;
}
.footer-slogan {
  font-family: var(--font-display);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  max-width: 22ch;
  margin: 0;
}
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.74);
  transition: color 0.2s ease;
  font-size: 14.5px;
}
.footer-col a:hover {
  color: #fff;
}
.footer-contact li {
  font-size: 14.5px;
}

.footer-bottom {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  padding-top: 1rem;
}

/* ===== Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
    /* Explicit width fixes the carousel collapsing to 0 when the grid track
       lets it shrink to content size. */
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-card-lg {
    grid-column: span 2;
    grid-row: auto;
    aspect-ratio: 1 / 1;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-wrap,
  .contact-wrap,
  .geo-wrap {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }
  .header-actions {
    margin-left: auto;
    gap: 8px;
    padding-top: 0;
  }
  .lang-switch {
    padding: 2px;
    gap: 1px;
  }
  .lang-btn {
    padding: 4px 7px;
    font-size: 11px;
    letter-spacing: 0.03em;
    max-width: 60px;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
  }
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 24px;
    margin: 0;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-bottom: 1px solid var(--line);
    overflow-y: auto;
    visibility: hidden;
  }
  .primary-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 4px;
  }
  .primary-nav a {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 64px;
  }
  .hero-title {
    font-size: clamp(36px, 9vw, 52px);
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .hero-media {
    padding-bottom: 24px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-card-lg {
    grid-column: span 1;
    /* Reset grid-row so the card doesn't reserve an empty second row
       under the single-column mobile layout. */
    grid-row: auto;
    aspect-ratio: 1 / 1;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .catalog-card-inner {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0;
  }
  .site-footer .footer-grid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-footer {
    padding-left: 5px;
    padding-right: 5px;
  }

  .geo-list {
    grid-template-columns: 1fr;
  }
  .geo-stats {
    gap: 18px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* ===== Mobile polish pass ===== */
  /* Tighter section rhythm — desktop padding feels oversized on phones */
  .section,
  .section-trust,
  .section-credentials,
  .hero {
    padding-top: clamp(48px, 12vw, 72px);
    padding-bottom: clamp(48px, 12vw, 72px);
  }
  .section-headline {
    margin-bottom: 36px;
  }
  /* Eyebrow flows inline with its short decorative dash instead of wrapping
     the dash onto its own row */
  .section-eyebrow {
    font-size: 11.5px;
    letter-spacing: 0.14em;
  }
  .section-eyebrow::before {
    width: 20px;
  }

  /* Smaller, tighter brand for mobile */
  .brand {
    padding: 0.35rem 0;
    gap: 8px;
  }
  .brand-logo {
    height: 50px;
  }
  .site-nav.is-scrolled .brand-logo {
    height: 38px;
  }
  .site-nav.is-scrolled .brand {
    padding: 0.25rem 0;
  }

  /* ----- Buttons: full-width across all sections on phones ----- */
  /* Every .btn becomes block-level full-width so action items in the hero,
     trust ("Tasdiqlash"), catalog, contact form, etc. read consistently. */
  .btn {
    display: flex;
    width: 100%;
    flex: 1 1 100%;
    min-width: 0;
  }
  /* The archive "Show all / Collapse" toggle uses its own class. */
  .archive-toggle {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* ----- Hero ----- */
  .hero-title {
    font-size: clamp(34px, 9vw, 46px);
    line-height: 1.1;
  }
  .hero-lede {
    font-size: 16px;
    margin-top: 18px;
  }
  /* Make the CTA pair consistent — both full-width on phones */
  .hero-cta {
    margin-top: 24px;
    gap: 10px;
  }
  .hero-stats {
    margin-top: 32px;
    padding-top: 20px;
    gap: 14px;
  }
  .hero-stats dd {
    font-size: 11.5px;
    letter-spacing: 0.06em;
  }
  /* Rating chip — slightly compacter so it doesn't crowd the title above
     when the carousel area is collapsed */

  /* ----- About: kill desktop justify (looks bad with short mobile lines) ----- */
  .about-body p {
    text-align: justify;
  }
  .pillar {
    padding: 18px 18px;
  }

  /* ----- Trust: fix overflows ----- */
  .trust-wrap {
    /* Stack body + badge vertically instead of side-by-side flex row */
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 24px;
    text-align: left;
  }
  .trust-body {
    width: 100%;
  }
  .trust-actions {
    justify-content: flex-start;
    /* Tighter row-gap so the verified label sits comfortably under the
       full-width button instead of being pushed 32px away. */
    gap: 12px;
  }
  .trust-verified {
    flex: 1 1 100%;
    text-align: center;
  }
  .trust-badge {
    margin: 0;
    min-width: 0;
    width: 100%;
    align-self: center;
    padding: 22px 28px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .trust-badge-value {
    font-size: clamp(48px, 14vw, 64px);
  }
  .trust-badge-source {
    text-align: right;
  }
  .trust-metrics {
    /* Two columns instead of a single flex row — keeps metric cards
       readable and avoids right-edge clipping. */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1rem 0;
    gap: 14px 20px;
  }
  .trust-metric dd {
    font-size: 13.5px;
  }
  .trust-lede {
    font-size: 14.5px;
    padding-right: 0;
  }

  /* ----- Services ----- */
  .service-card {
    padding: 22px 22px 24px;
  }
  .service-num {
    margin-bottom: 12px;
  }

  /* ----- Catalog: make the two CTAs match width like the hero ----- */
  .catalog-cta .btn {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }

  /* ----- Fleet tile meta: model name was getting truncated to "T-..." on
       small tiles because the type pill consumed half the width. Stack the
       name above the pill instead. ----- */
  .fleet-tile-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .fleet-tile-cat {
    align-self: flex-start;
    font-size: 10px;
    padding: 3px 8px;
  }
  .fleet-tile-name {
    /* Already clamps with ellipsis; just allow up to 2 lines for long names */
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.2;
  }

  .partners-track {
    gap: 20px;
  }

  .partner-item {
    height: 80px;
  }
}

/* Extra-narrow phones (≤380px): a touch more compression */
@media (max-width: 380px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand-logo {
    height: 60px;
  }
  .hero-title {
    font-size: 32px;
  }
}
