/* ================================================================
   FORI Child Theme – components.css
   ================================================================ */

/* ═══════════════════════════════════════════════════════════════
   SITE HEADER — 3-column: logo | nav | right-actions
   
   Breakpoints:
   ≥ 1201px  : full desktop nav visible
   1201–1440 : nav compresses via clamp() — no separate rule needed
               because all values are already fluid
   ≤ 1200px  : hamburger / off-canvas (covers tablet + mobile)
   ═══════════════════════════════════════════════════════════════ */

.fori-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--fori-line);
  transition: box-shadow var(--dur) var(--ease);
}
.fori-header.is-scrolled { box-shadow: 0 4px 24px rgba(11,42,111,.08); }

/* Outer container — full-width, max 1440px, tight side padding */
.fori-header__container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  /* fluid padding: 12px at 1200px viewport → 24px at 1600px+ */
  padding-inline: clamp(12px, 1.5vw, 24px);
}

/* 3-column grid: logo takes only what it needs, nav fills the rest */
.fori-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  column-gap: 0;            /* spacing controlled per-column via padding */
  min-height: 84px;
  padding: 0;
}

/* Column alignment */
.fori-header__left,
.fori-header__centre,
.fori-header__right {
  display: flex;
  align-items: center;
  min-height: 84px;
}
.fori-header__left   { justify-content: flex-start; }
.fori-header__centre { justify-content: center; }
.fori-header__right  { justify-content: flex-end; }

/* Logo column: right padding = clear gap to first nav item */
.fori-header__left {
  /* Gap between logo and first nav item. */
  padding-right: clamp(12px, 1.2vw, 20px);
}

/* Right column: left padding = clear gap from last nav item */
.fori-header__right {
  /* fluid: 12px narrow → 20px wide */
  padding-left: clamp(10px, 1.2vw, 18px);
  gap: 10px;
}

/* Logo */
.fori-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.fori-header__logo img,
.fori-header__logo-img {
  /*
   * Horizontal PNG logo sizing.
   * height is fluid (36–44px); width is auto so horizontal logos
   * never get cropped or distorted regardless of their aspect ratio.
   * max-width prevents a very wide logo from eating into nav space.
   */
  height: clamp(30px, 2.8vw, 40px);
  width: auto;
  max-width: clamp(160px, 17vw, 220px); /* 5:1 horizontal logo needs ~200px at 40px height */
  display: block;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
}
.fori-header__logo-wordmark {
  /*
   * CSS wordmark fallback — only rendered when no image logo is found.
   * Styled to match brand identity: navy, tight tracking, bold.
   */
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 700;
  color: var(--fori-blue-900);
  letter-spacing: -0.03em;
  line-height: 1;
  font-family: var(--font-base);
  text-transform: uppercase;
}

/* ── Primary nav ─────────────────────────────────────────── */
.fori-nav {
  display: flex;
  align-items: center;
  height: 100%;
  overflow: hidden;          /* prevent accidental overflow bleed */
}
.fori-nav__list {
  display: flex;
  align-items: center;
  /* fluid gap: 0 at 1200px → 2px at 1600px+ */
  gap: clamp(0px, 0.15vw, 2px);
  list-style: none;
  height: 100%;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.fori-nav li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}
.fori-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  /* fluid padding: 5px at 1200px → 11px at 1600px+ */
  padding: 0 clamp(5px, 0.65vw, 11px);
  line-height: 1;
  /* fluid font: 11.5px at 1200px → 13.5px at 1600px+ */
  font-size: clamp(11.5px, 0.88vw, 13.5px);
  font-weight: 500;
  color: var(--fori-text);
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur), background var(--dur);
}
.fori-nav a:hover,
.fori-nav .current-menu-item > a {
  color: var(--fori-blue-800);
  background: var(--fori-bg);
}

/* ── Hamburger ───────────────────────────────────────────── */
.fori-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--dur);
}
.fori-nav-toggle:hover { background: var(--fori-bg); }
.fori-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fori-ink);
  border-radius: 2px;
  transition: transform var(--dur), opacity var(--dur);
}
.fori-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fori-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.fori-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Collapse to hamburger at ≤1200px (8 menu items need >1200px) ── */
@media (max-width: 1200px) {
  .fori-header__inner {
    grid-template-columns: auto auto;  /* logo | right only */
    column-gap: 0;
    min-height: 72px;
  }
  .fori-header__left,
  .fori-header__right { min-height: 72px; }
  .fori-header__left  { padding-right: 0; }
  .fori-header__right { padding-left: 0; gap: 8px; }
  .fori-header__centre { display: none; }
  .fori-header__right .btn--wa { display: none; }
  .fori-lang-dropdown  { display: none; }
  .fori-nav-toggle     { display: flex; }

  /* Off-canvas panel */
  .fori-nav.is-mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--fori-white);
    border-bottom: 1px solid var(--fori-line);
    box-shadow: var(--shadow-md);
    padding: 10px 0 20px;
    z-index: 800;
  }
  .fori-nav.is-mobile-open .fori-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .fori-nav.is-mobile-open a {
    border-radius: 0;
    padding: 13px 24px;
    font-size: 15px;
  }
}

/* ── Admin bar offset ──────────────────────────────────────────
   When logged in, WordPress adds a 32px (46px mobile) admin bar.
   Without this fix the sticky header slides behind the admin bar
   on scroll, and the initial page position feels "pushed up".
   We use the --wp-admin--admin-bar--height custom property that
   WordPress sets automatically, with a hard px fallback.
   ─────────────────────────────────────────────────────────── */
body.admin-bar .fori-header {
  top: 32px;
  top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
  body.admin-bar .fori-header {
    top: 46px;
    top: var(--wp-admin--admin-bar--height, 46px);
  }
}
/* ═══════════════════════════════════════════════════════════════
   PLAIN DEEP-BLUE HERO — shared by Products & Clinic Equipment
   No background image. Pure brand gradient. Text-first.
   ═══════════════════════════════════════════════════════════════ */
.fori-section-hero-plain {
  position: relative;
  background: linear-gradient(135deg, var(--fori-blue-900) 0%, #1a3a8a 60%, #2550b0 100%);
  overflow: hidden;
  padding-block: clamp(52px, 8vw, 96px);
}
/* No pattern on plain hero — pure gradient, maximum clarity */
.fori-section-hero-plain::after {
  display: none;
}
.fori-section-hero-plain .fori-container { position: relative; z-index: 2; }
.fori-section-hero-plain__inner { max-width: 760px; }
.fori-section-hero-plain .eyebrow { color: rgba(255,255,255,.62); }
.fori-section-hero-plain h1 {
  color: var(--fori-white);
  margin-bottom: 18px;
}
.fori-section-hero-plain__sub {
  font-size: clamp(15px, 1.7vw, 18px);
  color: rgba(255,255,255,.82);
  max-width: 600px;
  line-height: 1.65;
  margin-bottom: 0;
}
.fori-section-hero-plain__actions { margin-top: 32px; }

@media (max-width: 768px) {
  .fori-section-hero-plain { padding-block: 48px 40px; }
  .fori-section-hero-plain h1 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: var(--font-base) !important;
  }
  .fori-section-hero-plain__sub {
    font-size: 15px;
    color: rgba(255,255,255,.88) !important;
    -webkit-text-fill-color: rgba(255,255,255,.88) !important;
  }
  .fori-section-hero-plain__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .fori-section-hero-plain .btn {
    width: 100%;
    justify-content: center;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: var(--font-base) !important;
  }
}

/* ── Language Dropdown ─────────────────────────────────────── */
.fori-lang-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.fori-lang-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--r-btn);
  border: 1.5px solid var(--fori-line);
  background: transparent;
  color: var(--fori-text);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-base);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: border-color var(--dur), color var(--dur), background var(--dur);
}
.fori-lang-toggle:hover {
  border-color: var(--fori-blue-500);
  color: var(--fori-blue-800);
}
.fori-lang-toggle:focus-visible {
  outline: 2px solid var(--fori-blue-500);
  outline-offset: 2px;
}
.fori-lang-toggle--static { cursor: default; }

.fori-lang-current { font-weight: 500; min-width: 44px; }
.fori-lang-caret {
  transition: transform .18s var(--ease);
  flex-shrink: 0;
}
.fori-lang-dropdown.is-open .fori-lang-caret { transform: rotate(180deg); }

.fori-lang-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: var(--fori-white);
  border: 1px solid var(--fori-line);
  border-radius: var(--r-sm);
  box-shadow: 0 8px 32px rgba(11,42,111,.12), 0 2px 8px rgba(11,42,111,.06);
  padding: 6px;
  z-index: 1000;
  list-style: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
  pointer-events: none;
}
.fori-lang-dropdown.is-open .fori-lang-list {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fori-lang-list[hidden] {
  display: block !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}
.fori-lang-dropdown.is-open .fori-lang-list[hidden] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fori-lang-list__item { list-style: none; }
.fori-lang-list__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--fori-text);
  text-decoration: none;
  transition: background var(--dur), color var(--dur);
}
.fori-lang-list__link:hover {
  background: var(--fori-bg);
  color: var(--fori-blue-800);
}
.fori-lang-list__link:focus-visible {
  outline: 2px solid var(--fori-blue-500);
  outline-offset: -2px;
  border-radius: 7px;
}
.fori-lang-list__item.is-active .fori-lang-list__link {
  font-weight: 600;
  color: var(--fori-blue-800);
  background: rgba(79,130,217,.07);
}
.fori-lang-flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fori-line);
}
.fori-lang-flag img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.fori-lang-flag--code {
  font-size: 10px;
  font-weight: 700;
  color: var(--fori-blue-700);
  letter-spacing: 0.04em;
  background: rgba(79,130,217,.12);
}
.fori-lang-list__name  { flex: 1; }
.fori-lang-list__check { color: var(--fori-blue-700); flex-shrink: 0; display: flex; align-items: center; }

/* Trust bar */
.fori-trust-bar { background: var(--fori-blue-900); padding: 9px 0; }
.fori-trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}
.fori-trust-bar__item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
}
.fori-trust-bar__item svg { color: var(--fori-blue-500); }
@media (max-width: 640px) { .fori-trust-bar { display: none; } }

/* ── Site Footer ───────────────────────────────────────────── */
.fori-footer {
  /* Deeper, steadier navy — distinctly darker than the CTA strip */
  background: #071a3e;
  padding-block: 64px 28px;
}
.fori-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 1024px) { .fori-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .fori-footer__grid { grid-template-columns: 1fr; gap: 28px; } }

.fori-footer__wordmark {
  font-size: 21px;
  font-weight: 700;
  color: var(--fori-white);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.fori-footer__tagline {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,.45);
  margin-bottom: 22px;
}
.fori-footer__wa-links { display: flex; flex-direction: column; gap: 10px; }
.fori-footer__wa-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fori-wa-green);
  text-decoration: none;
  transition: opacity var(--dur);
}
.fori-footer__wa-link:hover { opacity: .75; }
.fori-footer__col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 14px;
}
.fori-footer__nav { display: flex; flex-direction: column; gap: 9px; }
.fori-footer__nav a {
  font-size: 14px;
  color: rgba(255,255,255,.48);
  text-decoration: none;
  transition: color var(--dur);
}
.fori-footer__nav a:hover { color: var(--fori-white); }
.fori-footer__cta-note {
  font-size: 13px;
  color: rgba(255,255,255,.38);
  line-height: 1.65;
  margin-bottom: 16px;
}
.fori-footer__cta-btn { font-size: 13px; padding: 10px 20px; }
.fori-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,.28);
}

/* ── Floating WhatsApp ─────────────────────────────────────── */
.fori-wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.fori-wa-float__btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--fori-wa-green);
  color: var(--fori-white);
  border-radius: var(--r-btn);
  padding: 11px 18px 11px 13px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(37,211,102,.30);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.fori-wa-float__btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 9px 28px rgba(37,211,102,.40);
}
.fori-wa-float__label { white-space: nowrap; }
@media (max-width: 640px) {
  .fori-wa-float { bottom: 18px; right: 14px; }
  .fori-wa-float__label { display: none; }
  .fori-wa-float__btn { padding: 13px; border-radius: 50%; }
}

/* ── Hero — 4-image carousel ───────────────────────────────── */
.fori-hero {
  position: relative;
  background: var(--fori-blue-900);
  overflow: hidden;
  padding-block: clamp(80px, 12vw, 140px);
}

/* Slider layer — behind content, fills hero */
.fori-hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Individual slide — background-image set inline via PHP */
.fori-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
}
.fori-hero__slide.is-active {
  opacity: 1;
}

/*
  Wash layer — dark-blue gradient overlay.
  Sits above the slides, below the content.
  Two-stop gradient: opaque navy at left-bottom, semi-transparent at right-top.
  This ensures white text is always legible regardless of photo content,
  and gives the hero a consistent FORI brand colour tone.
  No pattern layer — the wash is the only overlay.
*/
.fori-hero__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(11, 42, 111, 0.52) 0%,
    rgba(11, 42, 111, 0.34) 55%,
    rgba(11, 42, 111, 0.18) 100%
  ); /* overlay ~0.50 — image clearly visible, text readable */
  pointer-events: none;
}

/* Content sits above slider + wash */
.fori-hero .fori-container {
  position: relative;
  z-index: 2;
}
.fori-hero__content {
  max-width: 680px;
}
.fori-hero h1 { color: var(--fori-white); }
.fori-hero__sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(255,255,255,.82);
  margin-top: 18px;
  max-width: 560px;
  line-height: 1.65;
}
.fori-hero__actions { margin-top: 32px; }
.fori-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.fori-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255,255,255,.68);
}
.fori-hero__trust-item svg { color: var(--fori-blue-500); flex-shrink: 0; }

/* Slide navigation dots */
.fori-hero__dots {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  margin-top: 40px;
  padding-bottom: 4px; /* optical clearance */
}
.fori-hero__dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.32);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .3s ease, width .3s ease;
}
.fori-hero__dot.is-active {
  background: rgba(255,255,255,.90);
  width: 44px;
}
.fori-hero__dot:hover:not(.is-active) {
  background: rgba(255,255,255,.55);
}

/* .fori-pattern-overlay: HTML element kept in templates, CSS disabled.
   pattern-floral.svg and pattern-light.svg are NOT referenced anywhere.
   pattern-grid.svg referenced here only — disabled until confirmed clean. */
.fori-pattern-overlay {
  display: none; /* disabled — pure dark sections look cleaner without it */
}

/* Page intro (inner-page dark header) */
.fori-page-intro {
  position: relative;
  background: var(--fori-blue-900);
  overflow: hidden;
  padding-block: clamp(40px, 5vw, 68px); /* Products intro: tighter than hero */
}
.fori-page-intro::after {
  display: none; /* no overlay — pure deep-blue bg is sufficient */
}
.fori-page-intro__inner { position: relative; z-index: 1; }
.fori-page-intro .eyebrow { color: rgba(255,255,255,.65); } /* dark bg — override global blue */
.fori-page-intro h1 { color: var(--fori-white); margin-bottom: 14px; }
.fori-page-intro p {
  color: rgba(255,255,255,.68);
  font-size: clamp(16px, 1.8vw, 18px);
  max-width: 540px;
}

/* ── Feature / Entry Cards ─────────────────────────────────── */
.fori-card {
  background: var(--fori-white);
  border-radius: var(--r-card);
  border: 1px solid var(--fori-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.fori-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.fori-card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.fori-card__img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--fori-bg) 0%, var(--fori-line) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--fori-blue-500);
}
.fori-card__body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.fori-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fori-blue-700);
  background: rgba(79,130,217,.1);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.fori-card h3 {
  margin-bottom: 9px;
  min-height: 2.4em;
  line-height: 1.3;
  font-size: clamp(16px, 1.4vw, 18px);
}
.fori-card p  { font-size: 15px; margin: 0; flex: 1; 
  flex: 1;
  min-height: 72px;
  line-height: 1.6;
}
.fori-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;   /* pushes link to bottom of card body */
  padding-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fori-blue-700);
  text-decoration: none;
  transition: gap var(--dur);
}
.fori-card__link:hover {
  gap: 9px;
  color: var(--fori-blue-700); /* lock — prevent Astra link:hover overriding */
}

/* Entry card */
.fori-entry-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--fori-white);
  border-radius: var(--r-card);
  border: 1px solid var(--fori-line);
  padding: 28px 22px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur);
}
.fori-entry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--fori-blue-500);
}
.fori-entry-card h3 {
  font-size: 16px;
  min-height: 2.6em;  /* locks paragraph start across support cards */
  line-height: 1.3;
}
.fori-entry-card p  { font-size: 14px; color: var(--fori-text); flex: 1; }
.fori-entry-card__arrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--fori-blue-700);
  display: flex;
  align-items: center;
  gap: 5px;
}
.fori-entry-card--static { cursor: default; pointer-events: none; }
.fori-entry-card--static:hover { transform: none; box-shadow: none; border-color: var(--fori-line); }

/* ── Why FORI pillar cards (dark blue section) ─────────────
   Design goals:
   - Feel premium and airy, not dense
   - Number stands out as a subtle accent, not a badge
   - Top border line gives each card a distinct "entry" moment
   - Hover lifts card with a soft white glow
   - No heavy borders or opaque box backgrounds
   ─────────────────────────────────────────────────────────── */
.fori-pillar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  background: rgba(255,255,255,.06);
  border-radius: var(--r-card);
  border: 1px solid rgba(255,255,255,.10);
  height: 100%;
}
.fori-pillar:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  border-top-color: rgba(255,255,255,.40);
  transform: translateY(-4px);
}

/* Number — large, airy, acts as an eyebrow */
.fori-pillar__num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fori-blue-500);
  opacity: .85;
  margin-bottom: 2px;
}

/* Heading — brighter, slightly larger */
.fori-pillar h3 {
  color: var(--fori-white);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.0em; /* aligns body text start across all 4 pillars */

  

  text-align: left;
}

/* Body — softer, comfortable reading */
.fori-pillar p {
  color: rgba(255,255,255,.62);
  font-size: 14.5px;
  line-height: 1.72;
  margin: 0;
  flex: 1; /* fills remaining space so all cards same body height */
}

/* ── Image placeholders & split layout ─────────────────────── */
.fori-img-placeholder {
  background: linear-gradient(135deg, var(--fori-bg) 0%, var(--fori-line) 100%);
  border-radius: var(--r-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--fori-blue-500);
}
.fori-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.fori-split--reverse { direction: rtl; }
.fori-split--reverse > * { direction: ltr; }
@media (max-width: 768px) { .fori-split, .fori-split--reverse { grid-template-columns: 1fr; direction: ltr; } }

.fori-split__img {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
  background: var(--fori-line); /* fallback colour if image is loading */
}
.fori-split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.fori-split__img.fori-img-placeholder { border-radius: var(--r-card); }

/* ── CTA Strip ─────────────────────────────────────────────── */
/* Separator gap ABOVE footer */
.fori-cta-strip-wrap {
  padding-block: 0;
  /* Add a gap between the strip wrapper bottom and footer */
  margin-bottom: 0; /* gap is on the section below, see footer margin-top */
}

.fori-cta-strip {
  position: relative;
  background: var(--fori-gradient);
  border-radius: var(--r-card);
  padding: 48px 52px;  /* was 60px — tighter vertical rhythm */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;           /* was 36px — closer text-to-button spacing */
  flex-wrap: wrap;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(11,42,111,.18);
}
.fori-cta-strip::before {
  display: none; /* no overlay — gradient bg is sufficient */
}
.fori-cta-strip__text { position: relative; z-index: 1; }
.fori-cta-strip h2 {
  font-size: clamp(22px, 2.8vw, 34px);
  color: var(--fori-white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.fori-cta-strip p {
  font-size: 16px;
  color: rgba(255,255,255,.70);
  max-width: 460px;
  line-height: 1.65;
}
.fori-cta-strip__actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
/* Gap between CTA section and footer */
.fori-footer {
  margin-top: 56px; /* breathing space so CTA and footer don't compress */
}
@media (max-width: 768px) {
  .fori-cta-strip { padding: 40px 28px; flex-direction: column; align-items: flex-start; }
  .fori-footer { margin-top: 36px; }
}

/* ── Process Steps ─────────────────────────────────────────── */
.fori-steps { display: flex; flex-direction: column; }
.fori-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--fori-line);
}
.fori-step:last-child { border-bottom: none; }
.fori-step__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--fori-gradient);
  color: var(--fori-white);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fori-step h3 { margin-bottom: 5px; font-size: var(--text-h3); }
.fori-step p  { font-size: 15px; color: var(--fori-text); }
.fori-steps-wrap { max-width: var(--container-n); margin-inline: auto; }

/* ── FAQ Accordion ─────────────────────────────────────────── */
.fori-faq     { max-width: var(--container-n); margin-inline: auto; }
.fori-faq__item { border-bottom: 1px solid var(--fori-line); }
.fori-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--fori-ink);
  cursor: pointer;
  user-select: none;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-base);
  transition: color var(--dur);
}
.fori-faq__question:hover { color: var(--fori-blue-700); }
.fori-faq__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 2px solid var(--fori-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fori-blue-700);
  transition: transform var(--dur), background var(--dur), border-color var(--dur);
}
.fori-faq__item.is-open .fori-faq__icon {
  transform: rotate(45deg);
  background: var(--fori-blue-700);
  border-color: var(--fori-blue-700);
  color: var(--fori-white);
}
.fori-faq__answer {
  display: none;
  padding-bottom: 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fori-text);
}
.fori-faq__item.is-open .fori-faq__answer { display: block; }

/* ── Contact Card ──────────────────────────────────────────── */
.fori-contact-card {
  background: var(--fori-white);
  border-radius: var(--r-card);
  border: 1px solid var(--fori-line);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fori-contact-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: rgba(37,211,102,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a9e4c;
}
.fori-contact-card h3 { font-size: 19px; }
.fori-contact-card p  { font-size: 14px; color: var(--fori-text); }
.fori-contact-card__number {
  font-size: 18px;
  font-weight: 700;
  color: var(--fori-ink);
  letter-spacing: -0.01em;
}
.fori-contact-card .eyebrow { color: var(--fori-text); opacity: .55; margin-bottom: 0; }
.fori-contact-grid  { max-width: 820px; margin-inline: auto; }
.fori-promise-grid  { max-width: 900px; margin-inline: auto; }
.fori-form-section-inner { max-width: var(--container-n); margin-inline: auto; }

/* ── Checklist ─────────────────────────────────────────────── */
.fori-checklist {
  display: flex;
  flex-direction: column;
  gap: 11px;
  /* Align checklist flush with paragraph text — no extra left indent */
  padding-left: 0;
  margin-left: 0;
}
.fori-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--fori-text);
  line-height: 1.55;
  padding-left: 0;
}
.fori-checklist__item svg {
  flex-shrink: 0;
  margin-top: 3px;   /* optical alignment with first text baseline */
  color: var(--fori-blue-700);
  /* No extra left offset — icon starts at the same x as paragraph */
}

/* ── Form wrapper ──────────────────────────────────────────── */
.fori-form-wrap {
  background: var(--fori-white);
  border-radius: var(--r-card);
  border: 1px solid var(--fori-line);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 44px);
}
.fori-form-wrap__note {
  text-align: center;
  font-size: 13px;
  color: var(--fori-text);
  opacity: .6;
  margin-top: 14px;
}

/* ═══════════════════════════════════════════════════════════
   TRUST & DELIVERY PROOF SECTION
   ═══════════════════════════════════════════════════════════ */

.fori-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);

  align-items: stretch;
}
@media (max-width: 1024px) { .fori-proof-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:  640px) { .fori-proof-grid { grid-template-columns: 1fr; } }

.fori-proof-card {
  background: var(--fori-white);
  border-radius: var(--r-card);
  border: 1px solid var(--fori-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;

  height: 100%;
}
.fori-proof-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.fori-proof-card__img-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(160deg, #EDF2FB 0%, #D9E3F2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--fori-blue-500);
}
.fori-proof-card__img-placeholder svg  { opacity: .45; }
.fori-proof-card__img-placeholder span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fori-blue-700);
  opacity: .6;
}

/* Certificate 3-panel mosaic */
.fori-cert-mosaic {
  width: 100%;
  aspect-ratio: 16/10;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3px;
  background: #D9E3F2;
}
.fori-cert-mosaic__cell {
  background: #D9E3F2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fori-cert-mosaic__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.fori-cert-mosaic__cell svg { opacity: .3; color: var(--fori-blue-700); }

/* 2×2 QC mosaic */
.fori-qc-mosaic {
  width: 100%;
  aspect-ratio: 16/10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  background: #D9E3F2;
  overflow: hidden;
}
.fori-qc-mosaic__cell {
  background: linear-gradient(135deg, #EDF2FB 0%, #D9E3F2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fori-qc-mosaic__cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fori-qc-mosaic__cell--placeholder { flex-direction: column; gap: 6px; }
.fori-qc-mosaic__cell--placeholder svg  { opacity: .35; color: var(--fori-blue-700); }
.fori-qc-mosaic__cell--placeholder span {
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fori-blue-700); opacity: .5;
}

/* ─────────────────────────────────────────────────────────────
   EXPORT PACKING & DELIVERY — Vertical Stack
   Two stacked images filling the same 16:10 card-image area.
   Top image (packed goods): taller, more dominant (ratio ~2:1).
   Bottom image (truck/shipment): slightly shorter (ratio ~3:1).
   Together they occupy the full aspect-ratio block.
   ───────────────────────────────────────────────────────────── */
.fori-delivery-stack {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #D9E3F2;
  overflow: hidden;
}

/* Top and bottom cells — equal 50/50 split, white divider line */
.fori-delivery-stack__top,
.fori-delivery-stack__bottom {
  flex: 1 1 50%;
  overflow: hidden;
  position: relative;
}
/* White 3px line separates the two images */
.fori-delivery-stack__top {
  border-bottom: 3px solid #ffffff;
}
.fori-delivery-stack__top img,
.fori-delivery-stack__bottom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Placeholder state (retained as safe fallback if image missing) */
.fori-delivery-stack__cell--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #EDF2FB 0%, #D9E3F2 100%);
  width: 100%;
  height: 100%;
}
.fori-delivery-stack__cell--placeholder svg  { opacity: .35; color: var(--fori-blue-700); }
.fori-delivery-stack__cell--placeholder span {
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--fori-blue-700); opacity: .5;
  text-align: center; padding-inline: 8px; line-height: 1.4;
}

/* Proof card body — locked rhythm across all 3 cards */
.fori-proof-grid {
  align-items: stretch;
}
.fori-proof-card {
  height: 100%;
}
.fori-proof-card__body {
  padding: 24px 26px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fori-proof-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fori-blue-700);
  min-height: 16px;
}
.fori-proof-card h3 {
  font-size: 18px;
  color: var(--fori-ink);
  margin: 0;
  min-height: 2.8em;
  line-height: 1.35;
}
.fori-proof-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fori-text);
  margin: 0;
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════
   VIDEO SECTION
   ═══════════════════════════════════════════════════════════ */

.fori-video-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.fori-video-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-base);
  cursor: pointer;
  border: 1.5px solid var(--fori-line);
  background: transparent;
  color: var(--fori-text);
  line-height: 1;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.fori-video-tab:hover {
  border-color: var(--fori-blue-500);
  color: var(--fori-blue-800);
  background: rgba(79,130,217,.05);
}
.fori-video-tab.is-active {
  background: var(--fori-blue-900);
  border-color: var(--fori-blue-900);
  color: var(--fori-white);
  font-weight: 600;
}
.fori-video-tab svg { flex-shrink: 0; opacity: .7; }
.fori-video-tab.is-active svg { opacity: 1; }

.fori-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--fori-ink);
  box-shadow: 0 12px 40px rgba(11,42,111,.14), 0 2px 8px rgba(11,42,111,.08);
}
.fori-video-frame__poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* Fallback colour — JS sets background-image from data-cover-* attribute */
  background-color: #0c2a74;
  background-size: cover;
  background-position: center;
  transition: opacity .25s var(--ease);
  gap: 18px;
}
/* Dark overlay so play button remains legible over any cover photo */
.fori-video-frame__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11,42,111,.50);
  pointer-events: none;
  z-index: 0;
}
/* Push play button and label above the overlay */
.fori-video-frame__poster > * { position: relative; z-index: 1; }
.fori-video-frame__poster.is-hidden { opacity: 0; pointer-events: none; }
.fori-video-play {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fori-white);
  transition: background .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.fori-video-frame__poster:hover .fori-video-play {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.6);
  transform: scale(1.06);
}
.fori-video-play svg { margin-left: 3px; }
.fori-video-frame__poster-label {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* poster::before — removed pattern overlay; cover photo background is set by JS */
.fori-video-frame__poster::before { display: none; }
.fori-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.fori-video-frame iframe.is-loaded { opacity: 1; }

/* ══════════════════════════════════════════════════
   VIDEO CARDS — two-card layout, click opens YouTube
   ══════════════════════════════════════════════════ */
.fori-video-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: stretch;
  /* Prevent any parent flex from collapsing this to a single column */
  width: 100%;
}
@media (max-width: 768px) {
  .fori-video-cards { grid-template-columns: 1fr; gap: var(--gap-md); }
}
.fori-video-card {
  display: flex;
  flex-direction: column;
  background: var(--fori-white);
  border-radius: var(--r-card);
  border: 1px solid var(--fori-line);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  height: 100%;
}
.fori-video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fori-video-card__poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 200px;  /* fallback if aspect-ratio not supported */
  background-color: #0c2a74;
  background-size: cover;
  background-position: center;
  position: relative;
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
}
.fori-video-card__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11,42,111,.42);
  pointer-events: none;
}
.fori-video-card__poster > * { position: relative; z-index: 1; }
.fori-video-card__poster:hover .fori-video-play {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.65);
  transform: scale(1.07);
}
.fori-video-card__watch-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fori-video-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.38);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fori-white);
  transition: background .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.fori-video-play svg { margin-left: 3px; }
.fori-video-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.fori-video-card__meta { flex: 1; }
.fori-video-card__meta h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--fori-ink);
  margin: 0 0 8px;
  line-height: 1.3;
}
.fori-video-card__meta p {
  font-size: 14px;
  color: var(--fori-text);
  line-height: 1.65;
  margin: 0;
}
.fori-video-card__cta {
  margin-top: 16px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fori-video-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--fori-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--fori-blue-700);
  text-decoration: none;
  transition: color var(--dur), gap var(--dur);
}
.fori-video-card__link:hover { color: var(--fori-blue-900); gap: 9px; }

/* z-index helper for pattern sections */
.fori-container--above-pattern {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCTS & SOLUTIONS PAGE — scoped to .fori-products-page
   (class added to <main> in template, body class via functions.php)
   Row 1: 4-col main cards  → .fori-products-main
   Row 2: 2-col light cards → .fori-products-light
   ═══════════════════════════════════════════════════════════ */

/* ── Astra wrapper neutralisation ──────────────────────────── */
/*
  When the template_include filter in functions.php correctly bypasses
  Astra's page.php, these rules are not needed. They are kept as a
  fallback in case the page runs inside Astra's content wrapper on some
  hosting configurations.
*/
.fori-products-page .ast-container,
.fori-products-page #primary,
.fori-products-page .content-area,
.fori-products-page .site-main,
.fori-products-page .entry-content,
.fori-products-page article.page {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* ── Row 1: 4-column main card grid ───────────────────────── */
/*
  Desktop (≥1101px):   4 columns
  Tablet  (640–1100px): 2 columns
  Mobile  (<640px):    1 column
*/
.fori-products-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);           /* 28px — from design tokens */
  margin-bottom: 24px;       /* gap between Row 1 and Row 2 */
  width: 100%;
}
@media (max-width: 1100px) {
  .fori-products-main { grid-template-columns: repeat(2, 1fr); gap: var(--gap-md); }
}
@media (max-width: 640px) {
  .fori-products-main { grid-template-columns: 1fr; gap: var(--gap-sm); }
}

/* Card image: 1600×1120 source cropped to 4:3 display */
.fori-products-main .fori-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Row 2: 2-column light card row ────────────────────────── */
/*
  Desktop: 2 equal columns
  Mobile (<768px): 1 column
*/
.fori-products-light {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  width: 100%;
}
@media (max-width: 768px) {
  .fori-products-light { grid-template-columns: 1fr; gap: var(--gap-sm); }
}

/* ── Light cards (intentionally image-free) ────────────────── */
.fori-light-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  border-radius: var(--r-card);
  padding: 36px 40px;
  border: 1px solid var(--fori-line);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  width: 100%;
  box-sizing: border-box;
}
.fori-light-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.fori-light-card--oem {
  background: var(--fori-white);
  border-left: 3px solid var(--fori-blue-700);
}
.fori-light-card--more {
  background: linear-gradient(135deg, #EDF2FB 0%, #f7fafd 100%);
  border-color: var(--fori-line);
}
.fori-light-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(31,86,190,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fori-blue-700);
  margin-top: 2px;
}
.fori-light-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0; /* prevent flex overflow */
}
.fori-light-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fori-blue-700);
}
.fori-light-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--fori-ink);
  line-height: 1.28;
  margin: 0;
  min-height: 2.4em; /* aligns paragraph start across both light cards */
}
.fori-light-card p {
  font-size: 15px;
  line-height: 1.68;
  color: var(--fori-text);
  margin: 0;
}
.fori-light-card .btn-group   { margin-top: 6px; }
.fori-light-card .btn--outline { align-self: flex-start; }

@media (max-width: 640px) {
  .fori-light-card {
    flex-direction: column;
    gap: 18px;
    padding: 28px 24px;
  }
  .fori-light-card--oem {
    border-left: none;
    border-top: 3px solid var(--fori-blue-700);
  }
}

/* ═══════════════════════════════════════════════════════════
   PRODUCTS PAGE — hero pattern override
   Replace the floral motif with an ordered hairline grid on
   the Products & Solutions page only. More catalogue-appropriate.
   Scoped via body class so home page is NOT affected.
   ═══════════════════════════════════════════════════════════ */
.fori-products-page .fori-page-intro::after,
.page-template-page-templates-page-products-php .fori-page-intro::after {
  /* Inherits the clean no-pattern rule from .fori-page-intro::after */
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   HOME PAGE — Core Solutions section
   Row 1: 4 main entry cards (.fori-home-solutions__main)
   Row 2: 2 light cards      (.fori-home-solutions__light)
   ═══════════════════════════════════════════════════════════ */

.fori-home-solutions__main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-bottom: 24px; /* slightly more gap before light-card row */
}
@media (max-width: 1100px) { .fori-home-solutions__main { grid-template-columns: repeat(2, 1fr); gap: var(--gap-md); } }
@media (max-width:  640px) { .fori-home-solutions__main { grid-template-columns: 1fr; gap: var(--gap-sm); } }

/* Homepage entry cards — slightly taller, more generous, homepage feel */
.fori-home-solutions__main .fori-entry-card {
  padding: 32px 26px;
  gap: 14px;
}
.fori-home-solutions__main .fori-entry-card h3 {
  font-size: 17px;
  font-weight: 600;
}
.fori-home-solutions__main .fori-entry-card p {
  font-size: 14px;
  line-height: 1.65;
}

.fori-home-solutions__light {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
@media (max-width: 768px) { .fori-home-solutions__light { grid-template-columns: 1fr; gap: var(--gap-sm); } }

/*
  Home light card: text-only, no image.
  Uses flex-column so label / h3 / p / link stack at consistent spacing.
  gap: 10px between each flex child means all cards have identical
  internal rhythm regardless of text length.
*/
.fori-home-light-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 32px;
  border-radius: var(--r-card);
  background: var(--fori-bg);
  border: 1px solid var(--fori-line);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.fori-home-light-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.fori-home-light-card--cta {
  background: linear-gradient(135deg, #EDF2FB 0%, #f7fafd 100%);
}

.fori-home-light-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fori-blue-700);
}
.fori-home-light-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--fori-ink);
  line-height: 1.28;
  margin: 0;
}
.fori-home-light-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fori-text);
  flex: 1;       /* pushes link to bottom of the card */
  margin: 0;
}
/* Named link class — cleaner than relying on .fori-entry-card__arrow */
.fori-home-light-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--fori-blue-700);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  transition: gap var(--dur);
}
.fori-home-light-card__link:hover { gap: 9px; }

@media (max-width: 640px) {
  .fori-home-light-card { padding: 22px 24px; }
}


/* ════════════════════════════════════════════════════════════
   MOBILE SPECIALISATION  (max-width: 768px / 480px)
   All rules here are additive overrides of desktop styles.
   Desktop layout is never touched by these selectors.
   ════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── A. Header mobile ───────────────────────────────────── */

  /* Tighter header height on mobile */
  .fori-header__inner,
  .fori-header__left,
  .fori-header__right {
    min-height: 60px;
  }
  .fori-header__container {
    padding-inline: clamp(12px, 3vw, 20px);
  }

  /* Smaller logo */
  .fori-header__logo img,
  .fori-header__logo-img { height: 26px; max-width: 140px; }
  .fori-header__logo-wordmark { font-size: 18px; }

  /* Language pill — hidden on mobile (already hidden via 960px rule),
     but make compact if it ever shows in an intermediate state */
  .fori-lang-toggle {
    padding: 5px 9px;
    font-size: 12px;
  }
  .fori-lang-current { min-width: 36px; }

  /* Hamburger — slightly smaller hit area */
  .fori-nav-toggle {
    width: 32px;
    height: 32px;
  }
  .fori-nav-toggle span { width: 18px; }

  /* Right side gap tighter */
  .fori-header__right { gap: 6px; }

  /* ── B. Hero mobile ─────────────────────────────────────── */

  .fori-hero {
    padding-block: 56px 44px;
  }

  /* Force correct font on all Hero text */
  .fori-hero h1,
  .fori-hero__sub,
  .fori-hero__trust-item,
  .fori-hero .btn {
    font-family: var(--font-base) !important;
  }

  /* h1: clamp keeps it in control on narrow screens */
  .fori-hero h1 {
    font-size: clamp(26px, 7.5vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.02em;
  }

  /* Sub-paragraph: compact, still readable */
  .fori-hero__sub {
    font-size: 15px;
    line-height: 1.6;
    margin-top: 14px;
    max-width: 100%;
  }

  /* Content box full width, less padding eaten by container */
  .fori-hero__content { max-width: 100%; }

  /* Button group: stack buttons vertically, full-width feel */
  .fori-hero__actions {
    margin-top: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .fori-hero .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 15px;
  }

  /* Trust bar: single column, tighter */
  .fori-hero__trust {
    margin-top: 28px;
    padding-top: 22px;
    gap: 12px;
  }
  .fori-hero__trust-item {
    font-size: 12.5px;
    gap: 6px;
  }

  /* Dots: slightly smaller */
  .fori-hero__dots { margin-top: 28px; gap: 6px; }
  .fori-hero__dot  { width: 22px; height: 3px; }
  .fori-hero__dot.is-active { width: 34px; }

  /* ── C. WhatsApp float — smaller, clear of content ─────── */

  .fori-wa-float {
    bottom: 16px;
    right: 12px;
  }
  .fori-wa-float__btn {
    padding: 11px;
    border-radius: 50%;
    font-size: 0;    /* hide text label */
    gap: 0;
  }
  .fori-wa-float__label { display: none; }
  /* Icon remains visible at correct size */
  .fori-wa-float__btn svg { flex-shrink: 0; }

  /* ── D. Video section mobile ────────────────────────────── */

  /* Force correct font on video section text */
  .fori-section .fori-video-section,
  .fori-video-tabs,
  .fori-video-tab {
    font-family: var(--font-base) !important;
  }

  /* Tabs: smaller, full-row spread */
  .fori-video-tabs {
    gap: 6px;
    margin-bottom: 16px;
  }
  .fori-video-tab {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    flex: 1;               /* equal-width tabs */
    justify-content: center;
  }
  /* Active tab: ensure text is clearly white */
  .fori-video-tab.is-active {
    background: var(--fori-blue-900);
    border-color: var(--fori-blue-900);
    color: #ffffff !important;
    font-weight: 600;
  }

  /* Video frame: reduced border-radius on mobile */
  .fori-video-frame {
    border-radius: var(--r-sm);
    box-shadow: 0 6px 24px rgba(11,42,111,.14);
  }

  /* Poster: bigger play button for thumb tap */
  .fori-video-play {
    width: 60px;
    height: 60px;
  }
  .fori-video-frame__poster-label {
    font-size: 12px;
  }

} /* end @media (max-width: 768px) */


@media (max-width: 480px) {

  /* ── Extra-small phone adjustments ─────────────────────── */

  /* Even tighter header */
  .fori-header__inner,
  .fori-header__left,
  .fori-header__right {
    min-height: 54px;
  }
  .fori-header__logo img,
  .fori-header__logo-img { height: 22px; max-width: 120px; }

  /* Hero h1 floor */
  .fori-hero h1 {
    font-size: clamp(22px, 8vw, 30px);
  }

  /* Proof cards: reduce body padding */
  .fori-proof-card__body { padding: 18px 18px 22px; }
  .fori-proof-card h3    { font-size: 16px; min-height: auto; }

  /* Video tabs: slightly smaller still */
  .fori-video-tab { padding: 7px 10px; font-size: 12px; }

} /* end @media (max-width: 480px) */


/* ════════════════════════════════════════════════════════════
   MOBILE COLOUR LOCK — hero text + button text
   Scoped to .fori-home-page to avoid touching other pages.
   All rules use !important to override any inherited or
   theme-injected colour values on mobile devices.
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ===== Mobile hero text colour lock ===== */
  .fori-home-page .fori-hero,
  .fori-home-page .fori-hero * {
    font-family: var(--font-base) !important;
  }

  .fori-home-page .fori-hero .eyebrow,
  .fori-home-page .fori-hero__eyebrow {
    color: rgba(255,255,255,.72) !important;
  }

  .fori-home-page .fori-hero h1,
  .fori-home-page .fori-hero__title,
  .fori-home-page .fori-hero .h1 {
    color: #ffffff !important;
  }

  .fori-home-page .fori-hero p,
  .fori-home-page .fori-hero__lead,
  .fori-home-page .fori-hero__desc,
  .fori-home-page .fori-hero .lead {
    color: rgba(255,255,255,.88) !important;
  }

  .fori-home-page .fori-hero .fori-checklist,
  .fori-home-page .fori-hero .fori-checklist li,
  .fori-home-page .fori-hero .fori-checklist span {
    color: rgba(255,255,255,.92) !important;
  }

  .fori-home-page .fori-hero .fori-checklist svg,
  .fori-home-page .fori-hero .fori-checklist i {
    color: #9EC3FF !important;
    fill: #9EC3FF !important;
  }

  /* ===== Mobile primary / WA button text lock ===== */
  .fori-home-page .btn--primary,
  .fori-home-page .btn--primary:link,
  .fori-home-page .btn--primary:visited,
  .fori-home-page .btn--primary:hover,
  .fori-home-page .btn--primary:focus,
  .fori-home-page .btn--primary:focus-visible,
  .fori-home-page .btn--primary:active,
  .fori-home-page a.btn--primary,
  .fori-home-page button.btn--primary {
    color: #ffffff !important;
  }

  .fori-home-page .btn--wa,
  .fori-home-page .btn--wa:link,
  .fori-home-page .btn--wa:visited,
  .fori-home-page .btn--wa:hover,
  .fori-home-page .btn--wa:focus,
  .fori-home-page .btn--wa:focus-visible,
  .fori-home-page .btn--wa:active,
  .fori-home-page a.btn--wa,
  .fori-home-page button.btn--wa {
    color: #ffffff !important;
  }

  .fori-home-page .btn--outline,
  .fori-home-page .btn--outline:link,
  .fori-home-page .btn--outline:visited,
  .fori-home-page .btn--outline:hover,
  .fori-home-page .btn--outline:focus,
  .fori-home-page .btn--outline:focus-visible,
  .fori-home-page .btn--outline:active,
  .fori-home-page a.btn--outline,
  .fori-home-page button.btn--outline {
    color: var(--fori-blue-800) !important;
  }

  .fori-home-page .fori-video-tabs .btn--primary,
  .fori-home-page .fori-video-tabs .btn--primary:link,
  .fori-home-page .fori-video-tabs .btn--primary:visited,
  .fori-home-page .fori-video-tabs .btn--primary:hover,
  .fori-home-page .fori-video-tabs .btn--primary:focus,
  .fori-home-page .fori-video-tabs .btn--primary:focus-visible,
  .fori-home-page .fori-video-tabs .btn--primary:active {
    color: #ffffff !important;
  }

  .fori-home-page .fori-video-tabs .btn--outline,
  .fori-home-page .fori-video-tabs .btn--outline:link,
  .fori-home-page .fori-video-tabs .btn--outline:visited,
  .fori-home-page .fori-video-tabs .btn--outline:hover,
  .fori-home-page .fori-video-tabs .btn--outline:focus,
  .fori-home-page .fori-video-tabs .btn--outline:focus-visible,
  .fori-home-page .fori-video-tabs .btn--outline:active {
    color: var(--fori-blue-800) !important;
  }

} /* end mobile colour lock */

/* ════════════════════════════════════════════════════════════
   MOBILE COLOUR LOCK — PASS 2
   Higher-specificity overrides for hero buttons, CTA strip
   buttons, and hero checklist text on mobile.
   Uses -webkit-text-fill-color as well as color to defeat
   Safari/iOS text-fill inheritance.
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ===== Mobile hero button text lock ===== */
  .fori-home-page .fori-hero .btn--primary,
  .fori-home-page .fori-hero .btn--primary:link,
  .fori-home-page .fori-hero .btn--primary:visited,
  .fori-home-page .fori-hero .btn--primary:hover,
  .fori-home-page .fori-hero .btn--primary:focus,
  .fori-home-page .fori-hero .btn--primary:focus-visible,
  .fori-home-page .fori-hero .btn--primary:active,
  .fori-home-page .fori-hero a.btn--primary,
  .fori-home-page .fori-hero button.btn--primary,
  .fori-home-page .fori-hero .btn--wa,
  .fori-home-page .fori-hero .btn--wa:link,
  .fori-home-page .fori-hero .btn--wa:visited,
  .fori-home-page .fori-hero .btn--wa:hover,
  .fori-home-page .fori-hero .btn--wa:focus,
  .fori-home-page .fori-hero .btn--wa:focus-visible,
  .fori-home-page .fori-hero .btn--wa:active,
  .fori-home-page .fori-hero a.btn--wa,
  .fori-home-page .fori-hero button.btn--wa {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  /* ===== Mobile CTA strip button text lock ===== */
  .fori-home-page .fori-cta-strip .btn--primary,
  .fori-home-page .fori-cta-strip .btn--primary:link,
  .fori-home-page .fori-cta-strip .btn--primary:visited,
  .fori-home-page .fori-cta-strip .btn--primary:hover,
  .fori-home-page .fori-cta-strip .btn--primary:focus,
  .fori-home-page .fori-cta-strip .btn--primary:focus-visible,
  .fori-home-page .fori-cta-strip .btn--primary:active,
  .fori-home-page .fori-cta-strip a.btn--primary,
  .fori-home-page .fori-cta-strip button.btn--primary,
  .fori-home-page .fori-cta-strip .btn--wa,
  .fori-home-page .fori-cta-strip .btn--wa:link,
  .fori-home-page .fori-cta-strip .btn--wa:visited,
  .fori-home-page .fori-cta-strip .btn--wa:hover,
  .fori-home-page .fori-cta-strip .btn--wa:focus,
  .fori-home-page .fori-cta-strip .btn--wa:focus-visible,
  .fori-home-page .fori-cta-strip .btn--wa:active,
  .fori-home-page .fori-cta-strip a.btn--wa,
  .fori-home-page .fori-cta-strip button.btn--wa {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  /* ===== Mobile hero checklist text lock ===== */
  .fori-home-page .fori-hero .fori-checklist,
  .fori-home-page .fori-hero .fori-checklist li,
  .fori-home-page .fori-hero .fori-checklist li a,
  .fori-home-page .fori-hero .fori-checklist span,
  .fori-home-page .fori-hero .fori-checklist p,
  .fori-home-page .fori-hero .fori-checklist strong {
    color: rgba(255,255,255,.92) !important;
    -webkit-text-fill-color: rgba(255,255,255,.92) !important;
  }

  .fori-home-page .fori-hero .fori-checklist svg,
  .fori-home-page .fori-hero .fori-checklist i,
  .fori-home-page .fori-hero .fori-checklist::before {
    color: #9EC3FF !important;
    fill: #9EC3FF !important;
    border-color: #9EC3FF !important;
  }

} /* end mobile colour lock pass 2 */

/* ════════════════════════════════════════════════════════════
   MOBILE COLOUR LOCK — PASS 3 (definitive)
   Root-cause fix: previous passes used .fori-home-page body
   class which is never actually added by functions.php.
   This pass uses direct component selectors (.fori-hero,
   .fori-cta-strip) which are reliable regardless of body class.
   Also adds -webkit-text-fill-color to defeat iOS Safari
   inherited colour from translation plugins or Astra mobile CSS.
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Hero: all text white ───────────────────────────────── */
  .fori-hero,
  .fori-hero * {
    font-family: var(--font-base) !important;
  }
  .fori-hero h1,
  .fori-hero .fori-hero__title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
  .fori-hero .eyebrow {
    color: rgba(255,255,255,.72) !important;
    -webkit-text-fill-color: rgba(255,255,255,.72) !important;
  }
  .fori-hero p,
  .fori-hero .fori-hero__sub {
    color: rgba(255,255,255,.88) !important;
    -webkit-text-fill-color: rgba(255,255,255,.88) !important;
  }

  /* ── Hero: checklist text white ─────────────────────────── */
  .fori-hero .fori-checklist__item {
    color: rgba(255,255,255,.92) !important;
    -webkit-text-fill-color: rgba(255,255,255,.92) !important;
  }
  /* Trust item text (different element from checklist) */
  .fori-hero .fori-hero__trust-item {
    color: rgba(255,255,255,.92) !important;
    -webkit-text-fill-color: rgba(255,255,255,.92) !important;
  }
  .fori-hero .fori-checklist svg,
  .fori-hero .fori-checklist__item svg {
    color: #9EC3FF !important;
    stroke: #9EC3FF !important;
  }

  /* ── Hero: button text white ────────────────────────────── */
  .fori-hero .btn--primary,
  .fori-hero .btn--primary:link,
  .fori-hero .btn--primary:visited,
  .fori-hero .btn--primary:hover,
  .fori-hero .btn--primary:focus,
  .fori-hero .btn--primary:active,
  .fori-hero a.btn--primary {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
  .fori-hero .btn--wa,
  .fori-hero .btn--wa:link,
  .fori-hero .btn--wa:visited,
  .fori-hero .btn--wa:hover,
  .fori-hero .btn--wa:focus,
  .fori-hero .btn--wa:active,
  .fori-hero a.btn--wa {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
  .fori-hero .btn--outline-white,
  .fori-hero .btn--outline-white:link,
  .fori-hero .btn--outline-white:visited,
  .fori-hero .btn--outline-white:hover,
  .fori-hero .btn--outline-white:focus,
  .fori-hero .btn--outline-white:active,
  .fori-hero a.btn--outline-white {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  /* ── CTA strip: all text and buttons white ──────────────── */
  .fori-cta-strip,
  .fori-cta-strip * {
    font-family: var(--font-base) !important;
  }
  .fori-cta-strip h2 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
  .fori-cta-strip p {
    color: rgba(255,255,255,.80) !important;
    -webkit-text-fill-color: rgba(255,255,255,.80) !important;
  }
  .fori-cta-strip .btn--primary,
  .fori-cta-strip .btn--primary:link,
  .fori-cta-strip .btn--primary:visited,
  .fori-cta-strip .btn--primary:hover,
  .fori-cta-strip .btn--primary:focus,
  .fori-cta-strip .btn--primary:active,
  .fori-cta-strip a.btn--primary {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
  .fori-cta-strip .btn--wa,
  .fori-cta-strip .btn--wa:link,
  .fori-cta-strip .btn--wa:visited,
  .fori-cta-strip .btn--wa:hover,
  .fori-cta-strip .btn--wa:focus,
  .fori-cta-strip .btn--wa:active,
  .fori-cta-strip a.btn--wa {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

} /* end mobile colour lock pass 3 */

/* ════════════════════════════════════════════════════════════
   PRODUCTS PAGE — mobile colour lock & polish
   Scoped to .fori-products-page (on <main>) and
   .fori-page-intro (unique to inner pages).
   Does NOT affect Home page.
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* C1. Page intro header — force white text on dark blue bg */
  .fori-page-intro h1,
  .fori-page-intro .eyebrow {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: var(--font-base) !important;
  }
  .fori-page-intro p {
    color: rgba(255,255,255,.78) !important;
    -webkit-text-fill-color: rgba(255,255,255,.78) !important;
    font-family: var(--font-base) !important;
  }

  /* C2. Products page — light card buttons white text */
  .fori-products-page .btn--primary,
  .fori-products-page .btn--primary:link,
  .fori-products-page .btn--primary:visited,
  .fori-products-page .btn--primary:hover,
  .fori-products-page .btn--primary:focus,
  .fori-products-page .btn--primary:active,
  .fori-products-page a.btn--primary {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
  .fori-products-page .btn--wa,
  .fori-products-page .btn--wa:link,
  .fori-products-page .btn--wa:visited,
  .fori-products-page .btn--wa:hover,
  .fori-products-page .btn--wa:focus,
  .fori-products-page .btn--wa:active,
  .fori-products-page a.btn--wa {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  /* C3. Products page — card link text stays blue */
  .fori-products-page .fori-card__link,
  .fori-products-page .fori-card__link:hover {
    color: var(--fori-blue-700) !important;
    -webkit-text-fill-color: var(--fori-blue-700) !important;
  }

  /* C4. Products page intro — tighter padding on small screens */
  .fori-page-intro {
    padding-block: clamp(36px, 6vw, 60px);
  }

  /* C5. Main card body padding reduction on mobile */
  .fori-products-page .fori-card__body {
    padding: 20px;
  }

  /* C6. Light card: full-width on mobile with natural spacing */
  .fori-products-page .fori-light-card {
    padding: 24px;
  }

} /* end products mobile */

@media (max-width: 480px) {

  /* Extra-small: 4 main cards already go to 1-col via 640px rule */
  .fori-products-page .fori-card__body {
    padding: 16px;
  }
  .fori-products-page .fori-card h3 {
    font-size: 17px;
  }

} /* end products 480px */

/* ════════════════════════════════════════════════════════════
   MOBILE COLOUR + FONT LOCK — PASS 4
   Addresses two root causes simultaneously:
   1. Font: translation plugins / Astra mobile inject a
      decorative/serif font on mobile. Lock everything back
      to var(--font-base) via !important across all major
      Home sections.
   2. Colour: buttons and hero text need -webkit-text-fill-color
      in addition to color to override Safari/iOS text rendering.
   Scope: .fori-home-page (added by WordPress template body class
   page-template-page-templates-page-home-php, which IS reliable
   even without a manual body_class filter addition, because WP
   auto-generates it from the template file path).
   Belt-and-suspenders: Pass 3 direct-selector rules remain active
   below this block and catch any case where .fori-home-page fails.
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ===== Force mobile home typography back to base sans ===== */
  .fori-home-page .fori-hero,
  .fori-home-page .fori-hero *,
  .fori-home-page .fori-video,
  .fori-home-page .fori-video *,
  .fori-home-page .fori-split,
  .fori-home-page .fori-split *,
  .fori-home-page .fori-cta-strip,
  .fori-home-page .fori-cta-strip * {
    font-family: var(--font-base) !important;
  }

  /* ===== Hero text colour lock ===== */
  .fori-home-page .fori-hero .eyebrow,
  .fori-home-page .fori-hero__eyebrow {
    color: rgba(255,255,255,.72) !important;
    -webkit-text-fill-color: rgba(255,255,255,.72) !important;
  }

  .fori-home-page .fori-hero h1,
  .fori-home-page .fori-hero__title,
  .fori-home-page .fori-hero .h1 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  .fori-home-page .fori-hero p,
  .fori-home-page .fori-hero__lead,
  .fori-home-page .fori-hero__desc,
  .fori-home-page .fori-hero .lead {
    color: rgba(255,255,255,.88) !important;
    -webkit-text-fill-color: rgba(255,255,255,.88) !important;
  }

  /* ===== Hero checklist text lock ===== */
  .fori-home-page .fori-hero .fori-checklist,
  .fori-home-page .fori-hero .fori-checklist li,
  .fori-home-page .fori-hero .fori-checklist li a,
  .fori-home-page .fori-hero .fori-checklist span,
  .fori-home-page .fori-hero .fori-checklist p,
  .fori-home-page .fori-hero .fori-checklist strong {
    color: rgba(255,255,255,.92) !important;
    -webkit-text-fill-color: rgba(255,255,255,.92) !important;
    font-family: var(--font-base) !important;
  }

  .fori-home-page .fori-hero .fori-checklist svg,
  .fori-home-page .fori-hero .fori-checklist i,
  .fori-home-page .fori-hero .fori-checklist::before {
    color: #9EC3FF !important;
    fill: #9EC3FF !important;
    border-color: #9EC3FF !important;
  }

  /* ===== All mobile home primary / WA button text lock ===== */
  .fori-home-page .btn--primary,
  .fori-home-page .btn--primary:link,
  .fori-home-page .btn--primary:visited,
  .fori-home-page .btn--primary:hover,
  .fori-home-page .btn--primary:focus,
  .fori-home-page .btn--primary:focus-visible,
  .fori-home-page .btn--primary:active,
  .fori-home-page a.btn--primary,
  .fori-home-page button.btn--primary,
  .fori-home-page .btn--wa,
  .fori-home-page .btn--wa:link,
  .fori-home-page .btn--wa:visited,
  .fori-home-page .btn--wa:hover,
  .fori-home-page .btn--wa:focus,
  .fori-home-page .btn--wa:focus-visible,
  .fori-home-page .btn--wa:active,
  .fori-home-page a.btn--wa,
  .fori-home-page button.btn--wa {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: var(--font-base) !important;
  }

  /* ===== Outline buttons stay blue with base font ===== */
  .fori-home-page .btn--outline,
  .fori-home-page .btn--outline:link,
  .fori-home-page .btn--outline:visited,
  .fori-home-page .btn--outline:hover,
  .fori-home-page .btn--outline:focus,
  .fori-home-page .btn--outline:focus-visible,
  .fori-home-page .btn--outline:active,
  .fori-home-page a.btn--outline,
  .fori-home-page button.btn--outline {
    color: var(--fori-blue-800) !important;
    -webkit-text-fill-color: var(--fori-blue-800) !important;
    font-family: var(--font-base) !important;
  }

  /* ===== CTA strip text + button font lock ===== */
  .fori-home-page .fori-cta-strip h2,
  .fori-home-page .fori-cta-strip h3,
  .fori-home-page .fori-cta-strip p,
  .fori-home-page .fori-cta-strip .btn,
  .fori-home-page .fori-cta-strip .btn span {
    font-family: var(--font-base) !important;
  }

  /* ===== Video section font lock ===== */
  .fori-home-page .fori-video h2,
  .fori-home-page .fori-video p,
  .fori-home-page .fori-video .btn,
  .fori-home-page .fori-video .btn span,
  .fori-home-page .fori-video .fori-video-tabs button {
    font-family: var(--font-base) !important;
  }

  /* ===== Split sections font lock ===== */
  .fori-home-page .fori-split h2,
  .fori-home-page .fori-split p,
  .fori-home-page .fori-split li,
  .fori-home-page .fori-split .btn,
  .fori-home-page .fori-split .btn span {
    font-family: var(--font-base) !important;
  }

} /* end mobile colour + font lock pass 4 */

/* ════════════════════════════════════════════════════════════
   MOBILE FINAL — CTA strip outline button + floating blue block
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Problem 1: CTA strip outline button → white text + white border ── */
  /* Scoped to .fori-cta-strip only — does NOT affect outline buttons
     on white/light backgrounds elsewhere on the page.               */
  .fori-home-page .fori-cta-strip .btn--outline,
  .fori-home-page .fori-cta-strip .btn--outline:link,
  .fori-home-page .fori-cta-strip .btn--outline:visited,
  .fori-home-page .fori-cta-strip .btn--outline:hover,
  .fori-home-page .fori-cta-strip .btn--outline:focus,
  .fori-home-page .fori-cta-strip .btn--outline:focus-visible,
  .fori-home-page .fori-cta-strip .btn--outline:active,
  .fori-home-page .fori-cta-strip a.btn--outline,
  .fori-home-page .fori-cta-strip button.btn--outline {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: rgba(255,255,255,.72) !important;
    font-family: var(--font-base) !important;
  }

  /* Same fix on ALL cta-strip pages (not just home), since the strip
     always sits on a dark-blue gradient background.                  */
  .fori-cta-strip .btn--outline,
  .fori-cta-strip .btn--outline:link,
  .fori-cta-strip .btn--outline:visited,
  .fori-cta-strip .btn--outline:hover,
  .fori-cta-strip .btn--outline:focus,
  .fori-cta-strip .btn--outline:focus-visible,
  .fori-cta-strip .btn--outline:active,
  .fori-cta-strip a.btn--outline {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: rgba(255,255,255,.72) !important;
  }

  /* ── Problem 2: Blue floating block bottom-right ─────────────────── */
  /*
    Source: Astra theme's back-to-top button and common plugin scroll
    widgets. These are injected by the theme/plugin into the DOM outside
    our templates — we cannot remove the HTML, but we can hide them on
    mobile so they don't overlap the WhatsApp float button.
    Desktop (> 768px) is unaffected by these rules.
    Our own .fori-wa-float is deliberately excluded from this list.
  */

  /* Astra back-to-top (the most likely culprit given Astra parent theme) */
  #ast-scroll-top,
  .ast-scroll-top {
    display: none !important;
    visibility: hidden !important;
  }

  /* Common plugin / theme back-to-top selectors — broad coverage */
  #scroll-up,
  .scrollup,
  #scrollup,
  .back-to-top,
  #back-to-top,
  .go-top,
  #go-top,
  .scroll-top,
  #scroll-top,
  .scrollToTop,
  #scrollToTop,
  .generate-back-to-top,
  [class*="back-to-top"]:not(.fori-wa-float):not(.fori-wa-float__btn),
  [id*="back-to-top"]:not(.fori-wa-float):not(.fori-wa-float__btn) {
    display: none !important;
    visibility: hidden !important;
  }

} /* end mobile final */

/* ════════════════════════════════════════════════════════════
   HIDE ASTRA BACK-TO-TOP — all viewports
   Astra's back-to-top button appears behind the WhatsApp float
   button (both fixed bottom-right), causing a blue corner to
   bleed through. Since the WA float already anchors the
   bottom-right corner, the back-to-top is redundant.
   Hiding it at all breakpoints removes the overlap entirely.
   ════════════════════════════════════════════════════════════ */
#ast-scroll-top,
.ast-scroll-top,
[data-id="ast-scroll-top"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ════════════════════════════════════════════════════════════
   CTA STRIP — outline button always white (all viewports)
   .fori-cta-strip always sits on a dark-blue gradient.
   btn--outline must read white at every breakpoint.
   No media query, no body-class dependency.
   ════════════════════════════════════════════════════════════ */
.fori-cta-strip .btn--outline,
.fori-cta-strip .btn--outline:link,
.fori-cta-strip .btn--outline:visited,
.fori-cta-strip .btn--outline:hover,
.fori-cta-strip .btn--outline:focus,
.fori-cta-strip .btn--outline:focus-visible,
.fori-cta-strip .btn--outline:active,
.fori-cta-strip a.btn--outline,
.fori-cta-strip button.btn--outline {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: rgba(255,255,255,.72) !important;
  font-family: var(--font-base) !important;
}

/* ════════════════════════════════════════════════════════════
   CTA STRIP — btn--outline-white always white (all viewports)
   The CTA strip template (cta-strip.php) uses btn--outline-white
   for its primary action button ("Send an Inquiry" etc).
   This was previously unaddressed — all earlier passes targeted
   btn--outline which is a different class. This rule is global
   (no media query) so it fires on mobile and desktop alike,
   with specificity high enough to override Astra mobile resets.
   ════════════════════════════════════════════════════════════ */
.fori-cta-strip .btn--outline-white,
.fori-cta-strip .btn--outline-white:link,
.fori-cta-strip .btn--outline-white:visited,
.fori-cta-strip .btn--outline-white:hover,
.fori-cta-strip .btn--outline-white:focus,
.fori-cta-strip .btn--outline-white:focus-visible,
.fori-cta-strip .btn--outline-white:active,
.fori-cta-strip a.btn--outline-white,
.fori-cta-strip button.btn--outline-white {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: rgba(255,255,255,.65) !important;
  font-family: var(--font-base) !important;
}

/* ════════════════════════════════════════════════════════════
   PRODUCTS PAGE — Support section tighter spacing (点3)
   The fori-section--mid support area uses the global 96px
   section padding which feels too spacious for 4 compact cards.
   Reduce to 72px desktop / 56px tablet and tighten the
   section-heading margin-bottom for this block only.
   Scoped to .fori-products-page so Home is unaffected.
   ════════════════════════════════════════════════════════════ */
.fori-products-page .fori-section--mid {
  padding-block: 72px;
}
.fori-products-page .fori-section--mid .fori-section-heading {
  margin-bottom: 36px; /* was global 52px */
}
.fori-products-page .fori-entry-card {
  padding: 32px 26px; /* slightly more generous than base 28px 22px */
}
@media (max-width: 1024px) {
  .fori-products-page .fori-section--mid { padding-block: 56px; }
}
@media (max-width: 640px) {
  .fori-products-page .fori-section--mid { padding-block: 40px; }
}

/* ════════════════════════════════════════════════════════════
   TRANSLATION WIDGET POSITION (点4)
   TranslatePress / Weglot / similar plugin floating buttons
   that appear on the right side. Ensure they stay right-anchored
   and don't float left on Products page.
   Browser extensions cannot be controlled by CSS — this only
   affects plugin-injected floating widgets.
   ════════════════════════════════════════════════════════════ */
.trp-floatbutton-container,
.trp-floatbutton,
.wg-default,
.weglot-container,
[class*="trp-float"],
[class*="gtranslate"],
[id*="gtranslate"] {
  right: 20px !important;
  left: auto !important;
  bottom: 90px !important; /* above WA float button */
}

/* ════════════════════════════════════════════════════════════
   PRODUCTS PAGE — CTA strip pattern: reduced + corner-only
   The global .fori-cta-strip::before tiles pattern-floral.svg
   at full repeat across the entire strip, which feels busy.
   On the Products page we override to: larger tile (less dense),
   single instance in the right-bottom corner, halved opacity.
   Home page CTA strips are unaffected (no .fori-products-page scope).
   ════════════════════════════════════════════════════════════ */
.fori-products-page .fori-cta-strip::before {
  display: none; /* Products page: pure gradient — no pattern lines in CTA strips */
}
/* ════════════════════════════════════════════════════════════
   DENTAL CHAIRS PAGE — .fori-chairs-* namespace
   ════════════════════════════════════════════════════════════ */

/* ── Hero (shared with Packages + Equipment pages) ─────── */
.fori-chairs-hero {
  position: relative;
  background: var(--fori-blue-900);
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 112px);
}
.fori-chairs-hero__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1; /* full photo — wash layer controls blend */
}
/* Default wash — used by Packages (warm-tone image, lighter overlay) */
.fori-chairs-hero__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(11,42,111,.72) 0%,
    rgba(11,42,111,.48) 55%,
    rgba(11,42,111,.28) 100%);
  z-index: 1;
  pointer-events: none;
}
/* Dental Chairs: slightly stronger on left (text legible), lighter on right (chair visible) */
.fori-chairs-page .fori-chairs-hero__wash {
  /* Strongly directional: dark on left (text), transparent on right (chair visible) */
  background: linear-gradient(to right,
    rgba(11,42,111,.58) 0%,
    rgba(11,42,111,.42) 40%,
    rgba(11,42,111,.16) 68%,
    rgba(11,42,111,.02) 100%); /* 0.56 average — chair visible right, text left */
}
/* Packages: warm-tone image, keep overlay light so colours show */
.fori-packages-page .fori-chairs-hero__wash {
  /* Light wash — warm-tone colours must come through */
  background: linear-gradient(to right,
    rgba(11,42,111,.50) 0%,
    rgba(11,42,111,.34) 42%,
    rgba(11,42,111,.12) 72%,
    rgba(11,42,111,.02) 100%); /* 0.46-0.50 — scene image clearly visible */
}
.fori-products-hero .fori-chairs-hero__wash,
.fori-equipment-hero .fori-chairs-hero__wash {
  /* Products + Equipment: moderate overlay, image provides scene context */
  background: linear-gradient(to right,
    rgba(11,42,111,.72) 0%,
    rgba(11,42,111,.50) 40%,
    rgba(11,42,111,.24) 70%,
    rgba(11,42,111,.06) 100%);
}
/* Turnkey Hero: moderate overlay so clinic scene is clearly visible */
.fori-turnkey-hero .fori-chairs-hero__wash {
  background: linear-gradient(to right,
    rgba(11,42,111,.44) 0%,
    rgba(11,42,111,.30) 45%,
    rgba(11,42,111,.14) 75%,
    rgba(11,42,111,.04) 100%);
}

.fori-chairs-hero .fori-container { position: relative; z-index: 2; }
.fori-chairs-hero__content        { max-width: 680px; }
.fori-chairs-hero .eyebrow        { color: rgba(255,255,255,.65); }
.fori-chairs-hero h1              { color: var(--fori-white); }
.fori-chairs-hero__sub {
  font-size: clamp(15px, 1.7vw, 18px);
  color: rgba(255,255,255,.82);
  margin-top: 18px;
  max-width: 560px;
  line-height: 1.65;
}
.fori-chairs-hero__actions { margin-top: 32px; }

/* ── Buyer-selection series cards (3-col) ───────────────── */
.fori-chairs-series {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 1024px) { .fori-chairs-series { grid-template-columns: repeat(2,1fr); gap: var(--gap-md); } }
@media (max-width:  640px) { .fori-chairs-series { grid-template-columns: 1fr; gap: var(--gap-sm); } }

.fori-chairs-series__card {
  background: var(--fori-white);
  border-radius: var(--r-card);
  border: 1px solid var(--fori-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  /* Equal card heights across the row */
  height: 100%;
}
/* The series grid must be align-items: stretch */
.fori-chairs-series { align-items: stretch; }
.fori-chairs-series__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.fori-chairs-series__img-wrap { position: relative; overflow: hidden; flex-shrink: 0; }
.fori-chairs-series__img-wrap img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
}
.fori-chairs-series__img-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--fori-bg) 0%, var(--fori-line) 100%);
}
.fori-chairs-series__tag {
  position: absolute; top: 14px; right: 14px;
  background: var(--fori-blue-900); color: var(--fori-white);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}
.fori-chairs-series__body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.fori-chairs-series__body h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--fori-ink);
  margin: 0;
  line-height: 1.25;
  min-height: 1.4em; /* single-line titles align consistently */
}
.fori-chairs-series__fit {
  font-size: 12px; font-weight: 600; color: var(--fori-blue-700);
  letter-spacing: .03em; margin: 0; line-height: 1.5;
}
.fori-chairs-series__body > p:not(.fori-chairs-series__fit) {
  font-size: 14.5px; color: var(--fori-text); line-height: 1.65; margin: 0; flex: 1;
}
.fori-chairs-series__cta {
  margin-top: auto;         /* pushes button to card bottom */
  padding-top: 14px;        /* visual separation from checklist */
  align-self: stretch;      /* full-width CTA for consistent card bottom */
  justify-content: center;
  font-size: 14px;
  padding-block: 12px;
}

/* ── Product catalogue category groups ──────────────────── */
.fori-chairs-cat {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--fori-line);
}
.fori-chairs-cat:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.fori-chairs-cat__heading { margin-bottom: 24px; }
.fori-chairs-cat__heading h3 { font-size: clamp(16px, 1.8vw, 20px); margin: 0; }
.fori-chairs-cat__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: stretch; }
@media (max-width: 1024px) { .fori-chairs-cat__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:  640px) { .fori-chairs-cat__grid { grid-template-columns: 1fr; } }

/* Three-col categories (Hydraulic has 1 product, Ped+Spec has 3) */
.fori-chairs-cat--wide .fori-chairs-cat__grid { grid-template-columns: repeat(3,1fr); }
@media (max-width: 1024px) { .fori-chairs-cat--wide .fori-chairs-cat__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:  640px)  { .fori-chairs-cat--wide .fori-chairs-cat__grid { grid-template-columns: 1fr; } }

/* Individual product card */
.fori-chairs-prod-card {
  background: var(--fori-white);
  border-radius: var(--r-card);
  border: 1px solid var(--fori-line);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.fori-chairs-prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.fori-chairs-prod-card__img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.fori-chairs-prod-card__placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--fori-bg) 0%, var(--fori-line) 100%);
}
.fori-chairs-prod-card__body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.fori-chairs-prod-card__body h4 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--fori-ink);
  margin: 0;
  min-height: 1.6em;
  line-height: 1.35;
}
.fori-chairs-prod-card__body p  { font-size: 14px; color: var(--fori-text); line-height: 1.6; margin: 0; flex: 1; }

/* ── Scenario cards ─────────────────────────────────────── */
.fori-chairs-scenario {
  background: var(--fori-white);
  border-radius: var(--r-card);
  border: 1px solid var(--fori-line);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.fori-chairs-scenario__rec {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fori-blue-700);
  background: rgba(79,130,217,.10); padding: 3px 9px; border-radius: 4px;
  align-self: flex-start;
}
.fori-chairs-scenario h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--fori-ink);
  margin: 0;
  min-height: 2.4em;
  line-height: 1.3;
}
.fori-chairs-scenario p  { font-size: 14px; color: var(--fori-text); line-height: 1.65; margin: 0; }

/* ── Narrow FAQ ─────────────────────────────────────────── */
.fori-faq--narrow { max-width: 760px; margin-inline: auto; }

/* ════════════════════════════════════════════════════════════
   DENTAL CHAIR PACKAGES — .fori-pkg-* namespace
   ════════════════════════════════════════════════════════════ */

.fori-pkg-directions { display: flex; flex-direction: column; gap: 64px; }

.fori-pkg-direction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.fori-pkg-direction--reverse { direction: rtl; }
.fori-pkg-direction--reverse > * { direction: ltr; }
@media (max-width: 768px) {
  .fori-pkg-direction,
  .fori-pkg-direction--reverse { grid-template-columns: 1fr; direction: ltr; }
  .fori-pkg-directions { gap: 44px; }
}

.fori-pkg-direction__img {
  position: relative;
  border-radius: var(--r-card); overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--fori-bg) 0%, var(--fori-line) 100%);
}
.fori-pkg-direction__img img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f5f7fb;
  padding: 12px;
}
.fori-pkg-direction__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--fori-blue-900); color: var(--fori-white);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}
.fori-pkg-direction__badge--adv { background: var(--fori-blue-700); }
.fori-pkg-direction__body h2 { margin-top: 8px; }

/* Five package option cards */
.fori-pkg-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: stretch;
}
@media (max-width: 1024px) { .fori-pkg-options { grid-template-columns: repeat(2,1fr); gap: var(--gap-md); } }
@media (max-width:  640px) { .fori-pkg-options { grid-template-columns: 1fr; gap: var(--gap-sm); } }

.fori-pkg-option-card {
  background: var(--fori-white);
  border-radius: var(--r-card); border: 1px solid var(--fori-line);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  height: 100%;  /* equal heights within grid row */
}
.fori-pkg-option-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.fori-pkg-option-card__img { position: relative; overflow: hidden; flex-shrink: 0; }
.fori-pkg-option-card__img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;      /* white-bg package shots must not be cropped */
  object-position: center;
  display: block;
  background: #f0f3f8;      /* slightly cooler fill — product pops more */
  padding: 16px 12px;       /* more vertical breathing room */
}
.fori-pkg-option-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.fori-pkg-option-card__body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--fori-ink);
  margin: 0;
  min-height: 1.5em;
  line-height: 1.3;
}
.fori-pkg-option-card__body p  { font-size: 14px; color: var(--fori-text); line-height: 1.6; margin: 0; flex: 1; }
.fori-pkg-option-card__badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px; color: var(--fori-white);
}
.fori-pkg-option-card__badge--starter { background: var(--fori-blue-900); }
.fori-pkg-option-card__badge--adv     { background: var(--fori-blue-700); }

/* ════════════════════════════════════════════════════════════
   DENTAL CLINIC EQUIPMENT — .fori-equip-* namespace
   ════════════════════════════════════════════════════════════ */

/* Sub-category entry cards — 4-col grid */
.fori-equip-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
@media (max-width: 1024px) { .fori-equip-cats-grid { grid-template-columns: repeat(2,1fr); gap: var(--gap-md); } }
@media (max-width:  480px) { .fori-equip-cats-grid { grid-template-columns: 1fr; gap: var(--gap-sm); } }

.fori-equip-cat-card {
  display: flex; flex-direction: column;
  background: var(--fori-white);
  border-radius: var(--r-card); border: 1px solid var(--fori-line);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.fori-equip-cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.fori-equip-cat-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.fori-equip-cat-card__placeholder { width: 100%; aspect-ratio: 3/2; background: linear-gradient(135deg, var(--fori-bg) 0%, var(--fori-line) 100%); }
.fori-equip-cat-card__body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fori-equip-cat-card__body h3 { font-size: 15px; font-weight: 600; color: var(--fori-ink); margin: 0; }
.fori-equip-cat-card__body p  { font-size: 13px; color: var(--fori-text); line-height: 1.55; margin: 0; flex: 1; }
.fori-equip-cat-card__arrow   { font-size: 12px; font-weight: 600; color: var(--fori-blue-700); margin-top: 6px; }

/* Equipment section headings */
.fori-equip-section-heading {
  margin-bottom: 28px;
  max-width: 680px;
}
.fori-equip-section-heading h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 12px; }
.fori-equip-section-heading p  { font-size: 15px; color: var(--fori-text); line-height: 1.68; }

/* Equipment product cards — 4-col (2 for small sections) */
.fori-equip-prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  align-items: stretch;
}
/* Sections with 2 cards use 2-col */
.fori-equip-prod-grid:has(> :nth-child(2)):not(:has(> :nth-child(3))) {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 1100px) { .fori-equip-prod-grid { grid-template-columns: repeat(2, 1fr); gap: var(--gap-md); } }
@media (max-width:  640px) { .fori-equip-prod-grid { grid-template-columns: 1fr; gap: var(--gap-sm); } }

.fori-equip-prod-card {
  background: var(--fori-white);
  border-radius: var(--r-card); border: 1px solid var(--fori-line);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  height: 100%;
}
.fori-equip-prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.fori-equip-prod-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  display: block;
}
.fori-equip-prod-card__placeholder { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--fori-bg) 0%, var(--fori-line) 100%); }
.fori-equip-prod-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fori-equip-prod-card__body h3 { font-size: 15px; font-weight: 600; color: var(--fori-ink); margin: 0; }
.fori-equip-prod-card__body p  { font-size: 13.5px; color: var(--fori-text); line-height: 1.6; margin: 0; flex: 1; }

/* ────────────────────────────────────────────────────────
   SHARED MOBILE RULES (all three new pages)
   ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hero */
  .fori-chairs-hero { padding-block: 52px 44px; }
  .fori-chairs-hero h1 {
    font-size: clamp(26px, 7.5vw, 38px);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: var(--font-base) !important;
  }
  .fori-chairs-hero__sub {
    font-size: 15px;
    color: rgba(255,255,255,.88) !important;
    -webkit-text-fill-color: rgba(255,255,255,.88) !important;
  }
  .fori-chairs-hero__actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .fori-chairs-hero .btn {
    width: 100%; justify-content: center;
    font-family: var(--font-base) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
  /* Series */
  .fori-chairs-series__body { padding: 22px 20px 24px; }
  /* Scenario */
  .fori-chairs-scenario { padding: 24px 20px; }
  .fori-chairs-scenario h3 { min-height: auto; }
  /* Catalogue */
  .fori-chairs-cat { margin-bottom: 36px; padding-bottom: 36px; }
}
@media (max-width: 480px) {
  .fori-chairs-series__body h3  { font-size: 17px; }
  .fori-pkg-option-card__body h3 { font-size: 15px; }
  .fori-equip-section-heading h2 { font-size: 20px; }
}

/* Final PC polish: alignment, card heights, and brand/media presentation */
.fori-home-solutions__main,
.fori-home-solutions__light,
.fori-proof-grid,
.fori-video-cards,
.fori-contact-grid,
.fori-promise-grid,
.fori-products-main,
.fori-products-light,
.fori-equip-cats-grid,
.fori-equip-prod-grid,
.fori-footer__grid {
  align-items: stretch;
}

.fori-home-light-card,
.fori-contact-card,
.fori-light-card,
.fori-video-card,
.fori-pkg-option-card,
.fori-equip-cat-card,
.fori-equip-prod-card,
.fori-pillar,
.fori-chairs-scenario {
  height: 100%;
}

.fori-home-solutions__main .fori-entry-card h3 {
  min-height: 2.8em;
}

.fori-home-light-card h3 {
  min-height: 2.6em;
}

.fori-home-light-card__link {
  margin-top: auto;
}

.fori-pillar h3 {
  min-height: 2.8em;
}

.fori-pillar p,
.fori-chairs-scenario p {
  flex: 1;
}

.fori-video-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 32px);
}

.fori-video-card__poster {
  min-height: 280px;
}

.fori-video-card__meta h3 {
  min-height: 2.6em;
}

.fori-video-card__meta p {
  min-height: 3.4em;
}

.fori-video-card__cta {
  margin-top: auto;
}

.fori-light-card__body p {
  flex: 1;
}

.fori-light-card .btn-group,
.fori-light-card .btn--outline {
  margin-top: auto;
}

.fori-contact-card h3 {
  min-height: 2.6em;
}

.fori-contact-card p {
  flex: 1;
}

.fori-contact-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.fori-chairs-prod-card__body h4 {
  min-height: 2.8em;
}

.fori-chairs-prod-card__body p {
  min-height: 6.4em;
}

.fori-pkg-direction__img img {
  object-fit: cover;
  object-position: center;
  background: transparent;
  padding: 0;
}

.fori-pkg-option-card__body h3 {
  min-height: 2.8em;
}

.fori-pkg-option-card__body p {
  min-height: 6.2em;
}

.fori-equip-cat-card__body h3,
.fori-equip-prod-card__body h3 {
  min-height: 2.8em;
}

.fori-equip-cat-card__body p,
.fori-equip-prod-card__body p {
  min-height: 5.8em;
}

.fori-brand-mark-panel {
  display: flex;
  align-items: stretch;
}

.fori-brand-mark-panel__inner {
  width: 100%;
  min-height: 100%;
  border-radius: var(--r-card);
  border: 1px solid rgba(31,86,190,.14);
  background:
    linear-gradient(135deg, rgba(255,255,255,.96) 0%, rgba(234,241,252,.98) 100%);
  box-shadow: 0 20px 48px rgba(11,42,111,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 46px);
  position: relative;
  overflow: hidden;
}

.fori-brand-mark-panel__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(79,130,217,.18) 0, rgba(79,130,217,0) 34%),
    linear-gradient(135deg, rgba(31,86,190,.06) 0%, rgba(31,86,190,0) 60%);
  pointer-events: none;
}

.fori-brand-mark-panel__logo,
.fori-brand-mark-panel__mark {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  height: auto;
}

.fori-brand-mark-panel__mark {
  max-width: 280px;
}

.fori-footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.fori-footer__col--brand {
  padding-right: 12px;
}

.fori-footer__wordmark,
.fori-footer__col-title {
  min-height: 30px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 0;
}

.fori-footer__tagline,
.fori-footer__cta-note {
  flex: 1;
  margin-bottom: 0;
}

.fori-footer__cta-btn {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 1024px) {
  .fori-video-card__poster {
    min-height: 240px;
  }

  .fori-chairs-prod-card__body p,
  .fori-pkg-option-card__body p,
  .fori-equip-cat-card__body p,
  .fori-equip-prod-card__body p {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .fori-home-solutions__main .fori-entry-card h3,
  .fori-home-light-card h3,
  .fori-pillar h3,
  .fori-contact-card h3,
  .fori-video-card__meta h3,
  .fori-chairs-prod-card__body h4,
  .fori-pkg-option-card__body h3,
  .fori-equip-cat-card__body h3,
  .fori-equip-prod-card__body h3,
  .fori-footer__wordmark,
  .fori-footer__col-title {
    min-height: 0;
  }

  .fori-video-card__meta p {
    min-height: 0;
  }
}
