﻿/* ==========================================================================
 * TABESH — style.css  (Phase 3 visual redesign)
 * Industrial / engineering / manufacturing / solar-energy visual direction.
 * Palette drawn from the TABESH identity: deep navy, light blue, solar gold,
 * white, light gray. Blueprint grids, machined corner cuts, squared plates
 * and restrained motion. CSS logical properties keep RTL and LTR in parity.
 * ========================================================================== */

:root {
  /* navy ramp */
  --tab-navy-950: #071426;
  --tab-navy-900: #0a1e38;
  --tab-navy-800: #0f2a4c;
  --tab-navy-700: #12335c;
  --tab-navy-600: #1a4276;
  /* light blue ramp */
  --tab-sky-300: #8fc3f2;
  --tab-sky-400: #5aa9e8;
  --tab-sky-500: #3e8fd6;
  /* solar gold ramp */
  --tab-gold-400: #f7c948;
  --tab-gold-500: #f2b705;
  --tab-gold-600: #d99e04;
  --tab-gold-700: #b07d00;
  /* neutrals */
  --tab-white:    #ffffff;
  --tab-steel-100: #f4f7fa;
  --tab-steel-150: #eef2f6;
  --tab-steel-200: #e4e9ef;
  --tab-steel-300: #cfd8e1;
  --tab-steel-400: #aab6c4;
  --tab-ink:      #141c26;
  --tab-muted:    #5a6674;
  /* legacy aliases (kept for safety) */
  --tab-gray-100: var(--tab-steel-100);
  --tab-gray-200: var(--tab-steel-200);
  /* type */
  --tab-font: 'Vazirmatn', 'Segoe UI', Tahoma, Arial, sans-serif;
  --tab-font-tech: ui-monospace, 'Cascadia Mono', 'Consolas', 'Courier New', monospace;
  /* geometry & elevation */
  --tab-radius: 10px;
  --tab-radius-sm: 6px;
  --tab-shadow-1: 0 1px 2px rgba(7, 20, 38, .05), 0 4px 14px rgba(7, 20, 38, .07);
  --tab-shadow-2: 0 2px 6px rgba(7, 20, 38, .08), 0 10px 26px rgba(7, 20, 38, .14);
  /* blueprint grids */
  --tab-grid-light:
    linear-gradient(rgba(18, 48, 94, .055) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(18, 48, 94, .055) 1px, transparent 1px) 0 0 / 24px 24px;
  --tab-grid-dark:
    linear-gradient(rgba(143, 195, 242, .07) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, rgba(143, 195, 242, .07) 1px, transparent 1px) 0 0 / 30px 30px;
  --tab-nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--tab-nav-h) + 12px);
}

body {
  font-family: var(--tab-font);
  color: var(--tab-ink);
  background: var(--tab-white);
  line-height: 1.8;
  font-size: 1rem;
  overflow-x: hidden; /* fallback for browsers without overflow: clip */
  overflow-x: clip; /* decorative layers must never create horizontal scroll */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.3; }
img { max-width: 100%; }
a { color: var(--tab-navy-700); }

::selection { background: var(--tab-gold-500); color: var(--tab-navy-950); }

:focus-visible {
  outline: 3px solid var(--tab-gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* --------------------------- Navbar --------------------------- */
#mainNav {
  background: linear-gradient(180deg, var(--tab-navy-950), var(--tab-navy-900));
  border-top: 3px solid var(--tab-gold-500);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  min-height: var(--tab-nav-h);
  box-shadow: 0 2px 10px rgba(3, 12, 26, .35);
  transition: box-shadow .25s;
}
#mainNav.navbar-scrolled { box-shadow: 0 8px 22px rgba(3, 12, 26, .55); }

.brand-logo { height: 42px; width: auto; object-fit: contain; }
.brand-text {
  color: var(--tab-white);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .01em;
}

#mainNav .nav-link {
  color: rgba(255, 255, 255, .82);
  font-weight: 500;
  font-size: .95rem;
  padding: .55rem .85rem;
  border-radius: var(--tab-radius-sm);
  transition: color .2s, background-color .2s;
}
#mainNav .nav-link:hover,
#mainNav .nav-link:focus { color: var(--tab-white); background: rgba(255, 255, 255, .06); }
#mainNav .nav-link.active { color: var(--tab-gold-500); }
#mainNav .nav-link.active::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 2px;
  border-radius: 1px;
  background: var(--tab-gold-500);
}

.btn-lang {
  color: var(--tab-white);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--tab-radius-sm);
  padding: .35rem .75rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: color .2s, border-color .2s;
}
.btn-lang:hover, .btn-lang:focus {
  color: var(--tab-gold-500);
  border-color: var(--tab-gold-500);
  background: transparent;
}

.lang-dropdown .dropdown-menu {
  background: var(--tab-navy-900);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--tab-radius-sm);
  box-shadow: var(--tab-shadow-2);
}
.lang-dropdown .dropdown-item { color: rgba(255, 255, 255, .85); }
.lang-dropdown .dropdown-item:hover,
.lang-dropdown .dropdown-item:focus {
  background: rgba(255, 255, 255, .08);
  color: var(--tab-gold-500);
}
.lang-dropdown .dropdown-item.active {
  background: var(--tab-gold-500);
  color: var(--tab-navy-950);
}

@media (max-width: 991.98px) {
  #mainNav .navbar-collapse {
    background: var(--tab-navy-950);
    margin-top: .75rem;
    padding: .75rem 1rem 1rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--tab-radius);
    box-shadow: var(--tab-shadow-2);
  }
}

/* ---------------------------- Hero ---------------------------- */
.hero {
  position: relative;
  color: var(--tab-white);
  padding: 96px 0 110px;
  overflow: hidden;
  background:
    var(--tab-grid-dark),
    radial-gradient(950px 460px at 12% -14%, rgba(242, 183, 5, .17), transparent 62%),
    radial-gradient(760px 400px at 96% 112%, rgba(90, 169, 232, .15), transparent 62%),
    linear-gradient(158deg, var(--tab-navy-950) 0%, var(--tab-navy-800) 52%, var(--tab-navy-900) 100%);
}
/* machined horizon line under the hero */
.hero::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 183, 5, .55), rgba(90, 169, 232, .45), transparent);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem;
  border: 1px solid rgba(242, 183, 5, .45);
  border-radius: var(--tab-radius-sm);
  color: var(--tab-gold-400);
  font-size: .85rem;
  font-weight: 500;
  background: rgba(242, 183, 5, .08);
}
.hero-badge i { font-size: .8rem; }

.hero-mark {
  display: inline-block;
  font-family: var(--tab-font-tech);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .38em;
  color: var(--tab-sky-300);
  margin-bottom: .5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5.2vw, 3.55rem);
  font-weight: 900;
  margin: 0 0 .5rem;
  color: var(--tab-white);
}
.hero-slogan {
  color: var(--tab-gold-400);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.hero-slogan::before { content: '\00AB'; }
.hero-slogan::after  { content: '\00BB'; }
.hero-lead { color: #c9d5e6; max-width: 560px; font-size: 1.02rem; }

.hero-keywords {
  color: #9fb3cc;
  font-size: .88rem;
  margin: 1.6rem 0 0;
  letter-spacing: .02em;
}
[dir="rtl"] .hero-keywords { letter-spacing: 0; }

/* Engineering drawing panel with a dual-axis tracker schematic */
.hero-panel {
  position: relative;
  min-height: 340px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--tab-radius);
  background:
    var(--tab-grid-dark),
    radial-gradient(320px 200px at 50% 30%, rgba(90, 169, 232, .12), transparent 70%),
    rgba(7, 20, 38, .55);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .4);
}
/* blueprint corner ticks */
.hero-panel::before,
.hero-panel::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
}
/* Real hero photo: fills the panel on any aspect ratio without distortion.
   object-fit: contain keeps the full picture visible; contain (not cover) is
   used because the photo sits inside the framed blueprint panel. */
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}
.hero-panel::before {
  top: 10px;
  inset-inline-start: 10px;
  border-top: 2px solid rgba(242, 183, 5, .65);
  border-inline-start: 2px solid rgba(242, 183, 5, .65);
}
.hero-panel::after {
  bottom: 10px;
  inset-inline-end: 10px;
  border-bottom: 2px solid rgba(242, 183, 5, .65);
  border-inline-end: 2px solid rgba(242, 183, 5, .65);
}

.hero-sun {
  position: absolute;
  top: 21%;
  left: 50%; /* physical: keeps the sun centered in both RTL and LTR */
  transform: translate(-50%, -50%);
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: var(--tab-gold-500);
  background: radial-gradient(circle, rgba(242, 183, 5, .3), rgba(242, 183, 5, .05) 70%);
  animation: sunPulse 6s ease-in-out infinite;
}
.hero-sun i { filter: drop-shadow(0 0 16px rgba(242, 183, 5, .7)); }
@keyframes sunPulse {
  0%, 100% { box-shadow: 0 0 55px rgba(242, 183, 5, .3); }
  50%      { box-shadow: 0 0 90px rgba(242, 183, 5, .45); }
}

/* dual-axis tracker schematic (pure CSS) */
.hero-rig {
  position: absolute;
  inset-inline: 0;
  bottom: 9%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rig-panel {
  width: clamp(120px, 52%, 200px);
  aspect-ratio: 8 / 5;
  border-radius: 4px;
  border: 1px solid rgba(143, 195, 242, .55);
  background:
    linear-gradient(rgba(143, 195, 242, .16) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(143, 195, 242, .16) 1px, transparent 1px) 0 0 / 25% 100%,
    linear-gradient(160deg, #1d4478, #0e2848);
  transform: rotate(-14deg);
  transform-origin: 50% 100%;
  animation: rigSway 7s ease-in-out infinite alternate;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .4);
  position: relative;
  z-index: 2;
}
@keyframes rigSway {
  from { transform: rotate(-16deg); }
  to   { transform: rotate(-11deg); }
}
.rig-pole {
  width: 10px;
  height: 54px;
  border-radius: 2px;
  background: linear-gradient(180deg, #22518c, #122c50);
  margin-top: -8px;
  position: relative;
  z-index: 1;
}
.rig-base {
  width: 128px;
  height: 6px;
  border-radius: 3px;
  background: #1e4478;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .45);
}

.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--tab-radius-sm);
  font-size: 1.5rem;
  color: var(--tab-sky-300);
  background: rgba(18, 48, 94, .85);
  border: 1px solid rgba(143, 195, 242, .35);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
  animation: heroFloat 5s ease-in-out infinite;
}
.hero-chip-1 { top: 13%; inset-inline-start: 11%; }
.hero-chip-2 { top: 15%; inset-inline-end: 11%; animation-delay: 1.2s; }
.hero-chip-3 { bottom: 12%; inset-inline-start: 14%; animation-delay: 2.4s; }
@keyframes heroFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}

/* --------------------------- Buttons --------------------------- */
.btn-gold, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .68rem 1.5rem;
  border-radius: var(--tab-radius-sm);
  font-weight: 700;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
/* machined corner cut — mirrors for RTL below */
.btn-gold {
  background: var(--tab-gold-500);
  color: var(--tab-navy-950);
  border: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
[dir="rtl"] .btn-gold {
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
}
.btn-gold:hover, .btn-gold:focus {
  background: var(--tab-gold-400);
  color: var(--tab-navy-950);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--tab-white);
  border: 1.5px solid rgba(255, 255, 255, .55);
  font-weight: 600;
}
.btn-ghost:hover, .btn-ghost:focus {
  border-color: var(--tab-gold-500);
  color: var(--tab-navy-950);
  background: var(--tab-gold-500);
  transform: translateY(-2px);
}
.btn-gold.btn-lg, .btn-ghost.btn-lg { padding: .8rem 1.7rem; }
/* --------------------------- Sections --------------------------- */
.section { padding: 84px 0; }
.section-gray {
  background:
    var(--tab-grid-light),
    var(--tab-steel-100);
  border-block: 1px solid var(--tab-steel-200);
}
.section-navy {
  position: relative;
  background:
    var(--tab-grid-dark),
    linear-gradient(180deg, var(--tab-navy-900), var(--tab-navy-800) 55%, var(--tab-navy-900));
  color: var(--tab-white);
  border-block: 1px solid rgba(255, 255, 255, .06);
}

.section-head { text-align: center; max-width: 780px; margin: 0 auto 2.8rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--tab-gold-600);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--tab-gold-500);
  display: inline-block;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; } /* Arabic script must not be letter-spaced */
.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  font-weight: 800;
  color: var(--tab-navy-900);
  margin: .5rem 0 .7rem;
}
.section-navy .section-title { color: var(--tab-white); }
.head-bar {
  display: block;
  width: 76px;
  height: 3px;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--tab-gold-500) 0 42px, var(--tab-sky-400) 42px);
}
.section-note { color: var(--tab-muted); margin: 1rem auto 0; max-width: 640px; font-size: .98rem; }
.section-navy .section-note { color: #b9c7da; }

.lead-text { font-size: 1.06rem; }
.muted-text { color: var(--tab-muted); }
.note-box {
  border-inline-start: 3px solid var(--tab-gold-500);
  background: rgba(242, 183, 5, .07);
  padding: .8rem 1rem;
  border-radius: var(--tab-radius-sm);
  font-size: .92rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  border-radius: var(--tab-radius-sm);
  background: var(--tab-steel-100);
  border: 1px solid var(--tab-steel-200);
  font-size: .9rem;
  color: var(--tab-navy-700);
  font-weight: 500;
}
.chip i { color: var(--tab-gold-600); }
.chip-gold { background: rgba(242, 183, 5, .12); border-color: rgba(242, 183, 5, .5); }

/* About visual panel (decorative, replaced by real imagery later) */
.about-visual {
  position: relative;
  min-height: 260px;
  border-radius: var(--tab-radius);
  border: 1px solid var(--tab-steel-200);
  background: var(--tab-grid-light), var(--tab-steel-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 108px;
  color: var(--tab-navy-700);
  overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--tab-gold-500), var(--tab-sky-400));
}
.about-gear {
  position: absolute;
  bottom: -22px;
  inset-inline-end: -18px;
  font-size: 96px;
  color: rgba(242, 183, 5, .5);
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* Real About photo: keeps the same frame (border, corner accent, radius)
   and fills it with a stable aspect ratio — cover crops fluidly and never
   stretches, so any image dimension keeps the layout intact. */
.about-photo-frame { min-height: 0; aspect-ratio: 4 / 3; margin: 0; }
.about-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* About: areas of expertise list */
.about-points-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--tab-navy-900);
  margin: 1.2rem 0 .3rem;
}
.about-points {
  list-style: none;
  margin: .4rem 0 1.1rem;
  padding: 0;
  display: grid;
  gap: .5rem;
}
.about-points li { display: flex; align-items: flex-start; gap: .55rem; }
.about-points i { color: var(--tab-gold-600); margin-top: .35rem; }

/* -------------------------- Activities -------------------------- */
.activities-grid {
  counter-reset: act;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
}
.act-card {
  counter-increment: act;
  position: relative;
  background: var(--tab-white);
  border: 1px solid var(--tab-steel-200);
  border-top: 3px solid var(--tab-steel-300);
  border-radius: var(--tab-radius);
  padding: 1.7rem 1.3rem 1.4rem;
  height: 100%;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.act-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--tab-shadow-2);
  border-top-color: var(--tab-gold-500);
}
/* Activities show more/less: cards 5..15 carry .act-extra and are hidden
   while the grid is collapsed. Hiding is JS-gated (html.js) so without JS
   every card stays visible, and the toggle itself is hidden without JS.
   Revealing is driven by the shared [data-reveal] .revealed state (added by
   the toggle handler), never by a keyframe: an animation/transition that
   starts at opacity:0 could leave the cards invisible, whereas .revealed is
   a deterministic opacity:1 that always applies. */
html.js .activities-grid.collapsed .act-extra { display: none; }
html:not(.js) .activities-more-wrap { display: none; }

.activities-more-wrap { text-align: center; margin-top: 1.5rem; }
.activities-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.3rem;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  color: var(--tab-navy-800);
  background: var(--tab-white);
  border: 1.5px solid var(--tab-steel-300);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.activities-toggle:hover,
.activities-toggle:focus-visible {
  border-color: var(--tab-gold-500);
  color: var(--tab-navy-950);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, .18);
}
.activities-toggle-chevron {
  font-size: .95rem;
  color: var(--tab-gold-600);
  transition: transform .25s ease; /* soft flip for the arrow */
}
.activities-toggle.expanded .activities-toggle-chevron { transform: rotate(180deg); }
@media (max-width: 575.98px) {
  .activities-toggle { width: auto; padding: .55rem 1.1rem; font-size: .9rem; }
}
/* technical index watermark 01…05 */
.act-card::after {
  content: counter(act, decimal-leading-zero);
  position: absolute;
  top: .7rem;
  inset-inline-end: .9rem;
  font-family: var(--tab-font-tech);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--tab-steel-300);
  transition: color .2s;
}
.act-card:hover::after { color: var(--tab-gold-600); }
.act-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: var(--tab-radius-sm);
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: var(--tab-gold-400);
  background: linear-gradient(160deg, var(--tab-navy-800), var(--tab-navy-600));
  box-shadow: inset 0 0 0 1px rgba(143, 195, 242, .18), 0 6px 14px rgba(7, 20, 38, .18);
  margin-bottom: .95rem;
}
.act-title { font-size: 1.05rem; font-weight: 800; color: var(--tab-navy-900); }
.act-desc { color: var(--tab-muted); font-size: .92rem; margin: 0; }

/* -------------------------- Products -------------------------- */
#productsGrid { counter-reset: prod; }
.product-card {
  counter-increment: prod;
  position: relative;
  background: var(--tab-white);
  border: 1px solid var(--tab-steel-200);
  border-radius: var(--tab-radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.product-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--tab-gold-500) 0 46px, var(--tab-sky-400) 46px 64px, transparent 64px);
}
.product-card:hover {
  box-shadow: var(--tab-shadow-2);
  transform: translateY(-5px);
  border-color: rgba(242, 183, 5, .55);
}
/* Product images: responsive container, never stretched, never forced
   into an unusual ratio — object-fit: contain keeps natural proportions. */
.product-media {
  position: relative;
  background: var(--tab-grid-light), #f6f9fc;
  border-bottom: 1px solid var(--tab-steel-200);
  padding: 1.6rem 1.4rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-media img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  transition: transform .35s ease;
}
.product-card:hover .product-media img { transform: scale(1.035); }

/* Clickable product photo + gallery thumbnails. The photo button wraps the
   img so the whole media area opens the lightbox; thumbnails keep a stable
   4:3 frame with object-fit: cover so mixed aspect ratios never shift the
   layout. Lightbox itself shows images fully via object-fit: contain. */
.product-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.product-photo img { pointer-events: none; }
.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .65rem 1.4rem .9rem;
  border-bottom: 1px solid var(--tab-steel-200);
  background: #f6f9fc;
}
.product-thumb {
  width: 76px;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--tab-steel-200);
  border-radius: var(--tab-radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--tab-white);
  transition: border-color .2s, box-shadow .2s;
}
.product-thumb:hover,
.product-thumb:focus-visible {
  border-color: rgba(242, 183, 5, .8);
  box-shadow: 0 0 0 2px rgba(242, 183, 5, .25);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* stable frame; full picture is shown in the lightbox */
  display: block;
}
@media (max-width: 575.98px) {
  .product-thumb { width: 64px; }
}
/* catalog index chip: P-01, P-02, … */
.product-media::after {
  content: 'P-' counter(prod, decimal-leading-zero);
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  font-family: var(--tab-font-tech);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: #33507a;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--tab-steel-200);
  border-radius: 4px;
  padding: .12rem .5rem;
}
.product-body {
  padding: 1.3rem 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.product-cat {
  display: inline-block;
  align-self: flex-start;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--tab-navy-950);
  background: var(--tab-gold-500);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
  padding: .22rem .65rem;
  margin-bottom: .55rem;
}
[dir="rtl"] .product-cat { letter-spacing: 0; }
.product-code {
  display: inline-block;
  font-family: var(--tab-font-tech);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--tab-navy-900);
  background: rgba(90, 169, 232, .1);
  border: 1px solid rgba(26, 66, 118, .25);
  border-radius: 4px;
  padding: .1rem .5rem;
  margin-inline-start: .4rem;
}
.spec-unit { color: var(--tab-muted); font-size: .82rem; font-weight: 500; }
.product-more { margin-top: .7rem; }
.product-more summary {
  cursor: pointer;
  font-size: .88rem;
  font-weight: 700;
  color: var(--tab-navy-700);
  padding: .35rem .6rem;
  border: 1px solid var(--tab-steel-200);
  border-radius: var(--tab-radius-sm);
  background: var(--tab-steel-100);
}
.product-more summary::before { content: '+  '; color: var(--tab-gold-600); }
.product-more[open] summary::before { content: '\2212  '; }
.product-more p { color: var(--tab-muted); font-size: .94rem; margin: .5rem 0 0; }

/* Per-product "show more specifications" (Phase 11).
   The collapsed card keeps only the photo, name, short description and the
   key features; the datasheet block (.product-extra) is revealed by the
   toggle that sits directly under those features, inside the same card.
   The extra block is a plain block inside the card body, so the card simply
   grows in height and the surrounding products follow the existing grid —
   nothing about the grid itself changes, and one product's state never
   touches another (each card owns its own button + block). */
.product-extra-wrap { margin-top: .9rem; }
.product-specs-toggle {
  appearance: none;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .5rem .8rem;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--tab-navy-700);
  background: var(--tab-white);
  border: 1px solid var(--tab-steel-200);
  border-radius: var(--tab-radius-sm);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.product-specs-toggle:hover { border-color: var(--tab-gold-500); color: var(--tab-gold-700); }
.product-specs-toggle:focus-visible { outline: 2px solid var(--tab-gold-500); outline-offset: 2px; }
.product-specs-toggle-chevron { transition: transform .22s ease; }
.product-specs-toggle.is-open .product-specs-toggle-chevron { transform: rotate(180deg); }

.product-extra { display: none; }
.product-extra.is-open {
  display: block;
  margin-top: 1rem;
  animation: productExtraIn .22s ease;
}
/* No fill-mode on purpose: if the animation is skipped (prefers-reduced-motion)
   the block falls back to its fully visible base state instead of sticking at
   the animation's first frame. */
@keyframes productExtraIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.products-empty {
  text-align: center;
  color: var(--tab-muted);
  padding: 3rem 0;
  border: 1px dashed var(--tab-steel-300);
  border-radius: var(--tab-radius);
  background: var(--tab-steel-100);
  font-size: 1rem;
}
.product-title { font-size: 1.14rem; font-weight: 800; color: var(--tab-navy-900); margin-bottom: .4rem; }
.product-short { color: var(--tab-muted); font-size: .95rem; }
.product-subhead {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--tab-gold-700);
  margin: 1.1rem 0 .45rem;
}
.product-subhead::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--tab-gold-500);
  display: inline-block;
}
[dir="rtl"] .product-subhead { letter-spacing: 0; }
/* technical datasheet table */
/* narrow screens: the datasheet scrolls inside the card instead of stretching it */
.spec-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table tbody tr:nth-child(odd) { background: rgba(18, 48, 94, .035); }
.spec-table th {
  width: 46%;
  font-weight: 500;
  color: var(--tab-muted);
  text-align: start;
  padding: .48rem .5rem .48rem 0;
  border-bottom: 1px solid var(--tab-steel-200);
  vertical-align: top;
}
[dir="rtl"] .spec-table th { padding: .48rem 0 .48rem .5rem; }
.spec-table td {
  text-align: end;
  padding: .48rem .25rem;
  border-bottom: 1px solid var(--tab-steel-200);
  vertical-align: top;
}
.spec-value {
  font-weight: 600;
  color: var(--tab-navy-900);
  font-variant-numeric: tabular-nums;
}
.spec-placeholder {
  color: var(--tab-gold-700);
  background: rgba(242, 183, 5, .12);
  border: 1px dashed rgba(242, 183, 5, .65);
  border-radius: 4px;
  padding: .05rem .5rem;
  font-weight: 500;
  font-size: .82rem;
}
/* optional datasheet note: renders directly under the spec table */
.spec-note {
  margin: .55rem 0 0;
  padding: .5rem .7rem;
  border-inline-start: 3px solid var(--tab-gold-500);
  background: var(--tab-steel-100);
  color: var(--tab-muted);
  font-size: .85rem;
  border-radius: 0 var(--tab-radius-sm) var(--tab-radius-sm) 0;
}
[dir="rtl"] .spec-note { border-radius: var(--tab-radius-sm) 0 0 var(--tab-radius-sm); }
.app-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.app-chip {
  font-size: .82rem;
  padding: .32rem .7rem;
  border-radius: var(--tab-radius-sm);
  background: rgba(26, 66, 118, .07);
  color: var(--tab-navy-700);
  border: 1px solid rgba(26, 66, 118, .2);
}
.app-chip i { color: var(--tab-gold-600); margin-inline-end: .15rem; }
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--tab-steel-300);
}
/* per-product inquiry is the conversion action: solid gold */
.product-inquiry {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.2rem;
  border-radius: var(--tab-radius-sm);
  border: none;
  background: var(--tab-gold-500);
  color: var(--tab-navy-950);
  font-family: inherit; /* it is a <button> now — inherit the site font */
  cursor: pointer;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: background-color .2s, transform .2s;
}
.product-inquiry:hover, .product-inquiry:focus {
  background: var(--tab-gold-400);
  color: var(--tab-navy-950);
  transform: translateY(-2px);
}
/* optional video button: secondary technical outline */
.product-actions .btn.watch-video {
  background: transparent;
  border: 1.5px solid rgba(26, 66, 118, .5);
  color: var(--tab-navy-700);
  clip-path: none;
  padding: .55rem 1.1rem;
  font-size: .92rem;
}
.product-actions .btn.watch-video:hover,
.product-actions .btn.watch-video:focus {
  background: transparent;
  border-color: var(--tab-gold-600);
  color: var(--tab-gold-700);
  transform: translateY(-2px);
}

/* ------------------------ Manufacturing ------------------------ */
/* main motto of the custom-manufacturing section */
.mfg-motto {
  text-align: center;
  color: var(--tab-white);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 900;
  max-width: 820px;
  margin: 0 auto 2.6rem;
  line-height: 1.5;
}
.mfg-motto span::before { content: '\00AB\00A0'; color: var(--tab-gold-400); }
.mfg-motto span::after  { content: '\00A0\00BB'; color: var(--tab-gold-400); }

.process-flow {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: .6rem;
  max-width: 1120px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
/* dashed production line behind the steps (wide screens only) */
@media (min-width: 1200px) {
  .process-flow::before {
    content: '';
    position: absolute;
    top: 44px;
    left: 4%;
    right: 4%;
    border-top: 1px dashed rgba(242, 183, 5, .4);
  }
}
.process-step {
  flex: 1 1 140px;
  max-width: 185px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--tab-radius);
  padding: 1.15rem .7rem;
  transition: border-color .2s, transform .2s, background-color .2s;
}
.process-step:hover {
  border-color: var(--tab-gold-500);
  background: rgba(242, 183, 5, .06);
  transform: translateY(-4px);
}
.step-num {
  width: 42px;
  height: 42px;
  border-radius: var(--tab-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tab-font-tech);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--tab-navy-950);
  background: linear-gradient(160deg, var(--tab-gold-400), var(--tab-gold-600));
  box-shadow: 0 6px 14px rgba(242, 183, 5, .25);
  margin-bottom: .65rem;
  position: relative;
  z-index: 1;
}
.step-title { font-weight: 700; color: var(--tab-white); font-size: .98rem; }
.step-desc { color: #b9c7da; font-size: .8rem; margin-top: .3rem; }
.step-sep { display: flex; align-items: center; color: var(--tab-gold-500); font-size: 1.15rem; }

/* framed CTA panel with blueprint corner ticks */
.mfg-cta {
  position: relative;
  max-width: 760px;
  margin: 2.8rem auto 0;
  padding: 2.2rem 1.5rem 1.9rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--tab-radius);
  background: rgba(7, 20, 38, .35);
}
.mfg-cta::before,
.mfg-cta::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.mfg-cta::before {
  top: 8px;
  inset-inline-start: 8px;
  border-top: 2px solid rgba(242, 183, 5, .6);
  border-inline-start: 2px solid rgba(242, 183, 5, .6);
}
.mfg-cta::after {
  bottom: 8px;
  inset-inline-end: 8px;
  border-bottom: 2px solid rgba(242, 183, 5, .6);
  border-inline-end: 2px solid rgba(242, 183, 5, .6);
}

/* Manufacturing: invitation line above CTAs */
.mfg-invite { color: var(--tab-gold-400); font-weight: 600; margin-bottom: 1.1rem; }

@media (max-width: 991.98px) {
  .process-flow {
    flex-direction: column;
    align-items: stretch;
    max-width: 430px;
    margin-inline: auto;
  }
  .process-step {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: .9rem;
    row-gap: .15rem;
    max-width: none;
    text-align: start;
  }
  .step-num { margin: 0; flex: 0 0 auto; }
  .step-title { flex: 1 1 calc(100% - 58px); }
  .step-desc { flex: 1 1 100%; padding-inline-start: calc(42px + .9rem); margin-top: 0; }
  .step-sep { justify-content: center; }
  .step-sep i { transform: rotate(90deg); }
  [dir="rtl"] .step-sep i { transform: rotate(-90deg); }
}

/* ------------------------ Placeholder tiles ------------------------ */
/* Shared industrial portfolio plate for Projects, Workshop and Gallery.
   Real photographs will later replace the icon + label inside the same
   markup, without any redesign of this section. */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1.3rem;
  max-width: 1060px;
  margin: 0 auto;
}
.place-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--tab-steel-300);
  border-radius: var(--tab-radius);
  background: var(--tab-grid-light), var(--tab-steel-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  color: #8494a8;
  text-align: center;
  padding: 1rem;
  transition: border-color .2s, color .2s, background-color .2s, transform .2s, box-shadow .2s;
}
/* blueprint corner brackets appear on hover */
.place-tile::before,
.place-tile::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.place-tile::before {
  top: 8px;
  inset-inline-start: 8px;
  border-top: 2px solid var(--tab-gold-500);
  border-inline-start: 2px solid var(--tab-gold-500);
}
.place-tile::after {
  bottom: 8px;
  inset-inline-end: 8px;
  border-bottom: 2px solid var(--tab-gold-500);
  border-inline-end: 2px solid var(--tab-gold-500);
}
.place-tile i { font-size: 2.1rem; transition: color .2s; }
.tile-label { font-size: .92rem; font-weight: 600; color: var(--tab-navy-800); }
.tile-caption { font-size: .8rem; }
.place-tile:hover {
  border-color: var(--tab-gold-500);
  color: var(--tab-gold-700);
  background: var(--tab-white);
  transform: translateY(-4px);
  box-shadow: var(--tab-shadow-2);
}
.place-tile:hover::before,
.place-tile:hover::after { opacity: 1; }
.place-tile:hover i { color: var(--tab-gold-600); }

/* Workshop lead line */
.workshop-lead { color: var(--tab-navy-700); font-weight: 600; margin-top: .4rem; }

/* ------------------------------ Team ------------------------------ */
.team-card {
  position: relative;
  background: var(--tab-white);
  border: 1px solid var(--tab-steel-200);
  border-radius: var(--tab-radius);
  padding: 1.9rem 1.2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--tab-gold-500);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tab-shadow-2);
  border-color: rgba(242, 183, 5, .5);
}
.avatar-circle {
  display: inline-flex;
  width: 84px;
  height: 84px;
  border-radius: var(--tab-radius);
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: var(--tab-sky-300);
  background: linear-gradient(160deg, var(--tab-navy-800), var(--tab-navy-600));
  box-shadow: inset 0 0 0 1px rgba(143, 195, 242, .2), 0 8px 18px rgba(7, 20, 38, .18);
  margin-bottom: .9rem;
}
.member-name { font-size: 1rem; font-weight: 800; color: var(--tab-navy-900); margin-bottom: .15rem; }
.member-role { font-size: .86rem; color: var(--tab-muted); margin: 0; }

/* ---------------------------- Why cards ---------------------------- */
/* Uniform grid: desktop = 3 top + 2 bottom (centered), ALL cards equal width.
   flex + justify-content:center removes the one-sided empty gap of the
   previous col-lg-3/col-lg-4 mix. */
.why-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.why-grid .why-card {
  flex: 0 0 100%;
  max-width: 100%;
  height: auto; /* equal height per row comes from flex stretch */
}
@media (min-width: 768px) {
  .why-grid .why-card {
    flex: 0 0 calc((100% - 3rem) / 3);
  }
}
.why-card {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .13);
  border-inline-start: 3px solid var(--tab-gold-500);
  border-radius: var(--tab-radius-sm);
  padding: 1.5rem 1.3rem;
  height: 100%;
  transition: transform .2s, border-color .2s, background-color .2s;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 183, 5, .55);
  background: rgba(242, 183, 5, .05);
}
.why-icon {
  display: inline-flex;
  width: 50px;
  height: 50px;
  border-radius: var(--tab-radius-sm);
  background: rgba(242, 183, 5, .14);
  color: var(--tab-gold-400);
  font-size: 1.35rem;
  align-items: center;
  justify-content: center;
  margin-bottom: .85rem;
}
.why-title { color: var(--tab-white); font-size: 1rem; font-weight: 700; }
.why-desc { color: #b9c7da; font-size: .88rem; margin: 0; }

/* ---------------------------- Contact ---------------------------- */
/* conversion banner: the primary message of the contact section */
.contact-motto {
  display: flex;
  align-items: center;
  gap: .9rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(160deg, var(--tab-navy-900), var(--tab-navy-700));
  color: var(--tab-white);
  border-inline-start: 4px solid var(--tab-gold-500);
  border-radius: var(--tab-radius-sm);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  box-shadow: var(--tab-shadow-1);
}
.contact-motto i { color: var(--tab-gold-400); font-size: 1.25em; }

.contact-info-card {
  background: var(--tab-white);
  border: 1px solid var(--tab-steel-200);
  border-top: 3px solid var(--tab-sky-400);
  border-radius: var(--tab-radius);
  padding: 1.4rem;
  height: 100%;
  box-shadow: var(--tab-shadow-1);
}
.info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: .85rem .4rem;
  border-bottom: 1px solid var(--tab-steel-200);
}
.info-row:last-child { border-bottom: none; }
.info-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: var(--tab-radius-sm);
  background: linear-gradient(160deg, var(--tab-navy-800), var(--tab-navy-600));
  color: var(--tab-sky-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.info-label { display: block; font-size: .82rem; color: var(--tab-muted); }
.info-value { font-weight: 600; color: var(--tab-navy-900); }
.info-value.is-pending { color: var(--tab-gold-700); font-weight: 500; }

.contact-form {
  background: var(--tab-white);
  border: 1px solid var(--tab-steel-200);
  border-top: 3px solid var(--tab-gold-500);
  border-radius: var(--tab-radius);
  padding: 1.6rem;
  height: 100%;
  box-shadow: var(--tab-shadow-1);
}
.contact-form-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--tab-navy-900);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.contact-form-title::before {
  content: '';
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--tab-gold-500);
  display: inline-block;
}
.contact-form .form-label { font-weight: 600; font-size: .9rem; color: var(--tab-navy-900); }
.contact-form .form-control,
.contact-form .form-select {
  border-radius: var(--tab-radius-sm);
  border-color: var(--tab-steel-300);
  padding: .6rem .85rem;
  font-size: .95rem;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--tab-sky-400);
  box-shadow: 0 0 0 .2rem rgba(90, 169, 232, .22);
}
.form-note { font-size: .84rem; color: var(--tab-muted); margin: .9rem 0; }
.form-alert {
  background: rgba(242, 183, 5, .14);
  border: 1px solid rgba(242, 183, 5, .5);
  color: #7a5800;
  border-radius: var(--tab-radius-sm);
}

/* ----------------------------- Footer ----------------------------- */
.site-footer {
  background: linear-gradient(180deg, var(--tab-navy-950), #050d1a);
  color: #aab8ca;
  padding: 64px 0 0;
  border-top: 3px solid var(--tab-gold-500);
}
.footer-brand { color: var(--tab-white); font-weight: 800; font-size: 1.05rem; }
.footer-about { font-size: .93rem; max-width: 340px; }
.footer-slogan { color: var(--tab-gold-400); font-weight: 700; font-size: .95rem; }
.footer-tagline { color: #8fa0b5; font-size: .85rem; margin-top: .5rem; }
.footer-title {
  color: var(--tab-white);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.footer-title::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--tab-gold-500);
  display: inline-block;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.footer-links a,
.footer-links span {
  color: #aab8ca;
  text-decoration: none;
  font-size: .92rem;
  transition: color .2s, padding .2s;
}
.footer-links a { display: inline-block; }
.footer-links a:hover, .footer-links a:focus {
  color: var(--tab-gold-400);
  padding-inline-start: 4px;
}
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
  font-size: .92rem;
}
.footer-contact i { color: var(--tab-gold-500); margin-inline-end: .5rem; }
.footer-bottom {
  margin-top: 2.6rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.1rem 0;
  text-align: center;
  font-size: .85rem;
  color: #8fa0b5;
}
.footer-year { font-family: var(--tab-font-tech); letter-spacing: .04em; }

/* -------------------------- Video modal -------------------------- */
.video-modal-content {
  background: linear-gradient(180deg, var(--tab-navy-900), var(--tab-navy-950));
  color: var(--tab-white);
  border: 1px solid rgba(255, 255, 255, .15);
  border-top: 3px solid var(--tab-gold-500);
  border-radius: var(--tab-radius);
}
.video-modal-content .modal-header { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.video-modal-content .modal-title { font-size: 1rem; font-weight: 700; }
#videoPlayer { background: #000; border-radius: var(--tab-radius-sm); min-height: 280px; }
.video-missing {
  margin-top: .8rem;
  padding: .7rem 1rem;
  border: 1px dashed rgba(242, 183, 5, .6);
  border-radius: var(--tab-radius-sm);
  color: var(--tab-gold-400);
  background: rgba(242, 183, 5, .08);
  font-size: .9rem;
}

/* --------------------------- Back to top --------------------------- */
.backtop {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  width: 46px;
  height: 46px;
  border-radius: var(--tab-radius-sm);
  background: var(--tab-navy-900);
  color: var(--tab-gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border: 1px solid rgba(242, 183, 5, .5);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s, background-color .2s, color .2s;
  z-index: 1040;
}
.backtop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.backtop:hover, .backtop:focus { background: var(--tab-gold-500); color: var(--tab-navy-950); }

/* Skip link (keyboard users) */
.skip-link {
  position: absolute;
  top: -52px;
  inset-inline-start: 12px;
  z-index: 2000;
  background: var(--tab-gold-500);
  color: var(--tab-navy-950);
  font-weight: 700;
  padding: .5rem .95rem;
  border-radius: 0 0 var(--tab-radius-sm) var(--tab-radius-sm);
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; color: var(--tab-navy-950); }

/* ------------------------ Reveal on scroll ------------------------ */
/* Applied only when JS is available (html.js), so content is never hidden
   if scripts fail to load. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
html.js [data-reveal].revealed { opacity: 1; transform: none; }
/* subtle stagger for grids and card rows */
html.js .activities-grid > [data-reveal]:nth-child(2),
html.js #productsGrid > [data-reveal]:nth-child(2),
html.js .tile-grid > [data-reveal]:nth-child(2),
html.js .section .row > [data-reveal]:nth-child(2) { transition-delay: .07s; }
html.js .activities-grid > [data-reveal]:nth-child(3),
html.js #productsGrid > [data-reveal]:nth-child(3),
html.js .tile-grid > [data-reveal]:nth-child(3),
html.js .section .row > [data-reveal]:nth-child(3) { transition-delay: .14s; }
html.js .activities-grid > [data-reveal]:nth-child(4),
html.js .tile-grid > [data-reveal]:nth-child(4),
html.js .section .row > [data-reveal]:nth-child(4) { transition-delay: .21s; }
html.js .activities-grid > [data-reveal]:nth-child(5),
html.js .tile-grid > [data-reveal]:nth-child(5) { transition-delay: .28s; }
html.js .tile-grid > [data-reveal]:nth-child(6) { transition-delay: .35s; }
html.js .process-flow > li:nth-child(3),
html.js .process-flow > li:nth-child(4) { transition-delay: .07s; }
html.js .process-flow > li:nth-child(5),
html.js .process-flow > li:nth-child(6) { transition-delay: .14s; }
html.js .process-flow > li:nth-child(7),
html.js .process-flow > li:nth-child(8) { transition-delay: .21s; }
html.js .process-flow > li:nth-child(9) { transition-delay: .28s; }
html.js .process-flow > li:nth-child(10) { transition-delay: .35s; }
html.js .process-flow > li:nth-child(11) { transition-delay: .42s; }
html.js .process-flow > li:nth-child(12) { transition-delay: .49s; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
 * Phase 6 — projects, workshop, gallery and image viewer.
 * Keeps the Phase 3 design language: machined cards, technical chips,
 * blueprint grids and restrained hover motion.
 * object-fit: cover is used ONLY in these uniform gallery frames (the crop is
 * fluid and follows the frame, never a forced pixel crop); product images
 * keep object-fit: contain so they are never cropped.
 * ========================================================================== */

/* ------------------------- Project card ------------------------- */
.proj-card {
  position: relative;
  background: var(--tab-white);
  border: 1px solid var(--tab-steel-200);
  border-radius: var(--tab-radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.proj-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--tab-gold-500) 0 46px, var(--tab-sky-400) 46px 64px, transparent 64px);
}
.proj-card:hover {
  box-shadow: var(--tab-shadow-2);
  transform: translateY(-5px);
  border-color: rgba(242, 183, 5, .55);
}
.proj-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--tab-grid-light), #f6f9fc;
  border-bottom: 1px solid var(--tab-steel-200);
  overflow: hidden;
}
.proj-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.proj-body { padding: 1.1rem 1.2rem 1.05rem; }
.proj-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.proj-title { font-size: 1.08rem; font-weight: 800; color: var(--tab-navy-900); }
.proj-short { color: var(--tab-muted); font-size: .92rem; margin: .35rem 0 0; }
/* same details disclosure used by products (see .product-more) */
.proj-more { margin-top: .6rem; }
.proj-more summary {
  cursor: pointer;
  font-size: .88rem;
  font-weight: 700;
  color: var(--tab-navy-700);
  padding: .35rem .6rem;
  border: 1px solid var(--tab-steel-200);
  border-radius: var(--tab-radius-sm);
  background: var(--tab-steel-100);
}
.proj-more summary::before { content: '+  '; color: var(--tab-gold-600); }
.proj-more[open] summary::before { content: '\2212  '; }
.proj-more p { color: var(--tab-muted); font-size: .94rem; margin: .5rem 0 0; }

/* --------------------- Workshop image tiles --------------------- */
.ws-item {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--tab-steel-300);
  border-radius: var(--tab-radius);
  background: var(--tab-grid-light), var(--tab-steel-100);
  overflow: hidden;
  margin: 0;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ws-media { position: absolute; inset: 0; overflow: hidden; }
.ws-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.ws-item:hover .ws-media img { transform: scale(1.04); }
.ws-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .32rem .7rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--tab-navy-900);
  background: linear-gradient(180deg, transparent, rgba(7, 20, 38, .72));
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-cap i { color: var(--tab-gold-500); font-size: .9em; }

/* ------------------------- Gallery items ------------------------- */
.gallery-item {
  appearance: none;
  font-family: inherit;
  text-align: start;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--tab-steel-300);
  border-radius: var(--tab-radius);
  background: var(--tab-grid-light), var(--tab-steel-100);
  padding: 0;
  overflow: hidden;
  color: inherit;
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.gallery-item:hover {
  border-color: var(--tab-gold-500);
  transform: translateY(-3px);
  box-shadow: var(--tab-shadow-2);
}
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Gallery video card: only the PNG thumbnail renders; the MP4 is attached
   exclusively inside the shared video modal on click (zero pre-click load).
   Badge matches the gallery's gold-on-navy design language. */
.video-play-badge {
  position: absolute;
  top: 50%;
  left: 50%; /* physical: stays centered in RTL and LTR */
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 20, 38, .65);
  border: 2px solid var(--tab-gold-500);
  color: var(--tab-gold-400);
  font-size: 2rem;
  line-height: 1;
  pointer-events: none; /* clicks pass through to the card button */
  z-index: 2;
  transition: background-color .2s, color .2s;
}
.gallery-video:hover .video-play-badge,
.gallery-video:focus-visible .video-play-badge {
  background: var(--tab-gold-500);
  color: var(--tab-navy-950);
}
@media (max-width: 575.98px) {
  .video-play-badge { width: 46px; height: 46px; font-size: 1.6rem; }
}
.gallery-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: .3rem .7rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--tab-white);
  background: linear-gradient(180deg, transparent, rgba(7, 20, 38, .78));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------- Image viewer modal ------------------------- */
.image-viewer-content {
  position: relative; /* anchor for the fixed corner close button */
  background: linear-gradient(180deg, var(--tab-navy-900), var(--tab-navy-950));
  color: var(--tab-white);
  border: 1px solid rgba(255, 255, 255, .15);
  border-top: 3px solid var(--tab-gold-500);
  border-radius: var(--tab-radius);
  overflow: hidden;
}
.image-viewer-content .modal-header { border-bottom: 1px solid rgba(255, 255, 255, .12); padding-inline-end: 3.6rem; }
.image-viewer-content .modal-title { font-size: 1rem; font-weight: 700; }
/* zoom control group (+ / level / reset / −) in the header */
.image-viewer-actions { display: flex; align-items: center; gap: .4rem; }
.img-zoom {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--tab-radius-sm);
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .35);
  color: var(--tab-white);
  font-size: 1.05rem;
  line-height: 1;
  transition: background-color .2s, border-color .2s, color .2s;
}
.img-zoom:hover, .img-zoom:focus { background: rgba(242, 183, 5, .2); border-color: var(--tab-gold-500); color: var(--tab-gold-400); }
.img-zoom-level {
  min-width: 3.6em;
  text-align: center;
  font-family: var(--tab-font-tech);
  font-size: .78rem;
  color: #b9c7da;
  font-variant-numeric: tabular-nums;
}
/* Close button: fixed top corner of the lightbox, clearly visible on the
   dark background, minimal modern look, ≥44px touch target in all sizes. */
.viewer-close {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  z-index: 5; /* stays above the image and nav overlays */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 20, 38, .65);
  color: var(--tab-white);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.viewer-close:hover, .viewer-close:focus {
  background: var(--tab-gold-500);
  color: var(--tab-navy-950);
  transform: rotate(90deg);
}
/* image stage: the image + overlay navigation buttons + touch gestures */
.image-stage {
  position: relative;
  touch-action: none; /* all gestures (swipe / pinch / pan) handled in JS */
  user-select: none;
  -webkit-user-select: none;
}
/* Prev/Next: semi-transparent, overlaying the two sides of the image
   (physically left = previous, right = next — identical in RTL and LTR). */
.img-nav {
  appearance: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(7, 20, 38, .45);
  border: 1.5px solid rgba(255, 255, 255, .4);
  color: var(--tab-white);
  font-size: 1.25rem;
  line-height: 1;
  z-index: 4;
  backdrop-filter: blur(2px);
  transition: background-color .2s, border-color .2s, color .2s;
}
.img-nav:hover, .img-nav:focus {
  background: rgba(242, 183, 5, .85);
  border-color: var(--tab-gold-500);
  color: var(--tab-navy-950);
}
.img-nav-prev { left: 10px; }
.img-nav-next { right: 10px; }
.image-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 20, 38, .55);
  min-height: 320px;
  overflow: hidden; /* zoomed image is clipped to the stage, never overflows */
}
/* the viewer never stretches an image (object-fit: contain); the transform
   (translate + scale) is driven from main.js for zoom / pan */
.image-frame img {
  max-width: 100%;
  max-height: 62vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--tab-radius-sm);
  transform-origin: center center;
  will-change: transform;
  cursor: default; /* no zoom-in magnifier on hover — zoom stays via
                      buttons / double-click / touch gestures */
  -webkit-user-drag: none;
}
.image-frame img.zoomed { cursor: default; }
.image-frame img.panning { cursor: default; }
.image-viewer-caption {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  padding: .7rem 0 .4rem;
  color: #b9c7da;
  font-size: .9rem;
}
.image-counter {
  font-family: var(--tab-font-tech);
  font-variant-numeric: tabular-nums;
  color: var(--tab-gold-400);
  font-size: .8rem;
}


/* ==========================================================================
 * Final content phase — mission/vision, member-exp, capability strips,
 * clickable tel: links and footer registration list.
 * ========================================================================== */

/* About — mission & vision cards */
.mv-item {
  background: var(--tab-steel-100);
  border: 1px solid var(--tab-steel-200);
  border-radius: var(--tab-radius-sm);
  padding: 1rem 1.1rem;
  height: 100%;
}
.mv-title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--tab-navy-800);
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.mv-title i { color: var(--tab-gold-600); }
.mv-text {
  font-size: .92rem;
  color: var(--tab-muted);
  margin: 0;
  line-height: 1.9;
}

/* Team — expertise / experience line */
.member-exp {
  font-size: .78rem;
  color: var(--tab-muted);
  margin: .45rem 0 0;
  line-height: 1.8;
}

/* Chips on dark sections (hero / about) — the legacy .caps-strip capability
   strips were removed on purpose, but .chip itself is still used site-wide. */
.section-navy .chip {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
  color: var(--tab-steel-100);
}
.section-navy .chip i { color: var(--tab-gold-400); }

/* Clickable tel: links */
a.info-value { color: inherit; text-decoration: none; }
a.info-value:hover { color: var(--tab-gold-700); }
.footer-contact a {
  color: var(--tab-sky-300);
  text-decoration: none;
  font-weight: 600;
}
.footer-contact a:hover { color: var(--tab-gold-400); }

/* Footer — registration information list */
.footer-reg {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--tab-steel-300);
  font-size: .9rem;
}
.footer-reg li { display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .5rem; }
.footer-reg i { color: var(--tab-gold-500); margin-top: .25rem; }

@media (max-width: 575.98px) {
  .mv-text { font-size: .88rem; }
  .member-exp { font-size: .74rem; }
}
@media (max-width: 575.98px) {
  .proj-body { padding: .95rem 1rem .9rem; }
  .image-frame { min-height: 240px; }
  .image-frame img { max-height: 50vh; }
  .img-nav { width: 44px; height: 44px; }
  /* keep the zoom group compact on small screens */
  .img-zoom { width: 40px; height: 40px; font-size: .95rem; }
  .img-zoom-level { display: none; }
}

/* ==========================================================================
 * Phase 7 — technical hardening (no visual redesign).
 * Comfortable touch targets, mobile nav spacing and larger modal close
 * buttons so every interactive element stays usable on small screens.
 * ========================================================================== */
@media (max-width: 991.98px) {
  #mainNav .nav-link { padding: .75rem 1rem; }
}
.lang-dropdown .dropdown-item { padding-top: .55rem; padding-bottom: .55rem; }
/* Bootstrap renders the close glyph at 1em — scale it so the hit area is
   comfortably tappable on touch screens (glyph and padding scale together) */
#videoModal .btn-close,
#imageModal .btn-close { font-size: 1.8rem; }

/* --------------------------- Small screens --------------------------- */
@media (max-width: 991.98px) {
  .hero-rig { bottom: 11%; }
  .mfg-cta { padding: 1.8rem 1.2rem 1.5rem; }
}
@media (max-width: 575.98px) {
  .section { padding: 62px 0; }
  .hero { padding: 64px 0 84px; }
  .hero-panel { min-height: 250px; }
  .hero-sun {
    width: 76px;
    height: 76px;
    font-size: 40px;
    top: 22%;
  }
  .hero-rig { bottom: 12%; }
  .rig-panel { width: 46%; }
  .rig-base { width: 96px; }
  .hero-chip { width: 44px; height: 44px; font-size: 1.2rem; }
  .contact-motto {
    flex-direction: column;
    text-align: center;
    gap: .4rem;
    width: 100%;
    padding: 1rem 1rem;
  }
  .contact-motto span { font-size: 1.02rem; }
  .mfg-motto { margin-bottom: 2rem; }
  .product-media img { max-height: 220px; }
  .avatar-circle { width: 66px; height: 66px; font-size: 1.7rem; }
  .tile-grid { gap: 1rem; }
}

/* ==========================================================================
 * Phase 3 — end of visual redesign
 * ========================================================================== */













/* Marquee strip for target customers (full-width, animated) */
.marquee-strip {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to left, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: .5rem;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* RTL: scroll in the opposite direction */
[dir="rtl"] .marquee-track {
  animation-name: marquee-scroll-rtl;
}
@keyframes marquee-scroll-rtl {
  0%   { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
}

/* Ensure chip text stays intact on narrow screens inside marquee */
.marquee-track .chip { white-space: nowrap; flex-shrink: 0; }


/* ------------------ Product inquiry modal (Formspree) ------------------ */
/* Same navy/gold industrial language as the video + image modals. */
.inquiry-modal-content {
  background: linear-gradient(180deg, var(--tab-navy-900), var(--tab-navy-950));
  color: var(--tab-white);
  border: 1px solid rgba(255, 255, 255, .15);
  border-top: 3px solid var(--tab-gold-500);
  border-radius: var(--tab-radius);
}
.inquiry-modal-content .modal-header { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.inquiry-modal-content .modal-title { font-size: 1rem; font-weight: 700; }
.inquiry-modal-content .modal-footer { border-top: 1px solid rgba(255, 255, 255, .12); }

.inquiry-lead { color: #c3d0e2; font-size: .95rem; margin-bottom: .9rem; }

/* chip showing which product is being inquired about (dynamic) */
.inquiry-product {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .85rem;
  margin-bottom: 1.1rem;
  background: rgba(242, 183, 5, .12);
  border: 1px solid rgba(242, 183, 5, .45);
  border-radius: var(--tab-radius-sm);
  color: var(--tab-gold-400);
  font-weight: 700;
  font-size: .92rem;
}
.inquiry-product i { flex-shrink: 0; }

/* phone input on the navy panel */
.inquiry-form .form-label {
  color: var(--tab-steel-100);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
}
.inquiry-form .form-control {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .25);
  color: var(--tab-white);
  border-radius: var(--tab-radius-sm);
  padding: .6rem .9rem;
  letter-spacing: .05em;
}
.inquiry-form .form-control::placeholder { color: rgba(255, 255, 255, .45); }
.inquiry-form .form-control:focus {
  background: rgba(255, 255, 255, .09);
  border-color: var(--tab-gold-500);
  color: var(--tab-white);
  box-shadow: 0 0 0 .2rem rgba(242, 183, 5, .22);
}
.inquiry-form .form-control.is-invalid {
  border-color: #ff8f8f;
  background-image: none; /* drop the default red X — border is enough on navy */
}
.inquiry-form .invalid-feedback { color: #ffb4b4; font-size: .84rem; }

/* small legal note under the phone field */
.inquiry-legal {
  color: #8fa0b5;
  font-size: .78rem;
  line-height: 1.8;
  margin: .8rem 0 0;
}

/* error alert (success reuses the existing gold .form-alert) */
.inquiry-error {
  background: rgba(220, 53, 69, .16);
  border: 1px solid rgba(220, 53, 69, .5);
  color: #ffc9c9;
  border-radius: var(--tab-radius-sm);
  font-size: .9rem;
}
#inquirySuccess { font-size: .9rem; }

/* submit button: spinner sits inline with the label */
#inquirySubmit .inquiry-spinner { margin-inline-end: .45rem; }
#inquirySubmit:disabled { opacity: .75; }