/* =====================================================================
   SHAHAB GOSTAR — Industrial Corporate Minimalism
   Design System / Main Stylesheet
   ---------------------------------------------------------------------
   All visual parameters are centralized as CSS custom properties (tokens)
   so the final branding can be swapped without touching component code.
   Replace the provisional palette below when official brand colors arrive.
   ===================================================================== */

:root {
  /* ---- Color tokens (provisional, centrally configurable) ---- */
  --c-bg: #ffffff;
  --c-surface: #f5f6f7;
  --c-surface-2: #eef0f2;
  --c-ink: #171d24;
  --c-ink-2: #606871;
  --c-ink-3: #8a929b;
  --c-navy: #10243b;
  --c-navy-2: #1c3450;
  --c-accent: #c8102e;
  --c-accent-dark: #a50d26;
  --c-border: #e5e7eb;
  --c-border-strong: #d4d8dd;
  --c-success: #1f7a4d;
  --c-focus: #2563eb;

  /* ---- Typography ---- */
  --font-sans: "Vazirmatn", "IRANSans", "Tahoma", "Segoe UI", system-ui, sans-serif;
  --fs-300: 0.8125rem;   /* 13 */
  --fs-400: 0.9375rem;   /* 15 */
  --fs-500: 1.0625rem;   /* 17 */
  --fs-600: 1.25rem;     /* 20 */
  --fs-700: 1.5rem;      /* 24 */
  --fs-800: 2rem;        /* 32 */
  --fs-900: 2.75rem;     /* 44 */
  --fs-1000: 3.5rem;     /* 56 */
  --fs-hero: clamp(2rem, 5vw, 4rem);

  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-normal: 1.7;

  /* ---- Layout ---- */
  --header-h: 76px;
  --container: 1240px;
  --container-narrow: 920px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --radius-lg: 8px;

  /* ---- Elevation (restrained) ---- */
  --shadow-1: 0 1px 2px rgba(16, 29, 43, 0.04), 0 1px 3px rgba(16, 29, 43, 0.06);
  --shadow-2: 0 4px 14px rgba(16, 29, 43, 0.07);
  --shadow-3: 0 12px 32px rgba(16, 29, 43, 0.10);

  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================================
   FONTS — Vazirmatn (SIL OFL), bundled locally.
   Provisional fallback for IRANSans. When the licensed IRANSans files are
   supplied, add their @font-face block ABOVE this one and list "IRANSans"
   first in --font-sans below.
   ===================================================================== */
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

/* =====================================================================
   RESET / BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  line-height: var(--lh-normal);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  direction: rtl;
  overflow-x: hidden;
}

img, picture, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* =====================================================================
   LAYOUT HELPERS
   ===================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--surface { background: var(--c-surface); }
.section--navy { background: var(--c-navy); color: #fff; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -200px;
  background: var(--c-navy); color: #fff; padding: .75rem 1.25rem;
  border-radius: var(--radius); z-index: 200; transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

/* =====================================================================
   TYPOGRAPHY
   ===================================================================== */
h1, h2, h3, h4, h5 { line-height: var(--lh-tight); font-weight: 800; letter-spacing: -0.01em; }
.h-display { font-size: var(--fs-hero); font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; }
.h1 { font-size: var(--fs-900); }
.h2 { font-size: var(--fs-800); }
.h3 { font-size: var(--fs-700); }
.h4 { font-size: var(--fs-600); }
.lead { font-size: var(--fs-500); color: var(--c-ink-2); line-height: var(--lh-snug); }
.muted { color: var(--c-ink-2); }
.tiny { font-size: var(--fs-300); }
.latin { font-feature-settings: "tnum"; direction: ltr; unicode-bidi: isolate; display: inline-block; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-300); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-accent);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--c-accent); display: inline-block; }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: .9rem; }
.section-head h2 { margin-bottom: .75rem; }

.divider { height: 1px; background: var(--c-border); border: 0; }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.5rem; border-radius: var(--radius);
  font-weight: 700; font-size: var(--fs-400); line-height: 1;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  border: 1px solid transparent; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--c-navy); color: #fff; }
.btn-primary:hover { background: #0b1a2c; transform: translateY(-1px); }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-accent-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--c-border-strong); color: var(--c-ink); background: #fff; }
.btn-outline:hover { border-color: var(--c-navy); color: var(--c-navy); }
.btn-ghost { color: var(--c-navy); padding-inline: .5rem; }
.btn-ghost:hover { color: var(--c-accent); }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.9rem; font-size: var(--fs-500); }

/* arrow icon used in links */
.arrow-link {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--c-navy);
  transition: gap var(--transition), color var(--transition);
}
.arrow-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.arrow-link:hover { color: var(--c-accent); gap: .65rem; }
[dir="rtl"] .arrow-link:hover svg { transform: translateX(-3px); }

/* =====================================================================
   HEADER / NAVIGATION
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand-mark {
  width: 40px; height: 40px; flex: none; border-radius: var(--radius);
  background: var(--c-navy); color: #fff; display: grid; place-items: center;
  font-weight: 900; font-size: 1.1rem; letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; color: var(--c-ink); }
.brand-text span { font-size: .68rem; letter-spacing: .14em; color: var(--c-ink-3); text-transform: uppercase; }

.main-nav { margin-inline-start: auto; display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: .1rem; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .65rem .85rem; border-radius: var(--radius);
  font-weight: 600; font-size: var(--fs-400); color: var(--c-ink);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-item.is-open > .nav-link { background: var(--c-surface); color: var(--c-navy); }
.nav-link .caret { width: 14px; height: 14px; transition: transform var(--transition); }
.nav-item.is-open .caret { transform: rotate(180deg); }

/* Mega menu */
.mega {
  position: absolute; inset-inline-start: 0; top: calc(100% + 8px);
  width: min(680px, 92vw); background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-3);
  padding: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--transition);
  z-index: 110;
}
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-col h4 { font-size: var(--fs-300); color: var(--c-ink-3); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .85rem; }
.mega-link { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .7rem; border-radius: var(--radius); transition: background var(--transition); }
.mega-link:hover { background: var(--c-surface); }
.mega-link strong { font-weight: 700; color: var(--c-ink); font-size: var(--fs-400); }
.mega-link span { font-size: var(--fs-300); color: var(--c-ink-2); }

.header-actions { display: flex; align-items: center; gap: .6rem; flex: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: var(--radius); display: grid; place-items: center;
  color: var(--c-ink); border: 1px solid transparent; transition: background var(--transition), border-color var(--transition);
}
.icon-btn:hover { background: var(--c-surface); border-color: var(--c-border); }
.icon-btn svg { width: 20px; height: 20px; }
.header-cta { display: inline-flex; }

/* Search drawer */
.search-drawer {
  position: absolute; inset-inline: 0; top: 100%; background: #fff;
  border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow-2);
  padding: 1.25rem 0; display: none;
}
.search-drawer.is-open { display: block; }
.search-drawer form { display: flex; gap: .75rem; align-items: center; }
.search-field {
  flex: 1; display: flex; align-items: center; gap: .6rem; border: 1px solid var(--c-border-strong);
  border-radius: var(--radius); padding: .7rem 1rem; background: var(--c-surface);
}
.search-field:focus-within { border-color: var(--c-navy); background: #fff; }
.search-field svg { width: 20px; height: 20px; color: var(--c-ink-3); flex: none; }
.search-field input { border: none; background: none; width: 100%; outline: none; font-size: var(--fs-500); }

/* Mobile menu */
.nav-toggle { display: none; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: #fff;
  transform: translateX(100%); transition: transform var(--transition);
  display: flex; flex-direction: column; overflow-y: auto; padding: 1.25rem;
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.mobile-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); }
.mobile-close:hover { background: var(--c-surface); }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav details { border-bottom: 1px solid var(--c-border); }
.mobile-nav summary {
  list-style: none; cursor: pointer; padding: 1rem .25rem; font-weight: 700; font-size: var(--fs-500);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary .caret { width: 18px; height: 18px; transition: transform var(--transition); }
.mobile-nav details[open] summary .caret { transform: rotate(180deg); }
.mobile-sub { padding: 0 .25rem 1rem; display: flex; flex-direction: column; gap: .25rem; }
.mobile-sub a { padding: .6rem .75rem; border-radius: var(--radius); color: var(--c-ink-2); font-weight: 600; }
.mobile-sub a:hover { background: var(--c-surface); color: var(--c-navy); }
.mobile-actions { margin-top: auto; padding-top: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }

/* =====================================================================
   HERO CAROUSEL
   ===================================================================== */
.hero {
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: min(520px, calc(100svh - var(--header-h)));
  overflow: hidden;
  background: var(--c-navy);
  touch-action: pan-y;
}
.hero-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 800ms var(--ease);
  display: flex; align-items: flex-end;
}
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide .hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.06); transition: transform 7s linear;
}
.hero-slide.is-active .hero-bg { transform: scale(1); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,16,26,0.82) 0%, rgba(8,16,26,0.55) 45%, rgba(8,16,26,0.15) 100%);
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,16,26,0.6) 0%, rgba(8,16,26,0) 40%);
}
.hero-content {
  position: relative; z-index: 3; color: #fff; width: 100%;
  padding-block: clamp(3rem, 8vh, 6rem); padding-bottom: clamp(4rem, 10vh, 7rem);
}
.hero-content .eyebrow { color: #ff4d63; }
.hero-content .eyebrow::before { background: #ff4d63; }
.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.1rem;
  font-size: var(--fs-300); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #cfe0f2;
}
.hero-title { font-size: var(--fs-hero); font-weight: 900; line-height: 1.1; max-width: 18ch; margin-bottom: 1.1rem; text-wrap: balance; }
.hero-sub { font-size: var(--fs-500); color: #e4ebf3; max-width: 52ch; margin-bottom: 1.75rem; line-height: var(--lh-snug); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .btn-accent { background: var(--c-accent); }
.hero .btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; background: rgba(255,255,255,0.04); }
.hero .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.12); color: #fff; }

/* Controls */
.hero-controls { position: absolute; z-index: 4; bottom: clamp(1.5rem, 4vh, 2.5rem); inset-inline-start: var(--gutter); display: flex; align-items: center; gap: 1rem; }
.hero-dots { display: flex; gap: .5rem; }
.hero-dot {
  width: 34px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.35);
  transition: background var(--transition); position: relative; overflow: hidden;
}
.hero-dot.is-active { background: rgba(255,255,255,0.5); }
.hero-dot.is-active::after {
  content: ""; position: absolute; inset: 0; background: #fff; transform-origin: right;
  animation: hero-progress var(--hero-int, 6s) linear forwards;
}
.hero.is-paused .hero-dot.is-active::after { animation-play-state: paused; }
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px); transition: background var(--transition);
}
.hero-btn:hover { background: rgba(255,255,255,0.24); }
.hero-btn svg { width: 20px; height: 20px; }
.hero-pause {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.25);
}
.hero-pause svg { width: 18px; height: 18px; }

.scroll-indicator {
  position: absolute; z-index: 4; bottom: 1.25rem; inset-inline-end: var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: .4rem; color: rgba(255,255,255,0.8);
  font-size: var(--fs-300); letter-spacing: .1em;
}
.scroll-indicator .mouse { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,0.6); border-radius: 12px; position: relative; }
.scroll-indicator .mouse::after { content: ""; position: absolute; top: 6px; inset-inline-start: 50%; transform: translateX(50%); width: 3px; height: 7px; background: #fff; border-radius: 2px; animation: scroll-bob 1.6s var(--ease) infinite; }
@keyframes scroll-bob { 0%,100% { transform: translate(50%,0); opacity: 1; } 50% { transform: translate(50%,10px); opacity: .3; } }

/* =====================================================================
   CARDS / GRIDS
   ===================================================================== */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Division card */
.division {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.division:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.division-media { aspect-ratio: 16/11; overflow: hidden; background: var(--c-surface); }
.division-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.division:hover .division-media img { transform: scale(1.04); }
.division-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.division-num { font-size: var(--fs-300); font-weight: 800; color: var(--c-accent); letter-spacing: .1em; }
.division-body h3 { font-size: var(--fs-600); }
.division-body p { color: var(--c-ink-2); font-size: var(--fs-400); flex: 1; }
.division-body .arrow-link { margin-top: .4rem; }

/* Feature card (services/industries) */
.feature {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: 1.75rem; display: flex; flex-direction: column; gap: .9rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.feature:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius); background: var(--c-surface);
  color: var(--c-navy); display: grid; place-items: center; flex: none;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: var(--fs-500); }
.feature p { color: var(--c-ink-2); font-size: var(--fs-400); }
.feature ul { display: flex; flex-direction: column; gap: .4rem; margin-top: .25rem; }
.feature li { display: flex; gap: .5rem; align-items: flex-start; font-size: var(--fs-400); color: var(--c-ink-2); }
.feature li svg { width: 18px; height: 18px; color: var(--c-success); flex: none; margin-top: 2px; }

/* =====================================================================
   PRODUCT CAROUSEL
   ===================================================================== */
.product-carousel { position: relative; /* --visible owns the card width
     formula inside the carousel; responsive defaults keep pre-JS, no-JS
     and post-resize layouts correct (JS only reads this value). */
  --visible: 4; }
@media (max-width: 1024px) { .product-carousel { --visible: 2; } }
@media (max-width: 600px) { .product-carousel { --visible: 1; } }
.product-viewport { overflow: hidden; }
.product-track { display: flex; gap: 1.25rem; transition: transform 600ms var(--ease); will-change: transform; }
.product-card {
  flex: 0 0 auto;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
/* Width formula only applies inside the carousel (where --visible is
   defined); grid contexts keep width:auto and stretch to their cell. */
.product-carousel .product-card {
  width: calc((100% - (var(--visible, 4) - 1) * 1.25rem) / var(--visible, 4));
}
.product-card:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.product-media { aspect-ratio: 4/3; background: var(--c-surface); display: grid; place-items: center; padding: 1.25rem; position: relative; }
.product-media img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.product-cat { position: absolute; top: .75rem; inset-inline-start: .75rem; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink-3); background: #fff; border: 1px solid var(--c-border); padding: .25rem .55rem; border-radius: 100px; }
.product-body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-body h3 { font-size: var(--fs-500); line-height: 1.3; }
.product-body .product-code { font-size: var(--fs-300); color: var(--c-ink-3); }
.product-body p { color: var(--c-ink-2); font-size: var(--fs-400); flex: 1; }
.product-actions { display: flex; gap: .5rem; margin-top: .5rem; }
.product-actions .btn { flex: 1; padding: .6rem .75rem; font-size: var(--fs-300); }

.carousel-controls { display: flex; align-items: center; gap: .75rem; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--c-border-strong);
  background: #fff; color: var(--c-ink); display: grid; place-items: center; transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.carousel-btn:hover { border-color: var(--c-navy); color: var(--c-navy); }
.carousel-btn:disabled { opacity: .35; cursor: not-allowed; }
.carousel-btn svg { width: 20px; height: 20px; }

/* =====================================================================
   CATEGORY GRID
   ===================================================================== */
.cat-card {
  position: relative; display: flex; flex-direction: column; gap: .75rem;
  padding: 1.75rem; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  background: #fff; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  min-height: 180px;
}
.cat-card:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.cat-card .cat-icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--c-navy); color: #fff; display: grid; place-items: center; }
.cat-card .cat-icon svg { width: 24px; height: 24px; }
.cat-card h3 { font-size: var(--fs-500); }
.cat-card p { color: var(--c-ink-2); font-size: var(--fs-400); flex: 1; }
.cat-card .count { font-size: var(--fs-300); color: var(--c-ink-3); }

/* =====================================================================
   STATS / ABOUT
   ===================================================================== */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--c-surface); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-list { display: flex; flex-direction: column; gap: .9rem; margin-top: 1.5rem; }
.about-list li { display: flex; gap: .7rem; align-items: flex-start; }
.about-list li svg { width: 22px; height: 22px; color: var(--c-accent); flex: none; margin-top: 2px; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { border-top: 2px solid var(--c-navy); padding-top: 1.25rem; }
.value-card h3 { font-size: var(--fs-500); margin-bottom: .5rem; }
.value-card p { color: var(--c-ink-2); font-size: var(--fs-400); }

/* =====================================================================
   FORMS
   ===================================================================== */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 700; font-size: var(--fs-400); }
.field label .req { color: var(--c-accent); }
.field .hint { font-size: var(--fs-300); color: var(--c-ink-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--c-border-strong);
  border-radius: var(--radius); background: #fff; color: var(--c-ink); transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-navy); box-shadow: 0 0 0 3px rgba(16,36,59,0.10);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(200,16,46,0.12); }
.field .error-msg { font-size: var(--fs-300); color: var(--c-accent); display: none; }
.field.has-error .error-msg { display: block; }
.form-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-1); }
.demo-banner {
  display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1.1rem;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius); color: #9a3412;
  font-size: var(--fs-400); margin-bottom: 1.5rem;
}
.demo-banner svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.form-status { margin-top: 1.25rem; padding: 1rem 1.2rem; border-radius: var(--radius); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }
.form-status.err { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }

/* Checkbox */
.check-row { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-400); color: var(--c-ink-2); }
.check-row input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--c-navy); }

/* =====================================================================
   TABLES (specs)
   ===================================================================== */
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-400); }
.spec-table th, .spec-table td { text-align: start; padding: .85rem 1rem; border-bottom: 1px solid var(--c-border); }
.spec-table th { width: 38%; color: var(--c-ink-2); font-weight: 600; background: var(--c-surface); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table .latin { font-weight: 600; }
@media (max-width: 560px) {
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { padding-bottom: .2rem; }
  .spec-table td { padding-top: .2rem; padding-bottom: .9rem; border-bottom: none; }
  .spec-table tr { padding: .9rem 0; border-bottom: 1px solid var(--c-border); }
}

/* =====================================================================
   BREADCRUMB
   ===================================================================== */
.breadcrumb { padding-block: 1rem; font-size: var(--fs-300); color: var(--c-ink-3); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: .4rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--c-border-strong); }
.breadcrumb a:hover { color: var(--c-navy); }
.breadcrumb [aria-current="page"] { color: var(--c-ink); font-weight: 600; }

/* =====================================================================
   PAGE HEADER (interior)
   ===================================================================== */
.page-hero { background: var(--c-navy); color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,0.04), transparent); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: #ff4d63; }
.page-hero .eyebrow::before { background: #ff4d63; }
.page-hero h1 { font-size: var(--fs-900); margin-bottom: .75rem; }
.page-hero p { color: #d4deea; max-width: 60ch; font-size: var(--fs-500); }

/* =====================================================================
   ARTICLE / KNOWLEDGE
   ===================================================================== */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } }
.article-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); overflow: hidden; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.article-card:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.article-thumb { aspect-ratio: 16/9; background: var(--c-surface); overflow: hidden; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.article-meta { font-size: var(--fs-300); color: var(--c-ink-3); display: flex; gap: .6rem; }
.article-body h3 { font-size: var(--fs-500); line-height: 1.35; }
.article-body p { color: var(--c-ink-2); font-size: var(--fs-400); flex: 1; }
.article-body .arrow-link { margin-top: .4rem; }

.prose { max-width: 720px; }
.prose p { margin-bottom: 1.1rem; color: var(--c-ink); line-height: var(--lh-normal); }
.prose h2 { font-size: var(--fs-700); margin: 2rem 0 .75rem; }
.prose h3 { font-size: var(--fs-600); margin: 1.5rem 0 .5rem; }
.prose ul { display: flex; flex-direction: column; gap: .5rem; margin: .5rem 0 1.1rem; padding-inline-start: 1.25rem; list-style: disc; }
.prose li { color: var(--c-ink); }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-list { display: flex; flex-direction: column; gap: .75rem; max-width: 860px; }
.faq-item { border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 700; font-size: var(--fs-500); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { width: 22px; height: 22px; flex: none; position: relative; transition: transform var(--transition); }
.faq-item summary .plus::before, .faq-item summary .plus::after { content: ""; position: absolute; background: var(--c-navy); border-radius: 2px; }
.faq-item summary .plus::before { inset-inline-start: 50%; top: 2px; bottom: 2px; width: 2px; transform: translateX(50%); }
.faq-item summary .plus::after { top: 50%; inset-inline-start: 2px; inset-inline-end: 2px; height: 2px; transform: translateY(-50%); }
.faq-item[open] summary .plus { transform: rotate(135deg); }
.faq-item .faq-answer { padding: 0 1.25rem 1.25rem; color: var(--c-ink-2); }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: flex; flex-direction: column; gap: 1.25rem; }
.info-item { display: flex; gap: .9rem; align-items: flex-start; }
.info-item .info-icon { width: 46px; height: 46px; border-radius: var(--radius); background: var(--c-surface); color: var(--c-navy); display: grid; place-items: center; flex: none; }
.info-item .info-icon svg { width: 22px; height: 22px; }
.info-item h4 { font-size: var(--fs-400); color: var(--c-ink-2); font-weight: 600; margin-bottom: .15rem; }
.info-item p, .info-item a { font-weight: 700; color: var(--c-ink); }

/* =====================================================================
   CTA BANNER
   ===================================================================== */
.cta-banner { background: var(--c-navy); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.cta-banner h2 { font-size: var(--fs-800); margin-bottom: .5rem; }
.cta-banner p { color: #cdd8e6; max-width: 46ch; }
.cta-banner .cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-banner .btn-outline { border-color: rgba(255,255,255,0.35); color: #fff; }
.cta-banner .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--c-navy); color: #c7d1de; font-size: var(--fs-400); }
.footer-top { padding-block: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand .brand-mark { background: #fff; color: var(--c-navy); }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text span { color: #8b9bb0; }
.footer-brand p { color: #9fb0c3; max-width: 34ch; margin-bottom: 1.25rem; }
.footer-col h4 { color: #fff; font-size: var(--fs-400); letter-spacing: .04em; margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { color: #9fb0c3; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.18); display: grid; place-items: center; color: #c7d1de; transition: background var(--transition), color var(--transition); }
.footer-social a:hover { background: #fff; color: var(--c-navy); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; color: #8497ad; font-size: var(--fs-300); }
.footer-bottom a { color: #8497ad; }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.raj-credit { opacity: .8; }
.raj-credit strong { color: #c7d1de; }

/* =====================================================================
   UTILITIES
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-300); font-weight: 700; padding: .3rem .7rem; border-radius: 100px; background: var(--c-surface); color: var(--c-ink-2); }
.badge--accent { background: #fdecef; color: var(--c-accent-dark); }
.badge--navy { background: #e7edf4; color: var(--c-navy); }
.badge--ok { background: #e7f6ee; color: var(--c-success); }
.notice { padding: 1rem 1.25rem; border: 1px dashed var(--c-border-strong); border-radius: var(--radius); color: var(--c-ink-2); background: var(--c-surface); font-size: var(--fs-400); }

/* Tabs */
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; border-bottom: 1px solid var(--c-border); margin-bottom: 1.5rem; }
.tab { padding: .65rem 1rem; font-weight: 700; color: var(--c-ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--transition), border-color var(--transition); }
.tab.is-active { color: var(--c-navy); border-color: var(--c-accent); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* =====================================================================
   RESPONSIVE — HEADER / HERO
   ===================================================================== */
@media (max-width: 1024px) {
  .nav-list { display: none; }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .header-inner { gap: 1rem; }
}
@media (max-width: 1024px) {
  .hero { height: calc(100svh - var(--header-h)); min-height: min(460px, calc(100svh - var(--header-h))); }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .hero-sub { font-size: var(--fs-400); }
  .hero-title { max-width: 100%; }
  .scroll-indicator { display: none; }
  .hero-controls { inset-inline-start: 1rem; }
}
@media (max-width: 390px) {
  .container { padding-inline: 1.1rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Large desktops */
@media (min-width: 1440px) {
  :root { --container: 1320px; }
}
@media (min-width: 1920px) {
  :root { --container: 1440px; }
}

/* =====================================================================
   CLIENT PRESENTATION EDITION — additions
   ===================================================================== */

/* Accessible desktop menu toggle (nav-link + separate button) */
.nav-pair { display: inline-flex; align-items: center; }
.mega-toggle {
  width: 26px; height: 38px; display: grid; place-items: center;
  color: var(--c-ink-2); border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.mega-toggle:hover { background: var(--c-surface); color: var(--c-navy); }
.mega-toggle svg { width: 14px; height: 14px; transition: transform var(--transition); }
.nav-item.is-open .mega-toggle svg { transform: rotate(180deg); }
.nav-link:hover, .nav-item.is-open .nav-link { background: var(--c-surface); color: var(--c-navy); }
@media (max-width: 1024px) { .mega-toggle { display: none; } }

/* Temporary-reference image stamp (visible label) */
.img-stamp {
  position: absolute; z-index: 3; inset-block-end: .55rem; inset-inline-start: .55rem;
  font-size: .62rem; font-weight: 700; letter-spacing: .03em;
  background: rgba(255,255,255,.92); color: var(--c-ink-2);
  border: 1px solid var(--c-border); border-radius: 4px;
  padding: .2rem .5rem; pointer-events: none;
}
.hero-stamp { inset-block-start: .75rem; inset-block-end: auto; inset-inline-start: auto; inset-inline-end: .75rem;
  background: rgba(8,16,26,.55); color: #fff; border-color: rgba(255,255,255,.3); }
.division-media, .article-thumb, .about-media { position: relative; }

/* Demo form: static no-JS message lives in <noscript>; the fallback note
   is hidden by default and shown only while html.js is present but the
   form has not been wired (init failure / late blocked script). */
.js-fallback-note { display: none; margin-bottom: 1.1rem; }
html.js .demo-form:not([data-ready]) .js-fallback-note { display: block; }
html.forms-dead .js-fallback-note { display: block; }
.demo-form .form-status { margin-top: 1.1rem; }
.check-row { cursor: pointer; }
.field.has-error .check-row input { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* Catalog toolbar + subcategory pills */
.catalog-toolbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem;
}
.catalog-toolbar .tabs { margin-bottom: 0; border-bottom: none; }
.catalog-search { flex: 1 1 260px; max-width: 340px; min-width: 0; }
.sub-tabs { margin-bottom: 1rem; }

/* Scroll cue is a real link to the first section */
.scroll-indicator { text-decoration: none; cursor: pointer; border-radius: var(--radius); }
.scroll-indicator:hover { color: #fff; }

/* Product carousel: touch panning + drag affordance */
.product-viewport { touch-action: pan-y; cursor: grab; }
.product-viewport:active { cursor: grabbing; }
.product-card { user-select: none; }
.product-card a, .product-card label { user-select: auto; }

/* Keep focused carousel content visible inside the page */
.hero-slide:focus-visible { outline-offset: -4px; }

/* Hero on short/mobile-landscape viewports: never exceed the viewport.
   padding-bottom must clear .hero-controls (bottom ~24px + ~43px tall
   = ~67px) plus a gap: CTA buttons overlapped the controls by 12px at
   844x390 when this was 3.5rem (56px). 4.75rem (76px) keeps >=9px gap. */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero-title { font-size: clamp(1.4rem, 5vw, 2rem); margin-bottom: .6rem; }
  .hero-sub { display: none; }
  .hero-content { padding-block: 1.25rem; padding-bottom: 4.75rem; }
  .hero-tag { margin-bottom: .5rem; }
}
/* Extremely short landscape (e.g. 653x280 fold devices): keep the whole
   stack (title + CTAs + controls) inside the hero without overlap. */
@media (max-height: 340px) and (orientation: landscape) {
  .hero-content { padding-block: .75rem; padding-bottom: 4.75rem; }
  .hero-title { font-size: clamp(1.1rem, 4vw, 1.5rem); margin-bottom: .4rem; }
  .hero-tag { display: none; }
}

/* Header wrapping at very narrow widths */
@media (max-width: 360px) {
  .brand-text span { display: none; }
  .header-inner { gap: .5rem; }
  .icon-btn { width: 38px; height: 38px; }
}

/* Inquiry bar spacing above browser chrome */
.inquiry-bar { box-shadow: 0 -6px 24px rgba(16,36,59,.25); }

/* =====================================================================
   PRINT
   ===================================================================== */
@media print {
  .site-header, .site-footer, .hero-controls, .scroll-indicator, .cta-banner { display: none !important; }
  body { color: #000; }
}
