/* ============================================================
   NexChemical — home page
   Figma: Yd8ZeTmsOVdXZy64vXqLzE / node 1:184 (1280px design)
   ============================================================ */

:root {
  /* palette — mapped onto the Figma colour variables (css/design-system.css) */
  --color-primary:       var(--blue-600, #005ca7);
  --color-primary-soft:  var(--blue-600, #005ca7);
  --color-page:          var(--neutral-white, #f8f8f8);
  --color-surface:       var(--neutral-50, #f1f4f2);
  --color-ink:           var(--neutral-black, #0f0f0f);
  --color-ink-soft:      var(--neutral-black, #0f0f0f);
  --color-text:          var(--neutral-600, #575757);
  --color-text-muted:    var(--neutral-500, #757687);
  --color-nav-link:      var(--neutral-700, #414752);
  --color-hero-fg:       var(--neutral-50, #f1f4f2);
  --color-cta-fg:        var(--neutral-50, #f1f4f2);
  --color-card-border:   var(--neutral-100, #e0e3e1);
  --color-card-border-2: var(--neutral-100, #e0e3e1);
  --color-footer-dark:   var(--neutral-black, #0f0f0f);
  --color-green:         var(--green-600, #059669);
  --color-green-deep:    var(--green-700, #047857);

  /* type: Figma uses Plus Jakarta Sans for headings, Inter for everything else */
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-heading: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-nav:     "Inter", system-ui, sans-serif;
  --font-mono-caps: "Poppins", sans-serif;

  /* metrics */
  --radius-card: 12px;
  --page-pad: 72px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-page);
  overflow-x: clip;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { display: block; }
button { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }

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

/* ---------- shared: section heading ---------- */

.section-head__label {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-text);
  margin-bottom: 10px;
}

.section-head__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.16;
  color: var(--color-ink);
}

.section-head__title--lg { font-size: 60px; line-height: 1.12; }

.section-head__text {
  margin-top: 16px;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ---------- shared: buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.14px;
  padding: 17px 32px;
  white-space: nowrap;
  transition: filter .15s ease, background-color .15s ease;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-hero-fg);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
.btn--primary:hover { filter: brightness(1.12); }

.btn--sm { padding: 8px 24px; color: #fff; }

.btn--light {
  background: var(--color-hero-fg);
  border: 1px solid #e0e4e0;
  color: var(--color-ink-soft);
}
.btn--light:hover { background: #fff; }

.btn--outline {
  border: 1px solid #bfcaba;
  color: #fff;
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- shared: slider prev/next buttons ---------- */
/* Toggled by scroll-slider.js on any [data-slider-prev]/[data-slider-next]
   button once its track is scrolled all the way in that direction. Each
   component (.category-slider__btn, .about__nav-btn, ...) styles its own
   button appearance; this is just the shared disabled look. */
.slider-btn--disabled { opacity: 0.35; pointer-events: none; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  /* min-height (not height): fills the viewport on typical/tall screens
     without ever shrinking below what the content + padding below already
     need — a hard height:100vh would clip the CTA buttons (or the video)
     on a short viewport instead. The home #swup runs under the
     transparent header (css/page-transitions.css), so this is a full
     screen with the navbar drawn over its top. */
  min-height: 100dvh;
  /* top padding: Figma's gap below the navbar; bottom padding
     is taller than the 58px Figma-reference gap alone (827px rendered vs.
     885px in Figma) would need — the extra room is deliberate clearance
     for .about's negative margin-top, which pulls the highlight cards up
     to overlap this section. Measured: without the extra room the
     leftmost card cleared the CTA button by only ~13px. Extra viewport
     height beyond that (from min-height above) only adds more clearance,
     since the content itself stays pinned to the top padding — verified
     in the PR that added this rule. */
  padding: calc(var(--header-h, 86px) + 88px) var(--page-pad) 127px;
  overflow: clip;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: -1;
}

/* 40% black over the video, behind the content, so the text reads on any
   frame. Same layer as the video but later in the tree, so it paints on top. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
  pointer-events: none;
}

/* --- hero content --- */

.hero__container {
  max-width: 1296px;
  width: 100%;
  margin-inline: auto;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 576px;
  max-width: 100%;
  padding-inline-end: 48px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 64px;
  line-height: 72px;
  letter-spacing: -1.28px;
  color: var(--color-hero-fg);
  padding-top: 8px;
}

.hero__text {
  font-size: 18px;
  line-height: 28px;
  color: var(--color-hero-fg);
  max-width: 26em;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0 40px;
}

/* ============================================================
   PARTNERS (looping logo strip, right below the hero)
   ============================================================ */

.partners {
  overflow: hidden;
  padding: 40px 0;
  background: var(--color-page);
  border-bottom: 1px solid var(--color-card-border);
}

/* Scrolled by js/motion.js (data-marquee): a GSAP loop over the two identical
   groups, at constant speed whatever the number of logos; eases to a stop on
   hover. Static without JavaScript or with reduced motion. */
.partners__track {
  display: flex;
  width: max-content;
}

.partners__group {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-inline-end: 72px;
}

.partners__logo {
  display: flex;
  align-items: center;
  height: 80px;
}

/* Every logo sits in the same box: a fixed height, and at most as wide as
   AzerGold's logo at that height (510 x 156, ratio 3.27). Wider logos are
   scaled down inside the box (object-fit), keeping it the same height. */
.partners__logo img {
  height: 100%;
  width: auto;
  max-width: calc(80px * 3.27);
  object-fit: contain;
  transition: transform .2s ease;
}
.partners__logo:hover img { transform: scale(1.05); }


/* ============================================================
   ABOUT / WHO WE ARE
   ============================================================ */

.about {
  /* Pulls the whole section up so the highlight cards overlap the hero
     above (Figma: the content block sits taller than its own section box,
     which bottom-aligns it — negative margin is the more robust way to get
     the same overlap here, since it doesn't depend on knowing the content's
     exact height up front). Tuned to clear the hero CTA buttons — see
     hero-about-overlap-check in the responsive block for how that's kept
     true at other widths. */
  margin-top: -160px;
  max-width: 1440px;
  margin-inline: auto;
  padding: 36px var(--page-pad);
}

.about__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1296px;
  margin-inline: auto;
}

.about .section-head__title { max-width: 680px; }

/* ---- highlight cards ---- */

.about__highlights {
  --highlight-gap: 72px;
  display: flex;
  align-items: flex-start;
  gap: var(--highlight-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.about__highlights::-webkit-scrollbar { display: none; }

.highlight-card {
  color: inherit;
  text-decoration: none;
  flex: 0 0 calc((100% - 2 * var(--highlight-gap)) / 3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 8px solid var(--color-page);
}

.highlight-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  color: var(--color-ink);
  padding: 8px 8px 0;
  /* Always 2 lines — every card is the same width, so what actually varies
     is font-size (below), not line count. Only the card in the rightmost
     visible slot (.is-featured, toggled by scroll-slider.js) gets the
     larger size, which is what makes it taller than the rest. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.highlight-card.is-featured .highlight-card__title { font-size: 26px; }

.highlight-card__media {
  height: 181px;
  margin: 0 8px 8px;
}

.highlight-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- heading + slider nav ---- */

.about__foot {
  display: flex;
  gap: 10px;
  width: 100%;
}

.about__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 60px;
  /* Grows/shrinks with the row instead of a fixed width — a fixed width
     here is exactly what caused the arrows to collide with the heading at
     in-between viewport widths (fixed around 1260px, in Figma). */
  flex: 1 0 0;
  align-self: stretch;
}

.about__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid var(--blue-800, #00457c);
  color: var(--blue-800, #00457c);
  flex-shrink: 0;
  transition: background-color .15s ease, opacity .15s ease;
}
.about__nav-btn:hover { background: var(--blue-100, #dce8ff); }
.about__nav-btn svg { display: block; }

/* ============================================================
   SERVICES
   ============================================================ */

.services {
  background: var(--color-surface);
  padding: 36px var(--page-pad);
}

.services__inner {
  display: flex;
  align-items: center;
  gap: 72px;
  max-width: 1296px;
  margin-inline: auto;
}

.services__left {
  display: flex;
  flex-direction: column;
  gap: 29px;
  width: 501px;
  flex-shrink: 0;
}

.services__cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 30px 25px;
  background: #fff;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
}

.service-card__icon { flex-shrink: 0; }

.service-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 34px;
  color: var(--color-ink);
  margin-bottom: 10px;
}

.service-card__text {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text);
}

.services__photo {
  flex: 1;
  min-width: 0;
  height: 701px;
  object-fit: cover;
  border-radius: var(--radius-card);
  opacity: 0.9;
}

/* ============================================================
   CATEGORIES STRIP
   ============================================================ */

.categories {
  max-width: 1440px;
  margin-inline: auto;
  padding: 56px var(--page-pad) 24px;
}

.categories__head { margin-bottom: 20px; }

.category-slider { position: relative; }

/* The strip is a native horizontally-scrollable/swipeable track (works with
   no JS at all); categories-slider.js's prev/next buttons are a page-by-
   one-viewport shortcut on top of that, shown only past CATEGORY_STRIP_VISIBLE
   categories (core.views.home). Six chips fit exactly one row at a time —
   see the flex-basis math below and its responsive overrides. */
.categories__strip {
  --chip-gap: 20px;
  display: flex;
  gap: var(--chip-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.categories__strip::-webkit-scrollbar { display: none; }

/* Only applied when category_strip_is_slider is false (<= 6 categories,
   core.views.home) — centering a track that actually overflows would clip
   its start behind the initial (unscrolled) edge. */
.categories__strip--center { justify-content: center; }

.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 0 0 calc((100% - 5 * var(--chip-gap)) / 6);
  scroll-snap-align: start;
  text-align: center;
}

.category-chip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: hsl(var(--chip-hue) 70% 50%);
  transition: transform .15s ease;
}

.category-chip__icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  /* The icon is expected to be a simple, mostly-transparent glyph (see the
     model field's help_text) — flatten it to a white silhouette so it stays
     legible against whatever hue this chip landed on. */
  filter: brightness(0) invert(1);
}

.category-chip__name {
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
}

.category-chip:hover .category-chip__icon { transform: translateY(-4px); }
.category-chip:hover .category-chip__name { color: var(--color-primary); }

.category-slider__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.category-slider__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--color-card-border);
  transition: background-color .15s ease, opacity .15s ease;
}
.category-slider__btn:hover { background: var(--color-surface); }

/* ============================================================
   PRODUCTS
   ============================================================ */

.products {
  padding: 0 0 36px;  /* the export section above dissolves out, leaving room enough */
  overflow: clip;
}

.products__head {
  max-width: 1440px;
  margin-inline: auto;
  padding: 0 calc(var(--page-pad) + 36px);
}

/* ---- category cards in a row above the heading (js/home-orbit.js) ----
   The script moves the cards slowly along a straight row and sizes the stage
   to hold them and their shadows. Until it runs (or without JS) the cards are
   a scrollable row. */
.orbit {
  width: 100%;
}

.orbit__stage {
  position: relative;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.orbit__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 24px var(--page-pad);
  scroll-snap-type: x mandatory;
}

.orbit__card.product-card {
  position: relative;
  flex: 0 0 auto;
  width: 240px;
  height: 310px;
  color: inherit;
  text-decoration: none;
  scroll-snap-align: center;
  box-shadow: 0 16px 32px rgba(15, 15, 15, 0.12);
}

.orbit__card:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
}

.orbit__card .product-card__title { margin-bottom: 4px; }

/* Full width, so cards leave only through the screen's sides; the script sets
   the stage's height to hold the cards and their shadows, so none is cut. */
.orbit[data-orbit-ready] .orbit__stage {
  height: 400px;
  cursor: grab;
}
.orbit[data-orbit-ready] .orbit__stage.is-dragging { cursor: grabbing; }

.orbit[data-orbit-ready] .orbit__track {
  display: block;
  position: absolute;
  inset: 0;
  overflow: visible;
  padding: 0;
}

.orbit[data-orbit-ready] .orbit__card {
  position: absolute;
  top: 0;
  left: 50%;  /* physical: the script places cards from the centre (and mirrors them in RTL) */
  will-change: transform;
}

/* Dial marks between the cards, placed on the same circle. */
.orbit__tick {
  position: absolute;
  top: 0;
  left: 50%;  /* physical: placed from the centre like the cards */
  display: flex;
  gap: 10px;
  pointer-events: none;
}
.orbit__tick span {
  width: 1px;
  height: 12px;
  background: var(--neutral-300, #c4c7c5);
}

.orbit__head {
  position: relative;
  text-align: center;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .orbit__card.product-card { width: 280px; height: 360px; }
}

@media (min-width: 1024px) {
  .orbit__card.product-card { width: 300px; height: 380px; }
}

@media (min-width: 1600px) {
  .orbit__card.product-card { width: 340px; height: 430px; }
}

.product-card {
  display: flex;
  flex-direction: column;
  width: 270px;
  height: 376px;
  background: var(--neutral-white, #f8f8f8);
  border: 1px solid var(--color-card-border-2);
  border-radius: var(--radius-card);
  padding: 1px;
  overflow: hidden;
  position: absolute;
}

.product-card--bio {
  border: 2px solid var(--green-500, #10b981);
  padding: 2px;
}

.product-card__media {
  position: relative;
  height: 192px;
  flex-shrink: 0;
  background: var(--neutral-50, #f1f4f2);
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A structure drawing (catalogue/structures.py): line art on a transparent
   background, so it's fitted inside the frame with room around it rather
   than cropped to fill it. */
.product-card__img--structure {
  object-fit: contain;
  padding: 12px 16px;
  background: #fff;
}

.product-card__fav {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #fff;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 9999px;
  transition: background-color .15s ease;
}
.product-card__fav:hover { background: var(--neutral-100, #e0e3e1); }

.product-card__badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: var(--color-green-deep);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.product-card__category {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-primary-soft);
  margin-bottom: 4px;
}

.product-card__category--bio { color: var(--color-green); }

.product-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 27px;
  color: var(--color-ink);
  margin-bottom: 8px;
  /* Long chemical names: three lines, then "…" (the full name is in the title
     tooltip and on the product page); long unbroken tokens wrap. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

.product-card__text {
  font-size: 14px;
  line-height: 20px;
  color: var(--neutral-700, #414752);
  margin-bottom: 16px;
}

.product-card__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  font-size: 12px;
  line-height: 16px;
  color: var(--neutral-500, #757687);
}

/* The homepage carousel's category cards: the photo takes the card down to a
   short body with the name and a "View products" line. */
.product-card--category .product-card__media {
  height: auto;
  flex: 1;
}

.product-card--category .product-card__body {
  flex: 0 0 auto;
}

.product-card--category .product-card__title {
  -webkit-line-clamp: 2;
}

.product-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--blue-500, #005ca7);
}

.product-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-nav-link);
  font-variant-numeric: tabular-nums;
}

.product-card .product-card__availability {
  margin-inline-start: auto;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 16px;
  gap: 6px;
}
.product-card .product-card__availability::before { width: 6px; height: 6px; }

.product-card__quote {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--color-primary);
}
.product-card__quote:hover { text-decoration: underline; }

/* ============================================================
   CTA
   ============================================================ */

.cta {
  max-width: 1440px;
  margin-inline: auto;
  padding: 36px var(--page-pad) 72px;
}

.cta__box {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 478px;
  padding: 80px;
  background: var(--color-primary);
  border-radius: 48px;
  overflow: hidden;
}

.cta__box::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  bottom: 0;
  inset-inline-start: 50%;
  background: linear-gradient(to left, #c4c2c2, rgba(196, 194, 194, 0));
  opacity: 0.1;
  pointer-events: none;
}
[dir="rtl"] .cta__box::after {
  background: linear-gradient(to right, #c4c2c2, rgba(196, 194, 194, 0));
}

.cta__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 725px;
  position: relative;
  z-index: 1;
}

.cta__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 64px;
  line-height: 72px;
  letter-spacing: -1.28px;
  color: var(--color-cta-fg);
  min-width: 100%;
}

.cta__text {
  font-size: 18px;
  line-height: 28px;
  color: var(--color-cta-fg);
  max-width: 672px;
}

.cta__content .button { margin-top: 16px; }

/* ============================================================
   HOME — 2026 redesign
   Figma: Yd8ZeTmsOVdXZy64vXqLzE / node 94:473 (1440px frame; also 1280
   and 1920). Scoped to .page-home so the shared classes (.btn,
   .product-card, .section-head, the footer) look the same as before on
   every other page. Desktop-only overrides sit in min-width queries so the
   existing mobile rules in RESPONSIVE below still apply.
   ============================================================ */

.page-home .section-head__label {
  text-transform: uppercase;
  color: var(--color-text);
}

.page-home .section-head__title .muted { color: #727272; }

@media (min-width: 769px) {
  .page-home .section-head__title { font-size: 48px; line-height: 54px; }
}

/* ---- hero: new copy; buttons side by side (video background unchanged) ---- */

/* Figma draws the 86px navbar over an 885px hero whose content is centred in
   the whole frame (44px top / 36px bottom padding). The navbar overlays the
   hero here too, so the content is centred between navbar + 44px and the
   band the about cards overlap (.about's -160px margin). */
@media (min-width: 769px) {
  .page-home .hero {
    justify-content: center;
    padding-top: calc(var(--header-h, 86px) + 44px);
    padding-bottom: 160px;
  }
}

.page-home .hero__content { width: 720px; }
.page-home .hero__title { max-width: 680px; }
.page-home .hero__text { max-width: 576px; }
.page-home .hero__cta { flex-direction: row; flex-wrap: wrap; padding: 0 0 40px; }

/* ---- about: framed highlight cards, the featured one taller ---- */

.page-home .about__highlights { align-items: center; }

.page-home .highlight-card {
  gap: 12px;
  padding: 12px;
  background: #f8f8f8;
  border: 2px solid #c4c2c2;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.page-home .highlight-card__title {
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -1.28px;
  padding: 0;
}

.page-home .highlight-card__media { margin: 0; }
.page-home .highlight-card__media img { border-radius: 2px; }
/* Product photos: the whole item on white, not cropped. */
.page-home .highlight-card--product .highlight-card__media { background: #fff; border-radius: 2px; }
.page-home .highlight-card--product .highlight-card__media img { object-fit: contain; }

@media (min-width: 769px) {
  .page-home .highlight-card { height: 252px; }
  .page-home .highlight-card.is-featured { height: 318px; }
  .page-home .highlight-card__media { flex: 1; min-height: 0; height: auto; }
  .page-home .about .section-head__title { max-width: 829px; }
}

/* ---- export: "Across the Caspian, Into the CIS" ---- */

.export {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* A full screen of the #swup scroller at least: the pixel transitions in
     and out (data-st-mode="both") each use a 64vh layer inside this section. */
  min-height: calc(100dvh - var(--header-h, 88px));
  padding: 0;
  /* The copy on navy, then the container ship photo (KSTS's) whole and
     uncovered below it, full width at its own proportions, as on ksts.ir;
     the navy is the photo's sea, so the two meet without a line. */
  background: #0d2a4a;
  color: #f8f8f8;
  overflow: hidden;
}

.export__photo {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 1920 / 1076;
  object-fit: cover;
  margin-block-start: auto;
}

.export__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1440px;
  padding: 72px var(--page-pad) 56px;
}

.export__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 501px;
  max-width: 100%;
  text-align: center;
}

.export .section-head__label { color: inherit; margin: 0; }

.export__title {
  color: inherit;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 48px;
  line-height: 54px;
}

.export__title em { font-style: italic; }
/* Chinese has no italics (it would only be slanted): bolder instead. */
.export__title em:lang(zh-hans) { font-style: normal; font-weight: 700; }

.export__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1280px;
}

.export-feature {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
  padding: 0;
}

.export-feature__icon { flex-shrink: 0; }

.export-feature__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.export-feature__title {
  color: inherit;  /* base.css colors every h1–h5 ink */
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 30px;
}

.export-feature__desc {
  font-size: 16px;
  line-height: 24px;
  color: #e0e3e1;
}

@media (max-width: 960px) {
  .export__features { grid-template-columns: 1fr; gap: 20px; max-width: 560px; }
}

@media (max-width: 768px) {
  .export__inner { gap: 28px; padding-block: 56px 40px; }
  .export__title { font-size: 34px; line-height: 40px; }
  .export-feature__title { font-size: 22px; line-height: 30px; }
}

/* ---- category strip (not in Figma; restyled to match the cards above) ---- */

.page-home .categories { padding-top: 72px; }

.page-home .category-chip {
  gap: 14px;
  padding: 24px 16px 20px;
  background: #f8f8f8;
  border: 1px solid var(--color-card-border-2);
  border-radius: var(--radius-card);
  transition: border-color .15s ease, transform .15s ease;
}

.page-home .category-chip__icon {
  width: 56px;
  height: 56px;
  background: hsl(var(--chip-hue) 60% 42%);
  transition: none;
}

.page-home .category-chip__icon img { width: 26px; height: 26px; }

.page-home .category-chip__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.page-home .category-chip:hover { border-color: var(--color-primary); transform: translateY(-4px); }
.page-home .category-chip:hover .category-chip__icon { transform: none; }

/* ---- products: "Search {N} chemicals by name or CAS number" ---- */

.page-home .products__head { padding: 0 var(--page-pad); }
.products__count { color: #007ee2; font-variant-numeric: tabular-nums; }
.page-home .product-card { background: #f8f8f8; }
.page-home .product-card__title { color: var(--color-ink); }

/* ---- CTA ("About NexChemical"), the client's layout: a full-width deep blue
   band, the photo with rounded corners on one side, the heading and the company text on the other ---- */

.page-home .cta { max-width: none; padding: 0; margin-block-end: 72px; }
.page-home .cta__box::after { display: none; }
.page-home .cta__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 88px;
  min-height: 0;
  padding: 64px max(var(--page-pad), calc((100% - 1300px) / 2));
  background: #001f87;
  border-radius: 0;
}
.page-home .cta__figure { position: relative; }
.page-home .cta__media {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 1800 / 1004;
  object-fit: cover;
  border-radius: 16px;
}
/* A navy bar along the photo's bottom: the name and the three things the
   company does, as on the client's sample. */
.page-home .cta__bar {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(6, 22, 72, 0.88);
  border-radius: 0 0 16px 16px;
  color: #fff;
}
.page-home .cta__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.page-home .cta__brand span { display: flex; flex-direction: column; line-height: 1.2; }
.page-home .cta__brand strong { font-family: var(--font-heading); font-size: 16px; }
.page-home .cta__brand small { font-size: 11px; opacity: 0.8; }
.page-home .cta__facts { display: flex; list-style: none; margin: 0; padding: 0; }
.page-home .cta__facts li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-inline: 18px;
  font-size: 11px;
}
.page-home .cta__facts li + li { border-inline-start: 1px solid rgba(255, 255, 255, 0.35); }
.page-home .cta__content { max-width: none; gap: 20px; padding: 0; }
.page-home .cta__title { font-size: 36px; line-height: 44px; letter-spacing: -0.5px; min-width: 0; }
.page-home .cta__text { font-size: 17px; line-height: 29px; max-width: 560px; }
@media (max-width: 960px) {
  .page-home .cta__box { grid-template-columns: 1fr; gap: 40px; padding-block: 48px; }
  .page-home .cta__figure { margin-inline-end: 0; }
  .page-home .cta__bar { padding: 8px 10px; }
  .page-home .cta__brand small { display: none; }
  .page-home .cta__facts li { padding-inline: 10px; font-size: 10px; }
  .page-home .cta__facts svg { inline-size: 20px; block-size: 20px; }
  .page-home .cta__title { font-size: 28px; line-height: 36px; }
  .page-home .cta__text { font-size: 16px; line-height: 26px; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer__band {
  /* Figma Footer: 470px band, content centred in a 1440px container */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 470px;
  padding: 72px max(72px, calc((100% - 1440px) / 2));
  background: url("../img/footer-bg.529757453463.png") center 62% / cover no-repeat;
}

.footer__slogan {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 48px;
  line-height: 56px;
  color: #0f0f0f;
}

.contact-pill {
  display: flex;
  align-items: center;
}

.contact-pill__label {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  background: #f8f8f8;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.14px;
  color: #005ca7;
  white-space: nowrap;
  transition: background-color .15s ease;
}
.contact-pill:hover .contact-pill__label { background: #e0e3e1; }

.contact-pill__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #f8f8f8;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-pill__circle-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  background: #0f0f0f;
  border-radius: 50%;
  transition: transform .2s ease;
}

.contact-pill:hover .contact-pill__circle-inner { transform: scale(1.08); }

/* --- dark footer --- */

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
  padding: 20px 0 30px;
  background: var(--color-footer-dark);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer__tagline {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  font-family: var(--font-mono-caps);
  font-size: 6px;
  letter-spacing: 1.68px;
  text-transform: uppercase;
  color: #fff;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 52px;
  background: #f8f8f8;
  border-radius: 25.5px;
  transition: transform .15s ease;
}
.footer__social:hover { transform: translateY(-2px); }

.footer__divider {
  width: 100%;
  border: 0;
  border-top: 1px solid #575757;
  margin: 0;
}

.footer__copyright {
  font-family: var(--font-nav);
  font-size: 16px;
  line-height: 24px;
  color: #f8f8f8;
  padding-top: 5px;
}

/* ---------- square blue buttons (inner pages) ---------- */

.btn-sq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-nav);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  padding: 13px 32px;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 81, 147, 0.1), 0 4px 6px -4px rgba(0, 81, 147, 0.1);
  transition: filter .15s ease;
}
.btn-sq:hover { filter: brightness(1.12); }

.btn-sq--r8 { border-radius: 8px; padding: 16px 32px; box-shadow: none; }

.btn-sq--r4 {
  border-radius: 4px;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.7px;
  box-shadow: none;
}

/* ============================================================
   CATALOG  (/products)
   ============================================================ */

.catalog {
  padding: 40px max(var(--page-pad), calc((100% - 1440px) / 2)) 72px;
}

/* Figma: hero and filter bar run 1440 wide at 1920; the card grid stays 1296 */
.catalog__grid,
.catalog .pager { max-width: 1296px; margin-inline: auto; }

/* ---- Catalogue: quick links, filter menus, applied-filter tags ---- */
/* Sidebar (filters) + main column (quick links, applied tags, sort, products). */
.catalog-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  max-width: 1296px;
  margin-inline: auto;
}
.catalog-main .catalog__grid,
.catalog-main .pager { max-width: none; }
.catalog-main__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: 4px;
}
.catalog-main__nav { min-inline-size: 0; }

.catalog-sidebar { position: sticky; inset-block-start: 16px; }
.catalog-sidebar__box {
  border: 1px solid var(--color-card-border-2);
  border-radius: 16px;
  background: #fff;
}
.catalog-sidebar__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
  list-style: none;
  cursor: pointer;
  border-block-end: 1px solid var(--color-card-border-2);
}
.catalog-sidebar__toggle::-webkit-details-marker { display: none; }
.catalog-sidebar__badge {
  display: inline-grid;
  place-items: center;
  min-inline-size: 20px;
  height: 20px;
  padding-inline: 6px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
}
.catalog-sidebar__body { padding: 8px 12px 16px; }
/* Wide screens: the sidebar stays in view (sticky) and, when the filters are
   taller than the screen, scrolls on its own; the wheel over it never scrolls
   the page (overscroll-behavior). One screen inside #swup is 100dvh minus the
   header. */
@media (min-width: 901px) {
  .catalog-sidebar__body {
    /* screen − header − sticky gaps − the "Filters" heading row */
    max-block-size: calc(100dvh - var(--header-h, 86px) - 32px - 58px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}
.catalog-sidebar__clear {
  display: block;
  margin: 12px 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.filter-group { padding: 12px 8px; }
.filter-group + .filter-group { border-block-start: 1px solid var(--color-card-border-2); }
.filter-group__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.filter-group__list { margin: 0; padding: 0; list-style: none; }
.filter-group__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--color-ink);
  text-decoration: none;
}
.filter-group__option:hover { background: var(--neutral-100, #f1f2f1); }
.filter-group__mark {
  flex: none;
  inline-size: 16px;
  block-size: 16px;
  border: 1.5px solid var(--slate-200, #c1c7d3);
  border-radius: 50%;
}
.filter-group__option.is-selected { color: var(--color-primary); font-weight: 600; }
.filter-group__option.is-selected .filter-group__mark {
  border-color: var(--color-primary);
  box-shadow: inset 0 0 0 3px #fff;
  background: var(--color-primary);
}
.filter-group__label { flex: 1; }
.filter-group__empty { margin: 8px; font-size: 14px; color: var(--color-text-muted); }

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .catalog-sidebar { position: static; }
  .catalog-sidebar__box:not([open]) .catalog-sidebar__toggle { border-block-end: 0; }
}

.catalog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 16px;
}
.catalog-chip {
  padding: 7px 14px;
  border: 1px solid var(--color-card-border-2);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: var(--color-ink);
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.catalog-chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.catalog-chip.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.filter-bar { flex: none; }

.filter-drop { position: relative; }
.filter-drop__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--color-card-border-2);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: border-color .15s ease;
}
.filter-drop__toggle::-webkit-details-marker { display: none; }
.filter-drop__toggle:hover,
.filter-drop[open] .filter-drop__toggle { border-color: var(--color-primary); }
.filter-drop.is-active .filter-drop__toggle {
  border-color: var(--color-primary);
  background: var(--blue-100);
  color: var(--color-primary);
}
.filter-drop__chevron { transition: transform .15s ease; }
.filter-drop[open] .filter-drop__chevron { transform: rotate(180deg); }

.filter-drop__menu {
  position: absolute;
  z-index: 20;
  inset-block-start: calc(100% + 6px);
  inset-inline-start: 0;
  min-inline-size: 240px;
  max-block-size: 340px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--color-card-border-2);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 15, 15, 0.12);
}
.filter-drop--sort .filter-drop__menu { inset-inline-start: auto; inset-inline-end: 0; }
.filter-drop__title { display: none; }
.filter-drop__option {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--color-ink);
  text-decoration: none;
}
.filter-drop__option:hover { background: var(--neutral-100, #f1f2f1); }
.filter-drop__option.is-selected { color: var(--color-primary); font-weight: 600; }
.filter-drop__count { color: var(--color-text-muted); font-variant-numeric: tabular-nums; }

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block-start: 14px;
}
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-100);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
.filter-tag:hover { background: var(--color-primary); color: #fff; }
.filter-tags__clear { font-size: 13px; color: var(--color-text-muted); text-decoration: underline; }

/* Phones: chips and menus scroll sideways in one row; a menu opens as a
   sheet from the bottom of the screen. */
@media (max-width: 640px) {
  .catalog-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .catalog-chip,
  .filter-drop__toggle { white-space: nowrap; }
  .filter-drop__menu,
  .filter-drop--sort .filter-drop__menu {
    position: fixed;
    inset-block-start: auto;
    inset-block-end: 0;
    inset-inline: 0;
    max-block-size: 70vh;
    border-radius: 16px 16px 0 0;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  }
  .filter-drop__title {
    display: block;
    margin: 4px 12px 8px;
    font-weight: 700;
    font-size: 16px;
  }
}

/* Table layout for categories whose product_display is "table" (e.g. reagents):
   no images, one row per product. Scrolls sideways on narrow screens. */
.catalog-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--color-card-border-2);
  border-radius: var(--radius-card);
}

.catalog-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  color: var(--color-ink-soft);
}

.catalog-table th,
.catalog-table td {
  padding: 14px 16px;
  text-align: start;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-card-border-2);
}

.catalog-table tbody tr:last-child > * { border-bottom: 0; }
.catalog-table tbody tr { transition: background-color .15s ease; }
.catalog-table tbody tr:hover { background: var(--color-surface); }

.catalog-table thead th {
  background: var(--color-surface);
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-nav-link);
  white-space: nowrap;
}

.catalog-table tbody th { font-weight: 400; }

.catalog-table__name {
  display: block;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
}
.catalog-table__name:hover { color: var(--color-primary); }

.catalog-table__no {
  width: 56px;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.catalog-table__mono {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.catalog-table__use {
  min-width: 200px;
  color: var(--color-text);
}

.catalog-table__actions { text-align: end; }

.catalog-table__quote {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--color-primary);
  border-radius: 9999px;
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.catalog-table__quote:hover { background: var(--color-primary); color: #fff; }

.catalog-table__empty {
  text-align: center;
  color: var(--color-text);
}

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

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
}

/* catalog cards flow in-grid (the base .product-card is absolute for the home fan) */
.catalog .product-card {
  position: static;
  width: auto;
  height: auto;
}

@media (max-width: 1100px) {
  .catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .catalog__grid { grid-template-columns: minmax(0, 1fr); }
}

/* "View Details": Figma Button Outline / M / Rounded (css/design-system.css) */
.product-card__cta { margin-top: 16px; }

.catalog .pager { padding-top: 18px; }

/* ============================================================
   NEWS  (/news/, /news/[slug]/) — also the activity pages (/about/activities/)
   ============================================================ */

.news-hero {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-page) 100%);
  padding: 64px var(--page-pad) 48px;
  border-bottom: 1px solid var(--color-card-border);
}

.news-hero__inner {
  max-width: 1296px;
  margin-inline: auto;
}

.news-hero__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--color-primary);
}

.news-hero__title {
  margin: 0;
  font-family: var(--font-nav);
  font-weight: 800;
  font-size: 44px;
  line-height: 52px;
  letter-spacing: -0.88px;
  color: var(--color-ink);
}

.news-hero__text {
  margin: 16px 0 0;
  font-family: var(--font-nav);
  font-size: 17px;
  line-height: 26px;
  color: var(--color-nav-link);
  max-width: 560px;
}

.news {
  padding: 40px var(--page-pad) 72px;
}

.news__inner {
  max-width: 1296px;
  margin-inline: auto;
}

.news-hero__crumbs { margin-bottom: 16px; }

/* Client logos above the news (news_list.html). */
.news--clients { padding-block-end: 8px; }
.news__section-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.2;
  color: var(--color-ink);
}
.news__section-text { margin: 0 0 24px; color: var(--color-text-muted); }
.news:not(.news--clients) .news__section-title { margin-block-end: 24px; }
.client-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.client-logo,
.client-logo a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}
.client-logo a { width: 100%; }
.client-logo {
  position: relative;
  overflow: hidden;
  will-change: transform;
  justify-content: center;
  padding: 24px 20px 18px;
  background: #fff;
  border: 1px solid var(--color-card-border-2);
  border-radius: var(--radius-card);
}
.client-logo img { width: 100%; height: 96px; object-fit: contain; }
/* js/partners-grid.js: tiles start hidden only while motion is on; the light
   sweep runs once across each tile as it lands. */
.motion [data-partner-grid] .client-logo { visibility: hidden; }
.client-logo:hover { box-shadow: 0 14px 34px rgba(15, 15, 15, 0.1); }
.client-logo { transition: box-shadow .25s ease; }
.client-logo__shine {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 45%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  visibility: hidden;
}
.client-logo__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--color-ink);
}  /* sized box: SVGs without width/height (AzerGold) need one */

/* No articles yet: a calm card with somewhere else to go. */
.news-empty {
  max-width: 560px;
  margin: 24px auto;
  padding: 48px 32px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-card-border-2);
  border-radius: var(--radius-card);
}

.news-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--color-primary);
}

.news-empty__title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--color-ink);
}

.news-empty__text {
  margin: 0 auto;
  max-width: 420px;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-text);
}

.news-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* Stand-in for a missing cover image (imported news may have none). */
.article-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
  color: var(--neutral-500);
}
.news-feature__media .article-placeholder { min-height: 280px; }

.news-feature {
  display: flex;
  align-items: stretch;
  gap: 40px;
  background: #fff;
  border: 1px solid var(--color-card-border-2);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  margin-bottom: 40px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.news-feature:hover {
  box-shadow: 0 14px 34px rgba(15, 15, 15, 0.1);
  transform: translateY(-2px);
}

.news-feature__media {
  flex: 1.1;
  min-width: 0;
  background: #f1f4f2;
}
.news-feature__media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.news-feature__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 36px;
  padding-inline: 0 40px;
}

.news-feature__title {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 36px;
  color: var(--color-ink);
}

.news-feature__excerpt {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-text);
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-card-border-2);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}
.news-card:hover {
  box-shadow: 0 10px 30px rgba(15, 15, 15, 0.08);
  transform: translateY(-2px);
}

.news-card__media {
  height: 200px;
  background: #f1f4f2;
}
.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 24px 24px;
}

.news-card__date {
  margin: 0 0 8px;
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.news-card__title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 28px;
  color: var(--color-ink);
}

.news-card__excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--color-text);
  flex: 1;
}

.news-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}
a:hover .news-card__cta { text-decoration: underline; }

.news-detail__inner {
  max-width: 860px;
  margin-inline: auto;
  padding: 40px var(--page-pad) 96px;
}

.news-detail__title {
  margin: 24px 0 8px;
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 48px;
  color: var(--color-ink);
}

.news-detail__date {
  margin: 0 0 32px;
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.news-detail__media {
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 32px;
}
.news-detail__media img { width: 100%; display: block; }

.news-detail__body {
  font-size: 17px;
  line-height: 30px;
  color: var(--color-text);
}
.news-detail__body p { margin: 0 0 20px; }

.news-detail__source {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--color-card-border);
  font-size: 14px;
  color: var(--color-text-muted);
}
.news-detail__source a { color: var(--color-primary); text-decoration: underline; }

@media (max-width: 900px) {
  .news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-feature { flex-direction: column; }
  .news-feature__media img { min-height: 220px; }
  .news-feature__body { padding: 28px; }
}

@media (max-width: 600px) {
  .news__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRODUCT DETAIL  (/products/.../[slug])
   ============================================================ */

/* Figma Product Detail / Product Hero: breadcrumb, then title + text +
   actions beside the framed photo with the purity card hanging off it. */
.detail-hero {
  padding: 24px max(var(--page-pad), calc((100% - 1440px) / 2)) 72px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.detail-hero__inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.detail-hero__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.detail-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.96px;
  color: var(--color-ink);
}

.detail-hero__title .accent { color: var(--color-primary); }
/* Long chemical names (over 60 characters) get a smaller heading. */
.detail-hero__title--long {
  font-size: 30px;
  line-height: 38px;
  letter-spacing: -0.3px;
  overflow-wrap: anywhere;
}

.detail-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 16px; }

.detail-hero__origin {
  font-size: 15px;
  line-height: 24px;
  color: var(--color-ink);
  max-width: 512px;
  margin-top: -16px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}
.availability::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.availability--in_stock { background: #e6f4ea; color: #1e6b34; }
.availability--out_of_stock { background: #f3f3f1; color: var(--color-gray-600); }

.detail-hero__text {
  font-size: 18px;
  line-height: 28px;
  color: var(--color-nav-link);
  max-width: 512px;
}
.detail-hero__text-body { margin: 0; }
/* js/clamp-text.js: folded to six lines until "Read more". */
[data-clamp].is-clamped [data-clamp-body] {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-toggle {
  margin-block-start: 8px;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-hero__media {
  position: relative;
  flex: 1;
  min-width: 0;
}

.detail-hero__frame {
  background: var(--neutral-white);
  border: 4px solid var(--neutral-white);
  border-radius: 24px;
  padding: 4px;
  box-shadow: 0 25px 50px -12px var(--shadow-ink-25);
  overflow: hidden;
}

.detail-hero__frame img {
  width: 100%;
  height: 432px;
  object-fit: cover;
  border-radius: 16px;
}

.detail-hero__frame--structure img {
  object-fit: contain;
  padding: 48px;
  background: #fff;
}

.purity-card {
  position: absolute;
  inset-inline-start: -32px;
  bottom: -32px;
  width: 240px;
  height: 146px;
  padding: 24px;
  background: var(--neutral-white);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--neutral-white);
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px var(--shadow-ink-10), 0 8px 10px -6px var(--shadow-ink-10);
}

.purity-card__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.7px;
  color: var(--color-primary);
}

.purity-card__value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: var(--color-ink);
  margin: 2px 0 8px;
}

.purity-card__note {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-nav-link);
}

.regulatory {
  background: var(--color-page);
  padding: 72px max(var(--page-pad), calc((100% - 1440px) / 2));
}

.regulatory__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.regulatory__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  color: var(--color-ink);
}

.tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--slate-200);
}

.tab {
  padding-bottom: 18px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.7px;
  color: var(--color-nav-link);
}
.tab:hover { color: var(--color-primary); }
.tab--active { border-bottom-color: var(--color-primary); }

/* Tab panels set their own display; [hidden] must still win. */
[data-tab-panel][hidden] { display: none !important; }

.regulatory__cols {
  display: flex;
  gap: 48px;
  align-items: stretch;
}

.regulatory__composition {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.regulatory__subheading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: var(--color-ink);
}

.regulatory__text {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-nav-link);
}

.spec-card {
  background: var(--neutral-white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 33px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 9px;
  border-bottom: 1px solid var(--slate-200);
}
.spec-row:last-child { border-bottom: 0; }

.spec-row dt {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.7px;
  color: var(--color-ink);
}

.spec-row dd {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-nav-link);
}

.spec-row { gap: 16px; }
.spec-row dd { text-align: end; }
.spec-row dd sub { font-size: 0.75em; }

.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  background: var(--neutral-white);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 22px;
  color: var(--color-nav-link);
}
.spec-table th,
.spec-table td {
  padding: 12px 20px;
  text-align: start;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: top;
}
.spec-table thead th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--color-ink);
  background: #eef1f4;
}
.spec-table tbody th { font-weight: 600; color: var(--color-ink); }
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table td:last-child { white-space: nowrap; }

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  padding-inline: 24px 16px;
  background: var(--neutral-white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-ink);
}
.doc-list__item .btn-sq--r8 { padding: 10px 20px; }

.regulatory__img {
  flex: 1;
  min-width: 0;
  min-height: 300px;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 1px;
  overflow: hidden;
}

.regulatory__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

/* ============================================================
   CONTACT  (/contact)
   ============================================================ */

.contact-hero {
  position: relative;
  padding: 128px var(--page-pad);
  overflow: clip;
}

.contact-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.7);  /* Figma: neutral/black at 70% */
  z-index: -1;
}

.contact-hero__inner {
  max-width: 1136px;
  margin-inline: auto;
}

.contact-hero__content {
  max-width: 672px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.contact-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.96px;
  color: var(--neutral-white);
}

.contact-hero__text {
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: var(--neutral-white);
  opacity: 0.9;
  min-width: 100%;
  width: 734px;
  max-width: calc(100vw - 2 * var(--page-pad));
}

.contact-hero__content .btn-sq { margin-top: 8px; }

.inquiry {
  display: flex;
  justify-content: center;
  padding: 72px 40px;
}

.inquiry__card {
  width: 1006px;
  max-width: 100%;
  background: var(--neutral-white);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 49px 49px 91px;
}

.inquiry__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  color: var(--color-ink);
}

.inquiry__sub {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-nav-link);
  margin-top: 8px;
}

.inquiry__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-top: 32px;
}

.form-row {
  display: flex;
  gap: 24px;
  width: 100%;
}

.form-field {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-field label {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.7px;
  color: var(--color-ink);
}

/* Figma Components / Input Field (same as .input in css/design-system.css) */
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--neutral-50);
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  padding: 17px;
  font: 400 16px/24px var(--font-body);
  color: var(--color-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--neutral-500); opacity: 1; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--shadow-blue-10);
}

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


/* ---- Quote request (/quote) ---- */
.form-field select { appearance: auto; }
.form-field .errorlist { color: #b3261e; font-size: 14px; line-height: 20px; }
.form-field__required { color: var(--color-primary); }
.form-hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

.quote-product {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--neutral-white);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
}
.quote-product__name { font-size: 18px; font-weight: 700; color: var(--color-ink); }
.quote-product__meta { font-size: 14px; color: var(--color-nav-link); }

.form-field__hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-height: 20px;
  font-size: 13px;
  line-height: 20px;
  color: var(--color-nav-link);
}
.form-field__choice {
  padding: 2px 10px;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  font: 600 13px/20px var(--font-nav);
  color: var(--color-primary);
  background: transparent;
  cursor: pointer;
}
.form-field__choice:hover { background: var(--color-accent-soft); }

.inquiry__tabs { margin-bottom: 32px; }

.contact-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

.inquiry__note { font-size: 14px; line-height: 20px; color: var(--color-nav-link); }

/* ---- office map (contact/_map.html): a rounded, responsive box the
   Google iframe fills; Google's own width/height are ignored ---- */

.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 560px;
  overflow: hidden;
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius-card);
  background: var(--neutral-50);  /* while the map loads, or if it can't */
}

.map-embed__frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .map-embed { aspect-ratio: 4 / 3; max-height: 420px; }
}

/* contact page: below the offices, on the same band */
.contact-map {
  padding: 0 40px 72px;
  background: var(--neutral-50);
}

.inquiry + .contact-map { padding-top: 72px; }  /* no offices listed */

.contact-map .map-embed { max-width: 1200px; margin-inline: auto; }

@media (max-width: 768px) {
  .contact-map { padding: 0 var(--page-pad) 48px; }
  .inquiry + .contact-map { padding-top: 48px; }
}

/* home page: last section, "Where to find us" beside the map */
.location {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: center;
  gap: 48px;
  max-width: 1440px;
  margin-inline: auto;
  padding: 36px var(--page-pad) 72px;
}

.location__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.location .section-head__label { margin-bottom: 10px; }

.location__address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-text);
}

.location__address img { flex-shrink: 0; margin-top: 4px; }

@media (max-width: 960px) {
  .location { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 768px) {
  .location { padding: 24px var(--page-pad) 48px; gap: 24px; }
  .location__info { gap: 20px; }
}

.offices {
  background: var(--neutral-50);
  padding: 72px 0;
}

.offices__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: 0 40px;
}

.offices__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  color: var(--color-ink);
  text-align: center;
}

.offices__sub {
  font-size: 18px;
  line-height: 28px;
  color: var(--color-nav-link);
  text-align: center;
  max-width: 672px;
  margin: 16px auto 0;
}

.contact-details {
  padding: 0 max(var(--page-pad), calc((100% - 1440px) / 2));
  margin-block: 48px 0;
}

.contact-details__list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1296px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.contact-details__item {
  flex: 1 1 260px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  padding: 24px 28px;
  background: var(--neutral-white);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
}
.contact-details__item img { grid-row: span 2; }

.contact-details__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--neutral-700, #414752);
}

.contact-details__value {
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  color: var(--color-primary);
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.contact-details__value:hover { text-decoration: underline; }

/* featured offices: a larger two-column row first; the rest in a smaller grid below */
.offices__featured,
.offices__grid {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}
.offices__featured { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.offices__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.offices__featured + .offices__grid { margin-top: 32px; }

.office-card {
  min-width: 0;
  background: var(--neutral-white);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 33px;
}

.office-card__region {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.office-card__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-nav-link);
}
.office-card__row:first-of-type { margin-top: 0; }
.office-card__row img { flex-shrink: 0; }
.office-card__row a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.office-card__row a:hover { text-decoration: underline; }

.office-card__region { display: flex; align-items: center; gap: 12px; }
.office-card__flag { flex-shrink: 0; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px var(--slate-200); }
.office-card__country { margin: -16px 0 20px; font-size: 12px; line-height: 16px; color: var(--neutral-700, #414752); }
.office-card:not(.office-card--featured) .office-card__flag { width: 20px; height: auto; }

.office-card--featured { padding: 40px; border-color: var(--blue-600); box-shadow: 0 8px 24px var(--shadow-ink-10); }
.office-card--featured .office-card__region { font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 700; margin-bottom: 24px; }
.office-card--featured .office-card__country { margin-top: -16px; font-size: 14px; line-height: 20px; }
.office-card--featured .office-card__row { font-size: 16px; line-height: 24px; }
.office-card__map { margin-top: 28px; }

/* home page: slim band after the "Who we are" section naming the featured offices */
.page-home .offices-band {
  max-width: 1296px;
  margin: 0 auto;
  padding: 0 var(--page-pad) 36px;
}
.page-home .offices-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 20px 28px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: var(--neutral-50);
}
.page-home .offices-band__text { flex: 1 1 360px; margin: 0; font-size: 18px; line-height: 28px; color: var(--color-ink); }
.page-home .offices-band__list { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0; padding: 0; list-style: none; }
.page-home .offices-band__item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--neutral-white);
  border: 1px solid var(--slate-200); font-size: 14px; font-weight: 600; line-height: 20px;
}
.page-home .offices-band__flag { border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px var(--slate-200); }
@media (max-width: 768px) {
  .page-home .offices-band { padding-bottom: 24px; }
  .page-home .offices-band__inner { padding: 20px; }
}

/* ---------- inner pages responsive ---------- */

@media (max-width: 1200px) {
  .detail-hero__inner { flex-direction: column; align-items: flex-start; gap: 72px; }
  .detail-hero__media { width: 100%; }
  .purity-card { inset-inline-start: 16px; bottom: -32px; }
  .regulatory__cols { flex-direction: column; }
  .tabs { overflow-x: auto; gap: 24px; }
  .tab { white-space: nowrap; }
  .regulatory__img { min-height: 340px; }
}

@media (max-width: 768px) {
  .spec-card { padding: 20px; }
  .spec-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .spec-row dd { text-align: start; }

  .detail-hero { padding: 48px 20px; }
  .detail-hero__title { font-size: 36px; line-height: 46px; }
  .tabs { flex-wrap: wrap; gap: 16px; }

  .contact-hero { padding: 72px var(--page-pad); }
  .contact-hero__title { font-size: 36px; line-height: 44px; }
  .inquiry { padding: 48px 20px; }
  .inquiry__card { padding: 32px 24px 48px; }
  .form-row { flex-direction: column; }
  .office-card--featured { padding: 28px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
  :root { --page-pad: 40px; }

  .highlight-card { flex-basis: calc((100% - var(--highlight-gap)) / 2); }

  .services__inner { flex-direction: column; align-items: flex-start; }
  .services__left { width: 100%; }
  .services__photo { width: 100%; height: 480px; flex: none; }

  .category-chip { flex-basis: calc((100% - 3 * var(--chip-gap)) / 4); }

  .products__head { padding: 0 var(--page-pad); }
}

@media (max-width: 768px) {
  :root { --page-pad: 20px; }

  .hero { padding-top: calc(var(--header-h, 64px) + 64px); }
  .hero__title { font-size: 40px; line-height: 48px; letter-spacing: -0.8px; }
  .hero__content { padding-inline-end: 0; }

  .section-head__title { font-size: 34px; }
  .section-head__title--lg { font-size: 38px; }

  .about__highlights { --highlight-gap: 12px; }
  /* Fractional basis (like the categories strip below) leaves the next
     card peeking in from the edge as a hint that the strip scrolls. */
  .highlight-card { flex-basis: calc((100% - 0.2 * var(--highlight-gap)) / 1.2); }
  .highlight-card__title { font-size: 18px; padding: 6px 6px 0; }
  .highlight-card.is-featured .highlight-card__title { font-size: 21px; }
  .highlight-card__media { height: 140px; margin: 0 6px 6px; }

  .about__foot { flex-direction: column; align-items: flex-start; gap: 20px; }
  .about__nav { flex: none; align-self: flex-start; gap: 16px; }
  .about__nav-btn { width: 48px; height: 48px; }

  .service-card { gap: 24px; }
  .services__photo { height: 340px; }

  .categories { padding: 40px var(--page-pad) 8px; }
  .categories__head { margin-bottom: 24px; }
  .categories__strip { --chip-gap: 12px; }
  /* Fractional basis (2.3, not 2) deliberately leaves the next chip peeking
     in from the edge as a hint that the strip scrolls. */
  .category-chip { flex-basis: calc((100% - 1.3 * var(--chip-gap)) / 2.3); gap: 8px; }
  .category-chip__icon { width: 56px; height: 56px; }
  .category-chip__icon img { width: 24px; height: 24px; }
  .category-chip__name { font-size: 12px; }
  .category-slider__btn { width: 36px; height: 36px; }

  .cta__box { padding: 48px 28px; border-radius: 28px; }
  .cta__title { font-size: 38px; line-height: 46px; letter-spacing: -0.6px; }

  .footer__band {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    min-height: 380px;
    padding: 60px 24px;
  }
  .footer__slogan { font-size: 38px; line-height: 46px; }
}
