/* ==========================================================================
   Design Tokens
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@700;800;900&display=swap');

:root {
  /* Surfaces */
  --bg: #0a0f1e;
  --bg-elevated: #10182c;
  --bg-elevated-2: #16213a;
  --bg-soft: #0d1526;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #eef2f9;
  --text-muted: #93a1b8;
  --text-faint: #5c6a84;

  /* Brand */
  --accent: #f59e0b;       /* amber — industrial energy */
  --accent-2: #38bdf8;     /* sky blue — tech-forward */
  --accent-ink: #0a0f1e;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ea952;
  --success: #22c55e;
  --danger: #f87171;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #f59e0b 0%, #fb923c 45%, #38bdf8 100%);
  --grad-glow: radial-gradient(circle, rgba(245,158,11,0.35) 0%, rgba(56,189,248,0.08) 60%, transparent 75%);
  --grad-card: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));

  /* Soft accent tints (icon badges, eyebrow pills, glow rings) */
  --accent-soft: rgba(245,158,11,0.12);
  --accent-soft-border: rgba(245,158,11,0.25);
  --accent2-soft: rgba(56,189,248,0.12);
  --accent2-soft-border: rgba(56,189,248,0.28);
  --shadow-glow-accent-lg: 0 16px 40px rgba(245,158,11,0.32);
  --shadow-glow-accent2-lg: 0 16px 40px rgba(56,189,248,0.28);

  /* Type scale */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.75rem;
  --fs-4xl: 3.75rem;

  /* Spacing (density: standard) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;

  /* Radius / shadow */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.45);
  --shadow-glow-accent: 0 0 0 1px rgba(245,158,11,0.25), 0 8px 30px rgba(245,158,11,0.18);
  --shadow-glow-whatsapp: 0 8px 24px rgba(37,211,102,0.35);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;

  /* Layout */
  --container: 1240px;
  --font-latin: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;

  /* Surface tints (hover fills, texture, scrims) — direction flips per theme */
  --tint-0: rgba(255,255,255,0.01);
  --tint-1: rgba(255,255,255,0.04);
  --tint-2: rgba(255,255,255,0.05);
  --tint-3: rgba(255,255,255,0.06);
  --tint-4: rgba(255,255,255,0.08);
  --scrim: rgba(10,15,30,0.78);
  --map-filter: grayscale(0.3) invert(0.92) contrast(0.9);
}

/* ==========================================================================
   Light theme — primary/mid blue + peach warm contrast, on white.
   ========================================================================== */
html[data-theme="light"] {
  --bg: #ffffff;
  --bg-elevated: #ebf3fc;
  --bg-elevated-2: #dceafb;
  --bg-soft: #f5f9fe;
  --border: rgba(18,40,85,0.09);
  --border-strong: #b8d4ee;

  --text: #0f172a;
  --text-muted: #4e5d78;
  --text-faint: #8b9cb8;

  --accent: #2d6bad;
  --accent-2: #f4a57a;
  --whatsapp: #1ea952;
  --whatsapp-dark: #16893f;
  --success: #34d399;
  --danger: #dc2626;

  --grad-brand: linear-gradient(135deg, #2d6bad 0%, #5b9bd5 50%, #f4a57a 100%);
  --grad-glow: radial-gradient(circle, rgba(45,107,173,0.22) 0%, rgba(244,165,122,0.12) 60%, transparent 75%);
  --grad-card: linear-gradient(160deg, rgba(18,40,85,0.035), rgba(18,40,85,0.01));

  --shadow-sm: 0 2px 8px rgba(18,40,85,0.08);
  --shadow-md: 0 8px 24px rgba(18,40,85,0.1);
  --shadow-lg: 0 20px 50px rgba(18,40,85,0.14);
  --shadow-glow-accent: 0 0 0 1px rgba(45,107,173,0.3), 0 8px 30px rgba(45,107,173,0.22);
  --shadow-glow-accent-lg: 0 16px 44px -6px rgba(45,107,173,0.45);
  --shadow-glow-whatsapp: 0 8px 24px rgba(30,169,82,0.3);

  --accent-soft: rgba(45,107,173,0.12);
  --accent-soft-border: rgba(45,107,173,0.28);
  --accent2-soft: rgba(244,165,122,0.18);
  --accent2-soft-border: rgba(244,165,122,0.4);
  --shadow-glow-accent2-lg: 0 16px 40px -6px rgba(244,165,122,0.4);

  --tint-0: rgba(18,40,85,0.015);
  --tint-1: rgba(18,40,85,0.03);
  --tint-2: rgba(18,40,85,0.045);
  --tint-3: rgba(18,40,85,0.06);
  --tint-4: rgba(18,40,85,0.09);
  --scrim: rgba(255,255,255,0.85);
  --map-filter: none;

  color-scheme: light;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-latin);
  font-size: var(--fs-base);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur-slow) var(--ease-out), color var(--dur-slow) var(--ease-out);
}
html[dir="rtl"] body { font-family: var(--font-arabic); }
[data-phone], #waDisplay { direction: ltr; unicode-bidi: embed; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { letter-spacing: 0; }
p { color: var(--text-muted); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-6); }
@media (max-width: 640px) { .container { padding-inline: var(--sp-4); } }

section { position: relative; padding-block: var(--sp-24); }
@media (max-width: 768px) { section { padding-block: var(--sp-16); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-soft-border);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-full);
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0;
  animation: eyebrow-pulse 2s ease-in-out infinite;
}
@keyframes eyebrow-pulse { 0%, 100% { opacity: 0.4; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }

.section-head { max-width: 640px; margin-bottom: var(--sp-12); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-block: var(--sp-4); }
.section-head p { font-size: var(--fs-md); }
.section-highlight { color: var(--accent); }

/* Display headlines: Outfit Black, uppercase, tight — subheadings stay on the body font */
.hero h1, .page-header h1, .section-head h2 {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 0.95;
}
html[dir="rtl"] .hero h1, html[dir="rtl"] .page-header h1, html[dir="rtl"] .section-head h2 {
  font-family: var(--font-arabic); text-transform: none; letter-spacing: 0; line-height: 1.3;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 100px; border: none;
  font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: #0D9488; color: #ffffff; box-shadow: 0 4px 14px rgba(13,148,136,0.35); }
.btn-primary:hover { background: #0F766E; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(13,148,136,0.45); }
.btn-outline { background: transparent; color: #0D9488; border: 1.5px solid #0D9488; }
.btn-outline:hover { background: #0D9488; color: #ffffff; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(13,148,136,0.25); }
.btn-ghost { background: transparent; color: #0D9488; padding: 12px 20px; }
.btn-ghost:hover { background: #CCFBF1; color: #0F766E; }

.btn-whatsapp {
  background: var(--whatsapp); color: #06210f; box-shadow: var(--shadow-glow-whatsapp);
}
.btn-whatsapp:hover { background: #2fe075; transform: translateY(-2px); }
.btn-whatsapp svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 3px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding-block: var(--sp-4);
  transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), padding var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: var(--scrim); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border); box-shadow: var(--shadow-sm); padding-block: var(--sp-3);
}
/* Keep nav text legible over a dark photo hero before the user scrolls */
.navbar.navbar-photo-mode:not(.scrolled) {
  background: linear-gradient(180deg, rgba(10,15,30,0.55) 0%, rgba(10,15,30,0) 100%);
}
.navbar.navbar-photo-mode:not(.scrolled) .brand,
.navbar.navbar-photo-mode:not(.scrolled) .nav-links a,
.navbar.navbar-photo-mode:not(.scrolled) .theme-toggle,
.navbar.navbar-photo-mode:not(.scrolled) .lang-toggle,
.navbar.navbar-photo-mode:not(.scrolled) .lang-toggle button,
.navbar.navbar-photo-mode:not(.scrolled) .nav-toggle {
  color: #ffffff; border-color: rgba(255,255,255,0.35);
}
.navbar.navbar-photo-mode:not(.scrolled) .lang-toggle button.active { background: #ffffff; color: #0a0f1e; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.brand { display: flex; align-items: center; gap: var(--sp-2); font-weight: 800; font-size: var(--fs-lg); }
.brand-mark {
  height: 72px; width: auto; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out);
}
.brand:hover .brand-mark { transform: scale(1.06); }
.brand-mark img { height: 100%; width: auto; display: block; }
.brand [data-company-name] { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name-main { color: #0B2340; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1em; }
.brand-name-sub {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  color: #0B2340; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.4em; margin-top: 3px; white-space: nowrap;
}
.brand-name-sub::before, .brand-name-sub::after { content: ''; flex: 1; height: 1px; min-width: 6px; background: #C5963D; }
.brand-name-slash { color: #C5963D; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: var(--sp-8); }
.nav-links a {
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted);
  position: relative; padding-block: var(--sp-1); transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -6px; inset-inline: 0; height: 2px; background: var(--grad-brand); border-radius: var(--radius-full);
}

.nav-item-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted);
  position: relative; padding-block: var(--sp-1); transition: color var(--dur-fast) var(--ease-out);
}
.nav-dropdown-trigger:hover, .nav-dropdown-trigger.active, .nav-item-dropdown.open .nav-dropdown-trigger { color: var(--text); }
.nav-dropdown-trigger.active::after {
  content: ''; position: absolute; bottom: -6px; inset-inline: 0; height: 2px; background: var(--grad-brand); border-radius: var(--radius-full);
}
.nav-dropdown-chevron { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-out); }
.nav-item-dropdown.open .nav-dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute; top: calc(100% + 14px); inset-inline-start: 50%; transform: translateX(-50%) translateY(-8px);
  width: 230px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: var(--sp-2); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility var(--dur-fast) linear;
  z-index: 110;
}
.nav-item-dropdown.open .nav-dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
html[dir="rtl"] .nav-dropdown-panel { transform: translateX(50%) translateY(-8px); }
html[dir="rtl"] .nav-item-dropdown.open .nav-dropdown-panel { transform: translateX(50%) translateY(0); }
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .nav-item-dropdown::after {
    content: ''; position: absolute; top: 100%; inset-inline-start: 50%; transform: translateX(-50%);
    width: 230px; height: 14px;
  }
  html[dir="rtl"] .nav-item-dropdown::after { transform: translateX(50%); }
  .nav-item-dropdown:hover .nav-dropdown-panel {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
  }
  html[dir="rtl"] .nav-item-dropdown:hover .nav-dropdown-panel { transform: translateX(50%) translateY(0); }
  .nav-item-dropdown:hover .nav-dropdown-trigger { color: var(--text); }
  .nav-item-dropdown:hover .nav-dropdown-chevron { transform: rotate(180deg); }
}
.nav-dropdown-link {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.nav-dropdown-link:hover { background: var(--tint-2); transform: translateX(2px); }
html[dir="rtl"] .nav-dropdown-link:hover { transform: translateX(-2px); }
.nav-dropdown-link-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-dropdown-link-icon svg { width: 18px; height: 18px; }
.nav-dropdown-link-name { font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.nav-dropdown-link:nth-child(1) .nav-dropdown-link-icon { background: linear-gradient(180deg, #4ade80, #0ea5e9); color: #fff; }
.nav-dropdown-link:nth-child(2) .nav-dropdown-link-icon { background: linear-gradient(135deg, #38bdf8, #4338ca); color: #fff; }
.nav-dropdown-link:nth-child(3) .nav-dropdown-link-icon { background: linear-gradient(135deg, #fbbf24, #ea580c); color: #fff; }
.nav-dropdown-link:nth-child(4) .nav-dropdown-link-icon { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.nav-dropdown-link:nth-child(5) .nav-dropdown-link-icon { background: rgba(236,72,153,0.15); color: #ec4899; }

.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }
.lang-toggle {
  display: flex; align-items: center; gap: var(--sp-1); border: 1px solid var(--border-strong);
  border-radius: var(--radius-full); padding: 4px; font-size: var(--fs-xs); font-weight: 700;
}
.lang-toggle button { padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-full); color: var(--text-muted); transition: all var(--dur-fast) var(--ease-out); }
.lang-toggle button.active { background: var(--text); color: var(--bg); }

.theme-toggle {
  position: relative; width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--border-strong); overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.theme-toggle:hover { border-color: var(--accent); transform: scale(1.08); box-shadow: var(--shadow-glow-accent); }
.theme-toggle:active { transform: scale(0.96); }
.theme-toggle span { position: absolute; inset: 0; display: grid; place-items: center; transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { color: var(--accent-2); opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .icon-sun { color: var(--accent); opacity: 0; transform: rotate(90deg) scale(0.3); }
html[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.3); }
html[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 0; inset-inline-end: 0; height: 100dvh; width: min(320px, 84vw);
    background: var(--bg-elevated); border-inline-start: 1px solid var(--border); flex-direction: column;
    align-items: flex-start; justify-content: flex-start; padding: var(--sp-24) var(--sp-6) var(--sp-6);
    gap: var(--sp-6); transform: translateX(100%); transition: transform var(--dur-slow) var(--ease-out); box-shadow: var(--shadow-lg);
  }
  html[dir="rtl"] .nav-links { transform: translateX(-100%); }
  .nav-links.open { transform: translateX(0); }
  html[dir="rtl"] .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: var(--fs-lg); }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-primary { display: none; }

  .nav-item-dropdown { width: 100%; }
  .nav-dropdown-trigger { font-size: var(--fs-lg); width: 100%; justify-content: space-between; }
  .nav-dropdown-panel {
    position: static; transform: none; min-width: 0; width: 100%; margin-top: var(--sp-3);
    box-shadow: none; border: none; background: transparent; padding: 0;
    max-height: 0; opacity: 1; visibility: visible; pointer-events: auto; overflow: hidden;
    transition: max-height var(--dur-slow) var(--ease-out);
  }
  .nav-item-dropdown.open .nav-dropdown-panel { max-height: 600px; }
  .nav-dropdown-link-desc { white-space: normal; }
}
.nav-scrim {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 90;
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
}
.nav-scrim.open { display: block; opacity: 1; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: calc(var(--sp-24) + 56px); overflow: hidden; }
.hero-blob {
  position: absolute; width: 640px; height: 640px; border-radius: 50%;
  background: var(--grad-glow); filter: blur(20px); pointer-events: none; z-index: 0;
}
.hero-blob.b1 { top: -220px; inset-inline-end: -160px; }
.hero-blob.b2 { bottom: -260px; inset-inline-start: -200px; opacity: 0.7; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-16); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: var(--sp-12); } }
.hero h1 { font-size: clamp(2.75rem, 6vw, 4.75rem); margin-block: var(--sp-6); }
.hero p.lead { font-size: var(--fs-md); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-8); }
.hero-stats { display: flex; gap: var(--sp-12); margin-top: var(--sp-16); flex-wrap: wrap; }
.hero-stat .num { font-size: var(--fs-2xl); font-weight: 800; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"] .hero-stat .num { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent); }
.hero-stat .label { font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.hero-visual { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--grad-card); }
html[data-theme="light"] .hero-visual { background: #ffffff; }
@media (min-width: 961px) {
  body[data-page="home"] .hero-visual-wrap { position: relative; aspect-ratio: 1/1; }
  body[data-page="home"] .hero-visual {
    position: absolute; bottom: 0; inset-inline-start: 0;
    width: calc(100% + var(--sp-8)); height: calc(100% + var(--sp-16));
  }
}
.hero-visual-inner { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-badge-float {
  position: absolute; bottom: var(--sp-6); inset-inline-start: var(--sp-6); background: rgba(18,40,85,0.85);
  backdrop-filter: blur(10px); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4); display: flex; align-items: center; gap: var(--sp-3); box-shadow: var(--shadow-md);
  color: #eef2f9;
  animation: badge-bob 4s ease-in-out infinite; animation-delay: 2s;
}
.hero-badge-float .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--whatsapp); box-shadow: 0 0 0 4px rgba(37,211,102,0.2); }
@keyframes badge-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ==========================================================================
   Hero signature moment: supply-chain icons orbiting the brand mark.
   Ambient drifting hero blobs.
   ========================================================================== */
.hero-blob { animation: blob-drift 11s ease-in-out infinite; }
.hero-blob.b2 { animation-duration: 14s; animation-delay: -5s; }
@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-26px, 20px) scale(1.07); }
}

.hero-visual-wrap { transition-delay: 0.15s; }

.orbit-scene { position: relative; width: 82%; height: 82%; display: grid; place-items: center; }
.orbit-center {
  position: relative; z-index: 2; width: 52%; height: 52%;
  display: grid; place-items: center;
  animation: orbit-center-in 0.6s var(--ease-out) forwards;
}
.orbit-center img { width: 100%; height: 100%; object-fit: contain; }
@keyframes orbit-center-in { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
.orbit-ring {
  position: absolute; top: 50%; left: 50%; border: 1.5px dotted var(--border-strong); border-radius: 50%;
  animation: orbit-spin linear infinite, orbit-ring-in 0.7s var(--ease-out) backwards;
}
.orbit-ring-1 { width: 60%; height: 60%; margin: -30% 0 0 -30%; animation-duration: 18s; animation-delay: 0.2s; }
.orbit-ring-2 { width: 100%; height: 100%; margin: -50% 0 0 -50%; animation-duration: 30s; animation-direction: reverse; animation-delay: 0.4s; }
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit-ring-in { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; } }
.orbit-icon {
  position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; color: var(--accent);
}
.orbit-icon svg { width: 22px; height: 22px; }
.orbit-ring-2 .orbit-icon { color: var(--accent-2); }

.hero-visual-inner { transition: transform 0.35s var(--ease-out); transform-style: preserve-3d; }

/* ==========================================================================
   Catalog shelf — real product photos, layered like a curated shelf
   (used on the Products page hero instead of the orbit visual)
   ========================================================================== */
.catalog-shelf { position: relative; width: 100%; height: 100%; }
.shelf-card {
  position: absolute; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: var(--sp-4); overflow: hidden;
  animation: shelf-card-in 0.7s var(--ease-out) backwards;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
html[data-theme="light"] .shelf-card { background: #ffffff; }
@keyframes shelf-card-in { from { opacity: 0; transform: translateY(24px) scale(0.92) rotate(var(--r, 0deg)); } to { opacity: 1; } }
.shelf-card:hover { transform: translateY(-10px) rotate(0deg) scale(1.05); box-shadow: var(--shadow-lg); z-index: 9 !important; }
.shelf-card img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.shelf-card img.theme-img-light { display: none; }
html[data-theme="light"] .shelf-card img.theme-img-dark { display: none; }
html[data-theme="light"] .shelf-card img.theme-img-light { display: block; }
.shelf-tag {
  position: absolute; top: var(--sp-3); inset-inline-start: var(--sp-3); z-index: 2;
  background: rgba(18,40,85,0.85); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.shelf-card-1 { width: 56%; height: 40%; top: 4%; left: 0; transform: rotate(-7deg); z-index: 2; --r: -7deg; animation-delay: 0.05s; }
.shelf-card-2 { width: 34%; height: 42%; top: 0; right: 2%; transform: rotate(9deg); z-index: 3; --r: 9deg; animation-delay: 0.15s; }
.shelf-card-3 { width: 32%; height: 46%; bottom: 2%; left: 6%; transform: rotate(6deg); z-index: 1; --r: 6deg; animation-delay: 0.25s; }
.shelf-card-4 { width: 46%; height: 48%; bottom: 0; right: 0; transform: rotate(-5deg); z-index: 4; --r: -5deg; animation-delay: 0.35s; }
.hero-visual .catalog-shelf ~ .hero-badge-float { animation-delay: 3s; }

/* ==========================================================================
   Hero highlighted word (italic + hand-drawn underline + arrow flourish)
   ========================================================================== */
.hero-highlight {
  position: relative; display: inline-block; font-style: italic; color: var(--accent);
}
.hero-highlight .highlight-underline {
  position: absolute; left: 2%; bottom: -0.16em; width: 96%; height: 0.4em;
  color: var(--accent-2); overflow: visible; pointer-events: none;
}
.hero-highlight .highlight-arrow {
  position: absolute; top: -0.5em; right: -1.15em; width: 0.85em; height: 0.85em;
  color: var(--accent-2); pointer-events: none;
}
html[dir="rtl"] .hero-highlight .highlight-arrow { right: auto; left: -1.15em; transform: scaleX(-1); }

/* ==========================================================================
   Global Distribution Network — premium corporate section, theme-aware
   ========================================================================== */
.gdn-section {
  --gdn-blue: #1565FF; --gdn-card-bg: var(--bg-elevated); --gdn-card-shadow: var(--shadow-lg);
  --gdn-label-bg: var(--bg-elevated-2); --gdn-label-shadow: rgba(0,0,0,.35);
  background: var(--bg); padding-block: var(--sp-24);
}
html[data-theme="light"] .gdn-section {
  --gdn-card-bg: #ffffff; --gdn-card-shadow: 0 20px 60px rgba(0,0,0,.06);
  --gdn-label-bg: #ffffff; --gdn-label-shadow: rgba(0,0,0,.08);
}
.gdn-head { text-align: center; max-width: 720px; margin: 0 auto var(--sp-16); }
.gdn-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(21,101,255,0.12); color: var(--gdn-blue); font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.gdn-heading {
  font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800;
  color: var(--text); margin: var(--sp-3) 0; letter-spacing: -0.02em;
}
.gdn-desc { color: var(--text-muted); font-size: var(--fs-md); line-height: 1.6; }
html[dir="rtl"] .gdn-heading { font-family: var(--font-arabic); }

.gdn-card {
  position: relative; max-width: 1400px; margin: 0 auto; background: var(--gdn-card-bg);
  border-radius: 24px; box-shadow: var(--gdn-card-shadow); padding: var(--sp-16);
  overflow: hidden;
}
.gdn-blob { position: absolute; border-radius: 50%; background: var(--gdn-blue); filter: blur(80px); opacity: 0.06; pointer-events: none; }
.gdn-blob-1 { width: 360px; height: 360px; top: -80px; left: -60px; }
.gdn-blob-2 { width: 300px; height: 300px; bottom: -80px; right: -40px; }

.gdn-map { position: relative; aspect-ratio: 2/1; }
.gdn-map-view { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease; }
.gdn-map-view.active { opacity: 1; visibility: visible; }
.gdn-map svg { position: relative; width: 100%; height: 100%; display: block; overflow: visible; }
.gdn-world-dot { fill: var(--text-muted); }
.gdn-landmass { opacity: 0.18; }

.gdn-route {
  fill: none; stroke: var(--gdn-blue); stroke-width: 2; stroke-linecap: round; opacity: 0.55;
  stroke-dasharray: 800; stroke-dashoffset: 800;
  animation: gdn-draw 5s ease-in-out infinite; animation-delay: var(--r-delay, 0s);
  transition: opacity 0.3s, stroke-width 0.3s;
}
@keyframes gdn-draw {
  0% { stroke-dashoffset: 800; opacity: 0; }
  15% { opacity: 0.55; }
  50% { stroke-dashoffset: 0; opacity: 0.55; }
  85% { opacity: 0.55; }
  100% { stroke-dashoffset: -800; opacity: 0; }
}
.gdn-map .gdn-route.is-active { opacity: 1 !important; stroke-width: 3; animation-play-state: paused; }

.gdn-city-core { fill: var(--gdn-blue); transition: transform 0.25s var(--ease-out); transform-box: fill-box; transform-origin: center; }
.gdn-city-glow { fill: var(--gdn-blue); opacity: 0.25; filter: blur(4px); transition: opacity 0.25s; }
.gdn-city-pulse {
  fill: none; stroke: var(--gdn-blue); stroke-width: 1.5; opacity: 0.5; transform-box: fill-box; transform-origin: center;
  animation: gdn-pulse 2s ease-out infinite;
}
.gdn-city.hub .gdn-city-core { fill: #0d3fb0; }
.gdn-city.hub .gdn-city-pulse { stroke: #0d3fb0; }
.gdn-city.kirkuk .gdn-city-core, .gdn-city.kirkuk .gdn-city-glow { fill: #dc2626; }
.gdn-city.kirkuk .gdn-city-pulse { stroke: #dc2626; }
@keyframes gdn-pulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(2.8); opacity: 0; } }
.gdn-city.is-active .gdn-city-core { transform: scale(1.35); }
.gdn-city.is-active .gdn-city-glow { opacity: 0.45; }

.gdn-label {
  position: absolute; transform: translate(-50%, calc(-100% - 12px)); z-index: 2;
  background: var(--gdn-label-bg); color: var(--text); border-radius: 14px; padding: 8px 16px;
  font-size: 14px; font-weight: 600; white-space: nowrap; pointer-events: none;
  box-shadow: 0 12px 30px var(--gdn-label-shadow); transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.gdn-label.hub { color: var(--gdn-blue); font-weight: 800; }
.gdn-label.kirkuk { color: #dc2626; font-weight: 800; }
.gdn-label.is-active { transform: translate(-50%, calc(-100% - 20px)); box-shadow: 0 16px 36px rgba(21,101,255,.28); }
.gdn-map-iraq .gdn-label { font-size: 10px; padding: 4px 8px; border-radius: 8px; transform: translate(-50%, calc(-100% - 6px)); }
.gdn-map-iraq .gdn-label.is-active { transform: translate(-50%, calc(-100% - 10px)); }

.gdn-city-hit { fill: transparent; pointer-events: all; cursor: pointer; }
.gdn-city-hit:focus { outline: none; }

@media (max-width: 860px) {
  .gdn-card { padding: var(--sp-8); }
}

/* ==========================================================================
   Bento / Category grid
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-6); }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }

/* Flip cards */
.bento-card {
  position: relative; display: block; perspective: 1800px; border-radius: var(--radius-lg);
  transition: transform var(--dur-base) var(--ease-out);
}
.bento-card:hover { transform: translateY(-6px); }
.flip-card-inner {
  position: relative; width: 100%; min-height: 330px;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.34, 1.28, 0.42, 1);
}
.bento-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1px solid rgba(255,255,255,0.6); border-radius: var(--radius-lg);
  padding: var(--sp-8); display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
  color: #33475b;
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.flip-front { justify-content: center; }
.flip-back { transform: rotateY(180deg); justify-content: center; }

/* Each category card — soft tender-pastel gradient, top to bottom */
.bento-raw-materials .flip-face {
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.4) 55%, rgba(255,255,255,0.88) 100%), url('../img/categories/raw-materials-bg.jpg') center/cover no-repeat;
  color: #33475b;
}
.bento-raw-materials .flip-face::before { content: none; }
.bento-raw-materials .bento-icon, .bento-raw-materials .flip-cue { background: rgba(255,255,255,0.7); }
.bento-raw-materials .flip-back { background: #ffffff; color: #22303f; }
.bento-raw-materials .flip-back .bento-icon { background: var(--accent-soft); color: var(--accent); }
.bento-wooden-pallets .flip-face {
  background-image: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.4) 55%, rgba(255,255,255,0.88) 100%), url('../img/categories/packaging-bg.jpg');
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-color: #ffffff;
  color: #33475b;
}
.bento-wooden-pallets .flip-face::before { content: none; }
.bento-wooden-pallets .bento-icon, .bento-wooden-pallets .flip-cue { background: rgba(255,255,255,0.7); }
.bento-wooden-pallets .flip-back { background: #ffffff; color: #22303f; }
.bento-wooden-pallets .flip-back .bento-icon { background: var(--accent2-soft); color: var(--accent-2); }
.bento-protective-textiles .flip-face {
  background-image: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.4) 55%, rgba(255,255,255,0.88) 100%), url('../img/categories/protective-textiles-bg.jpg');
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-color: #ffffff;
  color: #33475b;
}
.bento-protective-textiles .flip-face::before { content: none; }
.bento-protective-textiles .bento-icon, .bento-protective-textiles .flip-cue { background: rgba(255,255,255,0.7); }
.bento-protective-textiles .flip-back { background: #ffffff; color: #22303f; }
.bento-protective-textiles .flip-back .bento-icon { background: var(--accent-soft); color: var(--accent); }
.bento-plastic-pallets .flip-face {
  background-image: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.4) 55%, rgba(255,255,255,0.88) 100%), url('../img/categories/plastic-pallets-bg.jpg');
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-color: #ffffff;
  color: #33475b;
}
.bento-plastic-pallets .flip-face::before { content: none; }
.bento-plastic-pallets .bento-icon, .bento-plastic-pallets .flip-cue { background: rgba(255,255,255,0.7); }
.bento-plastic-pallets .flip-back { background: #ffffff; color: #22303f; }
.bento-plastic-pallets .flip-back .bento-icon { background: var(--accent2-soft); color: var(--accent-2); }
.bento-industrial-supplies .flip-face {
  background-image: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.4) 55%, rgba(255,255,255,0.88) 100%), url('../img/categories/industrial-supplies-bg.jpg');
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-color: #ffffff;
  color: #33475b;
}
.bento-industrial-supplies .flip-face::before { content: none; }
.bento-industrial-supplies .bento-icon, .bento-industrial-supplies .flip-cue { background: rgba(255,255,255,0.7); }
.bento-industrial-supplies .flip-back { background: #ffffff; color: #22303f; }
.bento-industrial-supplies .flip-back .bento-icon { background: var(--accent-soft); color: var(--accent); }

/* Soft sheen overlay for gentle depth */
.flip-face::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 88% 8%, rgba(255,255,255,0.7), transparent 55%);
}

.bento-raw-materials:hover .flip-face { box-shadow: 0 20px 44px rgba(37,99,235,0.45); }
.bento-wooden-pallets:hover .flip-face { box-shadow: 0 20px 44px rgba(240,175,120,0.4); }
.bento-protective-textiles:hover .flip-face { box-shadow: 0 20px 44px rgba(220,160,200,0.4); }
.bento-plastic-pallets:hover .flip-face { box-shadow: 0 20px 44px rgba(200,215,120,0.4); }
.bento-industrial-supplies:hover .flip-face { box-shadow: 0 20px 44px rgba(230,190,130,0.4); }

/* Diagonal light sweep across the front face on hover-in */
.flip-front::after {
  content: ''; position: absolute; top: -20%; left: -70%; width: 45%; height: 160%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg); pointer-events: none; opacity: 0;
}
.bento-card:hover .flip-front::after { animation: bento-shine 0.85s ease-out; }
@keyframes bento-shine {
  0% { left: -70%; opacity: 0; }
  12% { opacity: 1; }
  100% { left: 135%; opacity: 0; }
}

.bento-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md); display: grid; place-items: center;
  background: rgba(255,255,255,0.6); color: inherit; margin-bottom: var(--sp-6);
  transition: transform var(--dur-base) var(--ease-out);
}
.bento-card:hover .bento-icon { transform: scale(1.1) rotate(-6deg); }
.bento-icon svg { width: 28px; height: 28px; }
.flip-front h3 { font-size: var(--fs-lg); margin: 0; color: inherit; }
.flip-back p { font-size: var(--fs-md); line-height: 1.5; font-weight: 500; color: inherit; }

.flip-cue {
  position: absolute; bottom: var(--sp-6); inset-inline-end: var(--sp-6);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.6); color: inherit;
  transition: transform var(--dur-base) var(--ease-out);
}
.flip-cue svg { width: 16px; height: 16px; }
html[dir="rtl"] .flip-cue svg { transform: scaleX(-1); }
.bento-card:hover .flip-cue { transform: scale(1.15) rotate(90deg); }
html[dir="rtl"] .bento-card:hover .flip-cue { transform: scale(1.15) rotate(-90deg); }

.flip-back .link { display: inline-flex; align-items: center; gap: var(--sp-1); margin-top: var(--sp-4); font-size: var(--fs-base); font-weight: 700; color: inherit; }
.flip-back .link svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
html[dir="rtl"] .flip-back .link svg { transform: scaleX(-1); }
.bento-card:hover .flip-back .link svg { transform: translateX(4px); }
html[dir="rtl"] .bento-card:hover .flip-back .link svg { transform: scaleX(-1) translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .flip-card-inner, .flip-front::after { transition: none !important; animation: none !important; }
  .bento-card:hover .flip-card-inner { transform: none; }
  .flip-face { transition: opacity 0.3s ease; backface-visibility: visible; }
  .flip-back { transform: none; opacity: 0; }
  .flip-front { opacity: 1; }
  .bento-card:hover .flip-front { opacity: 0; }
  .bento-card:hover .flip-back { opacity: 1; }
}

/* ==========================================================================
   Product cards
   ========================================================================== */
.tabs { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); margin-bottom: var(--sp-12); }
.tab {
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--sp-2) var(--sp-6); border-radius: var(--radius-full); border: 1px solid var(--border-strong);
  font-size: var(--fs-sm); font-weight: 700; color: var(--text-muted);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out);
  animation: tabIn 0.5s var(--ease-out) backwards;
}
.tabs .tab:nth-child(1), .sub-tabs .tab:nth-child(1) { animation-delay: 0.02s; }
.tabs .tab:nth-child(2), .sub-tabs .tab:nth-child(2) { animation-delay: 0.07s; }
.tabs .tab:nth-child(3), .sub-tabs .tab:nth-child(3) { animation-delay: 0.12s; }
.tabs .tab:nth-child(4), .sub-tabs .tab:nth-child(4) { animation-delay: 0.17s; }
.tabs .tab:nth-child(5), .sub-tabs .tab:nth-child(5) { animation-delay: 0.22s; }
.tabs .tab:nth-child(6), .sub-tabs .tab:nth-child(6) { animation-delay: 0.27s; }
.tab:hover { border-color: var(--accent-2); color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tab.active { background: var(--grad-brand); color: #0a0f1e; border-color: transparent; animation: tabIn 0.5s var(--ease-out) backwards, tabPop 0.35s var(--ease-out); }

@keyframes tabIn { from { opacity: 0; transform: translateY(10px) scale(0.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes tabPop { 0% { transform: scale(0.92); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .tab { animation: none; } }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; } }

.sub-tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-8); }

.product-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.product-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.product-media {
  aspect-ratio: 4/3; position: relative; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--bg-elevated-2), var(--bg-soft));
}
.product-media svg { width: 40%; height: 40%; color: var(--accent); opacity: 0.9; }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.product-media img[src*="hero.png"] { object-position: center 0%; }
.product-media img[src*="hero-light.png"] { object-position: center center; }
.product-media img[src*="table-mayo.png"] { object-position: center 25%; }
.product-media img[src*="combined.webp"] { object-position: center 22%; }
.product-media img[src*="stretch-wrap-film/hero"] { object-fit: contain; padding: var(--sp-4); }
.product-media img[src*="glycerine/hero"] { object-fit: contain; padding: var(--sp-4); }
.product-media img[src*="palm-oil-glycerin/hero"] { object-fit: contain; padding: var(--sp-4); }
.product-media img[src*="isopropyl-alcohol/hero"] { object-fit: contain; padding: var(--sp-4); }
.product-media img[src*="bulk-wooden-pallets/hero"] { object-fit: contain; padding: var(--sp-4); }
.product-media img[src*="general-surgery-pack/contents"] { object-fit: contain; padding: var(--sp-4); }
.product-media img[src*="cesarean-pack/contents"] { object-fit: contain; padding: var(--sp-4); }
.product-media img[src*="arthroscopy-pack/contents"] { object-fit: contain; padding: var(--sp-4); }
.product-media img[src*="angiography-pack/contents"] { object-fit: contain; padding: var(--sp-4); }
.product-media img[src*="bypass-pack/contents"] { object-fit: contain; padding: var(--sp-4); }
.product-media img[src*="u-split-drape-pack/contents"] { object-fit: contain; padding: var(--sp-4); }
.product-media img[src*="urology-pack/contents"] { object-fit: contain; padding: var(--sp-4); }
.product-media img[src*="hip-pack/contents"] { object-fit: contain; padding: var(--sp-4); }
.product-media img[src*="ent-pack/contents"] { object-fit: contain; padding: var(--sp-4); }
.product-media img[src*="delivery-pack-pouch/contents"] { object-fit: contain; padding: var(--sp-4); }
.product-media img[src*="delivery-pack-with-pouch/contents"] { object-fit: contain; padding: var(--sp-4); }
.product-media img.theme-img-light { display: none; }
html[data-theme="light"] .product-media img.theme-img-dark { display: none; }
html[data-theme="light"] .product-media img.theme-img-light { display: block; }
.product-media::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(var(--tint-3) 1px, transparent 1px);
  background-size: 16px 16px; opacity: 0.5;
}
/* Project showcase (flush PDF-page style stack) */
.project-showcase-outer {
  width: var(--vw-px, 100vw);
  margin-left: calc(50% - (var(--vw-px, 100vw) / 2));
  margin-right: calc(50% - (var(--vw-px, 100vw) / 2));
  display: flex; justify-content: center;
}
.project-showcase {
  width: 94%; max-width: 1700px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.project-showcase img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .project-showcase { width: 100%; border-radius: 0; border-inline: none; } }
.product-body { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.product-body h3 { font-size: var(--fs-md); }
.product-body p { font-size: var(--fs-sm); flex: 1; }
.product-specs { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-block: var(--sp-2); }
.product-specs span {
  font-size: var(--fs-xs); color: var(--text-muted); background: var(--tint-2);
  border: 1px solid var(--border); padding: 3px var(--sp-2); border-radius: var(--radius-sm);
}
.product-card[data-category="raw-materials"], .product-card[data-category="wooden-pallets"] { background: #ffffff; }
.product-card[data-category="raw-materials"] .product-media, .product-card[data-category="wooden-pallets"] .product-media { background: #ffffff; }
.product-card[data-category="raw-materials"] .product-specs span, .product-card[data-category="wooden-pallets"] .product-specs span {
  color: #0D9488; background: rgba(13,148,136,0.1); border-color: rgba(13,148,136,0.35);
}
/* Premium grid restyle — Protective & Medical / Medical Packaging tabs only */
.premium-grid {
  --pc-primary: #4C93F0; --pc-secondary: rgba(76,147,240,0.14); --pc-text: #eef2f9; --pc-text-muted: #93a1b8;
  --pc-card-bg: #10182c; --pc-border-rgb: 255,255,255; --pc-shadow-rgb: 0,0,0;
}
html[data-theme="light"] .premium-grid {
  --pc-primary: #2F80ED; --pc-secondary: #EAF4FF; --pc-text: #0F2D5C; --pc-text-muted: #51617a;
  --pc-card-bg: #ffffff; --pc-border-rgb: 15,45,92; --pc-shadow-rgb: 15,45,92;
}
.premium-grid .sub-tab { border-color: rgba(var(--pc-border-rgb),0.2); color: var(--pc-text-muted); background: transparent; }
.premium-grid .sub-tab:hover { border-color: var(--pc-primary); color: var(--pc-text); }
.premium-grid .sub-tab.active { background: var(--pc-primary); color: #fff; border-color: transparent; }
.premium-grid .product-card {
  background: var(--pc-card-bg); border: 1px solid rgba(var(--pc-border-rgb),0.1); border-radius: 24px;
  box-shadow: 0 12px 32px -20px rgba(var(--pc-shadow-rgb),0.16);
}
.premium-grid .product-card:hover {
  box-shadow: 0 18px 40px -16px rgba(var(--pc-shadow-rgb),0.22); border-color: rgba(var(--pc-border-rgb),0.22);
}
.premium-grid .product-media { background: var(--pc-card-bg); }
.premium-grid .product-media::before { display: none; }
.premium-grid .product-body h3 { font-family: var(--font-display); color: var(--pc-text); }
html[dir="rtl"] .premium-grid .product-body h3 { font-family: var(--font-arabic); }
.premium-grid .product-body p { color: var(--pc-text-muted); }
.premium-grid .product-specs span {
  background: var(--pc-secondary); color: var(--pc-primary); border: 1px solid rgba(var(--pc-border-rgb),0.12); font-weight: 600;
}

/* ==========================================================================
   Stats / Why-us / Values
   ========================================================================== */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
@media (max-width: 768px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-card { text-align: center; padding: var(--sp-8) var(--sp-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elevated); }
.stat-card .num { font-size: var(--fs-3xl); font-weight: 800; color: var(--text); }
.stat-card .label { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--sp-2); }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
@media (max-width: 768px) { .feature-list { grid-template-columns: 1fr; } }
.feature-item { display: flex; gap: var(--sp-4); }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--accent2-soft); color: var(--accent-2);
  display: grid; place-items: center; flex-shrink: 0;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-item h4 { font-size: var(--fs-md); margin-bottom: var(--sp-1); }
.feature-item p { font-size: var(--fs-sm); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  border-radius: var(--radius-lg); background: var(--grad-brand); color: #0a0f1e; padding: var(--sp-16) var(--sp-12);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-8); position: relative; overflow: hidden;
}
@media (max-width: 768px) { .cta-band { flex-direction: column; text-align: center; padding: var(--sp-12) var(--sp-6); } }
.cta-band h2 { font-size: var(--fs-2xl); }
.cta-band p { color: rgba(10,15,30,0.75); }
.cta-band .btn-outline { border-color: rgba(10,15,30,0.3); color: #0a0f1e; }
.cta-band .btn-outline:hover { background: rgba(10,15,30,0.08); }

html[data-theme="light"] .cta-band { background: var(--accent); color: #ffffff; }
html[data-theme="light"] .cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(#fff 1.5px, transparent 1.5px);
  background-size: 18px 18px; opacity: 0.1;
}
html[data-theme="light"] .cta-band p { color: rgba(255,255,255,0.85); }
html[data-theme="light"] .cta-band .btn-outline { border-color: rgba(255,255,255,0.4); color: #ffffff; }
html[data-theme="light"] .cta-band .btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ==========================================================================
   Footer
   ========================================================================== */
footer { border-top: 1px solid var(--border); padding-block: var(--sp-16) var(--sp-8); background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-8); margin-bottom: var(--sp-12); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: var(--sp-4); }
.footer-grid ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-grid a { font-size: var(--fs-sm); color: var(--text-muted); transition: color var(--dur-fast) var(--ease-out); }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--sp-8); border-top: 1px solid var(--border); flex-wrap: wrap; gap: var(--sp-4); }
.footer-bottom p { font-size: var(--fs-xs); }
.social-row { display: flex; gap: var(--sp-2); }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong);
  display: grid; place-items: center; color: var(--text-muted);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.social-row a:hover {
  background: var(--accent); border-color: var(--accent); color: #0a0f1e;
  transform: translateY(-4px) scale(1.08);
  box-shadow: var(--shadow-glow-accent);
}
.social-row a:active { transform: translateY(-1px) scale(1.02); }
.social-row svg { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
.social-row a:hover svg { transform: rotate(-8deg) scale(1.1); }

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */
.wa-float {
  position: fixed; bottom: var(--sp-6); inset-inline-end: var(--sp-6); z-index: 200;
  width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); color: #06210f;
  display: grid; place-items: center; box-shadow: var(--shadow-glow-whatsapp);
  transition: transform var(--dur-base) var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp);
  animation: pulse-ring 2.4s var(--ease-out) infinite; z-index: -1;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (max-width: 640px) { .wa-float { width: 52px; height: 52px; bottom: var(--sp-4); inset-inline-end: var(--sp-4); } .wa-float svg { width: 26px; height: 26px; } }

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.page-header { padding-top: calc(var(--sp-24) + 56px); padding-bottom: var(--sp-12); text-align: center; position: relative; overflow: hidden; }
.page-header h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-block: var(--sp-4); }
.page-header p { max-width: 60ch; margin-inline: auto; font-size: var(--fs-md); }

.page-header-photo {
  min-height: 520px; display: flex; align-items: center; padding-block: calc(var(--sp-24) + 56px) var(--sp-16);
}
.page-header-photo::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,15,30,0.75) 0%, rgba(10,15,30,0.35) 40%, rgba(10,15,30,0.85) 100%);
}
.page-header-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: top center; display: none; }
.page-header-photo .page-header-bg-dark { display: block; }
html[data-theme="light"] .page-header-photo .page-header-bg-dark { display: none; }
html[data-theme="light"] .page-header-photo .page-header-bg-light { display: block; }
.page-header-photo .container { position: relative; z-index: 1; }
.page-header-photo .breadcrumb, .page-header-photo .breadcrumb a { color: rgba(255,255,255,0.75); }
.page-header-photo .breadcrumb a:hover { color: #fff; }
.page-header-photo .eyebrow { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); color: #fff; }
.page-header-photo h1, .page-header-photo p { color: #fff; }
.breadcrumb { display: flex; justify-content: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--text-faint); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-2); }

/* ==========================================================================
   Forms (contact page)
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 700; }
.field .req { color: var(--danger); }
.field input, .field textarea, .field select {
  background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4); font-size: var(--fs-base); transition: border-color var(--dur-fast) var(--ease-out);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent-2); }
.field .hint { font-size: var(--fs-xs); color: var(--text-faint); }
.field textarea { resize: vertical; min-height: 120px; }

.contact-cta-section { position: relative; overflow: hidden; }
.contact-cta-section .hero-blob {
  z-index: 0;
  background: radial-gradient(circle, rgba(148,163,184,0.28) 0%, rgba(148,163,184,0.08) 60%, transparent 75%);
}
.contact-cta-section .container { position: relative; z-index: 1; }

.contact-card {
  position: relative; z-index: 1; overflow: hidden;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.85); border-radius: var(--radius-lg); padding: var(--sp-8);
  box-shadow: 0 24px 60px -28px rgba(15,23,42,0.25), inset 0 1px 0 rgba(255,255,255,0.9);
}
.contact-card::before {
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(148,163,184,0.7), transparent);
}
.contact-row { display: flex; gap: var(--sp-4); align-items: flex-start; padding-block: var(--sp-4); border-bottom: 1px solid var(--border); }
.contact-row:last-child { border-bottom: none; }
.contact-row .icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.contact-row .icon svg { width: 22px; height: 22px; }
.contact-row h4 { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; }
.contact-row p { color: var(--text); font-weight: 600; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/9; margin-top: var(--sp-6); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: var(--map-filter); transition: filter var(--dur-slow) var(--ease-out); }

/* ==========================================================================
   Product detail: gallery + specs table
   ========================================================================== */
.gallery-main {
  aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-elevated-2), var(--bg-soft)); position: relative;
}
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-main img.theme-img-light { display: none; }
html[data-theme="light"] .gallery-main img.theme-img-dark { display: none; }
html[data-theme="light"] .gallery-main img.theme-img-light { display: block; }
.gallery-main img[src*="hero.png"] { object-position: center 0%; }
.gallery-main img[src*="hero-light.png"] { object-position: center center; }
.gallery-main img[src*="table-mayo.png"] { object-position: center 25%; }
.gallery-main img[src*="tur-laparoscopy.png"] { object-position: center 36%; }
.gallery-main img[src*="ophthalmic.png"] { object-position: center 29%; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-top: var(--sp-3); }
.gallery-thumb {
  aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--border);
  padding: 0; opacity: 0.6; transition: all var(--dur-fast) var(--ease-out);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { opacity: 0.9; }
.gallery-thumb.active { border-color: var(--accent); opacity: 1; }

.specs-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table th, .specs-table td { text-align: start; padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); font-weight: 400; }
.specs-table th { width: 42%; color: var(--text-muted); font-weight: 600; background: var(--bg-elevated); }
.specs-table td { color: var(--text); background: var(--bg-soft); }

/* ==========================================================================
   Product variants (size / packaging comparison cards)
   ========================================================================== */
.variant-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
@media (max-width: 768px) { .variant-grid { grid-template-columns: 1fr; } }
.variant-grid-single { grid-template-columns: minmax(0, 584px); justify-content: center; }
.variant-grid-compact { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.variants-heading {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.01em; margin-bottom: var(--sp-4);
}
html[dir="rtl"] .variants-heading { font-family: var(--font-arabic); text-transform: none; letter-spacing: 0; }

.container-wide { max-width: 1600px; }

.component-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
@media (max-width: 860px) { .component-grid { grid-template-columns: repeat(2, 1fr); } }
.component-card {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-3); border-radius: var(--radius-lg); border: 1px solid var(--border);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.component-card.variant-a { background: var(--accent-soft); border-color: var(--accent-soft-border); }
.component-card.variant-b { background: var(--accent2-soft); border-color: var(--accent2-soft-border); }
.component-card:hover { transform: translateY(-4px); }
.component-card.variant-a:hover { box-shadow: var(--shadow-glow-accent-lg); border-color: var(--accent); }
.component-card.variant-b:hover { box-shadow: var(--shadow-glow-accent2-lg); border-color: var(--accent-2); }
.component-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-elevated-2);
}
.component-card.variant-a .component-icon { color: var(--accent); }
.component-card.variant-b .component-icon { color: var(--accent-2); }
.component-icon svg { width: 24px; height: 24px; }
.component-name { font-size: var(--fs-sm); font-weight: 700; text-align: center; }
.drape-groups-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); align-items: start; }
@media (max-width: 960px) { .drape-groups-row { grid-template-columns: 1fr; max-width: 500px; margin-inline: auto; } }

/* Compact cards: side-by-side within each narrow drape-group column */
.variant-grid-compact .variant-card { padding: var(--sp-4); display: flex; flex-direction: column; justify-content: flex-start; min-height: 340px; }
.variant-grid-compact .variant-index { width: 30px; height: 30px; font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.variant-grid-compact .variant-name { font-size: var(--fs-sm); margin-bottom: var(--sp-2); line-height: 1.25; }
.variant-grid-compact .variant-table th, .variant-grid-compact .variant-table td { padding: var(--sp-1) var(--sp-2); font-size: var(--fs-xs); }
.variant-grid-compact .variant-table td:last-child span { font-size: var(--fs-sm); }
.variant-card {
  position: relative; border-radius: var(--radius-lg); padding: var(--sp-8);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.variant-card.variant-a { background: var(--accent-soft); border-color: var(--accent-soft-border); }
.variant-card.variant-b { background: rgba(148,163,184,0.14); border-color: rgba(148,163,184,0.35); }
.variant-card::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 6px; }
.variant-card.variant-a::before { background: var(--accent); }
.variant-card.variant-b::before { background: #94a3b8; }
.variant-card:hover { transform: translateY(-6px); }
.variant-card.variant-a:hover { box-shadow: var(--shadow-glow-accent-lg); border-color: var(--accent); }
.variant-card.variant-b:hover { box-shadow: 0 16px 40px -6px rgba(148,163,184,0.4); border-color: #94a3b8; }

.variant-index {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); margin-bottom: var(--sp-4);
  animation: trusted-float 4.5s ease-in-out infinite;
}
.variant-card.variant-a .variant-index { background: var(--accent); color: #ffffff; }
.variant-card.variant-b .variant-index { background: #94a3b8; color: #ffffff; }
.variant-card.variant-b .variant-index { animation-delay: 0.6s; }
.variant-card:hover .variant-index { animation-play-state: paused; }
.variant-name {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em;
  font-size: var(--fs-xl); margin-bottom: var(--sp-4); color: var(--text);
}
html[dir="rtl"] .variant-name { font-family: var(--font-arabic); letter-spacing: 0; }
.variant-table { width: 100%; border-collapse: collapse; }
.variant-table th, .variant-table td { text-align: center; padding: var(--sp-3) var(--sp-4); font-size: var(--fs-md); }
.variant-table thead th {
  color: var(--text-faint); font-weight: 700; text-transform: uppercase; font-size: var(--fs-sm);
  letter-spacing: 0.04em; border-bottom: 2px solid var(--border-strong);
}
.variant-table tbody tr { border-bottom: 1px solid var(--border); transition: background var(--dur-fast) var(--ease-out); }
.variant-table tbody tr:last-child { border-bottom: none; }
.variant-table tbody tr:hover { background: var(--tint-2); }
.variant-table td:first-child { font-weight: 700; }
.variant-table td:last-child span {
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg);
}
.variant-card.variant-a .variant-table td:last-child span { color: var(--accent); }
.variant-card.variant-b .variant-table td:last-child span { color: #475569; }
html[data-theme="dark"] .variant-card.variant-b .variant-table td:last-child span,
html:not([data-theme]) .variant-card.variant-b .variant-table td:last-child span { color: #cbd5e1; }

/* ==========================================================================
   About page
   ========================================================================== */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; } }
.timeline { display: flex; flex-direction: column; gap: var(--sp-8); position: relative; padding-inline-start: var(--sp-8); }
html[dir="rtl"] .timeline { padding-inline-start: 0; padding-inline-end: var(--sp-8); }
.timeline::before { content: ''; position: absolute; inset-inline-start: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
html[dir="rtl"] .timeline::before { inset-inline-start: auto; inset-inline-end: 5px; }
.timeline-item { position: relative; }
.timeline-item::before { content: ''; position: absolute; inset-inline-start: -35px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
html[dir="rtl"] .timeline-item::before { inset-inline-start: auto; inset-inline-end: -35px; }
.timeline-item h4 { color: var(--accent); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--sp-1); }
.timeline-item p { font-size: var(--fs-sm); }

/* ==========================================================================
   Scroll reveal utility
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 300ms; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 360ms; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 420ms; }

.split-word { display: inline-block; overflow: hidden; vertical-align: top; }
.split-word-inner { display: inline-block; transform: translateY(115%); transition: transform 0.7s var(--ease-out); }
.split-in .split-word-inner { transform: translateY(0); }
.split-word:nth-child(1) .split-word-inner { transition-delay: 0ms; }
.split-word:nth-child(2) .split-word-inner { transition-delay: 50ms; }
.split-word:nth-child(3) .split-word-inner { transition-delay: 100ms; }
.split-word:nth-child(4) .split-word-inner { transition-delay: 150ms; }
.split-word:nth-child(5) .split-word-inner { transition-delay: 200ms; }
.split-word:nth-child(6) .split-word-inner { transition-delay: 250ms; }
.split-word:nth-child(7) .split-word-inner { transition-delay: 300ms; }
.split-word:nth-child(8) .split-word-inner { transition-delay: 350ms; }
.split-word:nth-child(9) .split-word-inner { transition-delay: 400ms; }
.split-word:nth-child(10) .split-word-inner { transition-delay: 450ms; }
@media (prefers-reduced-motion: reduce) {
  .split-word-inner { transition: none; transform: translateY(0); }
}

/* Toast (contact form feedback) */
.toast {
  position: fixed; bottom: var(--sp-6); left: 50%; transform: translateX(-50%) translateY(20px); z-index: 300;
  background: var(--bg-elevated-2); border: 1px solid var(--border-strong); color: var(--text);
  padding: var(--sp-3) var(--sp-6); border-radius: var(--radius-full); box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: all var(--dur-base) var(--ease-out); font-size: var(--fs-sm); font-weight: 600;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.back-to-top {
  position: fixed; bottom: var(--sp-6); inset-inline-start: var(--sp-6); z-index: 199;
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg-elevated-2); border: 1px solid var(--border-strong);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--dur-base) var(--ease-out);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

.zoomable { cursor: zoom-in; transition: transform var(--dur-base) var(--ease-out); }
.zoomable:hover { transform: scale(1.02); }
.img-lightbox-overlay {
  position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center;
  background: rgba(5,10,20,0.88); padding: var(--sp-8);
  opacity: 0; visibility: hidden; transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base) linear;
}
.img-lightbox-overlay.open { opacity: 1; visibility: visible; }
.img-lightbox-content { max-width: min(90vw, 1100px); max-height: 90vh; }
.img-lightbox-content img {
  display: block; width: 100%; height: 100%; max-height: 90vh; object-fit: contain;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  transform: scale(0.96); transition: transform var(--dur-base) var(--ease-out);
}
.img-lightbox-overlay.open .img-lightbox-content img { transform: scale(1); }
.img-lightbox-close {
  position: absolute; top: var(--sp-6); inset-inline-end: var(--sp-6); width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: #fff;
  display: grid; place-items: center; transition: background var(--dur-fast) var(--ease-out);
}
.img-lightbox-close:hover { background: rgba(255,255,255,0.2); }
.img-lightbox-close svg { width: 20px; height: 20px; }

.skip-link {
  position: fixed; top: -100px; inset-inline-start: var(--sp-4); z-index: 999; background: var(--accent); color: #0a0f1e;
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-sm); font-weight: 700; transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--sp-4); }

/* ==========================================================================
   Premium Catalog Layout — bespoke design (Surgical Operation Drapes)
   Dark is the default (matches the site's own :root convention); the light
   palette from the design brief applies as the [data-theme="light"] override.
   The product image box always stays white — the source images have opaque
   white backgrounds baked in, so inverting just the box would clash.
   ========================================================================== */
.premium-catalog {
  --pc-primary: #4C93F0; --pc-secondary: rgba(76,147,240,0.14); --pc-bg: #0a0f1e;
  --pc-text: #eef2f9; --pc-accent: #4C93F0; --pc-text-muted: #93a1b8;
  --pc-card-bg: #10182c; --pc-border-rgb: 255,255,255; --pc-shadow-rgb: 0,0,0;
  position: relative; overflow: hidden; background: var(--pc-bg); color: var(--pc-text); padding-block: var(--sp-16) var(--sp-24);
}
html[data-theme="light"] .premium-catalog {
  --pc-primary: #2F80ED; --pc-secondary: #EAF4FF; --pc-bg: #FFFFFF;
  --pc-text: #0F2D5C; --pc-accent: #2F80ED; --pc-text-muted: #51617a;
  --pc-card-bg: #ffffff; --pc-border-rgb: 15,45,92; --pc-shadow-rgb: 15,45,92;
}
.premium-catalog::before, .premium-catalog::after {
  content: ''; position: absolute; z-index: 0; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(47,128,237,0.14), transparent 70%);
}
.premium-catalog::before { top: -220px; left: -160px; }
.premium-catalog::after { top: -260px; right: -180px; background: radial-gradient(circle, rgba(47,128,237,0.1), transparent 70%); }
.premium-catalog > * { position: relative; z-index: 1; }
.premium-hero { text-align: center; max-width: 720px; margin-inline: auto; padding-inline: var(--sp-6); margin-bottom: var(--sp-16); }
.premium-hero .eyebrow {
  background: var(--pc-secondary); color: var(--pc-primary); border-color: rgba(47,128,237,0.18); backdrop-filter: none;
}
.premium-hero .eyebrow::before { background: var(--pc-primary); }
.premium-hero h1 {
  font-family: var(--font-display); font-weight: 800; text-transform: none; letter-spacing: -0.01em;
  font-size: clamp(2.1rem, 4vw, 3.1rem); margin-block: var(--sp-4); color: var(--pc-text);
}
html[dir="rtl"] .premium-hero h1 { font-family: var(--font-arabic); }
.premium-hero p { color: var(--pc-text-muted); font-size: var(--fs-md); }

.pc-category-group { max-width: 1400px; margin-inline: auto; }
.pc-category-group + .pc-category-group { margin-top: var(--sp-16); }

.pc-cat-hero-card {
  display: grid; grid-template-columns: 420px 1fr; gap: 60px; align-items: center;
  background: var(--pc-card-bg); border: 1px solid rgba(var(--pc-border-rgb),0.08); border-radius: 28px;
  box-shadow: 0 16px 40px -22px rgba(var(--pc-shadow-rgb),0.2); padding: 40px; margin-bottom: var(--sp-6);
}
.pc-cat-intro { display: flex; flex-direction: column; justify-content: center; gap: var(--sp-3); align-items: flex-start; height: 100%; }
html[dir="rtl"] .pc-cat-intro { align-items: flex-end; }
.premium-title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--pc-text); letter-spacing: -0.01em; line-height: 1.15; text-transform: uppercase;
}
html[dir="rtl"] .premium-title { font-family: var(--font-arabic); letter-spacing: 0; text-transform: none; }
.premium-desc { color: var(--pc-text-muted); font-size: var(--fs-sm); line-height: 1.6; max-width: 36ch; }
.premium-title:empty, .premium-desc:empty { display: none; }
.premium-feature-list { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-2); width: 100%; }
.feature-row { display: flex; align-items: center; gap: var(--sp-3); }
.feature-row svg {
  width: 44px; height: 44px; padding: 10px; box-sizing: border-box; flex-shrink: 0; color: var(--pc-primary);
  border-radius: 50%; background: var(--pc-secondary);
}
.feature-row div { display: flex; flex-direction: column; }
.feature-row strong { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); color: var(--pc-text); }
html[dir="rtl"] .feature-row strong { font-family: var(--font-arabic); }
.feature-row span { font-size: var(--fs-xs); color: var(--pc-text-muted); }

.premium-hero-card {
  background: #ffffff; border: 1px solid rgba(15,45,92,0.06); border-radius: 22px;
  padding: 28px; display: flex; justify-content: center; align-items: center; overflow: hidden;
  width: 100%; height: 560px;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.premium-hero-card:hover { transform: translateY(-3px); }
.premium-hero-card img { width: 100%; height: 100%; max-width: 680px; object-fit: contain; object-position: center; border-radius: 12px; }
.premium-hero-card img.theme-img-light { display: none; }
html[data-theme="light"] .premium-hero-card img.theme-img-dark { display: none; }
html[data-theme="light"] .premium-hero-card img.theme-img-light { display: block; }
.premium-hero-card.has-dual-image { background: var(--pc-card-bg); border-color: rgba(var(--pc-border-rgb),0.08); }

.pc-variant-stack { display: flex; flex-direction: column; gap: var(--sp-6); }
.pc-variant-card {
  display: flex; align-items: center; gap: var(--sp-6); background: var(--pc-card-bg); border: 1px solid rgba(var(--pc-border-rgb),0.08);
  border-radius: 24px; box-shadow: 0 12px 32px -20px rgba(var(--pc-shadow-rgb),0.16); padding: var(--sp-6) var(--sp-6);
}
.pc-variant-card-left { display: flex; align-items: flex-start; gap: var(--sp-4); flex: 1; min-width: 0; }
.pc-spec-badge {
  width: 30px; height: 30px; border-radius: 50%; background: var(--pc-primary); color: #fff;
  display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 800; flex-shrink: 0; margin-top: 2px;
}
.pc-spec-name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); color: var(--pc-text); margin-bottom: var(--sp-2); }
html[dir="rtl"] .pc-spec-name { font-family: var(--font-arabic); }
.pc-sizes-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pc-text-muted); margin-bottom: var(--sp-2); }
html[dir="rtl"] .pc-sizes-label { letter-spacing: 0; }
.pc-size-box-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.pc-size-box {
  display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid rgba(var(--pc-border-rgb),0.12);
  border-radius: 12px; padding: var(--sp-2) var(--sp-4); min-width: 108px;
}
.pc-size-box span { font-size: var(--fs-xs); color: var(--pc-text); font-weight: 600; }
.pc-size-box strong { font-size: var(--fs-sm); color: var(--pc-primary); font-weight: 800; }
.pc-variant-unitbox {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); flex-shrink: 0;
  padding-inline-start: var(--sp-6); border-inline-start: 1px solid rgba(var(--pc-border-rgb),0.12); text-align: center; min-width: 110px;
}
.pc-variant-unitbox svg { width: 22px; height: 22px; color: var(--pc-primary); }
.pc-variant-unitbox span { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pc-text-muted); }
html[dir="rtl"] .pc-variant-unitbox span { letter-spacing: 0; }
.pc-variant-unitbox strong { font-size: var(--fs-xl); color: var(--pc-primary); font-weight: 800; }

.pc-contents-table { width: 100%; border-collapse: collapse; }
.pc-contents-table th {
  text-align: start; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--pc-text-muted); background: var(--pc-secondary); padding: var(--sp-2) var(--sp-3);
}
.pc-contents-table th:last-child { text-align: center; }
html[dir="rtl"] .pc-contents-table th { letter-spacing: 0; }
.pc-contents-table td {
  font-size: var(--fs-sm); color: var(--pc-text); padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid rgba(var(--pc-border-rgb),0.08);
}
.pc-contents-table tr:last-child td { border-bottom: none; }
.pc-contents-table td:last-child { text-align: center; color: var(--pc-primary); font-weight: 700; }
.pc-variant-card-table { align-items: stretch; }

.premium-features-strip {
  max-width: 1400px; margin: var(--sp-16) auto 0; padding-inline: var(--sp-6);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6);
}
.premium-feature-card {
  background: var(--pc-card-bg); border: 1px solid rgba(var(--pc-border-rgb),0.08); border-radius: 24px;
  box-shadow: 0 12px 32px -20px rgba(var(--pc-shadow-rgb),0.14); padding: var(--sp-6);
  display: flex; align-items: flex-start; gap: var(--sp-3);
}
.premium-feature-card svg {
  width: 40px; height: 40px; padding: 9px; box-sizing: border-box; flex-shrink: 0; color: var(--pc-primary);
  border-radius: 50%; background: var(--pc-secondary);
}
.premium-feature-card h4 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); color: var(--pc-text); margin-bottom: 2px; }
.premium-feature-card p { font-size: var(--fs-xs); color: var(--pc-text-muted); line-height: 1.5; }
html[dir="rtl"] .premium-feature-card h4 { font-family: var(--font-arabic); }

@media (max-width: 1024px) {
  .pc-cat-hero-card { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .pc-cat-intro { align-items: center; height: auto; }
  .premium-feature-list { align-items: center; }
  .premium-hero-card { max-width: 480px; margin-inline: auto; height: 440px; }
  .premium-hero-card img { width: 100%; height: 100%; }
  .pc-variant-card { flex-direction: column; text-align: center; }
  .pc-variant-card-left { flex-direction: column; align-items: center; }
  .pc-size-box-row { justify-content: center; }
  .pc-variant-unitbox { border-inline-start: none; border-top: 1px solid rgba(var(--pc-border-rgb),0.12); padding-inline-start: 0; padding-top: var(--sp-4); width: 100%; }
  .premium-features-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pc-cat-hero-card { padding: var(--sp-6); }
  .premium-hero-card { padding: 16px; height: 320px; }
  .pc-variant-card { padding: var(--sp-6); }
  .premium-features-strip { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Industrial Supplies — dedicated landing page
   ========================================================================== */
.is-hero {
  position: relative; overflow: hidden; padding-block: calc(var(--sp-24) + 40px) var(--sp-24);
  background: radial-gradient(ellipse at top right, rgba(56,189,248,0.14), transparent 55%), var(--bg);
}
.is-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(56,189,248,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  animation: is-grid-pan 18s linear infinite;
}
@keyframes is-grid-pan { from { background-position: 0 0, 0 0; } to { background-position: 84px 84px, 84px 84px; } }
.is-hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-16); align-items: center; }
.is-hero-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2); padding: 6px var(--sp-4); border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-soft-border); color: var(--accent);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.03em; margin-bottom: var(--sp-8);
}
.is-hero h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--sp-4); }
.is-hero-lead { font-size: var(--fs-lg); color: var(--text); line-height: 1.5; margin-bottom: var(--sp-3); font-weight: 600; }
.is-hero-sub { color: var(--text-muted); font-size: var(--fs-md); margin-bottom: var(--sp-8); }
.is-hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.is-hero-visual { position: relative; aspect-ratio: 1/1; display: grid; place-items: center; }
.is-hero-visual-ring {
  position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed var(--border-strong);
  animation: is-spin 40s linear infinite;
}
.is-hero-visual-ring.is-ring-2 { inset: 20%; animation-duration: 30s; animation-direction: reverse; }
@keyframes is-spin { to { transform: rotate(360deg); } }
.is-hero-node {
  position: absolute; width: 92px; height: 92px; border-radius: 22px; background: var(--bg-elevated);
  border: 1px solid var(--border-strong); display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.is-hero-node svg { width: 36px; height: 36px; color: var(--accent-2); }
.is-hero-node.is-n1 { top: 0; left: 50%; transform: translate(-50%, -50%); }
.is-hero-node.is-n3 { bottom: 0; left: 50%; transform: translate(-50%, 50%); }
.is-hero-node.is-n2 { top: 50%; right: 0; transform: translate(50%, -50%); }
.is-hero-node.is-n4 { top: 50%; left: 0; transform: translate(-50%, -50%); }
.is-hero-core {
  position: relative; z-index: 1; width: 150px; height: 150px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(56,189,248,0.1), var(--shadow-glow-accent2-lg);
}
.is-hero-core svg { width: 60px; height: 60px; color: #fff; }

/* Four divisions */
.is-division-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.is-division-card {
  background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.is-division-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.is-division-photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; flex-shrink: 0; }
.is-division-body {
  padding: var(--sp-6) var(--sp-8) var(--sp-8); background: #ffffff;
  position: relative; overflow: hidden; flex: 1;
}
.is-division-body::before {
  content: ''; position: absolute; top: 0; inset-inline-end: 0; width: 160px; height: 160px;
  background: radial-gradient(circle, var(--is-div-soft, transparent) 0%, transparent 72%);
  transform: translate(30%, -35%); pointer-events: none;
}
.is-division-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: var(--sp-4);
  background: transparent; color: var(--is-div-color, var(--accent));
  margin-top: -36px; position: relative; z-index: 1;
}
.is-division-icon svg { width: 28px; height: 28px; }
.is-division-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); position: relative; z-index: 1; }
.is-division-list { display: flex; flex-direction: column; gap: var(--sp-2); position: relative; z-index: 1; }
.is-division-list li { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-muted); }
.is-division-list svg { width: 15px; height: 15px; color: var(--is-div-color, var(--accent)); flex-shrink: 0; }
.is-division-grid .is-division-card:nth-child(1) { --is-div-color: #f59e0b; --is-div-soft: rgba(245,158,11,0.16); }
.is-division-grid .is-division-card:nth-child(2) { --is-div-color: #2d6bad; --is-div-soft: rgba(45,107,173,0.14); }
.is-division-grid .is-division-card:nth-child(3) { --is-div-color: #6366f1; --is-div-soft: rgba(99,102,241,0.14); }
.is-division-grid .is-division-card:nth-child(4) { --is-div-color: #16a34a; --is-div-soft: rgba(22,163,74,0.14); }

/* Core capabilities — text-only rows, slide in from the outer edge and meet in the middle */
.is-cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.is-cap-row {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--sp-6);
}
.is-cap-row h4 { font-size: var(--fs-md); margin-bottom: 2px; }
.is-cap-row p { font-size: var(--fs-sm); color: var(--text-muted); }
.is-cap-grid.reveal-stagger > .is-cap-row:nth-child(odd) { transform: translateX(-48px); }
.is-cap-grid.reveal-stagger > .is-cap-row:nth-child(even) { transform: translateX(48px); }
.is-cap-grid.reveal-stagger.in > .is-cap-row { transform: translateX(0); }
html[dir="rtl"] .is-cap-grid.reveal-stagger > .is-cap-row:nth-child(odd) { transform: translateX(48px); }
html[dir="rtl"] .is-cap-grid.reveal-stagger > .is-cap-row:nth-child(even) { transform: translateX(-48px); }
html[dir="rtl"] .is-cap-grid.reveal-stagger.in > .is-cap-row { transform: translateX(0); }

/* ICT solutions */
.is-ict { background: rgba(255,255,255,0.6); }
.is-ict-title { text-align: center; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: var(--sp-8); color: var(--text); }
.is-ict-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.is-ict-card {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--bg-elevated-2), var(--bg-elevated));
  border: 1px solid var(--border); display: flex; align-items: flex-end; padding: var(--sp-6);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.is-ict-card:hover { transform: translateY(-3px); border-color: var(--accent2-soft-border); }
.is-ict-card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.is-ict-card.has-photo::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6,10,20,0) 30%, rgba(6,10,20,0.6) 72%, rgba(6,10,20,0.9) 100%);
}
.is-ict-card-icon {
  position: absolute; top: var(--sp-6); left: var(--sp-6); width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; background: rgba(56,189,248,0.12); color: var(--accent-2); z-index: 2;
}
.is-ict-card.has-photo .is-ict-card-icon { background: rgba(255,255,255,0.16); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.25); }
.is-ict-card-icon svg { width: 26px; height: 26px; }
.is-ict-card h4 { font-size: var(--fs-md); position: relative; z-index: 2; }
.is-ict-card.has-photo h4 { color: #fff; }

/* IT services grid */
.is-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.is-service-card {
  text-align: center; padding: var(--sp-6); border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #0b1224 0%, #16234a 60%, #0b1224 100%);
  border: 1px solid rgba(255,255,255,0.08); position: relative; overflow: hidden;
}
.is-service-card::before {
  content: ''; position: absolute; top: -30%; inset-inline-end: -20%; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.22), transparent 70%); pointer-events: none;
}
.is-service-icon {
  width: 52px; height: 52px; margin-inline: auto var(--sp-3); border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); position: relative; z-index: 1;
}
.is-service-icon svg { width: 26px; height: 26px; }
.is-service-card h4 { font-size: var(--fs-sm); margin-bottom: var(--sp-1); color: #fff; position: relative; z-index: 1; }
.is-service-card p { font-size: var(--fs-xs); color: rgba(255,255,255,0.65); line-height: 1.5; position: relative; z-index: 1; }
.is-services-grid .is-service-card:nth-child(1) .is-service-icon { background: rgba(99,102,241,0.14); color: #6366f1; }
.is-services-grid .is-service-card:nth-child(2) .is-service-icon { background: rgba(34,197,94,0.14); color: #22c55e; }
.is-services-grid .is-service-card:nth-child(3) .is-service-icon { background: rgba(239,68,68,0.14); color: #ef4444; }
.is-services-grid .is-service-card:nth-child(4) .is-service-icon { background: rgba(14,165,233,0.14); color: #0ea5e9; }
.is-services-grid .is-service-card:nth-child(5) .is-service-icon { background: rgba(168,85,247,0.14); color: #a855f7; }
.is-services-grid .is-service-card:nth-child(6) .is-service-icon { background: rgba(249,115,22,0.14); color: #f97316; }
.is-services-grid .is-service-card:nth-child(7) .is-service-icon { background: rgba(236,72,153,0.14); color: #ec4899; }
.is-services-grid .is-service-card:nth-child(8) .is-service-icon { background: rgba(20,184,166,0.14); color: #14b8a6; }

/* Projects — dark tech dossier cards */
.is-project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.is-project-card {
  background: linear-gradient(150deg, #0b1224 0%, #16234a 60%, #0b1224 100%);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: var(--sp-8);
  position: relative; overflow: hidden; color: #fff;
}
.is-project-card::before {
  content: ''; position: absolute; top: -30%; inset-inline-end: -15%; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.28), transparent 70%); pointer-events: none;
}
.is-project-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); position: relative; z-index: 1; }
.is-project-code { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 800; color: #38bdf8; text-shadow: 0 0 24px rgba(56,189,248,0.45); }
.is-project-status { font-size: var(--fs-xs); font-weight: 700; color: #4ade80; background: rgba(74,222,128,0.14); border: 1px solid rgba(74,222,128,0.35); padding: 4px var(--sp-3); border-radius: 999px; }
.is-project-meta { color: rgba(255,255,255,0.65); font-size: var(--fs-sm); margin-bottom: var(--sp-4); position: relative; z-index: 1; }
.is-project-value { font-size: var(--fs-xl); font-weight: 800; color: #fff; margin-bottom: var(--sp-4); position: relative; z-index: 1; }
.is-project-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); position: relative; z-index: 1; }
.is-project-tags span { font-size: var(--fs-xs); color: #dbeafe; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); padding: 3px var(--sp-3); border-radius: var(--radius-sm); }

/* Stats */
.is-stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-6); }

@media (max-width: 1024px) {
  .is-hero .container { grid-template-columns: 1fr; text-align: center; }
  .is-hero-actions { justify-content: center; }
  .is-hero-visual { max-width: 340px; margin-inline: auto; }
  .is-division-grid { grid-template-columns: repeat(2, 1fr); }
  .is-cap-grid { grid-template-columns: 1fr; }
  .is-ict-grid { grid-template-columns: repeat(2, 1fr); }
  .is-services-grid { grid-template-columns: repeat(2, 1fr); }
  .is-project-grid { grid-template-columns: 1fr; }
  .is-stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .is-division-grid, .is-services-grid { grid-template-columns: 1fr; }
  .is-stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Project Implementation & Design — custom hero (replaces the standard
   products.html hero only when this category is selected)
   ========================================================================== */
.pid-hero { display: none; background: #ffffff; color: #111827; overflow: hidden; }
.pid-hero.active { display: block; }
.pid-hero .container {
  display: flex; align-items: center; gap: var(--sp-16);
  padding-top: calc(var(--sp-24) + 56px); padding-bottom: var(--sp-16);
  position: relative;
}
.pid-hero-text { flex: 1; max-width: 520px; position: relative; z-index: 2; }
.pid-hero-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #0D9488; margin-bottom: var(--sp-5); }
.pid-hero-headline { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; line-height: 1.15; margin-bottom: var(--sp-6); }
.pid-hero-headline .pid-teal { color: #0D9488; }
.pid-hero-headline .pid-dark { color: #111827; }
html[dir="rtl"] .pid-hero-headline { font-family: var(--font-arabic); }
.pid-hero-desc { font-size: var(--fs-md); line-height: 1.7; color: #6B7280; max-width: 440px; margin-bottom: var(--sp-12); }
.pid-stats { display: flex; gap: var(--sp-12); flex-wrap: wrap; }
.pid-stat-num { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #0D9488; line-height: 1; }
.pid-stat-label { font-size: 11px; font-weight: 600; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.05em; margin-top: var(--sp-2); }

.pid-hero-image-wrap { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; z-index: 1; min-width: 0; }
.pid-hero-image-wrap::before {
  content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: rgba(13,148,136,0.08); inset-inline-start: -40px; top: 50%; transform: translateY(-50%); z-index: 0;
}
.pid-hero-image { position: relative; width: 100%; max-width: 420px; z-index: 1; filter: drop-shadow(0 30px 60px rgba(13,148,136,0.12)); }
.pid-hero-image img { width: 100%; height: auto; display: block; }

@media (max-width: 1024px) {
  .pid-hero .container { flex-direction: column-reverse; text-align: center; gap: var(--sp-10); padding-top: calc(var(--sp-24) + 56px); padding-bottom: var(--sp-12); }
  .pid-hero-text { max-width: 100%; }
  .pid-hero-desc { margin-inline: auto; }
  .pid-stats { justify-content: center; }
  .pid-hero-image { max-width: 320px; }
  .pid-hero-image-wrap::before { width: 260px; height: 260px; }
}
