/* ==========================================================================
   SAPCO Group website
   Colours are taken from the SAPCO logo: blue #0052A3 and red #D7141C.
   ========================================================================== */

:root {
  --blue: #0052a3;
  --blue-700: #003f7f;
  --blue-900: #04254d;
  --blue-50: #eef4fb;
  --blue-100: #d9e7f6;
  --red: #d7141c;
  --red-50: #fdeced;
  --ink: #0b1b33;
  --ink-2: #26364d;
  --muted: #5a6a82;
  --line: #e3e9f1;
  --soft: #f5f8fc;
  --white: #fff;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 51, .05), 0 2px 6px rgba(11, 27, 51, .05);
  --shadow: 0 14px 34px -16px rgba(11, 27, 51, .22);
  --shadow-lg: 0 28px 60px -24px rgba(11, 27, 51, .32);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --header-h: 68px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 800; }
p { margin: 0 0 1em; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid rgba(0, 82, 163, .45);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.text-blue { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, color .25s, border-color .25s;
}

.btn i { transition: transform .25s var(--ease); }
.btn:hover i { transform: translateX(3px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(0, 82, 163, .7);
}

.btn-primary:hover {
  background: var(--blue-700);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(0, 82, 163, .75);
}

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

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--blue);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .45);
}

.btn-sm { padding: 10px 18px; font-size: 14px; }

.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Scroll progress + back to top ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 200;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 70%, var(--red) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), background-color .2s;
}

.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue-700); color: #fff; }

/* ---------- Header (slim, shrinks a little when you scroll) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height .3s var(--ease), background-color .3s, border-color .3s, box-shadow .3s;
}

.site-header.is-scrolled {
  --header-h: 58px;
  background: rgba(255, 255, 255, .92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px -22px rgba(11, 27, 51, .45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  height: calc(var(--header-h) - 20px);
  width: auto;
  transition: height .3s var(--ease);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a:not(.btn) {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color .2s, background-color .2s;
}

.nav a:not(.btn):hover { color: var(--blue); background: var(--blue-50); }
.nav a.active { color: var(--blue); }

.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--red);
}

.nav .nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--blue-50);
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transition: transform .3s var(--ease), opacity .2s;
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(100vh, 920px);
  display: flex;
  align-items: center;
  padding: calc(68px + 48px) 0 72px;
  background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  will-change: transform;
}

.blob-blue {
  width: 620px;
  height: 620px;
  top: -220px;
  right: -140px;
  background: radial-gradient(circle, rgba(0, 82, 163, .22) 0%, rgba(0, 82, 163, 0) 68%);
  animation: drift-a 18s ease-in-out infinite alternate;
}

.blob-red {
  width: 460px;
  height: 460px;
  bottom: -200px;
  left: -140px;
  background: radial-gradient(circle, rgba(215, 20, 28, .14) 0%, rgba(215, 20, 28, 0) 68%);
  animation: drift-b 22s ease-in-out infinite alternate;
}

.blob-sky {
  width: 380px;
  height: 380px;
  top: 30%;
  left: 38%;
  background: radial-gradient(circle, rgba(64, 140, 220, .14) 0%, rgba(64, 140, 220, 0) 68%);
  animation: drift-c 26s ease-in-out infinite alternate;
}

.dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 27, 51, .09) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

@keyframes drift-a { to { transform: translate(-80px, 60px) scale(1.08); } }
@keyframes drift-b { to { transform: translate(90px, -50px) scale(1.12); } }
@keyframes drift-c { to { transform: translate(-60px, -40px) scale(.9); } }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--red);
  opacity: 0;
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(.6); opacity: .7; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero h1 {
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin-bottom: 24px;
}

.hl {
  position: relative;
  display: inline-block;
  color: var(--blue);
  white-space: nowrap;
}

.hl svg {
  position: absolute;
  left: 2%;
  bottom: -.12em;
  width: 96%;
  height: .26em;
  overflow: visible;
}

.hl path {
  fill: none;
  stroke: var(--red);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw 1.1s .7s var(--ease) forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-lead {
  max-width: 560px;
  font-size: 18.5px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-lead strong { color: var(--ink); }

.hero-rotator {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 34px;
  min-height: 1.6em;
}

.rotator {
  display: inline-block;
  color: var(--blue);
  font-weight: 800;
  border-bottom: 2px solid rgba(215, 20, 28, .5);
  transition: opacity .35s, transform .35s var(--ease);
}

.rotator.is-out { opacity: 0; transform: translateY(-10px); }
.rotator.is-in { opacity: 0; transform: translateY(10px); transition: none; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* hero picture with orbit rings and floating number cards */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1;
  margin-inline: auto;
}

.orb {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #eef4fb 46%, #d6e5f6 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 82, 163, .08), 0 50px 90px -50px rgba(0, 82, 163, .55);
}

.ring {
  position: absolute;
  border-radius: 50%;
  animation: spin 40s linear infinite;
}

.ring-1 { inset: 2%; border: 1.5px dashed rgba(0, 82, 163, .25); }
.ring-2 { inset: -4%; border: 1px solid rgba(0, 82, 163, .1); animation-duration: 28s; animation-direction: reverse; }

.ring::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -6px;
  width: 11px;
  height: 11px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(0, 82, 163, .12);
}

.ring-2::after { left: auto; right: -5px; background: var(--red); box-shadow: 0 0 0 5px rgba(215, 20, 28, .12); }

@keyframes spin { to { transform: rotate(360deg); } }

.hero-visual picture {
  position: absolute;
  inset: 9%;
  animation: float 7s ease-in-out infinite;
}

.hero-visual picture img { width: 100%; height: 100%; object-fit: contain; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-lg);
  animation: bob 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.float-card span:not(.fc-icon) { font-size: 12.5px; font-weight: 600; color: var(--muted); }

.fc-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--blue-50);
  color: var(--blue);
}

.fc-2 .fc-icon { background: var(--red-50); color: var(--red); }

.fc-1 { top: 9%; left: -7%; }
.fc-2 { top: 47%; right: -9%; animation-delay: -2s; }
.fc-3 { bottom: 5%; left: 4%; animation-delay: -4s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Moving brand strip ---------- */
.brands-strip {
  padding: 34px 0 38px;
  background: #fff;
  border-block: 1px solid var(--line);
}

.strip-title {
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  width: max-content;
  animation: marquee 50s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee img {
  width: 140px;
  height: 64px;
  object-fit: cover;
  filter: grayscale(1);
  opacity: .6;
  transition: filter .3s, opacity .3s;
}

.marquee img:hover { filter: none; opacity: 1; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(72px, 9vw, 116px) 0;
}

.section-soft { background: var(--soft); }

.section-head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue);
}

.kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--red);
}

h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -.028em;
  margin-bottom: 16px;
}

.section-head p {
  font-size: 17.5px;
  color: var(--muted);
  margin: 0;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}

.about-copy p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.checks i { color: var(--blue); font-size: 20px; line-height: 1.25; }

.about-cards { display: grid; gap: 20px; }

.mv-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s;
}

.mv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.mv-card h3 { font-size: 22px; margin: 18px 0 10px; }
.mv-card p { margin: 0; line-height: 1.7; color: var(--muted); }

.mv-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: var(--blue-50);
  color: var(--blue);
}

.mv-dark {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue) 100%);
}

.mv-dark h3 { color: #fff; }
.mv-dark p { color: rgba(255, 255, 255, .8); }
.mv-dark .mv-icon { background: rgba(255, 255, 255, .12); color: #fff; }

.mv-dark::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -130px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 22px solid var(--red);
  opacity: .9;
}

.mv-dark p { position: relative; max-width: 80%; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 30px 24px 28px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 72%, var(--red) 72% 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before { transform: scaleX(1); }

.service-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #edf1f7;
  transition: color .35s;
}

.service-card:hover .service-num { color: var(--blue-50); }

.service-icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 25px;
  background: var(--blue-50);
  color: var(--blue);
  transition: background-color .35s, color .35s, transform .35s var(--ease);
}

.service-card:hover .service-icon {
  background: var(--blue);
  color: #fff;
  transform: rotate(-6deg) scale(1.06);
}

.service-card h3 { font-size: 18.5px; margin: 22px 0 10px; letter-spacing: -.01em; }
.service-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* ---------- Companies ---------- */
.company-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.company-grid > * { flex: 0 1 calc((100% - 44px) / 3); }

.company-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}

.company-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.company-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.company-logo {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  padding: 6px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  transition: transform .35s var(--ease);
}

.company-card:hover .company-logo { transform: scale(1.05) rotate(-2deg); }

.company-logo img { width: 100%; height: 100%; object-fit: contain; }

.company-card h3 { font-size: 19px; letter-spacing: -.01em; margin-bottom: 4px; }

.company-full {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.company-desc {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.company-desc.is-open { display: block; -webkit-line-clamp: unset; }

.read-more {
  align-self: flex-start;
  margin: -10px 0 18px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
}

.read-more:hover { text-decoration: underline; }

.company-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 700;
  transition: background-color .25s, color .25s;
}

.link-pill:hover { background: var(--blue); color: #fff; }

.icon-pill {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--ink-2);
  font-size: 16px;
  transition: background-color .25s, color .25s;
}

.icon-pill:hover { background: #0a66c2; color: #fff; }

/* ---------- Partners ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}

.tab:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }

.tab-count {
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.tab-count:empty { display: none; }

.tab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.tab.is-active .tab-count { background: rgba(255, 255, 255, .2); color: #fff; }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 14px;
}

.logo-tile {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s, filter .3s, opacity .3s, border-color .3s;
}

.logo-tile.logo-wide { padding: 14px 24px; }

.logo-tile:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.logo-tile.is-hidden { display: none; }
.logo-tile.pop { animation: pop .45s var(--ease) both; }

@keyframes pop {
  from { opacity: 0; transform: scale(.9) translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Logos are calm grey until you point at them (mouse devices only; phones always show colour) */
@media (hover: hover) {
  .logo-tile { filter: grayscale(1); opacity: .85; }
  .logo-tile:hover { filter: none; opacity: 1; }
}

/* ---------- Call to action ---------- */
.cta { padding: 0 0 clamp(72px, 9vw, 116px); background: var(--soft); }

.cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding: clamp(36px, 5vw, 60px);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--blue-900) 0%, #06397a 50%, var(--blue) 100%);
  box-shadow: var(--shadow-lg);
}

.cta-card > div { position: relative; max-width: 620px; }
.cta-card h2 { color: #fff; margin-bottom: 8px; }
.cta-card p { margin: 0; font-size: 17px; color: rgba(255, 255, 255, .8); }
.cta-card .btn { position: relative; }

.cta-swoosh {
  position: absolute;
  right: -90px;
  bottom: -190px;
  width: 420px;
  height: 300px;
  border-radius: 50%;
  border: 26px solid var(--red);
  opacity: .9;
  transform: rotate(-16deg);
  animation: sway 9s ease-in-out infinite alternate;
}

.cta-swoosh::after {
  content: "";
  position: absolute;
  inset: -70px -60px auto auto;
  width: 260px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .18);
}

@keyframes sway { to { transform: rotate(-6deg) translate(-12px, -8px); } }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-info { display: grid; gap: 14px; }

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}

a.info-item:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.info-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--blue-50);
  color: var(--blue);
}

.info-item small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-item strong { font-size: 16px; font-weight: 700; }

.map {
  height: 250px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-form {
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.field textarea { min-height: 150px; resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 82, 163, .12);
}

.field.has-error input,
.field.has-error textarea { border-color: var(--red); background: #fff; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status {
  display: none;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
}

.form-status.is-loading { display: block; background: var(--blue-50); color: var(--blue); }
.form-status.is-success { display: block; background: #e8f7ee; color: #11713b; }
.form-status.is-error { display: block; background: var(--red-50); color: #a10f15; }
.form-status a { color: inherit; text-decoration: underline; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.form-note { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  background: #061a35;
  color: rgba(255, 255, 255, .68);
  font-size: 14.5px;
}

.footer-glow {
  position: absolute;
  top: -260px;
  right: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 82, 163, .45) 0%, rgba(0, 82, 163, 0) 65%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr .8fr 1fr 1.5fr;
  gap: 40px;
}

.footer-logo {
  display: inline-flex;
  padding: 10px 14px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: #fff;
}

.footer-logo img { height: 56px; width: auto; }

.footer-brand p { max-width: 300px; line-height: 1.7; }

.site-footer h4 {
  margin: 6px 0 18px;
  font-size: 15px;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-companies ul { grid-template-columns: 1fr 1fr; column-gap: 20px; }

.site-footer a { color: rgba(255, 255, 255, .68); transition: color .2s; }
.site-footer a:hover { color: #fff; }

.social { display: flex; gap: 10px; margin-top: 20px; }

.social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 16px;
  transition: background-color .25s, transform .25s var(--ease);
}

.social a:hover { background: var(--blue); transform: translateY(-2px); }

.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 56px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13.5px;
}

/* ---------- Scroll-in animation (only when JavaScript runs) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .company-grid > * { flex-basis: calc((100% - 22px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 18px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(11, 27, 51, .35);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .25s, transform .3s var(--ease);
  }

  .nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }

  .nav a:not(.btn) { padding: 12px 14px; border-radius: 12px; font-size: 16px; }
  .nav a.active::after { left: 4px; top: 50%; bottom: auto; margin: -2.5px 0 0; }
  .nav .nav-cta { margin: 8px 0 0; padding: 14px; }

  .hero { min-height: 0; padding: calc(68px + 36px) 0 64px; text-align: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 440px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding-inline: 18px; }

  .hero h1 { font-size: clamp(40px, 12vw, 54px); }
  .hero-lead { font-size: 16.5px; }
  .hero-rotator { font-size: 15.5px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .float-card { padding: 8px 12px 8px 8px; gap: 8px; border-radius: 14px; }
  .float-card strong { font-size: 18px; }
  .float-card span:not(.fc-icon) { font-size: 11px; }
  .fc-icon { width: 34px; height: 34px; flex-basis: 34px; font-size: 16px; border-radius: 10px; }
  .fc-1 { left: 0; top: 4%; }
  .fc-2 { right: 0; }
  .fc-3 { left: 2%; bottom: 2%; }

  .marquee img { width: 112px; height: 52px; }

  .company-grid > * { flex-basis: 100%; }

  .services-grid,
  .form-row,
  .footer-grid { grid-template-columns: 1fr; }

  .footer-companies ul { grid-template-columns: 1fr 1fr; }

  .logo-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
  .logo-tile { padding: 10px; border-radius: 12px; }

  .tab { padding: 8px 12px; font-size: 13px; }

  .cta-card { text-align: center; justify-content: center; }

  .to-top { right: 14px; bottom: 14px; }
}

/* ---------- Respect "reduce motion" settings ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }
  .hl path { stroke-dashoffset: 0; }
}
