/* ==========================================================================
   Sun Lite — Global Stylesheet
   Palette follows the 2026 catalogue: catalogue navy, logo brown and sand.
   Layout uses logical properties (inline-start / inline-end) so the same
   rules work for English (LTR) and Arabic / Kurdish (RTL).
  ========================================================================== */

/* Deployed: timestamp: 2026-09-26T00:00:00Z - redeploy marker */

:root {
  --sl-navy: #1f4f8f;
  --sl-navy-dark: #0f2847;
  --sl-navy-deep: #0a1c33;
  --sl-navy-light: #2f68b3;
  --sl-navy-tint: #eef3f9;
  --sl-brown: #2b1f17;
  --sl-sand: #e6cf9f;
  --sl-bronze: #8a6428;
  --sl-bg: #ffffff;
  --sl-bg-alt: #f5f6f8;
  --sl-line: #e3e6ea;
  --sl-text: #1b2230;
  --sl-muted: #5a6475;
  --sl-on-dark: #eef2f8;

  --sl-font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sl-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --sl-container: 1240px;
  --sl-radius: 6px;
  --sl-radius-lg: 12px;
  --sl-shadow: 0 6px 24px rgba(15, 40, 71, 0.08);
  --sl-shadow-lg: 0 18px 48px rgba(15, 40, 71, 0.16);
  --sl-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --sl-header-h: 88px;
  --sl-topbar-h: 42px;
}

html[lang="ar"],
html[lang="ckb"] {
  --sl-font-head: "Noto Kufi Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  --sl-font-body: "Noto Sans Arabic", "Noto Kufi Arabic", Tahoma, sans-serif;
}

/* Hide the page for a moment while a saved Arabic / Kurdish choice is applied */
html.i18n-pending body { visibility: hidden; }

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sl-font-body);
  color: var(--sl-text);
  background: var(--sl-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body { line-height: 1.85; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--sl-font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--sl-navy-dark);
}

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { line-height: 1.45; }

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
html[dir="rtl"] h1, html[dir="rtl"] h2 { letter-spacing: 0; }

p { color: var(--sl-muted); }

.container {
  max-width: var(--sl-container);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

section { padding-block: 6rem; }

.section-alt { background: var(--sl-bg-alt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sl-font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sl-navy);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 0.9rem; }

.section-head { max-width: 680px; margin-bottom: 3.2rem; }
.section-head h2 { margin-bottom: 0.9rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.section-head-row .section-head { margin-bottom: 0; }

.lede { font-size: 1.1rem; }

/* ==========================================================================
   Buttons & links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.7rem;
  border-radius: var(--sl-radius);
  font-family: var(--sl-font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--sl-ease), color 0.2s var(--sl-ease),
    border-color 0.2s var(--sl-ease), transform 0.2s var(--sl-ease);
}

.btn:focus-visible { outline: 3px solid var(--sl-sand); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--sl-navy); color: #fff; }
.btn-primary:hover { background: var(--sl-navy-dark); }

.btn-light { background: #fff; color: var(--sl-navy-dark); }
.btn-light:hover { background: var(--sl-sand); }

.btn-outline { background: transparent; color: var(--sl-navy-dark); border-color: var(--sl-navy); }
.btn-outline:hover { background: var(--sl-navy); color: #fff; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sl-font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--sl-navy);
}
.link-arrow svg { transition: transform 0.2s var(--sl-ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Arrows point the reading direction */
html[dir="rtl"] .icon-dir { transform: scaleX(-1); }
html[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }

/* ==========================================================================
   Top bar & header
   ========================================================================== */

.topbar {
  background: var(--sl-navy-deep);
  color: var(--sl-on-dark);
  font-size: 0.84rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
}

.topbar-contacts { display: flex; gap: 1.6rem; flex-wrap: wrap; }

.topbar-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  opacity: 0.85;
  direction: ltr;
  unicode-bidi: isolate;
}
.topbar-contacts a:hover { opacity: 1; color: var(--sl-sand); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid rgba(238, 242, 248, 0.18);
  border-radius: 999px;
}

.lang-switch button {
  min-height: 30px;
  padding: 0.15rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(238, 242, 248, 0.8);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.4;
}
.lang-switch button[lang="ar"],
.lang-switch button[lang="ckb"] { font-family: "Noto Sans Arabic", Tahoma, sans-serif; }
.lang-switch button:hover { color: #fff; }
.lang-switch button[aria-pressed="true"] { background: var(--sl-sand); color: var(--sl-brown); font-weight: 600; }
.lang-switch button:focus-visible { outline: 2px solid var(--sl-sand); outline-offset: 2px; }

.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
}

.new-header {
  position: relative;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--sl-line);
}

.site-header { display: none !important; }

.new-header .container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--sl-header-h);
}

.new-logo,
.logo { display: inline-flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.new-logo img { height: 62px; width: auto; }
.new-logo-text,
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.new-logo-text b,
.logo-text b { font-family: var(--sl-font-head); font-size: 1.05rem; color: var(--sl-brown); letter-spacing: 0.04em; }
.new-logo-text span,
.logo-text span { font-size: 0.72rem; color: var(--sl-muted); letter-spacing: 0.06em; text-transform: uppercase; }
html[dir="rtl"] .new-logo-text span,
html[dir="rtl"] .logo-text span { letter-spacing: 0; text-transform: none; }

.new-nav,
.main-nav { min-width: 0; }
.new-nav > ul,
.main-nav > ul { display: flex; align-items: center; justify-content: center; gap: 1.35rem; }

.new-nav a,
.new-nav-drop-btn,
.main-nav a,
.nav-drop-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-family: var(--sl-font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--sl-text);
  background: none;
  border: 0;
  cursor: pointer;
}

.new-nav > ul > li > a::after,
.main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: var(--sl-navy);
  transition: width 0.2s var(--sl-ease);
}

 .new-nav > ul > li > a:hover::after,
 .new-nav > ul > li > a.active::after,
 .main-nav > ul > li > a:hover::after,
 .main-nav > ul > li > a.active::after { width: 100%; }

.new-nav a:hover, .new-nav a.active,
.main-nav a:hover, .main-nav a.active { color: var(--sl-navy); }

.new-nav a:focus-visible,
.main-nav a:focus-visible { outline: 2px solid var(--sl-navy); outline-offset: 2px; border-radius: 2px; }



.header-cta { display: flex; align-items: center; gap: 1rem; }

/* Desktop layout: inline nav and CTA in one bar */
@media (min-width: 861px) {
  .new-nav,
  .main-nav { display: block; }
  .new-drawer,
  .new-drawer-backdrop,
  .new-nav-toggle,
  .nav-toggle { display: none !important; }
  .new-logo-text,
  .logo-text { display: flex; }
  .new-header .container { padding-inline: 1.5rem; }
  .new-header .header-cta .btn { padding-inline: 1rem; white-space: nowrap; }
  .new-header .header-cta { justify-self: end; }
  .new-nav > ul,
  .main-nav > ul { justify-content: center; }
}


.new-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.new-nav-toggle span { height: 2px; background: var(--sl-navy-dark); transition: transform 0.25s var(--sl-ease), opacity 0.25s; }
.new-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.new-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.new-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.new-header .new-logo img { height: 44px; width: auto; display: block; }
.new-header .header-cta { display: flex; align-items: center; gap: 0.75rem; }
.new-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(360px, 92%);
  max-width: 100%;
  background: #fff;
  box-shadow: -12px 0 36px rgba(10,28,51,0.16);
  transform: translateX(110%);
  transition: transform 0.32s var(--sl-ease), visibility 0.32s;
  z-index: 21999;
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.new-drawer[aria-hidden="true"] { visibility: hidden; }
.new-drawer-inner { padding: calc(var(--sl-topbar-h) + env(safe-area-inset-top, 18px)) 20px 28px 20px; overflow-y: auto; }
.new-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 1.15rem; padding: 0; margin: 0; }
.new-drawer li a { display: block; padding: 14px 10px; color: var(--sl-navy-dark); font-weight: 700; font-family: var(--sl-font-head); border-radius: 10px; font-size: 1.1rem; }
.new-drawer li a:hover { background: var(--sl-bg-alt); }
.new-drawer li + li { margin-top: 4px; }
.new-drawer .btn-primary { display: block; width: calc(100% - 20px); margin: 12px 10px 0 10px; }
.new-drawer-close { position: absolute; top: calc(env(safe-area-inset-top, 8px) + 12px); left: env(safe-area-inset-left, 12px); font-size: 28px; background: transparent; border: 0; cursor: pointer; line-height: 1; padding: 6px; }
.new-drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.32); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s; z-index: 21990; }
.new-drawer.open { transform: translateX(0); visibility: visible; }
.new-drawer.open + .new-drawer-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }

/* RTL support: slide from left and position close button on right */
html[dir="rtl"] .new-drawer { right: auto; left: 0; box-shadow: 12px 0 36px rgba(10,28,51,0.16); transform: translateX(-110%); }
html[dir="rtl"] .new-drawer.open { transform: translateX(0); }
html[dir="rtl"] .new-drawer-close { left: auto; right: env(safe-area-inset-right, 12px); }

/* Mobile layout: use the drawer toggle and hide the inline nav */
@media (max-width: 860px) {
  .new-header { position: sticky; top: 0; z-index: 22000; }
  .new-header .container {
    grid-template-columns: auto 1fr auto;
    padding-inline: 0.75rem;
    gap: 0.75rem;
  }
  .new-logo-text,
  .new-nav {
    display: none;
  }
  .new-nav-toggle { display: inline-flex; z-index: 22000; }
  .new-header .header-cta .btn { display: none; }
}

/* Ensure translations apply inside drawer (allow HTML replacement) */
.new-drawer [data-i18n] { display: inline; }

/* Mobile readability gutter: keep comfortable side spacing for long text */
@media (max-width: 768px) {
  section > .container,
  .page-hero > .container,
  .crumb-bar > .container,
  .cta-band > .container,
  .site-footer > .container,
  .contact-form,
  .contact-card,
  .quality-band,
  .catalog-box,
  .news-feature-body,
  .prose,
  .hero-inner {
    padding-inline: clamp(16px, 4.5vw, 24px) !important;
  }

  /* Slightly increase paragraph line-height on phones for easier scanning */
  p,
  .prose p,
  .lede {
    line-height: 1.78;
  }

  /* Final mobile WhatsApp fix: compact side bubble instead of long center bar */
  .wa-float {
    width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    flex: 0 0 58px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    right: 14px !important;
    left: auto !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    position: fixed !important;
    inset-inline-start: auto !important;
    inset-inline-end: 14px !important;
    justify-content: center !important;
    gap: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    box-shadow: 0 10px 28px rgba(10, 28, 51, 0.22) !important;
    z-index: 18000 !important;
  }
  .wa-float .wa-label { display: none !important; }
  .wa-icon { width: 40px !important; height: 40px !important; }
  .wa-icon svg { width: 26px !important; height: 26px !important; }
}

/* ==========================================================================
   Home hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: center;
  padding-block: 7rem 6rem;
  color: #fff;
  background: var(--sl-navy-deep) url("images/hero-city.jpg") center 35% / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 28, 51, 0.92) 0%, rgba(10, 28, 51, 0.75) 45%, rgba(10, 28, 51, 0.25) 100%);
}
html[dir="rtl"] .hero::before {
  background: linear-gradient(270deg, rgba(10, 28, 51, 0.92) 0%, rgba(10, 28, 51, 0.75) 45%, rgba(10, 28, 51, 0.25) 100%);
}

.hero .container { position: relative; z-index: 1; width: 100%; }
.hero-inner { max-width: 700px; }
.hero .eyebrow { color: var(--sl-sand); }
.hero h1 { color: #fff; margin-bottom: 1.4rem; }
.hero h1 .accent { color: var(--sl-sand); }
.hero .lede { color: rgba(238, 242, 248, 0.86); max-width: 580px; margin-bottom: 2.4rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Stats strip overlapping the hero */
.stats-strip { position: relative; z-index: 2; margin-top: -3.5rem; padding: 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--sl-radius-lg);
  box-shadow: var(--sl-shadow-lg);
  overflow: hidden;
}

.stat {
  padding: 2rem 1.8rem;
  border-inline-start: 1px solid var(--sl-line);
}
.stat:first-child { border-inline-start: 0; }
.stat b {
  display: block;
  font-family: var(--sl-font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--sl-navy);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.stat span { font-size: 0.9rem; color: var(--sl-muted); }

/* ==========================================================================
   Interior page hero
   ========================================================================== */

.page-hero {
  position: relative;
  padding-block: 6rem 4.5rem;
  color: #fff;
  background: var(--sl-navy-deep) var(--hero-img, none) center / cover no-repeat;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 28, 51, 0.92), rgba(10, 28, 51, 0.6));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-block: 0.6rem 0.8rem; }
.page-hero p { color: rgba(238, 242, 248, 0.82); max-width: 640px; font-size: 1.08rem; }

.breadcrumb { font-size: 0.86rem; color: rgba(238, 242, 248, 0.7); }
.breadcrumb a:hover { color: var(--sl-sand); }
.breadcrumb .sep { margin-inline: 0.45rem; opacity: 0.6; }

/* ==========================================================================
   Grids & generic blocks
   ========================================================================== */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.media-frame { position: relative; border-radius: var(--sl-radius-lg); overflow: hidden; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.media-stack { position: relative; padding-bottom: 3rem; padding-inline-end: 3rem; }
.media-stack .media-frame:first-child img { aspect-ratio: 5 / 4; }
.media-stack .media-frame.inset {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 46%;
  border: 6px solid #fff;
  box-shadow: var(--sl-shadow-lg);
}
.media-stack .media-frame.inset img { aspect-ratio: 1; }

.badge-float {
  position: absolute;
  inset-inline-start: 1.2rem;
  top: 1.2rem;
  background: #fff;
  border-radius: var(--sl-radius);
  padding: 0.7rem 1rem;
  box-shadow: var(--sl-shadow);
  font-family: var(--sl-font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--sl-navy-dark);
}

.prose p + p { margin-top: 1rem; }
.prose h2 { margin-bottom: 1.2rem; }

.check-list { display: grid; gap: 0.8rem; margin-top: 1.6rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--sl-text); }
.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--sl-navy-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4f8f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.card {
  background: #fff;
  border: 1px solid var(--sl-line);
  border-radius: var(--sl-radius-lg);
  padding: 2.2rem 2rem;
  transition: box-shadow 0.25s var(--sl-ease), transform 0.25s var(--sl-ease);
}
.card:hover { box-shadow: var(--sl-shadow); transform: translateY(-3px); }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.96rem; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--sl-navy-tint);
  color: var(--sl-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
}

/* ==========================================================================
   Product lines (home) & product cards
   ========================================================================== */

.line-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sl-line);
  border-radius: var(--sl-radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s var(--sl-ease), transform 0.25s var(--sl-ease);
}
.line-card:hover { box-shadow: var(--sl-shadow-lg); transform: translateY(-4px); }

.line-card .visual {
  position: relative;
  height: 260px;
  background: linear-gradient(180deg, var(--sl-bg-alt), #e9edf2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.line-card .visual img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(15, 40, 71, 0.18)); }
.line-card .visual .range {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  font-family: var(--sl-font-head);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sl-navy);
  background: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  direction: ltr;
  white-space: nowrap;
  z-index: 1;
}
.line-card .body { padding: 1.8rem 1.8rem 2rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.line-card .body p { flex: 1; font-size: 0.96rem; }

.bag-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  align-items: end;
}
.bag-row a { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; }
.bag-row img { height: 230px; width: auto; object-fit: contain; transition: transform 0.25s var(--sl-ease); filter: drop-shadow(0 12px 16px rgba(15, 40, 71, 0.16)); }
.bag-row a:hover img { transform: translateY(-6px); }
.bag-row b { font-family: var(--sl-font-head); font-size: 0.8rem; color: var(--sl-navy); direction: ltr; }
.bag-row span { font-size: 0.86rem; color: var(--sl-text); line-height: 1.35; }

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sl-line);
  border-radius: var(--sl-radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s var(--sl-ease), transform 0.25s var(--sl-ease), border-color 0.25s;
}
.product-card:hover { box-shadow: var(--sl-shadow-lg); transform: translateY(-4px); border-color: transparent; }
.product-card:focus-visible { outline: 3px solid var(--sl-navy); outline-offset: 3px; }

.product-card .visual {
  height: 250px;
  background: linear-gradient(180deg, var(--sl-bg-alt), #e9edf2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
}
.product-card .visual img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.product-card .body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-card h3 { font-size: 1.12rem; }
.product-card p { font-size: 0.93rem; flex: 1; }

.code-chip {
  align-self: flex-start;
  font-family: var(--sl-font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sl-navy);
  background: var(--sl-navy-tint);
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  direction: ltr;
}

/* Products page */
.filter-bar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 3rem; }

.chip {
  min-height: 44px;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--sl-line);
  background: #fff;
  color: var(--sl-text);
  font-family: var(--sl-font-head);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--sl-navy); color: var(--sl-navy); }
.chip:focus-visible { outline: 2px solid var(--sl-navy); outline-offset: 2px; }
.chip[aria-pressed="true"] { background: var(--sl-navy); border-color: var(--sl-navy); color: #fff; }

.product-group + .product-group { margin-top: 4.5rem; padding-top: 4.5rem; border-top: 1px solid var(--sl-line); }
.product-group-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.6rem; scroll-margin-top: calc(var(--sl-header-h) + var(--sl-topbar-h) + 1rem); }
.product-group-head .range { font-family: var(--sl-font-head); font-weight: 600; font-size: 0.85rem; color: var(--sl-bronze); direction: ltr; }
.product-group-head .count { font-size: 0.85rem; color: var(--sl-muted); }
.product-group > p { max-width: 680px; margin-bottom: 2rem; }

.catalog-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  background: var(--sl-navy-dark);
  border-radius: var(--sl-radius-lg);
  padding: 2.4rem 2.6rem;
  color: #fff;
}
.catalog-box img { width: 96px; border-radius: 4px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
.catalog-box h3 { color: #fff; margin-bottom: 0.3rem; }
.catalog-box p { color: rgba(238, 242, 248, 0.75); }
.catalog-box .actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ==========================================================================
   Product detail
   ========================================================================== */

.pd-top { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }

.pd-visual {
  position: sticky;
  top: calc(var(--sl-header-h) + var(--sl-topbar-h) + 1.5rem);
  background: linear-gradient(180deg, var(--sl-bg-alt), #e7ebf1);
  border-radius: var(--sl-radius-lg);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}
.pd-visual img { max-height: 440px; width: auto; object-fit: contain; mix-blend-mode: multiply; }

.pd-info .code-chip { margin-bottom: 1rem; font-size: 0.8rem; }
.pd-info h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 0.6rem; }
.pd-tagline { font-family: var(--sl-font-head); font-weight: 600; font-size: 1.15rem; color: var(--sl-navy); margin-bottom: 1.5rem; }
.pd-info .prose p { color: var(--sl-text); opacity: 0.85; }

.pd-meta { display: flex; gap: 2rem; flex-wrap: wrap; margin-block: 1.8rem; padding-block: 1.2rem; border-block: 1px solid var(--sl-line); }
.pd-meta div { display: flex; flex-direction: column; }
.pd-meta small { font-size: 0.78rem; color: var(--sl-muted); text-transform: uppercase; letter-spacing: 0.08em; }
html[dir="rtl"] .pd-meta small { text-transform: none; letter-spacing: 0; }
.pd-meta b { font-family: var(--sl-font-head); color: var(--sl-navy-dark); }

.pd-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.pd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.pd-cols .card:hover { transform: none; }
.pd-cols h2 { font-size: 1.3rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.7rem; }
.pd-cols .check-list { margin-top: 0; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table th, .spec-table td { padding: 0.8rem 1rem; text-align: start; border-bottom: 1px solid var(--sl-line); vertical-align: top; }
.spec-table th { width: 45%; font-weight: 500; color: var(--sl-muted); }
.spec-table td { font-weight: 600; color: var(--sl-navy-dark); }
.spec-table tr:nth-child(odd) { background: var(--sl-bg-alt); }
.spec-note { font-size: 0.82rem; margin-top: 1rem; }

/* ==========================================================================
   Dark section, partners, certification marks
   ========================================================================== */

.section-dark { background: var(--sl-navy-dark); color: var(--sl-on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(238, 242, 248, 0.75); }
.section-dark .eyebrow { color: var(--sl-sand); }
.section-dark .check-list li { color: var(--sl-on-dark); }
.section-dark .check-list li::before { background-color: rgba(230, 207, 159, 0.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6cf9f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }

.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.split-media .media-frame img { aspect-ratio: 3 / 4; }
.split-media .media-frame:last-child { margin-top: 3rem; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.process-step { padding-top: 1.4rem; border-top: 2px solid rgba(230, 207, 159, 0.35); }
.process-step .n { font-family: var(--sl-font-head); font-weight: 700; color: var(--sl-sand); font-size: 0.9rem; margin-bottom: 0.6rem; display: block; }
.process-step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.92rem; }
.section-light .process-step { border-top-color: var(--sl-navy); }
.section-light .process-step .n { color: var(--sl-navy); }

.partner-row { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 2rem; }
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  padding: 0.8rem 1.4rem;
  background: #fff;
  border: 1px solid var(--sl-line);
  border-radius: var(--sl-radius);
}
.partner-logo img { max-height: 60px; width: auto; }

.marks { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 90px;
  background: #fff;
  border: 1px solid var(--sl-line);
  border-radius: var(--sl-radius);
  padding: 0.8rem;
}
.mark img { max-height: 64px; width: auto; }
.mark svg { height: 48px; width: auto; color: var(--sl-text); }

.cert-card { text-align: center; }
.cert-card .mark { margin: 0 auto 1.4rem; width: 130px; height: 104px; }

.quality-band {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--sl-line);
  border-radius: var(--sl-radius-lg);
  padding: 3rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 3rem; align-items: start; }

.contact-card {
  background: var(--sl-navy-dark);
  color: var(--sl-on-dark);
  border-radius: var(--sl-radius-lg);
  padding: 2.6rem 2.3rem;
}
.contact-card h2 { color: #fff; font-size: 1.5rem; margin-bottom: 0.4rem; }
.contact-card > p { color: rgba(238, 242, 248, 0.72); margin-bottom: 2rem; }

.contact-list { display: grid; gap: 1.4rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(238, 242, 248, 0.1);
  color: var(--sl-sand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item strong { display: block; color: #fff; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.15rem; }
html[dir="rtl"] .contact-item strong { text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
.contact-item a, .contact-item p { color: rgba(238, 242, 248, 0.82); }
.contact-item a:hover { color: var(--sl-sand); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.contact-form {
  background: #fff;
  border: 1px solid var(--sl-line);
  border-radius: var(--sl-radius-lg);
  padding: 2.6rem;
}
.contact-form h2 { font-size: 1.5rem; margin-bottom: 1.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-family: var(--sl-font-head); font-weight: 500; font-size: 0.88rem; margin-bottom: 0.45rem; color: var(--sl-text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  border: 1px solid #cfd5dd;
  border-radius: var(--sl-radius);
  font-size: 0.96rem;
  color: var(--sl-text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible { outline: none; border-color: var(--sl-navy); box-shadow: 0 0 0 3px rgba(31, 79, 143, 0.18); }
.form-status { font-size: 0.9rem; margin-top: 1rem; color: var(--sl-navy); }

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

.cta-band {
  position: relative;
  padding-block: 5rem;
  background: var(--sl-navy-deep) url("images/construction-dusk.jpg") center / cover no-repeat;
  color: #fff;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(10, 28, 51, 0.82); }
.cta-band .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { color: rgba(238, 242, 248, 0.8); max-width: 560px; }
.cta-band .actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--sl-navy-deep); color: rgba(238, 242, 248, 0.7); padding-top: 4.5rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(238, 242, 248, 0.12);
}
.footer-brand img { height: 76px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p { color: rgba(238, 242, 248, 0.62); font-size: 0.92rem; max-width: 340px; }
.footer-brand .slogan { margin-top: 1rem; font-family: var(--sl-font-head); font-weight: 600; color: var(--sl-sand); font-size: 0.95rem; }

.footer-col h4 { color: #fff; font-size: 0.92rem; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a, .footer-col li { font-size: 0.92rem; color: rgba(238, 242, 248, 0.66); }
.footer-col a:hover { color: var(--sl-sand); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.6rem;
  font-size: 0.84rem;
  color: rgba(238, 242, 248, 0.45);
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--sl-ease), transform 0.7s var(--sl-ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .main-nav > ul { gap: 1.4rem; }
  .header-cta .btn { display: none; }
  .bag-row { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  section { padding-block: 4.5rem; }
  .grid-2, .pd-top, .quality-band, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--sl-line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-visual { position: static; min-height: 360px; }
  .pd-visual img { max-height: 340px; }
  .catalog-box { grid-template-columns: 1fr; text-align: start; }
}

@media (max-width: 860px) {
  :root { --sl-header-h: 76px; }
  .logo img { height: 54px; }
  .logo-text { display: none; }

  /* Ensure header layout fits the mobile viewport and the hamburger is visible */
  .site-header .container {
    padding-inline: 16px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    align-items: center !important;
    gap: 0.6rem !important;
  }

  .logo { flex: 0 0 auto !important; max-width: 60% !important; }

  .header-cta { order: 2 !important; margin-left: auto !important; }

  .nav-toggle {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    order: 3 !important;
    z-index: 10011 !important;
    display: flex !important;
  }

  /* Force the hamburger into the header's top-right on small screens */
  .site-header { position: relative; }
  .nav-toggle {
    position: absolute !important;
    inset-inline-end: 16px !important;
    top: calc((var(--sl-header-h) - 44px) / 2) !important;
    z-index: 10011 !important;
    display: flex !important;
    width: 44px !important;
    height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
  }

  .main-nav {
    position: fixed;
    /* start directly under the header/topbar so the header remains visible */
    inset: var(--sl-nav-top, calc(var(--sl-header-h) + var(--sl-topbar-h))) 0 0 0;
    background: transparent;
    z-index: 9999;
    -webkit-overflow-scrolling: touch;
    /* Default: off-screen to the right (drawer) */
    transform: translateX(100%);
    transition: transform 0.3s var(--sl-ease), visibility 0.3s;
    visibility: hidden;
    overflow: visible;
    /* ensure main-nav covers full height area for the drawer */
    width: 100%;
    left: 0;
    right: 0;
  }
  /* Make the open/closed transforms depend on text direction so the drawer
     slides in from the reading-direction edge (right for LTR, left for RTL). */
  html[dir="ltr"] .main-nav { transform: translateX(100%); }
  html[dir="ltr"] .main-nav.is-open { transform: translateX(0); visibility: visible; }
  html[dir="rtl"] .main-nav { transform: translateX(-100%); }
  html[dir="rtl"] .main-nav.is-open { transform: translateX(0); visibility: visible; }

  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0.3rem; list-style: none; margin: 0; }
  .main-nav a, .nav-drop-btn { font-size: 1.1rem; width: 100%; justify-content: space-between; padding-block: 0.5rem; white-space: normal; }
  .main-nav > ul > li > a::after { display: none; }

  /* Backdrop to darken the page behind the menu (hidden when menu closed) */
  .main-nav::before {
    content: "";
    position: absolute;
    inset: 0 0 0 0;
    top: 0;
    background: rgba(0, 0, 0, 0.32);
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
  }

  /* CLOSED state: ensure nav content is fully hidden and not visible */
  .main-nav { visibility: hidden; opacity: 0; pointer-events: none; transform: translateX(100%); }

  /* OPEN state: visible, interactive, and reset transform */
  .main-nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateX(0); }
  .main-nav.is-open::before { opacity: 1; visibility: visible; }

  /* Menu panel itself: full width, box-sizing and padding per spec */
  /* Menu panel (drawer) content: sits flush on the reading-direction edge */
  .main-nav > ul {
    box-sizing: border-box;
    width: 320px;
    max-width: 85vw;
    background: #fff;
    margin: 0;
    padding: 12px 18px;
    box-shadow: 0 10px 30px rgba(10, 28, 51, 0.12);
    border-radius: 12px 0 0 12px;
    /* allow the menu to scroll if viewport is short and fit below header */
    max-height: calc(100vh - var(--sl-nav-top, calc(var(--sl-header-h) + var(--sl-topbar-h))));
    overflow-y: auto;
    /* Position the panel on the reading-direction edge */
    position: absolute;
    inset-block-start: 0;
    inset-block-end: 0;
    inset-inline-start: auto;
    inset-inline-end: 0;
  }
    position: absolute;
    inset-block-start: 0;
    inset-block-end: 0;
    inset-inline-start: auto;
    inset-inline-end: 0;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: var(--sl-bg-alt);
    max-height: 0;
    overflow: hidden;
    padding: 0 0.5rem;
    transition: max-height 0.25s var(--sl-ease), padding 0.25s;
    /* Allow visible overflow when open */
    overflow: visible !important;
  }
  .has-dropdown:hover .dropdown-menu { transform: none; }
  .has-dropdown.is-open .dropdown-menu { max-height: none !important; padding: 0.5rem; overflow: visible !important; }

  /* Ensure list items / parents don't clip the open dropdown */
  .has-dropdown, .main-nav > ul, .main-nav > ul > li { overflow: visible; }

  /* Mobile touch/click reliability: ensure nav and its children accept pointer events
     and sit above floating elements (WhatsApp, etc.) */
  .main-nav, .main-nav * {
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
  .main-nav, .main-nav > ul, .main-nav > ul > li, .dropdown-menu {
    z-index: 10001 !important;
    position: relative !important;
  }
  .main-nav a, .main-nav button, .dropdown-menu a {
    display: block;
    width: 100%;
    z-index: 10002 !important;
  }

  /* Ensure dropdowns are visible when the mobile nav panel is open */
  .main-nav.is-open .dropdown-menu {
    max-height: none !important;
    overflow: visible !important;
    padding: 0.5rem;
  }
  /* Remove debug visuals and improve safe-area/padding for mobile nav */
  .main-nav.is-open .dropdown-menu { background: var(--sl-bg-alt); border: 0; color: var(--sl-text); }

  /* When nav is open, hide the WhatsApp float to avoid accidental overlap */
  :root.sl-nav-open .wa-float { display: none !important; }

  /* Add safe-area padding so the menu content sits below the notch/status bar */
  .main-nav { padding-top: calc(var(--sl-nav-top, calc(var(--sl-header-h) + var(--sl-topbar-h))) + env(safe-area-inset-top, 0px)); }

  .nav-toggle { display: flex; }
  .topbar-contacts a.hide-sm { display: none; }
}

/* DEBUG: temporary visual guides to identify which container is constraining width on mobile
   Visible only on small screens. Remove after capture. */
/* Removed debug outlines */

/* -------------------------------------------------------------------------
   Mobile safety overrides — ensure no parent container restricts viewport
   width. These are defensive rules applied only on small screens to fix
   incorrect desktop-derived widths affecting mobile layout.
   ------------------------------------------------------------------------- */
@media (max-width: 860px) {
  /* Root/document */
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* Main layout containers */
  /* Strong top-level mobile container reset: force full viewport width for the
     document shell and main layout wrappers. This targets common root IDs and
     wrapper classes so a single rule fixes page-wide 72–73% constraints. Keep
     .main-nav out of this selector to avoid changing the mobile menu panel. */
  html, body, #root, #app, .site-top, .site-header, header.site-header, main, .container, .site, .site-wrapper, .wrapper, .page-hero, .hero {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
  }

  /* Additional defensive reset for direct children of body to ensure none
     remain narrower due to legacy desktop layout rules. Exclude .main-nav so
     we don't alter the mobile menu panel behaviour. */
  body > *:not(.main-nav) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  /* Ultimate fallback: ensure the html/body root stacking fills viewport and
     prevents any ancestor from being clipped by legacy desktop widths. This
     targets only small screens to avoid changing desktop layout. */
  html, body, body > div, body > header, body > main, body > footer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
  }

  /* Use comfortable mobile padding and ensure content spans full width */
  .container { padding-inline: 24px !important; }

  /* Hero content must not be artificially limited */
  .hero-inner, .hero .lede, .page-hero p {
    max-width: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  /* CTA buttons: allow stacking and full-width usage */
  .hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
  .hero-actions .btn { flex: 1 1 auto; min-width: 0; }

  /* Feature cards and grids: collapse to single column and fill width */
  .grid-2, .grid-3, .grid-4, .pd-top, .quality-band, .contact-grid, .bag-row, .grid-4 {
    grid-template-columns: 1fr !important;
  }
  .bag-row a, .line-card, .product-card, .card { width: 100% !important; max-width: 100% !important; }

  /* Images + media frames: ensure parents allow shrinking */
  .media-frame, .media-frame img, .pd-visual img, .line-card .visual img, .bag-row img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* Ensure flex children can shrink to avoid overflow */
  .container *, .main-nav *, .hero * { min-width: 0 !important; }


  /* Ensure mobile nav overlays and doesn't push layout */
  .main-nav { left: 0; right: 0; width: 100% !important; }
  .main-nav > ul { margin-inline: 0; border-radius: 0.5rem; }

    /* Removed aggressive defensive rules that interfered with intended transforms.
      See commit notes. */
}

@media (max-width: 640px) {
  section { padding-block: 3.8rem; }
  .grid-3, .grid-4, .form-row, .pd-cols, .process-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.4rem 1.2rem; }
  .stat b { font-size: 1.5rem; }
  .bag-row { grid-template-columns: repeat(2, 1fr); }
  .bag-row img { height: 180px; }
  .hero { min-height: 0; padding-block: 5rem 6rem; }
  .media-stack { padding-inline-end: 1.5rem; padding-bottom: 2rem; }
  .split-media .media-frame:last-child { margin-top: 1.5rem; }
  .contact-form, .contact-card, .quality-band { padding: 1.8rem 1.4rem; }
  .catalog-box { padding: 1.8rem 1.4rem; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .topbar .container { flex-wrap: wrap; justify-content: center; padding-block: 0.4rem; }
  .topbar-contacts { justify-content: center; }
}

/* FINAL MOBILE FALLBACK: aggressive, mobile-only — forces the entire document
   and its main wrappers to occupy full device width while excluding the
   mobile nav and floating actions. Use only for phones (<=768px). */
@media (max-width: 768px) {
  /* Minimal, explicit mobile shell rules. These do not change menu behavior. */
  html, body, #root, #app, main, .site-top, .site-header, header.site-header, .site-wrapper, .wrapper, .container, footer, .site-footer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  body > *:not(.main-nav):not(.wa-float) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .container { padding-inline: 16px !important; }

  .nav-toggle { display: flex !important; z-index: 10002 !important; }
  .main-nav { width: 100% !important; left: 0 !important; right: 0 !important; }

  .wa-float { position: fixed !important; right: 12px !important; }
}

/* -------------------------------------------------------------------------
   Precise mobile shell fix required by user: ensure top-level page wrappers
   fill the viewport on small devices without altering the mobile menu.
   Applied at 768px to cover common phone sizes. Do NOT change menu styles.
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Use 100% (not 100vw) to avoid viewport/scrollbar issues and preserve
     overlays (mobile nav). Keep rules minimal and mobile-only. */
  html, body, #root, #app, main, .site-top, .site-header, header.site-header, .site-wrapper, .wrapper, .container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* Ensure direct children of body expand fully but do not affect the mobile nav */
  body > *:not(.main-nav) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* Allow inner page sections to use full width */
  main > .container, .container > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Ensure hamburger toggle is visible */
  .nav-toggle { display: flex !important; }
}

/* AGGRESSIVE MOBILE FIX: prevent any horizontal overflow on phones while
   preserving the mobile nav panel visibility. This forces the document to
   fill the device width and hides any accidental scroll gap. */
@media (max-width: 768px) {
  /* Keep root sizing correct on mobile but avoid hiding overflow globally. */
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  /* Ensure mobile nav remains visible and sits above the page */
  .main-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    /* Use 100% instead of 100vw to avoid viewport-unit side-effects */
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .main-nav > ul {
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-inline: 16px !important;
    overflow: visible !important;
  }

  /* Keep WhatsApp float inside viewport */
  .wa-float {
    right: 12px !important;
    left: auto !important;
    /* Prevent the floating action from exceeding the viewport width */
    max-width: calc(100% - 32px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    flex-shrink: 1 !important;
  }
}

/* Targeted mobile fixes: resolve remaining edge overflow without changing nav */
@media (max-width: 768px) {
  /* Ensure hero content fills the viewport on phones */
  .hero-inner, .hero .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-inline: 1rem !important;
    box-sizing: border-box !important;
  }

  /* Convert inset media-frame to flow on small screens to avoid overflow */
  .media-stack .media-frame.inset {
    position: static !important;
    width: 100% !important;
    margin-top: 1rem !important;
    border: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Minimal targeted fix for the first-parent `main.container` on phones
   Keeps desktop/tablet layouts and mobile menu behavior unchanged. */
@media (max-width: 768px) {
  main.container {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-inline: 1rem !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

.crumb-bar { background: var(--sl-bg-alt); border-bottom: 1px solid var(--sl-line); padding-block: 1rem; }
.crumb-bar .breadcrumb { color: var(--sl-muted); }
.crumb-bar .breadcrumb a:hover { color: var(--sl-navy); }
.crumb-bar + div > section:first-child { padding-top: 3.5rem; }
.pd-cols > .card:nth-child(3) { grid-column: 1 / -1; }
.media-frame img.focus-start { object-position: 30% center; }
html[dir="rtl"] .media-frame img.focus-start { object-position: 30% center; }

/* Vision timeline (About page) */
.vision-list { display: grid; gap: 1.3rem; margin-top: 1.4rem; list-style: none; }
.vision-list li { position: relative; padding-inline-start: 1.6rem; }
.vision-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sl-navy);
  box-shadow: 0 0 0 4px var(--sl-navy-tint);
}
.vision-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 1.2rem;
  bottom: -1.3rem;
  width: 2px;
  background: var(--sl-line);
}
.vision-list .term {
  display: block;
  font-family: var(--sl-font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sl-navy);
  margin-bottom: 0.25rem;
}
html[dir="rtl"] .vision-list .term { letter-spacing: 0; font-size: 0.9rem; }
.vision-list p { font-size: 0.96rem; }

/* ==========================================================================
   WhatsApp
   ========================================================================== */

/* Prevent mobile nav from expanding document width: isolation and max-width.
   Applied at 860px to keep behavior identical while guarding against overflow. */
@media (max-width: 860px) {
  .main-nav {
    contain: layout;
    max-width: calc(100vw - 0px);
    left: 0;
    right: 0;
    overscroll-behavior-x: contain;
  }
}

/* FINAL OVERRIDE: ensure `.nav-toggle` sits inside the safe reading-edge
   and cannot be clipped by ancestors. High specificity and !important used
   because mobile browsers and late media rules previously interfered. */
@media (max-width: 860px) {
  html[dir="ltr"] body .site-header .nav-toggle {
    position: fixed !important;
    left: auto !important;
    right: env(safe-area-inset-right, 12px) !important;
    top: calc(env(safe-area-inset-top, 8px) + 8px) !important;
    z-index: 2147483646 !important;
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    pointer-events: auto !important;
  }
  html[dir="rtl"] body .site-header .nav-toggle {
    position: fixed !important;
    right: auto !important;
    left: env(safe-area-inset-left, 12px) !important;
    top: calc(env(safe-area-inset-top, 8px) + 8px) !important;
    z-index: 2147483646 !important;
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    pointer-events: auto !important;
  }

  /* Ensure drawer backdrop sits below the toggle but above page */
  .main-nav::before { z-index: 2147483645 !important; }
  .main-nav { z-index: 2147483644 !important; }
}



.wa-float {
  position: fixed;
  inset-inline-end: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 56px;
  padding-block: 0.4rem;
  padding-inline: 0.4rem 1.2rem;
  border-radius: 999px;
  background: #fff;
  color: var(--sl-text);
  font-family: var(--sl-font-head);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 10px 30px rgba(10, 28, 51, 0.22);
  transition: transform 0.2s var(--sl-ease), box-shadow 0.2s var(--sl-ease);
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(10, 28, 51, 0.28); }
.wa-float:focus-visible { outline: 3px solid var(--sl-navy); outline-offset: 3px; }

.wa-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-icon svg { width: 28px; height: 28px; }

.btn-whatsapp { background: #25d366; color: #0b2e18; }
.btn-whatsapp:hover { background: #1fbd5a; }

.contact-item .icon.wa { background: #25d366; color: #fff; }
.contact-item .icon.wa svg { width: 22px; height: 22px; }

@media (max-width: 640px) {
  .wa-float { padding: 0.35rem; min-height: 0; }
  .wa-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ==========================================================================
   News & exhibition
   ========================================================================== */

.news-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
  border: 1px solid var(--sl-line);
  border-radius: var(--sl-radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s var(--sl-ease), transform 0.25s var(--sl-ease);
}
.news-feature:hover { box-shadow: var(--sl-shadow-lg); transform: translateY(-3px); }
.news-feature:focus-visible { outline: 3px solid var(--sl-navy); outline-offset: 3px; }
.news-feature-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.news-feature-body { padding: 3rem; display: flex; flex-direction: column; justify-content: center; gap: 0.9rem; }

.team-figure .media-frame img { aspect-ratio: 4 / 3; }
.team-figure figcaption { margin-top: 0.8rem; font-size: 0.88rem; color: var(--sl-muted); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item {
  display: block;
  border-radius: var(--sl-radius-lg);
  overflow: hidden;
  background: var(--sl-line);
}
.gallery-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.4s var(--sl-ease); }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item:focus-visible { outline: 3px solid var(--sl-navy); outline-offset: 3px; }

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 94vw;
  max-height: 94vh;
  margin: auto;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 28, 51, 0.9); }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; border-radius: var(--sl-radius); }
.lb-btn {
  position: fixed;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.28); }
.lb-btn:focus-visible { outline: 3px solid var(--sl-sand); outline-offset: 2px; }
.lb-close { top: 1rem; inset-inline-end: 1rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: 1rem; }
.lb-next { inset-inline-end: 1rem; }
html[dir="rtl"] .lb-prev, html[dir="rtl"] .lb-next { transform: translateY(-50%) scaleX(-1); }

@media (max-width: 960px) {
  .news-feature { grid-template-columns: 1fr; }
  .news-feature-media img { min-height: 0; aspect-ratio: 16 / 10; }
  .news-feature-body { padding: 2rem 1.6rem; }
}

/* Mobile UX tweaks: make WhatsApp float a small round icon and keep header/menu visible */
@media (max-width: 768px) {
  /* Compact round WhatsApp button */
  .wa-float {
    width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 30px rgba(10, 28, 51, 0.18) !important;
    background: #fff !important;
    overflow: hidden !important;
  }
  .wa-float .wa-label { display: none !important; }
  .wa-icon { width: 40px !important; height: 40px !important; }
  .wa-icon svg { width: 28px !important; height: 28px !important; }

  /* Ensure header and hamburger toggle stay above overlays */
  .site-top, .site-header { position: sticky; top: 0; z-index: 10010 !important; }
  .nav-toggle { z-index: 10011 !important; }

  /* Slightly lift the main content so the round button doesn't overlap critical CTAs */
  main { padding-bottom: 76px; }
}

/* Broader mobile/touch breakpoint: ensure hamburger always visible and WA icon compact up to 900px */
@media (max-width: 900px) {
  .nav-toggle {
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 8px) + 8px) !important;
    /* move hamburger to left side to avoid being pushed off-screen */
    left: 12px !important;
    right: auto !important;
    z-index: 10050 !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
  }

  .wa-float {
    width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 !important;
    border-radius: 9999px !important;
    right: 12px !important;
    left: auto !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    max-width: 56px !important;
    overflow: hidden !important;
  }
  .wa-float .wa-label { display: none !important; }
  .wa-icon { width: 36px !important; height: 36px !important; }
  .wa-icon svg { width: 24px !important; height: 24px !important; }
}

/* Emergency override: ensure hamburger always visible on phones/tablets */
@media (max-width: 1100px) {
  .nav-toggle {
    display: flex !important;
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 8px) + 8px) !important;
    left: 12px !important;
    right: auto !important;
    z-index: 20000 !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Prevent header-cta's primary button from forcing layout overflow on small screens */
  .header-cta .btn { min-width: 0 !important; padding-inline: 0.6rem !important; font-size: 0.9rem !important; }
  .header-cta { gap: 0.5rem !important; }
}

.visit-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3.5rem; align-items: center; }
.visit-grid h2 { margin-bottom: 1rem; }
.visit-main img { aspect-ratio: 4 / 3; }
.visit-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 2rem; }
.visit-thumbs img { aspect-ratio: 3 / 4; object-position: center 25%; }
@media (max-width: 960px) { .visit-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ==========================================================================
   Product photography (studio shots on warm grey)
   ========================================================================== */

:root { --sl-studio: #ffffff; }

.line-card .visual,
.product-card .visual,
.pd-visual { background: var(--sl-studio); padding: 0; }

.line-card .visual img,
.product-card .visual img,
.pd-visual img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: none;
  mix-blend-mode: normal;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}

.line-card .visual { height: 300px; }
.product-card .visual { height: 280px; }
.pd-visual { height: 560px; min-height: 0; }
.pd-visual img { max-height: none; }

.bag-row img {
  width: 100%;
  height: auto;
  border-radius: var(--sl-radius-lg);
  filter: none;
}

@media (max-width: 960px) {
  .pd-visual { height: 440px; }
}
@media (max-width: 640px) {
  .bag-row img { height: auto; }
  .pd-visual { height: 380px; }
}

/* Product-line cards: keep packs fully visible and centered */
.line-card .visual {
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0.6rem;
}

.line-card .visual img[src*="line-"],
.line-card .visual img[src*="st-200"] {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  -webkit-mask-image: none;
  mask-image: none;
}

/* Product page: full marketing poster, click to enlarge */
.pd-visual.pd-poster {
  display: flex;
  height: auto;
  padding: 1.5rem;
  cursor: zoom-in;
}
.pd-visual.pd-poster img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - var(--sl-header-h) - var(--sl-topbar-h) - 5rem);
  border-radius: var(--sl-radius);
  -webkit-mask-image: none;
  mask-image: none;
  box-shadow: 0 10px 30px rgba(15, 40, 71, 0.12);
}
.pd-visual.pd-poster:focus-visible { outline: 3px solid var(--sl-navy); outline-offset: 3px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
@media (max-width: 960px) {
  .pd-visual.pd-poster { height: auto; }
  .pd-visual.pd-poster img { max-height: 80vh; }
}

.gallery-item.gallery-wide { grid-column: span 2; position: relative; }
.gallery-item.gallery-wide img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }

/* ==========================================================================
   Home highlights (overlapping the hero)
   ========================================================================== */

.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--sl-radius-lg);
  box-shadow: var(--sl-shadow-lg);
  overflow: hidden;
}
.highlight {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.8rem 2.2rem;
  border-inline-start: 1px solid var(--sl-line);
  transition: background-color 0.25s var(--sl-ease);
}
.highlight:first-child { border-inline-start: 0; }
.highlight::after {
  content: "";
  position: absolute;
  inset-inline: 1.8rem;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--sl-navy), var(--sl-sand));
  transform: scaleX(0.25);
  transform-origin: var(--hl-origin, left);
  transition: transform 0.35s var(--sl-ease);
}
html[dir="rtl"] .highlight::after { --hl-origin: right; }
.highlight:hover { background: var(--sl-navy-tint); }
.highlight:hover::after { transform: scaleX(1); }
.highlight-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--sl-navy-light), var(--sl-navy-dark));
  box-shadow: 0 8px 18px rgba(31, 79, 143, 0.25);
}
.highlight h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.highlight p { font-size: 0.9rem; line-height: 1.55; }

@media (max-width: 960px) {
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .highlight:nth-child(3) { border-inline-start: 0; }
  .highlight:nth-child(n + 3) { border-top: 1px solid var(--sl-line); }
}
@media (max-width: 560px) {
  .highlights { grid-template-columns: 1fr; }
  .highlight { flex-direction: row; align-items: flex-start; border-inline-start: 0; padding: 1.4rem; }
  .highlight + .highlight { border-top: 1px solid var(--sl-line); }
  .highlight-icon { flex-shrink: 0; width: 48px; height: 48px; }
}

/* ==========================================================================
   Certificates
   ========================================================================== */

.cert-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--sl-line);
  border: 1px solid var(--sl-line);
  border-radius: var(--sl-radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}
.cert-facts > div { background: #fff; padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.2rem; }
.cert-facts small { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sl-bronze); }
html[dir="rtl"] .cert-facts small { letter-spacing: 0; font-size: 0.85rem; }
.cert-facts b { font-family: var(--sl-font-head); font-size: 1.05rem; color: var(--sl-navy-dark); }
.cert-facts span { font-size: 0.86rem; color: var(--sl-muted); }

.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }

.cert {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sl-line);
  border-radius: var(--sl-radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s var(--sl-ease), transform 0.25s var(--sl-ease);
}
.cert:hover { box-shadow: var(--sl-shadow-lg); transform: translateY(-4px); }

.cert-doc {
  position: relative;
  display: block;
  background: linear-gradient(160deg, var(--sl-navy-dark), var(--sl-navy-deep));
  padding: 1.6rem 2.2rem 0;
  height: 300px;
  overflow: hidden;
  border-radius: 0;
  cursor: zoom-in;
}
.cert-doc img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s var(--sl-ease);
}
.cert:hover .cert-doc img { transform: translateY(-10px); }
.cert-zoom {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.2rem 1rem 0.9rem;
  text-align: center;
  font-family: var(--sl-font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(0deg, rgba(10, 28, 51, 0.92), transparent);
  opacity: 0;
  transition: opacity 0.25s var(--sl-ease);
}
.cert-doc:hover .cert-zoom, .cert-doc:focus-visible .cert-zoom { opacity: 1; }
.cert-doc:focus-visible { outline: 3px solid var(--sl-sand); outline-offset: -3px; }

.cert-body { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.cert-std {
  align-self: flex-start;
  font-family: var(--sl-font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--sl-navy);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  direction: ltr;
}
.cert-body h3 { font-size: 1.12rem; }
.cert-body p { font-size: 0.92rem; flex: 1; }
.cert-meta { display: flex; gap: 1.5rem; margin-top: 0.6rem; padding-top: 0.9rem; border-top: 1px solid var(--sl-line); }
.cert-meta dt { font-size: 0.74rem; color: var(--sl-muted); text-transform: uppercase; letter-spacing: 0.08em; }
html[dir="rtl"] .cert-meta dt { text-transform: none; letter-spacing: 0; font-size: 0.82rem; }
.cert-meta dd { font-family: var(--sl-font-head); font-weight: 600; color: var(--sl-navy-dark); direction: ltr; text-align: start; }

.cert-verify { margin-top: 2.2rem; text-align: center; font-size: 0.9rem; }
.cert-verify a { color: var(--sl-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .cert-facts { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cert-facts, .cert-grid { grid-template-columns: 1fr; }
  .cert-doc { height: 260px; }
}

.partner-block .prose { max-width: 820px; }
.partner-block .prose { margin-inline: auto; text-align: center; }
.partner-block .eyebrow { justify-content: center; }
.partner-block .partner-row { justify-content: center; }

@media (max-width: 640px) { :root { --sl-topbar-h: 76px; } }

/* FINAL WhatsApp override (must stay last): kill long pill and keep a side bubble */
@media (max-width: 1100px) {
  html body a.wa-float,
  html body .wa-float {
    position: fixed !important;
    right: 14px !important;
    left: auto !important;
    inset-inline-end: 14px !important;
    inset-inline-start: auto !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    flex: 0 0 58px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 0 !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-indent: -9999px !important;
    z-index: 2147483000 !important;
    background: #fff !important;
    box-shadow: 0 10px 28px rgba(10, 28, 51, 0.22) !important;
  }

  html body .wa-float .wa-label {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  html body .wa-float .wa-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    flex: 0 0 40px !important;
  }

  html body .wa-float .wa-icon svg {
    width: 26px !important;
    height: 26px !important;
  }
}
