/* ==========================================================================
   AIG — Arab African Investment Group for Trade & Industry
   Industrial B2B HVAC Design System — Strictly White, Blue & Red
   ========================================================================== */

:root {
  --white: #ffffff;
  --off-white: #f5f7fa;
  --blue: #004a9f;
  --blue-dark: #003575;
  --blue-soft: #eaf2fb;
  --red: #d91e2a;
  --red-dark: #b31520;
  --red-soft: #fdecee;
  --ink: #1e293b;
  --ink-muted: #526071;
  --border: #dce3ec;
  --shadow-sm: 0 2px 6px rgba(0, 53, 117, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 53, 117, 0.1);
  --radius: 4px;
  --radius-md: 8px;
  --container: 1200px;
  --font-en: "Plus Jakarta Sans", "Inter", Arial, sans-serif;
  --font-ar: "Cairo", "Tajawal", Arial, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-en);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}

html[dir="rtl"] body {
  font-family: var(--font-ar);
  line-height: 1.8;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Top Bar (Blue) ---------- */
.topbar {
  background: var(--blue-dark);
  color: var(--white);
  font-size: 0.82rem;
  border-bottom: 2px solid var(--red);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.topbar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 2px;
  gap: 2px;
}

.lang-switch a {
  padding: 3px 12px;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch a.active {
  background: var(--red);
  color: var(--white);
}

.lang-switch a:hover:not(.active) {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* ---------- Main Navigation (White) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 48px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--blue-dark);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  border-bottom-color: var(--red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--blue-dark);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: var(--red-dark);
}

.btn-outline-blue {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline-blue:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--blue-dark);
}

/* ---------- Industrial Hero Banner Slider (KingClima / Autoclima Style) ---------- */
.hero-slider {
  position: relative;
  background: var(--white);
  border-bottom: 4px solid var(--blue);
}

.hero-slide {
  display: none;
  background: linear-gradient(100deg, var(--blue-soft) 0%, var(--white) 58%);
  padding-block: 52px;
}

.hero-slide.active {
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero-kicker {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

html[dir="rtl"] .hero-kicker {
  text-transform: none;
  letter-spacing: 0;
}

.hero-slide h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.6vw, 2.95rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--blue-dark);
}

.hero-slide h1 span {
  color: var(--red);
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 1.04rem;
  color: var(--ink-muted);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.hero-spec-item {
  font-size: 0.88rem;
  color: var(--ink);
}

.hero-spec-item strong {
  color: var(--blue);
  display: block;
  font-size: 1rem;
}

.hero-visual {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.hero-visual img {
  width: 100%;
  height: 330px;
  object-fit: contain;
  margin-inline: auto;
}

.hero-visual.cover img {
  object-fit: cover;
  border-radius: var(--radius);
}

.slider-bar {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  padding-block: 10px;
}

.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.slider-tab {
  padding: 7px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.84rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-tab.active,
.slider-tab:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ---------- Sections ---------- */
.section {
  padding-block: 68px;
}

.section-gray {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-blue {
  background: var(--blue-dark);
  color: var(--white);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  padding-bottom: 16px;
}

.section-blue .section-head {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.section-head.center {
  display: block;
  text-align: center;
  max-width: 740px;
  margin-inline: auto;
  border-bottom: none;
  padding-bottom: 0;
}

.section-tag {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.section-blue .section-tag {
  color: var(--white);
  background: var(--red);
  padding: 3px 10px;
  border-radius: 2px;
}

html[dir="rtl"] .section-tag {
  text-transform: none;
  letter-spacing: 0;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--blue-dark);
}

.section-blue .section-head h2 {
  color: var(--white);
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 62ch;
}

.section-blue .section-head p {
  color: #e2e8f0;
}

/* ---------- Flagship DP20 Product Viewer ---------- */
.dp20-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.dp20-gallery-main {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  cursor: zoom-in;
  overflow: hidden;
}

.dp20-gallery-main img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.dp20-gallery-main:hover img {
  transform: scale(1.03);
}

.dp20-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumb-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 8px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--off-white);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.thumb-btn img {
  height: 52px;
  width: 100%;
  object-fit: contain;
}

.thumb-btn span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  min-height: 2.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thumb-btn.active,
.thumb-btn:hover {
  border-color: var(--red);
  background: var(--white);
}

.feature-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 14px;
}

.tab-pill {
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--off-white);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-pill.active,
.tab-pill:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.tab-panel {
  display: none;
  background: var(--off-white);
  border-inline-start: 4px solid var(--red);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.tab-panel.active {
  display: block;
}

.tab-panel ul {
  margin: 8px 0 0;
  padding-inline-start: 20px;
}

.tab-panel li {
  margin-bottom: 5px;
}

/* ---------- Cards Grid (Products, Applications, Blog) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}

.card-media {
  position: relative;
  height: 210px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card-media.contain {
  background: var(--white);
}

.card-media.contain img {
  object-fit: contain;
  padding: 16px;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  background: var(--blue);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 2px;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.card:hover .card-badge,
.card:focus-within .card-badge {
  opacity: 0;
}

.card-badge.red {
  background: var(--red);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 6px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1.14rem;
  color: var(--blue-dark);
}

.card-body p {
  margin: 0 0 16px;
  color: var(--ink-muted);
  font-size: 0.93rem;
  flex: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.chip {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 3px 9px;
  border-radius: 2px;
}

.chip.red {
  color: var(--red);
  background: var(--red-soft);
}

/* ---------- Blue Band KPI Strip ---------- */
.kpi-strip {
  background: var(--blue);
  color: var(--white);
  padding-block: 42px;
  border-top: 3px solid var(--red);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
}

.kpi-item {
  padding-inline: 10px;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.2);
}

.kpi-item:last-child {
  border-inline-end: none;
}

.kpi-item strong {
  display: block;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}

.kpi-item span {
  font-size: 0.88rem;
  color: #e2e8f0;
}

/* ---------- Applications Explorer (White & Blue Industrial) ---------- */
.apps-explorer {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}

.apps-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-nav-btn {
  text-align: start;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.app-nav-btn strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 3px;
}

.app-nav-btn span {
  font-size: 0.84rem;
  color: #dbeafe;
}

.app-nav-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
}

.app-nav-btn.active {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--white);
  border-inline-start: 5px solid var(--red);
}

.app-nav-btn.active span {
  color: var(--ink-muted);
}

.apps-display {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.apps-display-img {
  height: 260px;
  background: var(--off-white);
  border-bottom: 3px solid var(--red);
  overflow: hidden;
}

.apps-display-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apps-display-body {
  padding: 24px;
}

.apps-display-body h3 {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 1.3rem;
}

.apps-display-body p {
  margin: 0 0 18px;
  color: var(--ink-muted);
}

/* ---------- About / Vision / Mission / Values ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.hq-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.hq-caption {
  background: var(--blue-dark);
  color: var(--white);
  padding: 12px 16px;
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 3px solid var(--red);
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.pillar-card.red {
  border-top-color: var(--red);
}

.pillar-card h3 {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 1.2rem;
}

.pillar-card p {
  margin: 0;
  color: var(--ink-muted);
}

/* ---------- Page Banner (Subpages) ---------- */
.page-banner {
  background: linear-gradient(110deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  padding-block: 48px;
  border-bottom: 4px solid var(--red);
}

.page-banner h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.page-banner p {
  margin: 0;
  color: #e2e8f0;
  max-width: 66ch;
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 9px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.product-card.hidden {
  display: none;
}

/* ---------- Contact & RFQ Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.contact-panel {
  background: var(--blue-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border-top: 4px solid var(--red);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.contact-info-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 14px;
}

.contact-info-item small {
  display: block;
  color: #fca5a5;
  font-weight: 800;
  margin-bottom: 3px;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--blue-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 74, 159, 0.12);
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--blue-soft);
  border: 1px solid var(--blue);
  color: var(--blue-dark);
  font-weight: 700;
}

.form-status.show {
  display: block;
}

/* ---------- CTA Banner ---------- */
.cta-box {
  background: var(--blue-dark);
  border-inline-start: 6px solid var(--red);
  border-radius: var(--radius);
  padding: 36px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-box h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
}

.cta-box p {
  margin: 0;
  color: #e2e8f0;
  max-width: 58ch;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-dark);
  color: #e2e8f0;
  padding-block: 54px 24px;
  border-top: 4px solid var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 34px;
}

.footer-col h4 {
  color: var(--white);
  margin: 0 0 12px;
  font-size: 1rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
  padding-bottom: 4px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

/* ---------- Lightbox Modal ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 30, 70, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 920px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-md);
  border-top: 4px solid var(--red);
  padding: 24px;
  text-align: center;
}

.lightbox-inner img {
  max-height: 75vh;
  margin-inline: auto;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Blog Article Reader Modal ---------- */
.article-modal-body {
  text-align: start;
  max-height: 75vh;
  overflow-y: auto;
}

.article-modal-body h3 {
  color: var(--blue-dark);
  margin: 0 0 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid,
  .dp20-showcase,
  .apps-explorer,
  .about-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .cards-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-item {
    border-inline-end: none;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    inset-inline: 0;
    background: var(--white);
    border-bottom: 2px solid var(--blue);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }

  .cards-grid,
  .cards-grid-4,
  .cards-grid-2,
  .kpi-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Catalog data sections (selection matrix, spec tables, components, parts) ---- */
.spec-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 620px; }
.spec-table th, .spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.spec-table thead th { background: var(--blue-dark); color: #fff; font-weight: 700; white-space: nowrap; }
.spec-table thead th small { display: block; font-weight: 500; color: #cfe0f5; font-size: 0.76rem; }
.spec-table tbody th { font-weight: 700; color: var(--blue-dark); background: var(--blue-soft); white-space: nowrap; width: 1%; }
.spec-table tbody td { color: var(--ink); }
.spec-table tbody td.muted { color: var(--ink-muted); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
[dir="rtl"] .spec-table th, [dir="rtl"] .spec-table td { text-align: right; }
details.spec-details { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); margin-bottom: 14px; overflow: hidden; }
details.spec-details > summary { cursor: pointer; list-style: none; padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 800; color: var(--blue-dark); font-size: 1.02rem; }
details.spec-details > summary::-webkit-details-marker { display: none; }
details.spec-details > summary::after { content: "+"; font-size: 1.5rem; color: var(--red); font-weight: 800; line-height: 1; }
details.spec-details[open] > summary::after { content: "\2013"; }
details.spec-details > summary:hover { background: var(--blue-soft); }
.spec-sub { display: block; font-weight: 500; color: var(--ink-muted); font-size: 0.82rem; margin-top: 2px; }
.spec-body { padding: 0 18px 18px; }
.spec-body .spec-scroll { margin-bottom: 0; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.brand-chip { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 12px 20px; font-weight: 800; color: var(--blue-dark); letter-spacing: 0.03em; box-shadow: var(--shadow-sm); }
[dir="rtl"] .brand-chip { border-left: 1px solid var(--border); border-right: 4px solid var(--red); }
.spec-note { font-size: 0.85rem; color: var(--ink-muted); margin: 0 0 18px; }

/* ---- Photo strips ---- */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.photo-strip img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
@media (max-width: 900px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---- Data cards (catalog details) ---- */
.data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-block: 14px; }
.data-card { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.data-card strong { display: block; color: var(--blue-dark); font-size: 1.02rem; margin-bottom: 6px; }
.data-card span { color: var(--ink-muted); font-size: 0.88rem; line-height: 1.5; display: block; }
[dir="rtl"] .data-card { border-left: 1px solid var(--border); border-right: 4px solid var(--red); }

/* ---- Full-width panorama photo ---- */
.wide-photo { width: 100%; aspect-ratio: 3552 / 762; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin-top: 12px; }
