/* ==========================================================================
   Al Jury Co LLC — Global Styles
   Colors:
     Navy      #17394F  (rgb 23,57,79)
     Accent    #4EC59A  (rgb 78,197,154)
     Bg light  #F5F8F7  (rgb 245,248,247)
     Muted     #41586B  (rgb 65,88,107)
     Muted lbl #8FA3B0  (rgb 143,163,176)
     Footer bg #0F2937  (rgb 15,41,55)
     Tech bg   #131313
     Tech text #F1EFE9
     Tech acc  #F97316
   ========================================================================== */

* { box-sizing: border-box; }

:root {
  /* single source of truth for page gutters + section rhythm */
  --gutter: clamp(18px, 4vw, 32px);
  --section-y: clamp(56px, 8vw, 100px);
  /* logo height + nav-inner vertical padding — keep in sync with .nav-logo img */
  --logo-h: clamp(50px, 5.4vw, 72px);
  --nav-h: calc(var(--logo-h) + 20px);
}

html { scroll-behavior: smooth; }

/* keep anchored sections clear of the sticky nav */
[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #17394F;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: #17394F;
  text-decoration: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  color: #4EC59A;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow--hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(78, 197, 154, 0.5);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.h2 {
  font-size: clamp(26px, 1.6vw + 19px, 42px);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h2--white { color: #fff; margin: 0; }

.body-text {
  font-size: clamp(15.5px, 0.4vw + 14.2px, 17px);
  line-height: 1.75;
  color: #41586B;
  margin: 0 0 16px;
  text-wrap: pretty;
}

.btn {
  display: inline-block;
  font-weight: 700;
  border-radius: 8px;
  text-align: center;
  transition: filter .2s, background-color .2s, transform .2s;
}

.btn-accent {
  background: #4EC59A;
  color: #fff;
  font-size: 15px;
  padding: 11px 22px;
  box-shadow: 0 2px 8px rgba(78, 197, 154, 0.35);
}
.btn-accent:hover { filter: brightness(1.06); color: #fff; }

.btn-lg { font-size: 16px; padding: 15px 30px; }
.btn-lg.btn-accent { box-shadow: 0 4px 16px rgba(78, 197, 154, 0.4); }

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 16px;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

.btn-dark {
  background: #17394F;
  color: #fff;
  font-size: 15px;
  padding: 14px 28px;
}
.btn-dark:hover { background: #0F2937; color: #fff; }

.section { padding: var(--section-y) 0; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 rgba(23, 57, 79, 0.08);
  transition: box-shadow 0.3s;
}
.nav.is-scrolled { box-shadow: 0 4px 20px rgba(23, 57, 79, 0.12); }

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav-logo img {
  height: var(--logo-h);
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  justify-content: flex-end;
}
.nav-links a { font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav-links a:hover { color: #4EC59A; }
.nav-links a.btn:hover { color: #fff; }

.nav-burger {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(23, 57, 79, 0.14);
  background: #fff;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #17394F;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.logo-fallback {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #17394F;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo-fallback--dark { font-size: 18px; }
.logo-fallback--tech {
  font-family: 'IBM Plex Mono', monospace;
  color: #F1EFE9;
  font-size: 17px;
  font-weight: 600;
}
.logo-fallback--footer { font-size: 24px; color: #fff; margin-bottom: 24px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: #17394F;
  min-height: min(86vh, 700px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: #17394F;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg--empty {
  background: linear-gradient(135deg, #17394F 0%, #0F2937 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13,36,51,0.92) 0%, rgba(23,57,79,0.78) 50%, rgba(23,57,79,0.45) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) var(--gutter);
  width: 100%;
}
.hero-inner {
  max-width: 640px;
  animation: heroFade 0.9s ease both;
}
.hero-title {
  color: #fff;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

@keyframes heroFade {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- reveal-on-scroll (JS toggles .is-visible) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- ABOUT ---------- */
.section--about { background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  background: #F5F8F7;
  border-radius: 14px;
  padding: 32px 28px;
}
.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: #17394F;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: #4EC59A;
  margin-top: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- DIVISIONS ---------- */
.section--divisions { background: #F5F8F7; }
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(36px, 5vw, 64px);
}
.section-head--dark { color: #fff; }
.section-head .body-text { margin: 0; }
.section-head--dark .body-text { color: rgba(255, 255, 255, 0.68); }

.division-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 28px;
}
.division-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(23, 57, 79, 0.07);
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.8vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.division-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(23, 57, 79, 0.14);
}
.division-card--tech {
  background: #131313;
  box-shadow: 0 4px 24px rgba(23, 57, 79, 0.18);
}
.division-card--tech:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.35); }

.division-logo {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.division-logo img { max-height: 64px; width: auto; }
.division-logo--img { height: 56px; }
.division-logo--img img { max-height: 100%; }

/* >deployed_ wordmark — sits in the same logo slot as the other two cards'
   images so the tag/title/copy rows line up across all three. */
.division-logo--tech {
  height: 56px;
  align-items: flex-end;
  margin: 0;
}
.deployed-wordmark {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: #F1EFE9;
  white-space: pre;
}
.deployed-wordmark-caret,
.deployed-wordmark-cursor { color: #F97316; }

.division-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8FA3B0;
}
.division-tag--tech {
  font-weight: 600;
  color: #F97316;
  font-family: 'IBM Plex Mono', monospace;
}

.division-title {
  font-size: 23px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

.division-text {
  font-size: 15.5px;
  line-height: 1.7;
  color: #41586B;
  margin: 0;
  flex: 1;
  text-wrap: pretty;
}
.division-text--tech { color: rgba(241, 239, 233, 0.72); }

.division-link {
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.division-link--tech {
  color: #F1EFE9;
  font-weight: 600;
  font-family: 'IBM Plex Mono', monospace;
}
.arrow { color: #4EC59A; }
.arrow--tech { color: #F97316; }

/* ---------- WHY CHOOSE US ---------- */
.section--why { background: #17394F; }

/* Two even columns: wide enough for the copy to breathe, so lines don't
   break every three words the way four narrow columns forced them to. */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}
.value-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(78, 197, 154, 0.22);
  border-radius: 14px;
  padding: clamp(24px, 2.8vw, 34px) clamp(22px, 2.6vw, 32px);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: background-color .25s, transform .25s;
}
.value-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}
.value-glyph {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(78, 197, 154, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4EC59A;
}
.value-glyph svg { width: 26px; height: 26px; }
.value-body { min-width: 0; }
.value-title {
  font-size: clamp(17px, 0.5vw + 15.5px, 20px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 8px;
  text-wrap: balance;
}
.value-text {
  font-size: clamp(14.5px, 0.35vw + 13.5px, 16px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
  max-width: 42ch;
  text-wrap: pretty;
}

@media (max-width: 560px) {
  .value-grid { grid-template-columns: 1fr; }
  .value-card { gap: 16px; }
  .value-glyph { width: 44px; height: 44px; border-radius: 10px; }
  .value-glyph svg { width: 22px; height: 22px; }
}

/* ---------- FEATURED PRODUCTS ---------- */
.section--products { background: #fff; }
.products-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.products-head .h2 { margin: 0; }
.products-head > div { max-width: 560px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 22px;
}

.product-grid--large {
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}
.product-grid--large .product-image { height: 260px; }
.product-grid--large .product-name { font-size: 19px; }
.product-grid--large .product-category { font-size: 14.5px; }
.product-grid--large .product-info { padding: 26px 28px 30px; }
.product-card {
  position: relative;
  background: #fff;
  border: 1px solid #E4EBE8;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}
.product-card:hover {
  box-shadow: 0 10px 28px rgba(23, 57, 79, 0.12);
  transform: translateY(-4px);
}
.product-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
}
.product-image {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: #F5F8F7;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-image--empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, #EDF2F0, #EDF2F0 8px, #E6EDEA 8px, #E6EDEA 16px);
}
.product-credit {
  position: absolute;
  z-index: 2;
  left: 6px;
  bottom: 6px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
}
.product-credit a { color: inherit; text-decoration: none; }
.product-credit a:hover { text-decoration: underline; }
.product-info {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-name { font-size: 16px; font-weight: 700; line-height: 1.35; color: #17394F; }
/* keeps the category on the same baseline across cards with different name lengths */
.product-category { font-size: 13.5px; color: #4EC59A; font-weight: 600; margin-top: auto; padding-top: 6px; }

/* ---------- PARTNERS ---------- */
.section--partners { background: #F5F8F7; padding: clamp(44px, 6vw, 72px) 0; }
.partners-label {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8FA3B0;
  margin-bottom: 40px;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: clamp(12px, 1.8vw, 20px);
}
.partner-logo {
  height: 88px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #E4EBE8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  overflow: hidden;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.3s, opacity 0.3s;
}
.partner-logo:hover { filter: grayscale(0); opacity: 1; }
/* source logos carry a lot of internal whitespace — let them fill the tile */
.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(var(--logo-scale, 1));
}
.partner-logo[data-logo="oman-air"] { --logo-scale: 1.45; }
.partner-logo[data-logo="neo"] { --logo-scale: 1.8; }
.partner-logo[data-logo="profab"] { --logo-scale: 1.7; }

/* ---------- CONTACT CTA ---------- */
.section--contact-cta { background: #17394F; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(78, 197, 154, 0.22);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background-color 0.25s, transform 0.25s;
}
.contact-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(78, 197, 154, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #4EC59A;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-icon-row {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.contact-icon-row .contact-icon {
  margin-bottom: 0;
  transition: background-color 0.25s, transform 0.25s;
}
.contact-icon-row .contact-icon:hover {
  background: rgba(78, 197, 154, 0.28);
  transform: translateY(-2px);
}
.contact-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8FA3B0;
  margin-bottom: 6px;
}
.contact-value { font-size: 18px; font-weight: 700; color: #fff; word-break: break-word; }

/* ---------- FOOTER ---------- */
.footer { background: #0F2937; padding: clamp(52px, 7vw, 88px) 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.footer-logo { height: 110px; width: auto; margin-bottom: 24px; }
.footer-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
  max-width: 300px;
  text-wrap: pretty;
}
.footer-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4EC59A;
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.78); font-size: 15px; }
.footer-links a:hover { color: #4EC59A; }

.footer-address {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 24px;
}
.footer-social { display: flex; gap: 12px; }
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 700;
  transition: background-color .2s, color .2s, border-color .2s;
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 13.5px; color: rgba(255, 255, 255, 0.5); }
.footer-arabic { font-size: 15px; color: rgba(255, 255, 255, 0.55); }
.footer-bottom-end {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* --- "by > deployed" credit badge ---
   Reproduced from REfrences/DEPLOYED-BADGE-SPEC.md. Its palette and font stacks
   are deployed's own, deliberately independent of this site's tokens. */
.credit-deployed {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 16px;      /* asymmetric on purpose — balances the cursor */
  border: 1px solid rgba(0, 66, 89, 0.14);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 66, 89, 0.08);
  font-family: "Myriad Pro", "MyriadPro-Regular", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #4f6a77;
  text-decoration: none;
  cursor: pointer;
}

/* Visually inert per the badge spec: no lift, no color shift on hover.
   Keyboard focus still gets a ring — it's a real link. */
.credit-deployed:hover,
.credit-deployed:focus-visible {
  transform: none;
  border-color: rgba(0, 66, 89, 0.14);
  background: #ffffff;
  text-decoration: none;
}
.credit-deployed:focus-visible {
  outline: 2px solid #ff5a1f;
  outline-offset: 3px;
}

.deployed-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;                  /* aligns the cursor with the cap height */
}

.deployed-prompt { color: #ff5a1f; }
.deployed-text { color: #004259; }

.deployed-cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  margin-inline-start: 2px;
  border-radius: 2px;
  background: #ff5a1f;
  animation: deployed-blink 1.1s linear infinite;
}

/* Hard on/off blink — no fade. 50% duty cycle. */
@keyframes deployed-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .deployed-cursor { animation: none; }   /* stays solid, not hidden */
}

@media (max-width: 640px) {
  .credit-deployed { padding: 6px 10px; }
  .deployed-badge { font-size: 0.76rem; gap: 4px; }
  .deployed-cursor { width: 5px; height: 12px; }
}

/* ---------- CATALOG PAGE HEADER ---------- */
.catalog-hero {
  background: #F5F8F7;
  padding: clamp(44px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
}

/* ---------- RESPONSIVE ---------- */

/* Scrim sits UNDER the nav (z-index 50) so the open drawer — which is painted
   inside the nav's stacking context — stays above it and stays clickable. */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 41, 55, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

/* Tablet / mobile nav collapse */
@media (max-width: 900px) {
  .nav-burger { display: flex; }

  .nav-inner { position: relative; justify-content: flex-end; }
  .nav-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(330px, 86vw);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    padding: 92px 26px calc(32px + env(safe-area-inset-bottom));
    box-shadow: -8px 0 32px rgba(15, 41, 55, 0.18);
    transform: translateX(101%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
  }
  .nav-links.is-open { transform: translateX(0); visibility: visible; }
  .nav-links a {
    font-size: 17px;
    padding: 15px 4px;
    border-bottom: 1px solid #EEF2F1;
  }
  .nav-links a.btn {
    margin-top: 18px;
    border-bottom: none;
    padding: 14px 22px;
  }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 900px) {
  .division-grid { gap: 22px; }
  .about-grid { gap: 48px; }
  .contact-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

/* 5 partner tiles: 3 + 2 reads better than 4 + 1 orphan at tablet widths */
@media (min-width: 641px) and (max-width: 900px) {
  .partners-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  /* keep the pill on one line instead of wrapping inside its border */
  .eyebrow--hero {
    font-size: 11.5px;
    letter-spacing: 0.08em;
    padding: 7px 14px;
    margin-bottom: 22px;
  }
}

@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }

  .about-grid { gap: 36px; }
  .stats-grid { gap: 14px; }
  .stat-card { padding: 22px 20px; }
  .stat-value { font-size: 28px; }

  .division-card { padding: 28px 24px; gap: 16px; }

  .contact-grid { grid-template-columns: 1fr; gap: 14px; }
  .contact-card { padding: 24px 22px; }

  .products-head { align-items: flex-start; }
  .products-head .btn { width: 100%; text-align: center; }

  .product-grid,
  .product-grid--large {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .product-grid--large .product-image { height: 150px; }
  .product-grid--large .product-info { padding: 16px 16px 18px; }
  .product-grid--large .product-name { font-size: 15px; }
  .product-image { height: 130px; }
  .product-info { padding: 14px 16px; }
  .product-name { font-size: 14px; }
  .product-category { font-size: 12px; }

  .partners-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .partner-logo { height: 62px; padding: 10px 14px; }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
    text-align: left;
  }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-logo { height: 84px; margin-bottom: 16px; }
  .footer-text { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  .product-modal { padding: 0; align-items: flex-end; }
  .product-modal-dialog { border-radius: 18px 18px 0 0; max-height: 94vh; }
}

@media (max-width: 420px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .product-grid,
  .product-grid--large { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .hero-inner, .division-card, .value-card, .product-card, .partner-logo, .social-btn, .btn {
    transition: none !important;
    animation: none !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- PRODUCT MODAL ---------- */
body.modal-open { overflow: hidden; }

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.product-modal.is-open { display: flex; }

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 41, 55, 0.6);
  backdrop-filter: blur(2px);
  animation: modalFade 0.2s ease both;
}

.product-modal-dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 18px;
  max-width: 880px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 24px 64px rgba(15, 41, 55, 0.35);
  animation: modalPop 0.25s cubic-bezier(.2,.8,.2,1) both;
  outline: none;
}

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.product-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(15, 41, 55, 0.18);
  font-size: 22px;
  line-height: 1;
  color: #17394F;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-modal-close:hover { background: #fff; color: #F97316; }

.product-modal-image {
  background: #F5F8F7;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.product-modal-image img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
}

.product-modal-body { padding: 40px 36px; }
.product-modal-category {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4EC59A;
  margin-bottom: 10px;
}
.product-modal-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: #17394F;
}
.product-modal-summary {
  font-size: 16px;
  font-weight: 600;
  color: #17394F;
  margin: 0 0 14px;
  line-height: 1.5;
}
.product-modal-description {
  font-size: 15px;
  line-height: 1.75;
  color: #41586B;
  margin: 0 0 20px;
  text-wrap: pretty;
}
.product-modal-specs {
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid #E4EBE8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-modal-specs li {
  font-size: 14px;
  color: #41586B;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.product-modal-wa {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #E4EBE8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: #17394F;
}
.product-modal-wa-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(78, 197, 154, 0.14);
  color: #4EC59A;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s, color .2s, transform .2s;
}
.product-modal-wa-icon svg { width: 24px; height: 24px; }
.product-modal-wa-label {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  max-width: 30ch;
  text-wrap: pretty;
  transition: color .2s;
}
.product-modal-wa:hover .product-modal-wa-icon {
  background: #4EC59A;
  color: #fff;
  transform: translateY(-2px);
}
.product-modal-wa:hover .product-modal-wa-label { color: #4EC59A; }

.product-modal-specs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4EC59A;
}

@media (max-width: 720px) {
  .product-modal-dialog { grid-template-columns: 1fr; max-height: 92vh; }
  .product-modal-image { min-height: 200px; padding: 24px; }
  .product-modal-body { padding: 28px 24px 36px; }
}
