/* ============================================================
   Pivot Communication — Redesigned Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');

/* ── Arabic / RTL support ── */
html[lang="ar"] { direction: rtl; font-family: 'Tajawal', sans-serif; }
html[lang="ar"] body { font-family: 'Tajawal', sans-serif; }
html[lang="ar"] .header-inner { flex-direction: row-reverse; }
html[lang="ar"] nav ul { flex-direction: row-reverse; }
html[lang="ar"] .dropdown { left: auto; right: 0; text-align: right; }
html[lang="ar"] .sub-dropdown { left: auto; right: 100%; text-align: right; }
html[lang="ar"] .hero-content { text-align: right; }
html[lang="ar"] .footer-grid { direction: rtl; }
html[lang="ar"] .about-inner { text-align: right; }

/* ── Language toggle button ── */
.lang-btn {
  background: transparent; border: 1.5px solid rgba(255,255,255,.35);
  color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  padding: 5px 12px; border-radius: 4px; cursor: pointer;
  transition: background .18s, border-color .18s; white-space: nowrap;
}
.lang-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }
header.scrolled .lang-btn { border-color: rgba(6,20,38,.35); color: #061426; }
header.scrolled .lang-btn:hover { background: rgba(6,20,38,.07); }

:root {
  --navy-deep: #061426;
  --navy-dark: #0A1B30;
  --blue:      #1478E8;
  --blue-lt:   #2D9BFF;
  --gray-light: #F4F7FA;
  --text-gray: #536273;
  --white:     #ffffff;
  --border:    #E2E8F0;
  --dark:      #061426;
  --dark-2:    #0A1B30;
  --dark-3:    #1a2e47;
  --light:     #F4F7FA;
  --light-2:   #EEF2F7;
  --text:      #2D3748;
  --text-light: #536273;
  --primary:   #1478E8;
  --primary-light: #2D9BFF;
  --accent:    #1478E8;
  --accent-dark: #0f62cc;
  --nav-h:     72px;
  --radius:    8px;
  --transition: all 0.22s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ============================================================
   PAGE LOADER
   ============================================================ */
.page-loader {
  position: fixed; inset: 0;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hide { opacity: 0; visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.loader-logo { width: 80px; height: 80px; object-fit: contain; }
.loader-bar { width: 160px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.loader-bar-fill {
  width: 60%; height: 100%;
  background: var(--blue);
  border-radius: 2px;
  animation: barSlide 1.1s ease-in-out infinite;
}
@keyframes barSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
header.scrolled {
  box-shadow: 0 1px 24px rgba(6,20,38,0.08);
  border-color: transparent;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 52px; width: auto; object-fit: contain; }

nav ul { display: flex; align-items: center; gap: 2px; }
nav ul li { position: relative; }
nav ul li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 13px;
  font-size: 13.5px; font-weight: 500;
  color: var(--navy-deep);
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
  letter-spacing: -0.01em;
}
nav ul li > a:hover, nav ul li > a.active { color: var(--blue); }
nav ul li > a .arrow { font-size: 8px; opacity: 0.45; transition: transform 0.18s; }
nav ul li:hover > a .arrow { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: #fff; border-radius: var(--radius);
  min-width: 210px;
  box-shadow: 0 8px 32px rgba(6,20,38,0.12), 0 1px 4px rgba(6,20,38,0.06);
  border: 1px solid var(--border);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  overflow: visible;
}
nav ul li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  font-size: 13px; font-weight: 400; color: var(--text);
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.14s, color 0.14s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--gray-light); color: var(--blue); }

.dropdown li.has-sub { position: relative; }
.dropdown li.has-sub > a::after { content: '›'; font-size: 14px; opacity: 0.4; margin-left: 4px; }
.sub-dropdown {
  position: absolute; left: 100%; top: 0;
  min-width: 210px; background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(6,20,38,0.12);
  border: 1px solid var(--border);
  opacity: 0; visibility: hidden;
  transform: translateX(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200; display: flex; flex-direction: column; align-items: stretch; gap: 0;
}
.dropdown li.has-sub:hover > .sub-dropdown { opacity: 1; visibility: visible; transform: translateX(0); }
.sub-dropdown li a {
  display: block; padding: 10px 16px;
  font-size: 13px; font-weight: 400; color: var(--text);
  border-bottom: 1px solid #f1f5f9; white-space: nowrap;
  transition: background 0.14s, color 0.14s;
}
.sub-dropdown li:last-child a { border-bottom: none; }
.sub-dropdown li a:hover { background: var(--gray-light); color: var(--blue); }

.nav-contact-btn {
  padding: 9px 20px !important;
  background: var(--blue) !important; color: #fff !important;
  border-radius: 6px !important; font-size: 13px !important;
  font-weight: 600 !important; letter-spacing: 0.01em !important;
}
.nav-contact-btn:hover { background: var(--accent-dark) !important; color: #fff !important; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.menu-toggle span {
  width: 22px; height: 2px;
  background: var(--navy-deep); border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('/img/uploads/site-hero.png');
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,20,38,0.88) 0%, rgba(6,20,38,0.55) 60%, rgba(6,20,38,0.2) 100%);
}
.hero-content {
  position: relative; z-index: 1; color: #fff; max-width: 640px;
  padding: 80px 0;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-lt); margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 800; line-height: 1.08;
  color: #fff; margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero p {
  font-size: 17px; line-height: 1.75;
  color: rgba(255,255,255,0.75);
  max-width: 500px; margin-bottom: 40px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.38); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 6px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em; transition: var(--transition);
  cursor: pointer; border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.45);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.75); }
.btn-dark { background: var(--navy-deep); color: #fff; border-color: var(--navy-deep); }
.btn-dark:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-ghost {
  background: transparent; color: var(--blue);
  border-color: var(--blue);
}
.btn-ghost:hover { background: var(--blue); color: #fff; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 120px 0; }
.bg-light { background: var(--gray-light); }
.bg-dark { background: var(--navy-deep); }

.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin-inline: auto; }

.section-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(26px, 3vw, 40px);
  color: var(--navy-deep); margin-bottom: 16px;
  letter-spacing: -0.025em;
}
.section-header p {
  font-size: 16px; color: var(--text-gray);
  max-width: 560px; line-height: 1.75;
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  padding: calc(var(--nav-h) + 56px) 0 56px;
  background: var(--navy-deep);
}
.page-header-content { color: #fff; }
.page-header h1 { font-size: clamp(26px, 4vw, 44px); color: #fff; margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.65); font-size: 16px; max-width: 580px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,0.4);
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em;
}
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.25); }

/* ============================================================
   SOLUTIONS GRID
   ============================================================ */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.solution-card {
  border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--border);
  transition: box-shadow 0.22s, transform 0.22s;
  display: flex; flex-direction: column;
}
.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(6,20,38,0.12);
}
.solution-card-img {
  height: 220px; overflow: hidden; position: relative;
}
.solution-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s ease;
}
.solution-card:hover .solution-card-img img { transform: scale(1.04); }
.solution-card-img .card-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--blue); color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 4px;
}
.solution-card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.solution-card-body h3 { font-size: 18px; color: var(--navy-deep); margin-bottom: 10px; }
.solution-card-body p { font-size: 14px; color: var(--text-gray); flex: 1; margin-bottom: 22px; line-height: 1.7; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--blue);
  transition: gap 0.18s;
}
.card-link:hover { gap: 10px; }

/* ============================================================
   PRODUCT BANNERS
   ============================================================ */
.product-banners {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-bottom: 56px;
}
.product-banner {
  position: relative; border-radius: var(--radius);
  overflow: hidden; height: 260px;
  display: block; text-decoration: none;
}
.product-banner img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s ease;
}
.product-banner:hover img { transform: scale(1.04); }
.product-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,20,38,0.82) 0%, rgba(6,20,38,0.15) 60%);
}
.product-banner-content {
  position: absolute; bottom: 24px; left: 24px; color: #fff;
}
.product-banner-content h3 { font-size: 20px; margin-bottom: 4px; color: #fff; }
.product-banner-content p { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.product-banner-content .btn { font-size: 12px; padding: 9px 18px; }

/* ============================================================
   IMAGE OVERLAY CARDS (solutions / products hub pages)
   ============================================================ */
.img-overlay-card {
  position: relative; border-radius: 0;
  overflow: hidden; display: block; text-decoration: none;
  height: 420px;
}
.img-overlay-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s ease;
}
.img-overlay-card:hover img { transform: scale(1.05); }
.img-overlay-card .card-overlay {
  position: absolute; inset: 0;
  background: rgba(6,20,38,.48);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; padding: 32px;
}
.img-overlay-card .card-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.6);
  margin-bottom: 10px;
}
.img-overlay-card .card-overlay h3 {
  color: #fff; font-size: 26px; font-weight: 800;
  margin-bottom: 10px; letter-spacing: -.02em; line-height: 1.15;
}
.img-overlay-card .card-sub {
  color: rgba(255,255,255,.72); font-size: 13.5px;
  line-height: 1.55; margin-bottom: 22px; max-width: 260px;
}
.img-overlay-card .card-btn {
  display: inline-block; padding: 10px 24px;
  border: 1.5px solid rgba(255,255,255,.6);
  color: #fff; font-size: 12px; font-weight: 600;
  border-radius: 4px; text-transform: uppercase;
  letter-spacing: .06em;
  transition: background .2s, border-color .2s;
}
.img-overlay-card:hover .card-btn {
  background: rgba(255,255,255,.14);
  border-color: #fff;
}
/* Side-by-side solution/product row */
.side-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-bottom: 3px;
}
.side-row-img {
  height: 360px; overflow: hidden; position: relative;
}
.side-row-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s ease;
}
.side-row:hover .side-row-img img { transform: scale(1.04); }
.side-row-text {
  background: #061426;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 52px;
}
.side-row-text .card-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #1478E8;
  margin-bottom: 14px;
}
.side-row-text h3 {
  font-size: 26px; font-weight: 800; color: #fff;
  letter-spacing: -.025em; line-height: 1.15; margin-bottom: 14px;
}
.side-row-text p {
  font-size: 14px; color: rgba(255,255,255,.62);
  line-height: 1.8; margin-bottom: 28px;
}
.side-row-text .card-btn {
  display: inline-block; padding: 11px 26px;
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff; font-size: 12px; font-weight: 600;
  border-radius: 4px; text-transform: uppercase;
  letter-spacing: .06em; text-decoration: none;
  align-self: flex-start;
  transition: background .2s, border-color .2s;
}
.side-row-text .card-btn:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.8);
}
@media(max-width:700px) {
  .side-row { grid-template-columns: 1fr; }
  .side-row-img { height: 240px; }
  .side-row-text { padding: 32px 28px; }
}
.img-overlay-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  overflow: hidden; border-radius: var(--radius);
}
.img-overlay-grid-2 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  overflow: hidden; border-radius: var(--radius);
}
.img-overlay-grid-auto {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0;
  overflow: hidden; border-radius: var(--radius);
}
@media(max-width:900px) {
  .img-overlay-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:580px) {
  .img-overlay-grid, .img-overlay-grid-2, .img-overlay-grid-auto { grid-template-columns: 1fr; }
}

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.product-card {
  background: #fff; border: 1px solid #E8ECF0;
  border-radius: 12px; overflow: hidden;
  transition: border-color 0.2s;
  cursor: pointer; display: flex; flex-direction: column;
}
.product-card:hover { border-color: #C5D0DC; }
.product-card-img {
  height: 200px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 24px;
}
.product-card-img img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; transition: transform 0.35s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { padding: 0 20px 22px; flex: 1; display: flex; flex-direction: column; border-top: 1px solid #F0F2F5; }
.product-card-body .cat {
  font-size: 10px; font-weight: 700; color: var(--blue);
  letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 8px;
}
.product-card-body h3 { font-size: 14.5px; font-weight: 700; color: var(--navy-deep); margin-bottom: 7px; line-height: 1.4; flex: 1; }
.product-card-body p { font-size: 13px; color: var(--text-gray); line-height: 1.6; }
.product-card-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.btn-card-primary {
  flex: 1; padding: 8px 12px;
  background: var(--blue); color: #fff; border: none;
  border-radius: 5px; font-size: 12.5px; font-weight: 600;
  text-align: center; cursor: pointer; transition: var(--transition);
  text-decoration: none; display: inline-block;
}
.btn-card-primary:hover { background: var(--accent-dark); }
.btn-card-secondary {
  flex: 1; padding: 8px 12px;
  background: transparent; color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 5px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.btn-card-secondary:hover { background: var(--blue); color: #fff; }

/* Filter buttons */
.filter-btn {
  padding: 8px 18px; font-size: 13px; font-weight: 500;
  color: var(--text-gray); background: #fff;
  border: 1.5px solid var(--border); border-radius: 20px;
  cursor: pointer; transition: var(--transition);
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.product-price { margin-top: 10px; font-size: 16px; font-weight: 700; color: var(--blue); }

/* ============================================================
   WHY / FEATURES
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  padding: 36px 30px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; transition: box-shadow 0.22s;
}
.why-card:hover { box-shadow: 0 8px 32px rgba(6,20,38,0.08); }
.why-icon {
  width: 44px; height: 44px;
  background: rgba(20,120,232,0.08);
  border-radius: 10px; display: flex;
  align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 20px;
  color: var(--blue);
}
.why-card h3 { font-size: 17px; color: var(--navy-deep); margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--text-gray); line-height: 1.7; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img-wrapper { position: relative; }
.about-img-wrapper img { border-radius: var(--radius); width: 100%; height: 460px; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--blue); color: #fff;
  padding: 22px 26px; border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(20,120,232,0.28);
}
.about-badge .num { font-size: 34px; font-weight: 800; line-height: 1; }
.about-badge .label { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 4px; }
.about-text h2 { font-size: clamp(24px, 3vw, 36px); color: var(--navy-deep); margin-bottom: 18px; }
.about-text p { color: var(--text-gray); margin-bottom: 14px; font-size: 15px; }
.about-list { margin: 24px 0 32px; display: flex; flex-direction: column; gap: 10px; }
.about-list-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.about-list-item .icon {
  width: 22px; height: 22px; background: rgba(20,120,232,0.08);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 11px; color: var(--blue); margin-top: 2px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--navy-deep);
  padding: 88px 0; text-align: center;
}
.cta-banner-content { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(24px, 3.5vw, 38px); color: #fff; margin-bottom: 16px; }
.cta-banner p {
  font-size: 16px; color: rgba(255,255,255,0.6);
  margin-bottom: 36px; max-width: 500px; margin-inline: auto;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: 30px; color: var(--navy-deep); margin-bottom: 14px; }
.contact-info p { color: var(--text-gray); margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; }
.contact-detail-icon {
  width: 42px; height: 42px; background: var(--gray-light);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 18px; flex-shrink: 0;
}
.contact-detail-text .label {
  font-size: 10px; font-weight: 700; color: var(--blue);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 3px;
}
.contact-detail-text .value { font-size: 14px; color: var(--navy-deep); font-weight: 600; }
.contact-form {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  box-shadow: 0 2px 16px rgba(6,20,38,0.05);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 11.5px; font-weight: 600;
  color: var(--navy-deep); margin-bottom: 7px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 6px;
  font-size: 14px; font-family: 'Inter', sans-serif;
  color: var(--navy-deep); background: var(--gray-light);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(20,120,232,0.07);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%; padding: 13px;
  background: var(--blue); color: #fff; border: none;
  border-radius: 6px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  font-family: 'Inter', sans-serif; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-submit:hover { background: var(--accent-dark); }
.form-msg { padding: 11px 14px; border-radius: 6px; font-size: 13px; margin-top: 14px; display: none; }
.form-msg.success { background: #f0fdf4; color: #15803d; display: block; }
.form-msg.error { background: #fef2f2; color: #dc2626; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { font-size: 13.5px; line-height: 1.8; max-width: 260px; margin-bottom: 22px; }
.footer-col h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 13.5px; color: rgba(255,255,255,0.5); transition: color 0.18s; }
.footer-col ul li a:hover { color: #fff; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.footer-contact-item .fi { font-size: 15px; margin-top: 1px; flex-shrink: 0; color: var(--blue); }
.footer-contact-item p { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-contact-item p strong { color: #fff; display: block; margin-bottom: 2px; }
.footer-contact-item p a { color: rgba(255,255,255,0.5); }
.footer-contact-item p a:hover { color: #fff; }
.footer-bottom {
  padding: 20px 0; display: flex; align-items: center;
  justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.28);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.28); transition: color 0.18s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ============================================================
   SOLUTION DETAIL PAGES
   ============================================================ */
.solution-detail { padding: 64px 0; }
.solution-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; margin-bottom: 64px;
}
.solution-detail-grid.reverse { direction: rtl; }
.solution-detail-grid.reverse > * { direction: ltr; }
.solution-detail-img { border-radius: var(--radius); overflow: hidden; height: 360px; }
.solution-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.solution-detail-text h2 { font-size: 30px; color: var(--navy-deep); margin-bottom: 14px; }
.solution-detail-text p { color: var(--text-gray); margin-bottom: 14px; line-height: 1.8; }
.solution-features { margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.solution-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.solution-feature-dot {
  width: 7px; height: 7px; background: var(--blue);
  border-radius: 50%; flex-shrink: 0; margin-top: 7px;
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail-section { padding: calc(var(--nav-h) + 40px) 0 80px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.product-detail-img {
  border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--border); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.product-detail-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.product-detail-breadcrumb { font-size: 13px; color: var(--text-gray); margin-bottom: 12px; }
.product-detail-breadcrumb a { color: var(--blue); }
.product-detail-sub {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--blue); margin-bottom: 10px;
}
.product-detail-title { font-size: 28px; color: var(--navy-deep); margin-bottom: 14px; }
.product-detail-desc { font-size: 15px; line-height: 1.8; color: var(--text-gray); margin-bottom: 22px; }
.product-detail-price { font-size: 26px; font-weight: 800; color: var(--blue); margin-bottom: 26px; }
.product-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product-detail-actions .btn { min-width: 150px; text-align: center; }

.specs-table-wrap { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 22px; }
.specs-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #fff;
  background: var(--navy-deep); padding: 9px 13px;
  margin: 16px 0 0; border-radius: 6px 6px 0 0;
}
.specs-title:first-child { margin-top: 0; }
.specs-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 4px; }
.specs-table tr:nth-child(even) { background: var(--gray-light); }
.spec-key { padding: 9px 13px; font-weight: 600; color: var(--navy-deep); width: 42%; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-val { padding: 9px 13px; color: var(--text-gray); border-bottom: 1px solid var(--border); }

/* ============================================================
   MODAL & INQUIRY
   ============================================================ */
.inquiry-modal-overlay {
  position: fixed; inset: 0; background: rgba(6,20,38,0.55);
  z-index: 10000; display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.22s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.inquiry-modal {
  background: #fff; border-radius: 10px; padding: 32px 28px;
  max-width: 460px; width: 100%; position: relative;
  box-shadow: 0 20px 60px rgba(6,20,38,0.2);
  animation: slideUp 0.28s ease;
}
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.inquiry-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 24px; cursor: pointer;
  color: var(--text-gray); line-height: 1; padding: 2px 6px; border-radius: 4px;
  transition: var(--transition);
}
.inquiry-close:hover { background: var(--gray-light); color: var(--navy-deep); }
.inquiry-modal h3 { font-size: 18px; margin-bottom: 4px; color: var(--blue); }
.inquiry-product-name { font-size: 13px; color: var(--text-gray); margin-bottom: 18px; font-style: italic; }
.inquiry-modal .form-group { margin-bottom: 13px; }
.inquiry-modal .form-group label { font-size: 12.5px; font-weight: 600; color: var(--navy-deep); margin-bottom: 5px; display: block; }
.inquiry-modal .form-group input,
.inquiry-modal .form-group textarea {
  width: 100%; padding: 9px 13px; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: 14px; font-family: inherit;
  color: var(--text); transition: border-color 0.2s; outline: none;
}
.inquiry-modal .form-group input:focus,
.inquiry-modal .form-group textarea:focus { border-color: var(--blue); }
.inquiry-modal .form-group textarea { resize: vertical; min-height: 80px; }

/* ============================================================
   HDCi TEXT SECTION
   ============================================================ */
.hdci-text-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
  padding: 52px 0; border-bottom: 1px solid var(--border);
}
.hdci-text-section:last-of-type { border-bottom: none; }
.hdci-text-section h3 { font-size: 22px; font-weight: 700; color: var(--navy-deep); margin-bottom: 14px; }
.hdci-text-section p { color: var(--text-gray); line-height: 1.8; margin-bottom: 13px; font-size: 15px; }

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-section { background: var(--navy-deep); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stat-item { color: #fff; }
.stat-num { font-size: 44px; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 8px; }
.stat-num span { color: var(--blue-lt); }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.45); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

/* ============================================================
   CAT TABS
   ============================================================ */
.cat-tabs { display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.cat-tab {
  padding: 8px 18px; border-radius: 20px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.02em; cursor: pointer;
  border: 1.5px solid var(--border); background: #fff; color: var(--text-gray);
  transition: var(--transition);
}
.cat-tab:hover, .cat-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-white { color: #fff; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-32 { margin-bottom: 32px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrapper img { height: 320px; }
  .about-badge { bottom: -14px; right: -12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .solution-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .solution-detail-grid.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 20px; }
  .header-inner,
  html[lang="ar"] .header-inner { flex-direction: row; }
  .menu-toggle { display: flex; margin-left: auto; margin-right: 0; }
  nav {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: #fff; box-shadow: 0 8px 32px rgba(6,20,38,0.12);
    transform: translateX(-100%); transition: transform 0.28s ease;
    padding: 20px; max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  nav.open { transform: translateX(0); }
  nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  nav ul li > a { padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--border); }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: var(--gray-light);
    border-radius: 6px; margin: 4px 0 8px; display: none;
  }
  nav ul li.open .dropdown { display: block; }
  .sub-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--light-2); }
  .solutions-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .product-banners { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero p { font-size: 15px; }
  .stat-num { font-size: 34px; }
  .about-badge { position: static; margin-top: 18px; }
  .hdci-text-section { grid-template-columns: 1fr; gap: 0; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-detail-title { font-size: 22px; }
  .hero-content { padding: 60px 0; }
}

/* Product detail image refinement */
.product-detail-img {
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
  border: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}

.product-detail-img img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
