/* S M International — site styles
   Light "modern tech" theme, set in Plus Jakarta Sans: heavy weights for headlines, regular for reading text. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --ink: #0E1B33;        /* logo navy */
  --muted: #4A5568;
  --line: #DCE1EA;
  --blue: #1F5BFF;
  --blue-dark: #1645CC;
  --blue-tint: #E8EEFF;
  --gold: #C9973A;       /* logo gold, used sparingly */
  --error: #B42318;

  --panel: #0E1B33;      /* photo frames and the call-to-action panel: dark in both themes */
  --on-ink: #FFFFFF;     /* text on an ink-coloured background */
  --link: #1F5BFF;       /* blue used for text */
  --link-hover: #1645CC;
  --header-bg: rgba(255, 255, 255, 0.94);
  --logo-blend: multiply;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

/* Dark theme: chosen with the switch in the top bar (light is the default) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1426;
  --surface: #111D35;
  --ink: #E8EDF6;
  --muted: #A3AEC2;
  --line: #22314F;
  --blue: #2A63FF;
  --blue-dark: #4475FF;
  --blue-tint: #1A2A52;
  --error: #FF8A80;
  --panel: #14284F;
  --on-ink: #0B1426;
  --link: #8AAEFF;
  --link-hover: #B3CBFF;
  --header-bg: rgba(17, 29, 53, 0.92);
  --logo-blend: normal;
}
:root { color-scheme: light; }

/* Desktop: wider content area with slimmer side margins (tablets and phones unchanged) */
@media (min-width: 1024px) {
  :root {
    --wrap: 1440px;
    --gutter: 48px;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure, address { margin: 0; }
address { font-style: normal; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--flush-top { padding-top: 0; }

.surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

/* ---------- Type ---------- */

.display {
  font-size: clamp(2.4rem, 5.2vw, 4.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.h3 {
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.lede {
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  line-height: 1.6;
}

.body-text { max-width: 62ch; color: var(--muted); }
.body-text + .body-text { margin-top: 1em; }

.pullquote {
  max-width: 40ch;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 50px;
  padding: 0 1.5em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--sm { min-height: 42px; padding: 0 1.2em; font-size: 0.95rem; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--on-ink); }
.btn--light { background: #fff; color: #0E1B33; }
.btn--light:hover { background: #E8EEFF; }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Two call buttons that always stay side by side (wrapping together as one group) */
.actions__calls { display: flex; flex-wrap: wrap; gap: 12px; }

/* Text links: no underline; a small arrow in the link colour marks them as clickable */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}
.text-link::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}
.text-link:hover { color: var(--link-hover); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Brand lockup ---------- */

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

/* Crops the square logo file down to the SM + globe emblem */
.brand__mark {
  --h: 42px;
  position: relative;
  display: block;
  flex: none;
  width: calc(var(--h) * 870 / 515);
  height: var(--h);
  overflow: hidden;
}
.brand__mark img {
  position: absolute;
  left: calc(var(--h) * -75 / 515);
  top: calc(var(--h) * -125 / 515);
  width: calc(var(--h) * 1000 / 515);
  max-width: none;
  mix-blend-mode: var(--logo-blend);
}
/* On dark backgrounds the logo sits on a small white badge */
[data-theme="dark"] .brand__mark {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 4px #fff;
}

.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__sm {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand__intl {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase; /* matches the wordmark in the logo */
}

/* ---------- Header ---------- */

/* No colour at the top of the page; the bar only gets a background once the page scrolls */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.nav { margin-inline: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.nav__link:hover { background: var(--surface); }
.nav__link[aria-current="page"],
.nav__link.is-current { background: var(--blue-tint); color: var(--link-hover); }
.nav__chevron { width: 12px; height: 12px; transition: transform 0.15s; }

.has-menu { position: relative; }
.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: -8px;
  display: none;
  min-width: 290px;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px -24px rgba(14, 27, 51, 0.35);
}
.has-menu.is-open .submenu { display: block; }
.has-menu.is-open .nav__chevron { transform: rotate(180deg); }
.submenu a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1.3;
}
.submenu a:hover,
.submenu a[aria-current="page"] { background: var(--bg); }
.submenu small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.header-actions { display: flex; align-items: center; gap: 16px; }
/* Call button in the top bar */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 1.1em;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.header-phone:hover { background: var(--blue-dark); }
.header-phone__icon { width: 16px; height: 16px; flex: none; }

/* Light / dark switch: sun and moon, the active one highlighted */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.theme-toggle__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
}
.theme-toggle__icon svg { width: 17px; height: 17px; }
.theme-toggle:hover { color: var(--ink); }
:root:not([data-theme="dark"]) .theme-toggle__icon--sun,
[data-theme="dark"] .theme-toggle__icon--moon {
  background: var(--ink);
  color: var(--on-ink);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}
.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s;
}
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.nav__extra { display: none; }

/* Top-bar logo: navy version on light backgrounds, white version on dark ones (dark mode, home hero) */
.brand__logo {
  display: block;
  width: auto;
  height: 54px;
}
.brand__logo--white,
[data-theme="dark"] .brand__logo--navy { display: none; }
[data-theme="dark"] .brand__logo--white { display: block; }
@media (max-width: 640px) {
  .brand__logo { height: 46px; }
}
@media (max-width: 400px) {
  .brand__logo { height: 40px; }
}

/* ---------- Home hero ----------
   Full-width product photo behind the text; name, headline, intro and buttons on the left. */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 74vh, 700px);
  padding-block: clamp(56px, 7vw, 96px) clamp(120px, 12vw, 160px); /* bottom room for the facts strip */
  background: #0B224C; /* matches the photo's left edge, so the photo can sit at its natural size */
  color: #fff;
}
.hero > .wrap { width: 100%; }
.hero__content { max-width: 720px; }
.hero__content > * + * { margin-top: 22px; }
.hero__content .actions { margin-top: 34px; }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  animation: hero-settle 2.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
/* Tablets and desktops: show the whole photo at the hero's height, anchored right, instead of enlarging it to fill the width */
@media (min-width: 768px) {
  .hero__bg img {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    max-width: none;
    height: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14%);
  }
}
/* Shading keeps the text readable on the left and lets the products show on the right */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 14, 34, 0.92) 0%, rgba(6, 14, 34, 0.7) 38%, rgba(6, 14, 34, 0.12) 70%, rgba(6, 14, 34, 0) 100%),
    linear-gradient(0deg, rgba(6, 14, 34, 0.55) 0%, rgba(6, 14, 34, 0) 35%);
}
@keyframes hero-settle {
  from { transform: scale(1.04); opacity: 0.35; }
}

/* Company name: "SM" with "INTERNATIONAL" beside it and a gold rule underneath */
.hero__name {
  position: relative;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding-bottom: 18px;
  line-height: 1;
  animation: hero-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero__name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
}
.hero__sm {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #FFFFFF 35%, #B9CCFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__intl {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase; /* matches the wordmark in the logo */
  color: #C9D6F2;
}

.hero__title {
  max-width: 13.6em;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  animation: hero-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}
.hero .lede {
  max-width: 50ch;
  color: rgba(226, 233, 246, 0.86);
  animation: hero-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}
.hero .actions { animation: hero-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
}

/* Desktop: the intro breaks into three set lines; smaller screens wrap naturally */
.br-desktop { display: none; }
@media (min-width: 1024px) {
  .hero .lede { max-width: none; }
  .br-desktop { display: inline; }
}

/* The facts strip sits across the bottom edge of the hero */
.hero__facts {
  position: relative;
  z-index: 2;
  margin-top: calc(clamp(56px, 6vw, 84px) * -1);
}
.hero__facts .facts {
  margin: 0 clamp(0px, 2vw, 24px);
  box-shadow: 0 24px 48px -28px rgba(14, 27, 51, 0.45);
}

.facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: -52px clamp(12px, 3vw, 40px) 0;
  list-style: none;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.fact { padding: 22px 26px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact__value {
  display: block;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
}
.fact__label { display: block; margin-top: 6px; color: var(--muted); font-size: 0.92rem; line-height: 1.35; }

/* ---------- Brand logos ---------- */

.brands-strip__inner {
  display: flex;
  align-items: center;
  gap: 28px 48px;
}
.brands-strip__title {
  flex: none;
  max-width: 10rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}
.marquee {
  flex: 1;
  min-width: 0;
  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 {
  --gap: 56px;
  display: flex;
  align-items: center;
  gap: var(--gap);
  width: max-content;
  list-style: none;
  padding: 0;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
/* The list is repeated once; moving by half its width (plus half a gap) loops seamlessly */
@keyframes marquee {
  to { transform: translateX(calc(-50% - var(--gap) / 2)); }
}

.logo-row {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  list-style: none;
  padding: 0;
}
/* Source logos are white marks centred on a 150x100 canvas; render them in ink for the light theme */
[data-theme="dark"] .logo-img { filter: brightness(0) invert(1); opacity: 0.85; }
[data-theme="dark"] .feature img,
[data-theme="dark"] .point img { filter: brightness(0) invert(1); opacity: 0.85; }

.logo-img {
  width: auto;
  height: 56px;
  margin-block: -10px;
  filter: brightness(0);
  opacity: 0.75;
}
/* Brand name set as a wordmark, for brands without a logo file */
.logo-word {
  display: inline-block;
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.75;
}

/* ---------- Section heading block ---------- */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px 64px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head--single { grid-template-columns: minmax(0, 1fr); }

/* ---------- Product categories ---------- */

.catalogue {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 28px;
  list-style: none;
  padding: 0;
}
.category__media {
  aspect-ratio: 371 / 288;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--panel);
}
.category__media img { width: 100%; height: 100%; object-fit: cover; }
.category__media--logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: radial-gradient(120% 90% at 50% 100%, #1B3A7A 0%, var(--panel) 70%);
}
.category__media .logo-on-dark { width: 42%; height: auto; object-fit: contain; }
.category__title { margin-top: 20px; }
.category__text { margin-top: 8px; color: var(--muted); max-width: 40ch; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  list-style: none;
  padding: 0;
}
.tag {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  line-height: 1.5;
}
.category .text-link { margin-top: 18px; }

/* ---------- Split (image + text) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.split--reverse .split__media { order: 2; }
.split__body > * + * { margin-top: 20px; }
.split__body .actions,
.split__body .text-link { margin-top: 28px; }

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Why us ---------- */

.reasons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.reasons__intro > * + * { margin-top: 20px; }

.checklist { list-style: none; padding: 0; margin-top: 28px; }
.checklist li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.checklist li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%231F5BFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.features { list-style: none; padding: 0; }
.feature {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature img { width: 56px; height: 56px; }
.feature p { margin-top: 6px; color: var(--muted); }

/* ---------- Columns of short points (about page) ---------- */

.points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 28px;
  list-style: none;
  padding: 0;
}
.points--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(32px, 6vw, 88px); }
.point { padding-top: 20px; border-top: 2px solid var(--ink); }
.point img,
.point__icon { display: block; width: 48px; height: 48px; margin-bottom: 16px; }
.point__icon { color: var(--link); }
.point p { margin-top: 10px; color: var(--muted); }
.points--2 .point p { font-size: 1.1rem; }

.regions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  list-style: none;
  padding: 0;
}
.region {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
}
.region--home { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* ---------- Call to action band ---------- */

.cta {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
  color: #fff;
}
.cta__body { padding: clamp(32px, 5vw, 64px); }
.cta__body > * + * { margin-top: 18px; }
.cta__body .lede { color: #C5CEDD; }
.cta__body .actions { margin-top: 32px; }
.cta__media { min-height: 260px; overflow: hidden; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__contact {
  margin-top: 28px;
  color: #C5CEDD;
  font-size: 0.95rem;
}
.cta__contact a { color: #fff; text-decoration: none; font-weight: 600; }
.cta__contact a:hover { text-decoration: underline; }

/* ---------- Inner page header ---------- */

.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(48px, 7vw, 88px); }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.page-hero__body > * + * { margin-top: 20px; }
.page-hero__body .actions { margin-top: 32px; }
.page-hero__title {
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
/* About page: "About" on line 1, "S M International – UAE" kept whole on line 2 at every screen size */
.page-hero__title--split {
  font-size: min(clamp(1.9rem, 3.4vw, 3rem), calc((100vw - 2 * var(--gutter)) / 14.8));
}
.nowrap { white-space: nowrap; }

.page-hero__subtitle {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.25;
}
.page-hero__media {
  aspect-ratio: 1 / 0.9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
}
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.page-hero__media--center img { object-position: 50% 50%; }
/* Contact page: a smaller landscape photo */
.page-hero__media--cargo {
  justify-self: end;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 16 / 10;
}
.page-hero__media--cargo img { object-position: 55% 50%; }

/* ---------- Brands grid ---------- */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.brand-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  padding: 24px;
  background: var(--surface);
}
.brand-cell__logo {
  display: grid;
  flex: 1;
  place-items: center;
}
.brand-cell__logo .logo-img { height: 96px; margin: 0; opacity: 0.85; }
.brand-cell__name { color: var(--muted); font-size: 0.9rem; }
.brand-cell__logo .logo-word { font-size: 1.75rem; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease; }

.brand-cell--more { background: var(--blue-tint); }
.brand-cell--more p { font-weight: 600; font-size: 1.15rem; line-height: 1.35; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
}
.contact-list > div { padding: 20px 0; border-top: 1px solid var(--line); }
.contact-list > div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-size: 0.9rem; }
.contact-list dd {
  margin-top: 4px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}
.contact-list a { text-decoration: none; }
.contact-list__phones { display: grid; gap: 4px; }
.contact-list a:hover { color: var(--link); }

.map {
  margin-top: 28px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.form {
  padding: clamp(24px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.form__title { margin-bottom: 8px; }
.form__intro { color: var(--muted); margin-bottom: 28px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.95rem; font-weight: 600; }
.field .optional { color: var(--muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.875rem; }
.field-error:empty { display: none; }
.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}
.form__note { flex: 1; min-width: 220px; color: var(--muted); font-size: 0.9rem; }
.form__status { margin-top: 16px; font-weight: 600; color: var(--link-hover); }
.form__status:empty { display: none; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 64px 28px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.5fr;
  gap: 36px;
}
.footer-brand .brand__logo { height: 76px; }
.footer-brand p { margin-top: 16px; max-width: 32ch; color: var(--muted); }
.footer-title { margin-bottom: 14px; font-size: 0.95rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li + li { margin-top: 10px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-contact address { color: var(--muted); line-height: 1.55; }
.footer-contact .footer-links { margin-top: 14px; }
.footer-bottom {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Responsive ---------- */


@media (max-width: 980px) {
  .menu-button { display: block; }
  .header-actions { margin-left: auto; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(14, 27, 51, 0.4);
  }
  .site-header.is-open .nav { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; padding: 0; border: 0; border-radius: 0; background: none; }
  .nav__link { width: 100%; height: 48px; font-size: 1.05rem; justify-content: space-between; }
  .submenu {
    position: static;
    min-width: 0;
    margin: 4px 0 8px;
    box-shadow: none;
    background: var(--bg);
    border: 0;
  }
  .nav__extra {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .nav__extra a:not(.btn) { font-weight: 600; text-decoration: none; }
  /* Phone number in the open menu: the same blue pill as the desktop header */
  .nav__extra .nav__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 1.2em;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    white-space: nowrap;
    transition: background-color 0.15s;
  }
  .nav__extra .nav__phone:hover { background: var(--blue-dark); }

  .section-head,
  .split,
  .reasons,
  .page-hero__grid,
  .contact-grid,
  .cta { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 0; }
  .split__media { max-width: 560px; }
  .page-hero__media { max-width: 560px; }
  .page-hero__media--cargo { justify-self: start; max-width: 400px; }
  .page-hero__media--landscape { justify-self: start; max-width: 440px; }
  .catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brands-strip__inner { flex-direction: column; align-items: flex-start; }
  .marquee { width: 100%; }
  .marquee__track { --gap: 40px; }
  .brands-strip__title { max-width: none; }
  .logo-row { justify-content: flex-start; }
  .cta__media { order: -1; max-height: 280px; }
}

@media (max-width: 640px) {
  .header-phone { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .header-phone__number { display: none; }
  .site-header__inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .theme-toggle { padding: 5px; }
  :root:not([data-theme="dark"]) .theme-toggle__icon--moon,
  [data-theme="dark"] .theme-toggle__icon--sun { display: none; }
  .brand__mark { --h: 36px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 18px; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .catalogue,
  .points,
  .points--2,
  .form-grid,
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-cell { min-height: 150px; padding: 18px; }
  .brand-cell__logo .logo-img { height: 84px; }
  .logo-img { height: 52px; }
  .hero__content .actions,
  .hero__content .actions .btn { width: 100%; }
  .hero { min-height: 0; }
  .hero__bg img { object-position: 72% 75%; }
  .hero__bg::after {
    background: linear-gradient(180deg, rgba(6, 14, 34, 0.86) 0%, rgba(6, 14, 34, 0.74) 55%, rgba(6, 14, 34, 0.5) 100%);
  }
}

/* Small laptops / landscape tablets: keep the full menu but make the top bar more compact */
@media (min-width: 980.02px) and (max-width: 1150px) {
  .site-header__inner { gap: 16px; }
  .nav__list { gap: 8px; }
  .nav__link { padding: 0 13px; }
  .header-actions { gap: 10px; }
  .header-phone { width: 42px; padding: 0; justify-content: center; }
  .header-phone__number { display: none; }
}

/* Small phones (e.g. 360px Android): shrink the top bar so logo + 3 buttons always fit */
@media (max-width: 400px) {
  .site-header__inner { gap: 8px; }
  .brand { gap: 7px; }
  .brand__mark { --h: 30px; }
  .brand__sm { font-size: 1.05rem; }
  .brand__intl { margin-top: 2px; font-size: 0.58rem; letter-spacing: 0.12em; }
  .header-actions { gap: 5px; }
  .header-phone,
  .menu-button { width: 38px; height: 38px; min-height: 38px; }
  .theme-toggle { padding: 2px; }
  .theme-toggle__icon { width: 32px; height: 32px; }
  .menu-button span { width: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; flex-wrap: wrap; row-gap: 8px; }
  .marquee__track [aria-hidden="true"] { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Scroll animation ----------
   Only active once motion.js adds .motion-ready (never for reduced-motion visitors). */

.motion-ready [data-reveal] {
  transition:
    opacity 0.45s ease,
    transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0s);
}
.motion-ready [data-reveal="up"] { opacity: 0; transform: translateY(24px); }
/* Wipes clip the photo inside the frame. The frame itself stays unclipped so the browser
   always reports it as on screen and the reveal is triggered. */
.motion-ready [data-reveal^="wipe"] > img {
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0s);
}
/* Photos rise up from below while fading in (replaces the old left-to-right wipe) */
.motion-ready [data-reveal^="wipe"] > img { opacity: 0; transform: translateY(40px) scale(1.04); }
.motion-ready [data-reveal^="wipe"].is-visible > img { opacity: 1; transform: none; }
.motion-ready [data-reveal="grow"] { opacity: 0; transform: scale(0.94); }

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

/* Images that drift with scroll are slightly oversized so their edges never show */
.motion-ready [data-parallax] { transform: scale(1.12); will-change: transform; }

/* ---------- Products page ---------- */

/* Smaller page header with a wide rectangle photo */
.page-hero--compact { padding-block: clamp(40px, 6vw, 80px) clamp(36px, 5vw, 56px); }
.page-hero__media--landscape {
  justify-self: end;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 16 / 10;
}
.page-hero__media--landscape img { object-position: 50% 50%; }

/* Shop layout: filter sidebar on the left (pinned while scrolling), products on the right */
.shop-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}
.shop-filters {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  z-index: 5;
}
.shop-filters__toggle { display: none; }
.shop-filters__panel {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  padding: 18px 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overscroll-behavior: contain;
}
/* No visible scrollbar; the panel still scrolls with the mouse wheel if it is taller than the screen */
.shop-filters__panel { scrollbar-width: none; }
.shop-filters__panel::-webkit-scrollbar { display: none; }
.shop-filters__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; }
.shop-filters__heading { font-size: 1.1rem; font-weight: 800; }
.shop-filters__group {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.shop-filters__title { color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.filter-list { display: grid; gap: 2px; list-style: none; padding: 0; }
.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 6px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.filter-option:hover { background: var(--bg); }
.filter-option[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.filter-option__count {
  flex: none;
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
.filter-option[aria-pressed="true"] .filter-option__count { background: rgba(255, 255, 255, 0.16); color: inherit; }
[data-theme="dark"] .filter-option[aria-pressed="true"] .filter-option__count { background: rgba(11, 20, 38, 0.12); }
.shop-filters__clear {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.shop-filters__clear[hidden] { display: none; }
.shop-main__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 20px;
}
/* Premium brand names, shown above the cards (in place of a category intro) while the premium brands are selected */
.brand-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.brand-chips[hidden] { display: none; }
.brand-chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.brand-chip:hover { border-color: var(--ink); }
.brand-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* Short introduction shown for the chosen category */
.category-intro {
  margin-bottom: 28px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--gold);
  animation: card-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.category-intro[hidden] { display: none; }
.category-intro p { max-width: 70ch; margin-top: 6px; color: var(--muted); }

.product-empty {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
}
.product-empty[hidden] { display: none; }
.product-count { color: var(--muted); font-size: 0.95rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
}
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.product-card[hidden] { display: none; }
.product-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--panel);
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-card__media--logo {
  display: grid;
  place-items: center;
  background: radial-gradient(120% 90% at 50% 100%, #1B3A7A 0%, var(--panel) 70%);
}
.product-card__media--logo img { width: 58%; height: auto; object-fit: contain; }
/* Stand-in until the product photo is added */
.product-card__media--placeholder {
  display: grid;
  place-items: center;
  padding: 16px;
  background: radial-gradient(120% 90% at 50% 100%, #1B3A7A 0%, var(--panel) 75%);
}
.product-card__placeholder {
  color: #FFFFFF;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (hover: hover) {
  .product-card:hover .product-card__placeholder { transform: scale(1.06); }
}
.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 20px 20px 22px;
}
.product-card__brand { color: var(--link); font-size: 0.85rem; font-weight: 600; }
.product-card__title { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.product-card__text { flex: 1; color: var(--muted); font-size: 0.95rem; }
.product-card__cta { align-self: flex-start; margin-top: 14px; }
/* Cards fade in when a category is chosen */
.product-card.is-entering { animation: card-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
}
@media (hover: hover) {
  .product-card:hover { border-color: transparent; box-shadow: 0 24px 44px -26px rgba(14, 27, 51, 0.55); }
  .product-card:hover .product-card__media img { transform: scale(1.06); }
}
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1150px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Phones and tablets: the sidebar becomes a pinned "Filters" bar that opens a panel */
@media (max-width: 980px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .shop-filters { top: calc(var(--header-h) + 10px); z-index: 20; }
  .shop-filters__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: 0 12px 26px -20px rgba(14, 27, 51, 0.5);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  .shop-filters__toggle-label { display: inline-flex; align-items: center; gap: 8px; }
  .shop-filters__toggle-label svg { width: 18px; height: 18px; }
  .shop-filters__summary {
    overflow: hidden;
    max-width: 62%;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .shop-filters__panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h) - 90px);
    overflow-y: auto;
    box-shadow: 0 24px 48px -24px rgba(14, 27, 51, 0.5);
  }
  .shop-filters.is-open .shop-filters__panel { display: grid; animation: drop-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .shop-filters__heading { display: none; }
  .shop-filters__head:not(:has(.shop-filters__clear:not([hidden]))) { display: none; }
  .shop-filters__group:first-of-type { padding-top: 0; border-top: 0; }
  .filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .filter-option { width: auto; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================================
   Interaction effects (inspired by pacificsupplyfzco.com)
   Hover effects only run on devices with a mouse; everything here is
   switched off for visitors who prefer reduced motion (see the end).
   ========================================================================= */

/* 1. Top bar: slimmer, with a shadow and frosted blur once the page is scrolled */
.site-header { transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
.site-header__inner { transition: height 0.3s ease; }
.site-header.is-scrolled,
.site-header.is-open {
  background: var(--header-bg);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 32px -20px rgba(14, 27, 51, 0.45);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
}

/* Home page: the hero photo runs up behind the top bar, so the logo and menu sit on the image */
.site-header--over-hero + main > .hero:first-child {
  margin-top: calc(-1 * var(--header-h) - 1px);
  padding-top: calc(clamp(56px, 7vw, 96px) + var(--header-h));
}
.site-header--over-hero:not(.is-scrolled):not(.is-open) .brand__logo--navy { display: none; }
.site-header--over-hero:not(.is-scrolled):not(.is-open) .brand__logo--white { display: block; }
.site-header--over-hero:not(.is-scrolled):not(.is-open) .theme-toggle,
.site-header--over-hero:not(.is-scrolled):not(.is-open) .menu-button {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.8);
}
.site-header--over-hero:not(.is-scrolled):not(.is-open) .menu-button span { background: #fff; }
:root:not([data-theme="dark"]) .site-header--over-hero:not(.is-scrolled):not(.is-open) .theme-toggle__icon--sun,
[data-theme="dark"] .site-header--over-hero:not(.is-scrolled):not(.is-open) .theme-toggle__icon--moon {
  background: #fff;
  color: #0E1B33;
}
@media (min-width: 981px) {
  .site-header--over-hero:not(.is-scrolled) .nav__list {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
  }
  .site-header--over-hero:not(.is-scrolled) .nav__link { color: #fff; }
  .site-header--over-hero:not(.is-scrolled) .nav__link:hover { background: rgba(255, 255, 255, 0.14); }
  .site-header--over-hero:not(.is-scrolled) .nav__link[aria-current="page"] { background: #fff; color: #0E1B33; }
}
@media (min-width: 981px) {
  .site-header.is-scrolled .site-header__inner { height: 62px; }
}

/* 2. Buttons: colour sweeps across from the left on hover */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --sweep: var(--blue-dark);
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sweep);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.25, 1);
}
.btn--outline { --sweep: var(--ink); }
.btn--light { --sweep: #DCE6FF; }
.btn--outline-light { --sweep: #fff; }
/* keep the resting colour so the sweep is what changes it */
.btn--primary:hover { background: var(--blue); }
.btn--outline:hover { background: transparent; }
.btn--light:hover { background: #fff; }
.btn--outline-light:hover { background: transparent; color: #0E1B33; border-color: #fff; }

@media (hover: hover) {
  .btn:hover::before { transform: scaleX(1); transform-origin: left center; }
  .btn--primary:hover { box-shadow: 0 12px 26px -12px rgba(31, 91, 255, 0.7); transform: translateY(-1px); }
}

/* 3. Product tiles and photos: tile lifts, photo zooms gently */
.motion-ready .category__media,
.category__media {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  transition-delay: 0s;
}
.category__media img,
.page-hero__media img,
.split__media img,
.hero__visual img {
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), clip-path 0.85s cubic-bezier(0.65, 0, 0.25, 1);
}
/* photos that also wipe in on scroll: keep the wipe timing and add the zoom */
.motion-ready [data-reveal^="wipe"] > img {
  transition:
    opacity 0.8s ease var(--delay, 0s),
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay, 0s);
}

@media (hover: hover) {
  .category:hover .category__media {
    transform: translateY(-6px);
    box-shadow: 0 24px 44px -24px rgba(14, 27, 51, 0.6);
  }
  .category:hover .category__media img,
  .page-hero__media:hover img,
  .split__media:hover img { transform: scale(1.06); }
}

/* 4. Brands grid: logo grows and the cell gets a light tint */
.brand-cell { transition: background-color 0.3s ease; }
.brand-cell__logo .logo-img { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease; }
@media (hover: hover) {
  .brand-cell:not(.brand-cell--more):hover { background: var(--blue-tint); }
  .brand-cell:hover .logo-img,
  .brand-cell:hover .logo-word { transform: scale(1.08); opacity: 1; }
}

/* 5. Small icons lift and tilt on hover */
.feature img,
.point img,
.point__icon { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@media (hover: hover) {
  .feature:hover img,
  .point:hover img,
  .point:hover .point__icon { transform: translateY(-4px) rotate(-6deg); }
}

/* 6. Home hero photo drifts very slowly so the first screen never feels static */
.hero__bg img {
  transform-origin: 70% 60%;
  animation: hero-drift 20s ease-in-out 2.6s infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1) translateX(0); }
  to { transform: scale(1.06) translateX(-1.5%); }
}

/* 7. Menus slide open instead of popping in */
.has-menu.is-open .submenu { animation: drop-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
.site-header.is-open .nav { animation: drop-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .btn::before { transition: none; }
  .hero__bg img { animation: none; }
}

/* Hover lift on cards across pages (uses "translate" so it never fights the scroll reveal) */
.product-card, .brand-cell, .point, .contact-list > div, .region { transition: translate 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.3s ease; }
@media (hover: hover) {
  .product-card:hover { translate: 0 -6px; }
  .brand-cell:hover { translate: 0 -4px; box-shadow: 0 18px 36px -22px rgba(14, 27, 51, 0.5); position: relative; z-index: 1; }
  .point:hover { translate: 0 -4px; }
  .region:hover { translate: 0 -3px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card:hover, .brand-cell:hover, .point:hover, .region:hover { translate: none; }
}

/* Page headers: same entrance as the Home hero — text rises in one after another, photo settles in */
.page-hero__body > * { animation: hero-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.page-hero__body > :nth-child(2) { animation-delay: 0.1s; }
.page-hero__body > :nth-child(3) { animation-delay: 0.2s; }
.page-hero__body > :nth-child(4) { animation-delay: 0.3s; }
.page-hero__body > :nth-child(n + 5) { animation-delay: 0.4s; }
.page-hero__media { animation: hero-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both; }
.page-hero__media img { animation: hero-settle 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s backwards; }

/* "Why choose us?" — its own entrance: items slide in from the left, ticks pop, dividers draw */
.reasons .checklist li { position: relative; border-top-color: transparent; }
.reasons .checklist li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: var(--line);
  transform-origin: left center;
}
.motion-ready .reasons .checklist li[data-reveal] { transform: translateX(-28px); }
.motion-ready .reasons .checklist li[data-reveal].is-visible { transform: none; }
.motion-ready .reasons .checklist li[data-reveal]::before { transform: scale(0); }
.motion-ready .reasons .checklist li[data-reveal]::after { transform: scaleX(0); }
.motion-ready .reasons .checklist li[data-reveal].is-visible::before {
  animation: tick-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--delay, 0s) + 0.25s) both;
}
.motion-ready .reasons .checklist li[data-reveal].is-visible::after {
  animation: line-draw 0.7s cubic-bezier(0.65, 0, 0.25, 1) var(--delay, 0s) both;
}
@keyframes tick-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes line-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.reasons .checklist li { transition: translate 0.3s ease, color 0.3s ease; }
.reasons .checklist li::before { transition: background-color 0.3s ease; }
@media (hover: hover) {
  .reasons .checklist li:hover { translate: 6px 0; color: var(--link); }
  .reasons .checklist li:hover::before {
    background-color: var(--blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}


/* ---------- Global shipping network (Home) ---------- */
.network__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.network__map { padding: 0; }
.network__head { gap: 12px; }
.network__map svg { display: block; width: 100%; height: auto; }
.network__land circle { fill: var(--blue); opacity: 0.22; }
.network__head .lede { max-width: none; }
.network__route {
  fill: none;
  stroke: var(--link);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 2 10;
  animation: route-flow 1.4s linear infinite;
}
.network__route--b { animation-duration: 1.1s; }
@keyframes route-flow { to { stroke-dashoffset: -24; } }
.network__point { fill: var(--blue); stroke: var(--surface); stroke-width: 3; }
.network__pulse { fill: var(--blue); opacity: 0.25; transform-box: fill-box; transform-origin: center; animation: node-pulse 2.4s ease-out infinite; }
.network__node--home .network__point,
.network__node--home .network__pulse { fill: var(--gold); }
@keyframes node-pulse {
  from { transform: scale(1); opacity: 0.35; }
  to { transform: scale(2.6); opacity: 0; }
}
.network__node text { fill: var(--ink); font-family: inherit; font-size: 15px; font-weight: 700; }

.network__hubs { list-style: none; padding: 0; }
.network__hub { position: relative; padding: 20px 0 20px 26px; border-top: 1px solid var(--line); }
.network__hub:last-child { border-bottom: 1px solid var(--line); }
.network__hub::before {
  content: "";
  position: absolute;
  left: 0;
  top: 27px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
}
.network__hub--home::before { background: var(--gold); }
.network__hub p { margin-top: 6px; color: var(--muted); }

.network__partners { margin-top: clamp(40px, 6vw, 64px); }
.network__partners-title { margin-bottom: 16px; color: var(--muted); font-size: 0.95rem; font-weight: 700; }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.partner-grid li {
  display: grid;
  place-content: center;
  gap: 4px;
  min-height: 96px;
  padding: 16px;
  background: var(--surface);
  font-size: 1.02rem;
  font-weight: 800;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.partner-grid__name { font-size: 1.15rem; }
.partner-grid__role { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
/* "+N more" tile: tinted so it reads as a summary, not another partner */
.partner-grid li.partner-grid__more { background: var(--blue-tint); color: var(--link); }
@media (hover: hover) {
  .partner-grid li:hover { background: var(--blue-tint); color: var(--link-hover); }
}
@media (max-width: 980px) {
  .network__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-grid__more { grid-column: 1 / -1; }
  .partner-grid li { min-height: 76px; font-size: 0.95rem; }
  .partner-grid__name { font-size: 1rem; }
  .partner-grid__role { font-size: 0.82rem; }
}

/* ---------- Global reach map (About) ---------- */
.reach {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.reach__text > * + * { margin-top: 20px; }
.reach__text .regions { margin-top: 28px; }
.region[data-market] { cursor: pointer; transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, translate 0.25s ease; }
.region[data-market].is-active { background: var(--blue); border-color: var(--blue); color: #fff; translate: 0 -2px; }
.region[data-market]:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.reach__map svg { display: block; width: 100%; height: auto; }
.reach__land circle {
  fill: var(--blue);
  opacity: 0.22;
  transition: opacity 0.35s ease, fill 0.35s ease;
}
/* A market is active: dim the rest, light up that region */
[data-active] .reach__land circle { opacity: 0.12; }
[data-active="middle-east"] .reach__land circle[data-region="middle-east"],
[data-active="asia"] .reach__land circle[data-region="asia"],
[data-active="africa"] .reach__land circle[data-region="africa"],
[data-active="europe"] .reach__land circle[data-region="europe"],
[data-active="other"] .reach__land circle[data-region="other"] { opacity: 0.95; }
.reach__home .network__point,
.reach__home .network__pulse { fill: var(--gold); }
.reach__home .network__point { stroke: var(--surface); stroke-width: 3; transition: r 0.3s ease; }
.reach__home text { fill: var(--ink); font-family: inherit; font-size: 15px; font-weight: 700; }
[data-active="uae"] .reach__home .network__point { r: 13; }
[data-active="uae"] .reach__land circle[data-region="middle-east"] { opacity: 0.4; }
@media (max-width: 980px) {
  .reach { grid-template-columns: minmax(0, 1fr); }
}

/* Product cards: hover animation (lift, photo zoom, light sweep, accent line, filled button) */
.product-card__media { position: relative; }
.product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.product-card__body {
  background: linear-gradient(var(--link), var(--link)) left bottom / 0 3px no-repeat;
  transition: background-size 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-card__title { transition: color 0.25s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .product-card:hover { translate: 0 -8px; box-shadow: 0 28px 50px -24px rgba(14, 27, 51, 0.5); }
  .product-card:hover .product-card__media img,
  .motion-ready .product-card:hover [data-reveal^="wipe"].is-visible > img {
    transform: scale(1.1);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  }
  .product-card:hover .product-card__media::after { transform: translateX(120%); transition: transform 0.8s ease; }
  .product-card:hover .product-card__body { background-size: 100% 3px; }
  .product-card:hover .product-card__title { color: var(--link); }
  .product-card:hover .product-card__cta { color: var(--on-ink); }
  .product-card:hover .product-card__cta::before { transform: scaleX(1); transform-origin: left center; }
}
