/* ---------------------------------------------------------------------------
   MENAMED Pharma — layout + 3D / motion
   Uses CSS variables for one-place theming; prefers reduced-motion users.
   --------------------------------------------------------------------------- */

:root {
  /* Red + black + grey theme */
  --container: 1350px;
  --header-total: 108px;
  --topbar-h: 40px;
  --nav-row-h: 68px;

  --brand: #c41e3a;
  --brand-dark: #1a0a0c;
  --accent: #e11d48;
  --accent-bright: #fb7185;
  --gold: #a3a3a3;

  --bg-page: #e5e5e5;
  --bg-white: #fafafa;
  --bg-deep: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-solid: #ffffff;
  --text: #171717;
  --text-muted: #525252;
  --text-on-dark: #f5f5f5;
  --text-muted-on-dark: #a3a3a3;
  --border: #d4d4d4;
  --border-strong: #a3a3a3;
  --shadow-3d: 0 16px 40px rgba(0, 0, 0, 0.18);
  --radius: 12px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* Fixed header: in-page anchors (#about-overview, #product-tablets, …) land below the bar */
  scroll-padding-top: calc(var(--header-total) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);
  overflow-x: hidden;
}

/* Respect OS preference: strip heavy motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }

  /* Marquee off: user can scroll the row horizontally instead */
  .export-slider__track {
    animation: none !important;
    transform: none !important;
  }

  .export-slider__viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .featured-strip__viewport {
    scroll-behavior: auto;
  }

}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* One column width site-wide: header, sections, footer — max 1350px + safe padding */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
  box-sizing: border-box;
}

/* Header uses the same .container rules so topbar + nav align with main content */
.site-header .container {
  max-width: var(--container);
}

/* Inner page subbanner: shown below fixed header on all pages */
.main--inner-page .subbanner,
.subbanner {
  position: relative;
  display: block;
  z-index: 2;
  padding: calc(var(--header-total) + 44px) 0 52px;
  background-color: #a51d2a;
  background-image:
    linear-gradient(120deg, rgba(196, 30, 58, 0.9), rgba(26, 10, 12, 0.92)),
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.2), transparent 55%);
  color: #fff;
  overflow: hidden;
  min-height: 11rem;
}

.main--inner-page .subbanner__title,
.main--inner-page .subbanner__crumb,
.main--inner-page .subbanner__crumb a {
  color: #fff;
}

.subbanner__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.subbanner__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
}

.subbanner__crumb {
  margin: 0.55rem 0 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.88);
}

.subbanner__crumb a {
  color: #fff;
  text-decoration: none;
}

.subbanner__crumb a:hover {
  text-decoration: underline;
}

.subbanner__lead {
  margin: 0.65rem auto 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

/* ----- Top bar (phones | email) ----- */
.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  background: var(--brand-dark);
  color: var(--text-on-dark);
  font-size: 0.82rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar__phones {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin-left: auto;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.topbar a {
  color: var(--text-on-dark);
}

.topbar a:hover {
  text-decoration: underline;
}

.topbar__sep {
  margin: 0 0.5rem;
  opacity: 0.55;
}

.topbar__mail {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  :root {
    --topbar-h: auto;
    --nav-row-h: 60px;
    --header-total: 124px;
  }

  .topbar {
    height: auto;
    min-height: 36px;
    padding: 0.4rem 0;
  }

  .topbar .container {
    padding-inline: clamp(12px, 3.5vw, 20px);
  }

  .topbar__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    text-align: center;
  }

  .topbar__mail {
    flex: none;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
  }

  .topbar__phones {
    margin-left: 0;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    row-gap: 0.15rem;
  }
}

@media (max-width: 480px) {
  .topbar {
    font-size: 0.72rem;
  }

  .topbar__sep {
    margin: 0 0.35rem;
  }
}

/* ----- Header / nav (white bar) ----- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nav {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: var(--nav-row-h);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--brand-dark);
  text-decoration: none;
}

.nav__brand:hover {
  text-decoration: none;
}

/* Small “pill” logo block — reads as a 3D chip (fallback when no Site Settings logo) */
.nav__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 4px 14px rgba(196, 30, 58, 0.35);
  transform: perspective(200px) rotateY(-8deg);
}

/* Uploaded logo from admin → Site Settings → Site Logo */
.nav__logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
  flex-shrink: 0;
}

.nav__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav__name span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.nav__item {
  position: relative;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.35rem 0;
  border-radius: 4px;
}

.nav__link:hover {
  color: var(--brand);
  text-decoration: none;
}

/* Parent label for items that open a flyout on desktop */
.nav__link--parent {
  padding-right: 0.15rem;
}

@media (min-width: 901px) {
  .nav__link--parent::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.2rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-muted);
    vertical-align: middle;
    opacity: 0.85;
  }

  .nav__item--dropdown:hover .nav__link--parent::after,
  .nav__item--dropdown:focus-within .nav__link--parent::after {
    border-top-color: var(--brand);
  }
}

.nav__dropdown-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

/* Chevron button: hidden on desktop (hover opens menu); visible on mobile accordion */
.nav__dropdown-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.nav__dropdown-btn:hover {
  background: rgba(196, 30, 58, 0.08);
  color: var(--brand);
}

.nav__dropdown-btn-icon {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease;
}

.nav__item--dropdown.is-open .nav__dropdown-btn-icon {
  transform: rotate(225deg) translate(-1px, -1px);
}

/* Flyout panel */
.nav__dropdown {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
}

.nav__dropdown-link {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
}

.nav__dropdown-link:hover {
  background: rgba(196, 30, 58, 0.08);
  color: var(--brand);
  text-decoration: none;
}

/* Desktop: dropdown as popover under item */
@media (min-width: 901px) {
  .nav__inner,
  .nav__menu {
    height: 100%;
    align-items: stretch;
  }

  .nav__item {
    display: flex;
    align-items: stretch;
  }

  .nav__dropdown-head {
    align-items: center;
    height: 100%;
  }

  /* Hover bridge: keeps parent hovered while pointer moves into submenu. */
  .nav__item--dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
  }

  .nav__dropdown-btn {
    display: none !important;
  }

  .nav__dropdown {
    position: absolute;
    /* Make dropdown top border sit on the header bottom line */
    top: calc(100% - -15px);
    left: 0;
    min-width: 220px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 1px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(2px);
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s;
    z-index: 120;
  }

  .nav__item--dropdown:hover .nav__dropdown,
  .nav__item--dropdown:focus-within .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav__item--dropdown .nav__dropdown li {
    margin: 0;
  }
}

.nav__cta {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(196, 30, 58, 0.3);
}

.nav__cta:hover {
  text-decoration: none;
  background: var(--brand-dark);
  color: #fff !important;
}

.nav__item--cta {
  margin-left: 0.25rem;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--brand-dark);
  border-radius: 2px;
}

@media (max-width: 1024px) {
  .nav__menu {
    gap: 0.75rem;
  }

  .nav__link {
    font-size: 0.85rem;
  }
}

@media (max-width: 900px) {
  .nav__toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav__inner {
    min-height: var(--nav-row-h);
  }

  .nav__logo-img {
    height: 38px;
    max-width: min(168px, 54vw);
  }

  .nav__menu {
    gap: 0;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-total);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.25rem;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    max-height: calc(100vh - var(--header-total));
    overflow-y: auto;
  }

  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__item {
    border-bottom: 1px solid var(--border);
  }

  .nav__item:last-child {
    border-bottom: 0;
  }

  .nav__dropdown-head {
    width: 100%;
    justify-content: space-between;
  }

  .nav__link--parent {
    flex: 1;
    padding: 0.85rem 0.25rem 0.85rem 0.5rem;
    font-size: 1rem;
  }

  .nav__item:not(.nav__item--dropdown) .nav__link {
    display: block;
    padding: 0.85rem 0.5rem;
    font-size: 1rem;
  }

  .nav__dropdown-btn {
    display: flex;
  }

  .nav__dropdown {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0 0 0 0.5rem;
    border-left: 3px solid var(--brand);
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0 0 8px 8px;
    transition: max-height 0.35s ease;
  }

  .nav__item--dropdown.is-open .nav__dropdown {
    max-height: 480px;
    padding: 0.25rem 0 0.5rem;
  }

  .nav__dropdown-link {
    padding: 0.65rem 1rem 0.65rem 1.25rem;
  }

  .nav__item--cta {
    margin-left: 0;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 0;
  }

  .nav__item--cta .nav__cta {
    display: block;
    text-align: center;
    width: 100%;
  }
}

/* ----- Main banner slider (under fixed header) ----- */
.main-slider {
  position: relative;
  margin-top: var(--header-total);
  background: var(--brand-dark);
}

.main-slider--intro-pending .main-slider__carousel {
  display: none !important;
}

.main-slider__intro {
  position: relative;
  width: 100%;
  min-height: 500px;
  background: #000;
  overflow: hidden;
}

.main-slider__intro.is-done {
  display: none;
}

.main-slider__video {
  display: block;
  width: 100%;
  height: 650px;
  object-fit: cover;
  object-position: center;
}

.main-slider__skip {
  position: absolute;
  right: max(12px, calc((100vw - var(--container)) / 2));
  bottom: 1.25rem;
  z-index: 6;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.main-slider__skip:hover {
  background: rgba(0, 0, 0, 0.65);
  border-color: rgba(255, 255, 255, 0.75);
}

.main-slider.is-carousel-active .main-slider__carousel,
.main-slider:not(.main-slider--intro-pending) .main-slider__carousel {
  display: block;
}

.main-slider__slide--has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.main-slider__viewport {
  overflow: hidden;
  width: 100%;
}

.main-slider__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.main-slider__slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 3.25rem 0 4.25rem;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  color: var(--text-on-dark);
}

/* Each slide: green gradient overlay (pharma banner look, no image files required) */
.main-slider__slide--1 {
  background-color: #1a0a0c;
  background-image:
    linear-gradient(105deg, rgba(26, 10, 12, 0.95) 0%, rgba(45, 45, 45, 0.75) 45%, rgba(196, 30, 58, 0.45) 100%),
    radial-gradient(ellipse 80% 60% at 85% 40%, rgba(225, 29, 72, 0.25), transparent);
}

.main-slider__slide--2 {
  background-color: #0a0a0a;
  background-image:
    linear-gradient(105deg, rgba(10, 10, 10, 0.98) 0%, rgba(38, 38, 38, 0.85) 50%, rgba(196, 30, 58, 0.35) 100%),
    radial-gradient(circle at 15% 80%, rgba(255, 255, 255, 0.06), transparent 50%);
}

.main-slider__slide--3 {
  background-color: #171717;
  background-image:
    linear-gradient(115deg, rgba(80, 20, 30, 0.55) 0%, rgba(23, 23, 23, 0.92) 55%, rgba(0, 0, 0, 0.88) 100%),
    radial-gradient(ellipse 70% 50% at 70% 20%, rgba(251, 113, 133, 0.12), transparent);
}

.main-slider__content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.main-slider__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: #fff;
}

.main-slider__text {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--text-muted-on-dark);
  max-width: 36rem;
}

.btn--slider {
  display: inline-flex;
  padding: 0.65rem 1.35rem;
  border-radius: 4px;
  background: #fff;
  color: var(--brand-dark) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn--slider:hover {
  text-decoration: none;
  background: #e5e5e5;
}

.main-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.main-slider__arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}

.main-slider__arrow--prev {
  left: max(12px, calc((100vw - var(--container)) / 2 - 8px));
}

.main-slider__arrow--next {
  right: max(12px, calc((100vw - var(--container)) / 2 - 8px));
}

.main-slider__arrow--prev::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(2px, -2px);
}

.main-slider__arrow--next::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-right: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg) translate(-2px, 2px);
}

.main-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 5;
}

.main-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.main-slider__dot[aria-selected="true"] {
  background: #fff;
  border-color: #fff;
}

@media (max-width: 600px) {
  .main-slider__intro,
  .main-slider__video {
    min-height: 420px;
    height: 420px;
  }

  .main-slider__slide {
    min-height: 420px;
    padding-bottom: 3.75rem;
  }

  .main-slider__arrow {
    width: 36px;
    height: 36px;
  }

  .main-slider__arrow--prev {
    left: 8px;
  }

  .main-slider__arrow--next {
    right: 8px;
  }
}

/* ----- Intro / hero below slider (welcome + stats panel) ----- */
.hero {
  position: relative;
  width: 100%;
  padding: 3.5rem 0 4rem;
  box-sizing: border-box;
  perspective: 1200px;
  perspective-origin: 50% 40%;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.hero--welcome .hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 46%);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__main {
  min-width: 0;
}

.hero__media {
  min-width: 0;
}

.hero__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3d);
  background: linear-gradient(180deg, #fafafa, #f4f4f5);
}

.hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(520px, 70vh);
  object-fit: cover;
  object-position: center;
}

.hero__stats {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
}

.hero__stats .hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero__stats .hero__stat strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--gold);
  line-height: 1.1;
}

@media (max-width: 900px) {
  .hero--welcome .hero__layout {
    grid-template-columns: 1fr;
  }

  .hero__media {
    order: -1;
    max-width: 420px;
    margin-inline: auto;
  }

  .hero__img {
    max-height: 360px;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Subtle grid on white intro (keeps light 3D floor hint) */
.grid-floor {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -15%;
  height: 45%;
  background:
    linear-gradient(90deg, rgba(196, 30, 58, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(115, 115, 115, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: rotateX(72deg);
  transform-origin: center top;
  opacity: 0.45;
  mask-image: linear-gradient(transparent, black 40%);
}

/* Floating “molecule” orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  animation: float3d 14s ease-in-out infinite;
}

.orb--1 {
  width: 280px;
  height: 280px;
  top: 8%;
  right: 5%;
  background: radial-gradient(circle at 30% 30%, rgba(225, 29, 72, 0.35), transparent 60%);
  animation-delay: 0s;
}

.orb--2 {
  width: 180px;
  height: 180px;
  top: 40%;
  left: -5%;
  background: radial-gradient(circle at 40% 40%, rgba(163, 163, 163, 0.35), transparent 65%);
  animation-delay: -4s;
  animation-duration: 18s;
}

.orb--3 {
  width: 120px;
  height: 120px;
  bottom: 18%;
  right: 25%;
  background: radial-gradient(circle at 50% 50%, rgba(196, 30, 58, 0.22), transparent 70%);
  animation-delay: -7s;
  animation-duration: 12s;
}

@keyframes float3d {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(20px, -24px, 40px) scale(1.05);
  }
  66% {
    transform: translate3d(-16px, 12px, -30px) scale(0.98);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 1.25rem;
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  background: linear-gradient(105deg, var(--brand), #7f1d1d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 34rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #991b1b);
  color: #fff;
  box-shadow: 0 10px 32px rgba(196, 30, 58, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn--block {
  width: 100%;
}

/* Right-side stats panel — glass + inset highlight for depth */
.hero__panel {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
}

.hero__panel-inner {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3d), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero__stat strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
}

/* Admin → Welcome (welcome.php): polished split card */
.section--welcome-gg {
  background: linear-gradient(180deg, #fafafa 0%, #f0f0f1 48%, #fafafa 100%);
  border-block: 1px solid var(--border);
}

.section--welcome-gg .welcome-gg__card {
  display: grid;
  grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  grid-template-areas: "media body";
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3d);
  overflow: hidden;
  position: relative;
}

.welcome-gg__media {
  grid-area: media;
}

.welcome-gg__body {
  grid-area: body;
  min-width: 0;
}

.section--welcome-gg .welcome-gg__card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  border-radius: 4px 0 0 4px;
  pointer-events: none;
}

.welcome-gg__figure {
  margin: 0;
  height: 100%;
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(155deg, #fce7eb 0%, #fafafa 55%, #f4f4f5 100%);
}

.welcome-gg__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
}

.welcome-gg__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}

.welcome-gg__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 1rem;
  color: var(--brand-dark);
  line-height: 1.12;
  max-width: 28rem;
}

.welcome-gg__highlights {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.welcome-gg__highlights li {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(196, 30, 58, 0.08);
  border: 1px solid rgba(196, 30, 58, 0.18);
}

.welcome-gg__content-wrap {
  position: relative;
  max-height: 11.5rem;
  overflow: hidden;
  transition: max-height 0.45s ease;
}

.welcome-gg__content-wrap.is-expanded {
  max-height: none;
}

.welcome-gg__content-wrap.is-expanded .welcome-gg__content-fade {
  opacity: 0;
  pointer-events: none;
}

.welcome-gg__content {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
}

@media (min-width: 1100px) {
  .welcome-gg__content {
    column-count: 2;
    column-gap: 2rem;
  }

  .welcome-gg__content-wrap.is-expanded .welcome-gg__content {
    column-count: 1;
  }
}

.welcome-gg__content > *:first-child {
  margin-top: 0;
}

.welcome-gg__content > *:last-child {
  margin-bottom: 0;
}

.welcome-gg__content strong {
  color: var(--text);
}

.welcome-gg__content-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4.5rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 88%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.welcome-gg__toggle {
  margin: 0.65rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.welcome-gg__toggle:hover {
  color: var(--accent);
}

.welcome-gg__toggle[hidden] {
  display: none;
}

.welcome-gg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.welcome-gg__cards-head {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.welcome-gg__cards-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 700;
  margin: 0;
  color: var(--brand-dark);
}

.section--welcome-gg .about__grid {
  margin-top: 0;
}

@media (max-width: 900px) {
  .section--welcome-gg .welcome-gg__card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "body";
  }

  .welcome-gg__media {
    max-width: 100%;
  }

  .welcome-gg__figure,
  .welcome-gg__img {
    min-height: 240px;
  }

  .welcome-gg__content {
    column-count: 1;
  }
}

/* ----- Sections ----- */
.section {
  padding: 5rem 0;
  position: relative;
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 0.75rem;
}

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

/* About cards */
.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.about__card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  transform-style: preserve-3d;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.about__card h3 {
  font-family: var(--font-display);
  margin-top: 0;
  color: var(--accent);
}

/* ----- Product hub: featured formulations panel (no separate photo gallery) ----- */
.product-hub {
  margin-bottom: 2.25rem;
}

.product-hub__panel {
  position: relative;
  padding: 1.35rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3d);
}

@media (min-width: 700px) {
  .product-hub__panel {
    padding: 1.35rem 1.25rem;
  }
}

.product-hub__featured-inner {
  box-sizing: border-box;
  padding: 0.85rem 0.15rem 0.35rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ----- Featured formulations: horizontal service-style cards (reference layout) ----- */

.featured-strip {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.featured-strip__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--brand);
  font-family: var(--font-display);
}

.featured-strip__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: var(--brand-dark);
}

.featured-strip__sub {
  margin: 0 auto 1.15rem;
  max-width: 40rem;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
  color: var(--text-muted);
}

.featured-strip__scroll {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.featured-strip__viewport {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.2rem 0 0.65rem;
  overscroll-behavior-x: contain;
}

.featured-strip__viewport::-webkit-scrollbar {
  display: none;
}

.featured-strip__viewport:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.featured-strip__track {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.15rem;
  width: max-content;
  padding: 0.15rem 0.25rem 0.35rem;
}

.featured-card {
  position: relative;
  flex: 0 0 clamp(220px, 72vw, 280px);
  width: clamp(220px, 72vw, 280px);
  max-width: 100%;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.featured-card__media {
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #e8e8e8;
}

.featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.featured-card:hover .featured-card__media img {
  transform: scale(1.04);
}

.featured-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1rem 1rem 1.1rem;
  gap: 0.45rem;
}

.featured-card__body--name-only {
  padding: 0.85rem 1rem 1rem;
  gap: 0;
}

.featured-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--brand-dark);
}

.featured-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.featured-card__title a:hover {
  color: var(--brand);
  text-decoration: none;
}

.featured-card__tagline {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.featured-card__list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  flex: 1 1 auto;
}

.featured-card__list li {
  margin-bottom: 0.15rem;
}

.featured-card__btn {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
  border: none;
  background: var(--brand);
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.featured-card__btn:hover {
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
}

.featured-card__media-placeholder {
  display: block;
  width: 100%;
  min-height: 200px;
  background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
}

.featured-strip__empty {
  margin: 0;
  padding: 1.5rem 1rem;
  color: var(--text-muted, #6b7280);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .featured-card:hover .featured-card__media img {
    transform: none;
  }
}

@media (min-width: 900px) {
  .featured-card {
    flex-basis: clamp(240px, 24vw, 290px);
    width: clamp(240px, 24vw, 290px);
  }
}

.product-types-block {
  text-align: center;
  margin-bottom: 1.75rem;
}

.product-types-heading {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.product-types-sub {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ----- Testimonials ----- */
.testimonials {
  background: linear-gradient(180deg, #e8e8e8 0%, var(--bg-page) 55%, var(--bg-page) 100%);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

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

.testimonial-card {
  margin: 0;
  padding: 1.5rem 1.35rem 1.35rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3d);
  transform-style: preserve-3d;
}

.testimonial-card__stars {
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: #b45309;
  margin-bottom: 0.85rem;
  line-height: 1;
}

.testimonial-card__star--dim {
  opacity: 0.32;
}

.testimonial-card__quote {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--text-muted);
  font-style: italic;
}

.testimonial-card__footer {
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial-card__name {
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.testimonial-card__company {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ----- Flip cards (true CSS 3D flip) ----- */
.products {
  background: linear-gradient(180deg, transparent, rgba(38, 38, 38, 0.06));
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  perspective: 1400px;
}

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

.flip-card {
  min-height: 280px;
  height: 280px;
  cursor: pointer;
  transform-style: preserve-3d;
}

a.flip-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.flip-card--link:hover,
a.flip-card--link:focus {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 900px) {
  .flip-card {
    min-height: 300px;
    height: 300px;
  }
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card__inner,
.flip-card:focus-within .flip-card__inner,
.flip-card.is-flipped .flip-card__inner {
  transform: rotateY(180deg);
}

/* Touch devices: no hover — flip stays open until second tap (class from JS) */
@media (hover: none) {
  .flip-card:hover .flip-card__inner {
    transform: none;
  }

  .flip-card.is-flipped .flip-card__inner,
  .flip-card:focus-within .flip-card__inner {
    transform: rotateY(180deg);
  }
}

.flip-card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3d);
  overflow: hidden;
}

/* Front: light card — dark text for easy reading */
.flip-card__face--front {
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f5 100%);
  color: var(--text);
  padding-top: 1.5rem;
  padding-bottom: 1.15rem;
}

.flip-card__face--front h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--brand-dark);
}

.flip-card__face--front p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #3f3f46;
  max-width: 100%;
}

/* Back: dark panel — light, larger type */
.flip-card__face--back {
  background: linear-gradient(155deg, #1a0a0c 0%, #2d1218 45%, #1f1f1f 100%);
  transform: rotateY(180deg);
  justify-content: center;
  padding: 1.5rem 1.15rem;
  border-color: rgba(196, 30, 58, 0.35);
}

.flip-card__back-text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  font-weight: 500;
  color: #fafafa;
  text-align: center;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.flip-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  background: rgba(196, 30, 58, 0.1);
  border: 1px solid rgba(196, 30, 58, 0.22);
  color: var(--brand);
}

.flip-card__svg {
  display: block;
  width: 2.65rem;
  height: 2.65rem;
}

.flip-card__hint {
  display: block;
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.02em;
}

.flip-card__cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(196, 30, 58, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.flip-card--link:hover .flip-card__cta,
.flip-card--link:focus .flip-card__cta {
  background: var(--brand);
}

@media (hover: hover) {
  .flip-card__hint {
    opacity: 0.85;
  }
}

.flip-card:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
  border-radius: var(--radius);
}

/* ----- Stats ----- */
.stats__row {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .stats__row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-pill {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  transform-style: preserve-3d;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.stat-pill__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-pill__num::after {
  content: "+";
  font-size: 1.2rem;
  margin-left: 2px;
}

.stat-pill__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----- Our Certifications heading + gallery ----- */
.cert-heading {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  text-align: center;
  color: var(--text);
  margin: 2.5rem 0 1.25rem;
  letter-spacing: 0.02em;
}

/* Columns: default 3; {{module:our-certification}} backend display_columns → --cert-cols inline */
.cert-gallery {
  --cert-cols: 3;
  --cert-cols-md: min(var(--cert-cols), 4);
  --cert-cols-sm: min(var(--cert-cols), 3);
  --cert-cols-xs: 2;
  display: grid;
  grid-template-columns: repeat(var(--cert-cols), minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
  max-width: min(100%, 1200px);
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 1024px) {
  .cert-gallery {
    grid-template-columns: repeat(var(--cert-cols-md), minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .cert-gallery {
    grid-template-columns: repeat(var(--cert-cols-sm), minmax(0, 1fr));
    gap: 0.85rem 0.9rem;
  }
}

@media (max-width: 520px) {
  .cert-gallery {
    grid-template-columns: repeat(var(--cert-cols-xs), minmax(0, 1fr));
    gap: 0.75rem 0.8rem;
  }
}

.cert-card {
  margin: 0;
  display: block;
  width: 100%;
  min-width: 0;
  text-align: center;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.5rem 0.75rem;
  box-shadow: var(--shadow-3d);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: var(--brand);
}

.cert-card:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.cert-card__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #fafafa, #f0f0f0);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.cert-card__img {
  width: 100%;
  height: 100%;
  /* max-height: 120px; */
  object-fit: contain;
  padding: 0.35rem;
}

.cert-card__cap {
  display: block;
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ----- Certificate modal (lightbox + prev/next) ----- */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.cert-modal[hidden] {
  display: none !important;
}

.cert-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}

.cert-modal__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  padding: 1.25rem 1.25rem 1rem;
  overflow: hidden;
}

.cert-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.cert-modal__close:hover {
  background: var(--brand);
  color: #fff;
}

.cert-modal__eyebrow {
  margin: 0 2.5rem 0.25rem 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.cert-modal__name {
  margin: 0 2.5rem 0.75rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
}

.cert-modal__imgbox {
  flex: 1;
  min-height: 200px;
  max-height: min(62vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f5f5f5, #ebebeb);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: auto;
  margin-bottom: 0.75rem;
}

.cert-modal__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(58vh, 580px);
  object-fit: contain;
  vertical-align: middle;
}

.cert-modal__nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

.cert-modal__arrow {
  flex: 1;
  max-width: 220px;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cert-modal__arrow:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

@media (max-width: 520px) {
  .cert-modal__nav {
    flex-direction: column;
    align-items: stretch;
  }

  .cert-modal__arrow {
    max-width: none;
  }
}

/* ----- Exporting countries: horizontal sliding logo strip (infinite marquee) ----- */
.export-slider {
  margin-top: 0.75rem;
  padding: 0.35rem 0;
}

.export-slider__viewport {
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fafafa, #f0f0f0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  /* Fade edges so motion feels polished */
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.export-slider__track {
  display: flex;
  flex-direction: row;
  width: max-content;
  animation: export-logo-marquee 42s linear infinite;
  will-change: transform;
}

.export-slider:hover .export-slider__track {
  animation-play-state: paused;
}

.export-slider__row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1.35rem;
  padding: 0.85rem 1.75rem 0.95rem 0;
  flex-shrink: 0;
}

@keyframes export-logo-marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.export-slider figure {
  margin: 0;
}

.export-slider .export-card {
  margin: 0;
  flex: 0 0 auto;
  width: 148px;
  text-align: center;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.4rem 0.65rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.export-slider .export-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 26px rgba(196, 30, 58, 0.15);
  z-index: 1;
}

.export-slider .export-card__img-wrap {
  margin: 0 auto;
  width: 100%;
  max-width: 128px;
  aspect-ratio: 280 / 176;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f5f5f5;
}

.export-slider .export-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.export-slider .export-card__cap {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

/* ----- Contact ----- */
.contact__layout,
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact__layout,
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

.contact--page {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Quick contact cards (top of contact page) */
.contact-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.25rem;
}

@media (max-width: 900px) {
  .contact-quick {
    grid-template-columns: 1fr;
  }
}

.contact-quick__card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-quick__card:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 30, 58, 0.35);
  box-shadow: 0 14px 36px rgba(196, 30, 58, 0.12);
}

.contact-quick__card--static {
  cursor: default;
}

.contact-quick__card--static:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.contact-quick__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(196, 30, 58, 0.1);
  color: var(--brand);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-quick__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.contact-quick__value {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.contact-quick__value--muted {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-quick__phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}

.contact-quick__sep {
  opacity: 0.5;
}

/* Left column: dark info panel + map */
.contact__aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-panel {
  padding: 1.75rem 1.65rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #1a0a0c 0%, #2d1218 48%, #1f1014 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(26, 10, 12, 0.35);
}

.contact-panel__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  color: #fff;
}

.contact-panel__lead {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-panel__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.contact-panel__icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(196, 30, 58, 0.35);
  color: #fecdd3;
  font-size: 0.95rem;
}

.contact-panel__item-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.2rem;
}

.contact-panel__item-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.contact-panel__item-text a {
  color: #fecdd3;
  text-decoration: none;
}

.contact-panel__item-text a:hover {
  text-decoration: underline;
}

.contact-panel__tagline {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}

.contact-map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.contact-map--primary {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-map--primary .contact-map__frame {
  flex: 1;
  min-height: 420px;
  height: auto;
}

@media (min-width: 901px) {
  .contact-map--primary .contact-map__frame {
    min-height: 520px;
  }
}

.contact-map--fallback {
  padding: 2rem 1.5rem;
  text-align: center;
}

.contact-map__frame {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

.contact-map__foot {
  padding: 1rem 1.15rem;
  background: var(--bg-card-solid);
  border-top: 1px solid var(--border);
}

.contact-map__address {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.contact-map__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.contact-map__link:hover {
  text-decoration: underline;
}

.contact-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.contact-trust li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.contact-trust i {
  color: var(--brand);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.contact__info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 0.65rem;
  color: var(--text);
}

.contact__info > p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  max-width: 36rem;
  line-height: 1.55;
}

.contact__sep {
  opacity: 0.65;
}

.contact__optional {
  font-weight: 400;
  font-size: 0.82em;
  opacity: 0.85;
}

.contact__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact__flash {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.contact__flash--success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.contact__flash--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.contact-form__head {
  margin-bottom: 1.25rem;
}

.contact-form__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  color: var(--text);
}

.contact-form__sub {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.contact__form-wrap .contact__form {
  margin: 0;
}

.contact__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.contact__list li {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.contact__list strong {
  color: var(--text);
}

.contact__form,
.contact-form {
  padding: 0;
  border-radius: 14px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.contact-form__body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.65rem 1.75rem 1.25rem;
}

.contact-form__footer {
  padding: 1.1rem 1.75rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid var(--border);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

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

.contact-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.contact-form .form-field__label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.contact-form .form-field__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: -0.15rem;
}

.contact-form .form-field__control {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 0.72rem 0.95rem;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}

.contact-form .form-field__control--area {
  min-height: 8.5rem;
  resize: vertical;
}

.contact-form .form-field__control::placeholder {
  color: #94a3b8;
}

/* No red invalid dots / outlines — neutral focus only */
.contact-form .form-field__control:invalid {
  border-color: var(--border);
  box-shadow: none;
}

.contact-form .form-field__control:focus {
  outline: none;
  border-color: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.18);
}

.contact-form .form-field__control:focus:invalid {
  border-color: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.18);
}

.contact-form .form-field__file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px dashed var(--border-strong);
  background: #fff;
}

.contact-form .form-field__file-input {
  font: inherit;
  font-size: 0.88rem;
  max-width: 100%;
  color: var(--text);
}

.contact-form .form-field__file-input::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f1f5f9;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.contact-form .form-field__file-input::file-selector-button:hover {
  background: #e2e8f0;
}

.contact-form .form-field__file-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-form__fine {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

/* Home page contact block (legacy markup) */
.contact__form:not(.contact-form) {
  padding: 1.75rem 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__form:not(.contact-form) label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.contact__form:not(.contact-form) input,
.contact__form:not(.contact-form) textarea {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  padding: 0.72rem 0.9rem;
  font: inherit;
}

.contact__form:not(.contact-form) input:focus,
.contact__form:not(.contact-form) textarea:focus {
  outline: none;
  border-color: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.18);
}

.contact__note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

/* ----- Footer: dark band + columns + bottom bar ----- */
.site-footer {
  margin-top: 3rem;
  font-size: 0.95rem;
  text-align: left;
  padding: 0;
  letter-spacing: normal;
  background: transparent;
}

.site-footer a {
  color: #d4d4d4;
}

.site-footer a:hover {
  color: #fff;
}

.footer__main {
  background: var(--brand-dark);
  color: var(--text-on-dark);
  padding: 3rem 0 2.5rem;
  border-top: 3px solid var(--brand);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  align-items: start;
}

.footer__grid:has(.footer__col:nth-child(5)) {
  grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .footer__grid,
  .footer__grid:has(.footer__col:nth-child(5)) {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

.footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff !important;
  text-decoration: none !important;
  margin-bottom: 0.75rem;
}

.footer__brand-link:has(.footer__logo-img) {
  background: #fff;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  width: fit-content;
}

.footer__logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(220px, 58vw);
  object-fit: contain;
  object-position: left center;
}

.footer__logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  flex-shrink: 0;
}

.footer__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.footer__logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.footer__tagline {
  margin: 0 0 1rem;
  max-width: 22rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted-on-dark);
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff !important;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer__social-link:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff !important;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__links,
.footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin-bottom: 0.45rem;
}

.footer__links a {
  text-decoration: none;
  font-size: 0.92rem;
}

.footer__links a:hover {
  text-decoration: underline;
}

.footer__contact li {
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted-on-dark);
}

.footer__contact-label {
  display: block;
  font-weight: 700;
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.footer__sep {
  margin: 0 0.25rem;
  opacity: 0.5;
}

.btn--footer {
  display: inline-flex;
  margin-top: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 4px;
  background: var(--brand);
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--footer:hover {
  text-decoration: none !important;
  background: var(--accent);
  color: var(--brand-dark) !important;
}

.footer__bottom {
  background: #000000;
  padding: 1rem 0;
  font-size: 0.82rem;
  color: var(--text-muted-on-dark);
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer__copy {
  margin: 0;
}

.footer__credit {
  margin: 0;
}

.footer__credit a {
  color: #fca5a5;
}

/* ----- Scroll reveal (class toggled by JS) ----- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) rotateX(8deg);
  transform-origin: top center;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0);
}

/* ----- CMS inner pages + active nav (DB-driven) ----- */
.nav__link--active,
.nav__dropdown-link--active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cms-content {
  line-height: 1.65;
}

.cms-content img {
  max-width: 100%;
  height: auto;
}

/* CMS embed (Our Team, etc.) — container ke andar, overflow na ho */
.service-details__text.cms-content {
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.cms-content .team-grid {
  max-width: 100%;
}

.cms-content .person-card,
.cms-content .info-card,
.cms-content .info-grid {
  max-width: 100%;
  min-width: 0;
}

.cms-content .person-image img {
  display: block;
  width: 100%;
}

@media (max-width: 700px) {
  .cms-content .team-grid {
    grid-template-columns: 1fr !important;
  }
}

/* CMS landing pages (Global Presence, Our Team, etc.) — full-bleed embedded HTML */
.main--cms-landing {
  padding: 0;
  margin: 0;
}

.cms-landing-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.cms-content--landing {
  line-height: inherit;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

.cms-content--landing > section.hero:first-child,
.cms-content--landing > .hero:first-child {
  padding-top: calc(var(--header-total) + 48px);
}

.cms-content--landing .section {
  padding: 5rem 0;
}

.cms-content--landing .section[style],
.cms-content--landing .intro-band .section,
.cms-content--landing .cards-section .section,
.cms-content--landing .markets-band .section {
  padding: 80px 24px;
}

.cms-content--landing .markets-globe-wrap {
  align-items: stretch;
}

.cms-content--landing .markets-globe {
  position: relative;
  min-height: clamp(220px, 32vw, 360px);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 40%, rgba(0, 169, 143, 0.35), transparent 55%),
    radial-gradient(circle at 70% 55%, rgba(201, 168, 76, 0.22), transparent 50%),
    linear-gradient(145deg, #0d2040 0%, #0a1628 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cms-content--landing .markets-globe img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.cms-content--landing .markets-globe::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 2px dashed rgba(0, 212, 176, 0.35);
  pointer-events: none;
  z-index: 0;
}

.cms-content--landing .markets-list {
  width: 100%;
}

/* {{module:our-certification}} embed inside page body */
.cms-content .cms-cert-module {
  margin: 1.5rem 0;
}

.cms-content .cms-cert-module .cert-heading {
  margin-top: 0.5rem;
}

/* {{module:slug}} generic cards — columns = admin display_columns (--pm-cols on .page-module-section) */
.page-module-section {
  --pm-cols: 3;
  padding: 1.75rem 0;
  clear: both;
}

.page-module-section .dsw-container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

.page-module-intro {
  margin-bottom: 1.25rem;
}

.page-module-heading {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  margin: 0 0 0.45rem;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}

.page-module-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.page-module-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(var(--pm-cols, 3), minmax(0, 1fr));
}

.page-module-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.page-module-card__img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.page-module-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0.55rem 0 0.35rem;
  color: var(--text);
}

.page-module-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  line-height: 1.45;
}

.page-module-card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.page-module-card__link:hover {
  text-decoration: underline;
}

/* ----- Inner page + optional right sidebar (admin: Pages → Show Sidebar) ----- */
.main--inner-page .page-with-sidebar,
.page-with-sidebar {
  display: grid;
  gap: clamp(1.25rem, 4vw, 2.75rem);
  align-items: start;
}

.main--inner-page .page-sidebar {
  display: block;
  visibility: visible;
}

.service-details--page {
  padding: 3rem 0 4rem;
}

.service-details--page .page-with-sidebar {
  margin-top: 0;
}

@media (min-width: 900px) {
  .page-with-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  }
}

.page-with-sidebar__main {
  min-width: 0;
}

/* Card shell: top brand accent + depth */
.page-sidebar {
  position: sticky;
  top: calc(var(--header-total) + 1rem);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 12px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

@media (max-width: 899px) {
  .page-sidebar {
    position: static;
  }
}

.page-sidebar__shell {
  position: relative;
}

.page-sidebar__shell::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 55%, var(--brand-dark) 100%);
}

.page-sidebar__section {
  padding: 1.25rem 1.35rem 1.35rem;
}

.page-sidebar__section + .page-sidebar__section {
  border-top: 1px solid var(--border);
}

.page-sidebar__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-sidebar__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
  margin: 0 0 1rem;
  line-height: 1.25;
}

.page-sidebar__section--links .page-sidebar__title {
  margin-bottom: 0.85rem;
}

.page-sidebar__nav {
  margin: 0;
}

.page-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.page-sidebar__item {
  margin: 0;
}

.page-sidebar__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.3;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.5);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.page-sidebar__link:hover {
  color: var(--brand-dark);
  background: rgba(196, 30, 58, 0.06);
  border-color: rgba(196, 30, 58, 0.18);
  box-shadow: 0 2px 10px rgba(196, 30, 58, 0.08);
}

.page-sidebar__link-chevron {
  flex-shrink: 0;
  font-size: 0.85rem;
  opacity: 0.35;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.page-sidebar__link:hover .page-sidebar__link-chevron {
  opacity: 0.85;
  transform: translateX(2px);
}

.page-sidebar__link--active {
  color: var(--brand-dark);
  font-weight: 700;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, rgba(225, 29, 72, 0.06) 100%);
  border-color: rgba(196, 30, 58, 0.28);
  box-shadow: 0 2px 12px rgba(196, 30, 58, 0.12);
}

.page-sidebar__link--active .page-sidebar__link-chevron {
  opacity: 1;
  color: var(--brand);
}

.page-sidebar__link-text {
  min-width: 0;
}

.page-sidebar__section--contact {
  background: linear-gradient(165deg, #141010 0%, #1f1216 42%, #2a1518 100%);
  color: var(--text-on-dark);
  padding-bottom: 1.5rem;
}

.page-sidebar__title--contact {
  color: #fff;
  margin-bottom: 0.4rem;
}

.page-sidebar__contact-lead {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted-on-dark);
}

.page-sidebar__contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.7rem;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.page-sidebar__contact-row:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(251, 113, 133, 0.35);
}

.page-sidebar__contact-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(196, 30, 58, 0.35);
  color: #fecdd3;
}

.page-sidebar__ico {
  display: block;
}

.page-sidebar__contact-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.page-sidebar__contact-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted-on-dark);
}

.page-sidebar__contact-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  word-break: break-word;
}

.page-sidebar__btn {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.page-sidebar__btn:hover {
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .page-sidebar__link,
  .page-sidebar__link-chevron,
  .page-sidebar__contact-row {
    transition: none;
  }

  .page-sidebar__link:hover .page-sidebar__link-chevron {
    transform: none;
  }
}

/* Legacy sub-class (unused in new markup; keep for safety) */
.page-sidebar__sub {
  margin-left: 0.65rem;
}

.page-sidebar__sub .page-sidebar__link {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --- Blog listing & single post --- */
.blog-list .section__head {
  margin-bottom: 2rem;
}

.blog-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.blog-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.08), rgba(15, 23, 42, 0.04));
  overflow: hidden;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.5rem;
  color: var(--brand);
  opacity: 0.45;
}

.blog-card__body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.45rem;
}

.blog-card__date {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.blog-card__title {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0;
  color: var(--text);
}

.blog-card__excerpt {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.blog-card__more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  margin-top: 0.35rem;
}

.blog-post__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .blog-post__layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }
}

.blog-post__back {
  margin: 0 0 1.25rem;
}

.blog-post__back a {
  font-weight: 600;
  color: var(--brand);
}

.blog-post__head {
  margin-bottom: 1.5rem;
}

.blog-post__date {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.blog-post__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  margin: 0;
}

.blog-post__figure {
  margin: 0 0 1.75rem;
  border-radius: 12px;
  overflow: hidden;
}

.blog-post__figure img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post__content {
  font-size: 1.02rem;
  line-height: 1.7;
}

.blog-post__flash {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.blog-post__flash--success {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.blog-post__flash--error {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.blog-post__sidebar {
  padding: 1.25rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.blog-post__sidebar-title {
  font-size: 1rem;
  margin: 0 0 1rem;
}

.blog-post__sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.blog-post__sidebar-link {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
}

.blog-post__sidebar-link:hover .blog-post__sidebar-item-title {
  color: var(--brand);
}

.blog-post__sidebar-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.blog-post__sidebar-item-title {
  display: block;
  font-weight: 600;
  line-height: 1.35;
}

.blog-post__sidebar-item-date {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.blog-comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.blog-comments__heading {
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.blog-comments__empty {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.blog-comments__list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-comments__item {
  padding: 1rem 1.15rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border);
}

.blog-comments__author {
  display: block;
  margin-bottom: 0.2rem;
}

.blog-comments__time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-comments__text {
  margin: 0.65rem 0 0;
  line-height: 1.6;
}

.blog-comments__form-wrap {
  max-width: 36rem;
}

.blog-comments__form-title {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.blog-comments__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.blog-comments__form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.blog-comments__form input,
.blog-comments__form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 400;
}

.blog-comments__hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}

