/* =====================================================================
   MEDITEX - Premium Corporate Stylesheet
   Colors: Navy #0A2540 | Gold #D4AF37 | White
   Fonts: Poppins (EN) / Tajawal (AR)
   ===================================================================== */

:root {
  --navy: #0A2540;
  --navy-light: #14365c;
  --navy-dark: #061a30;
  --gold: #D4AF37;
  --gold-light: #e3c75f;
  --gold-dark: #b8962b;
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #f1f3f6;
  --gray-200: #e6e9ee;
  --gray-300: #d1d6de;
  --gray-500: #8a93a3;
  --gray-700: #4a5260;
  --gray-900: #1a1f2a;
  --success: #2a9d6b;
  --warning: #e9a23b;
  --error: #d64545;
  --shadow-sm: 0 2px 8px rgba(10,37,64,.06);
  --shadow-md: 0 8px 24px rgba(10,37,64,.10);
  --shadow-lg: 0 20px 50px rgba(10,37,64,.14);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: 0;
}

html[dir="rtl"] body { font-family: 'Tajawal', sans-serif; }

h1,h2,h3,h4,h5,h6 { font-weight: 600; line-height: 1.25; color: var(--navy); }
html[dir="rtl"] h1,html[dir="rtl"] h2,html[dir="rtl"] h3,html[dir="rtl"] h4 { font-family: 'Tajawal', sans-serif; }

a { text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; }

.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }

.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.bg-navy { background: var(--navy) !important; }
.bg-gold { background: var(--gold) !important; }
.bg-light-soft { background: var(--gray-50); }

/* ---------- Section heading ---------- */
.section-title { margin-bottom: 50px; }
.section-title .eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  padding-left: 40px;
}
.section-title .eyebrow::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 30px; height: 2px; background: var(--gold);
}
.product-lines {
  background: radial-gradient(circle at top left, rgba(212,175,55,.12), transparent 28%),
              linear-gradient(180deg, rgba(10,37,64,.98) 0%, rgba(10,37,64,.95) 100%);
  padding: 80px 0;
  color: #fff;
}
.product-lines .section-title h2 {
  color: #fff;
  font-size: 2.7rem;
  margin-top: 12px;
}
.product-lines .section-title p {
  color: rgba(255,255,255,.82);
  max-width: 760px;
  margin: 0 auto;
}
.line-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin-top: 40px;
}
.product-line-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  box-shadow: 0 16px 40px rgba(10,37,64,.18);
}
.product-line-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 64px;
}
.product-line-text h5 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.1rem;
}
.product-line-text p {
  margin: 0;
  color: rgba(255,255,255,.76);
  line-height: 1.75;
}
@media (max-width: 991px) {
  .line-grid { grid-template-columns: 1fr; }
}
html[dir="rtl"] .section-title .eyebrow { padding-left: 0; padding-right: 40px; }
html[dir="rtl"] .section-title .eyebrow::before { left: auto; right: 0; }

.section-title h2 { font-size: 2.4rem; font-weight: 700; }
.section-title p { color: var(--gray-500); max-width: 620px; margin: 14px auto 0; }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--radius-sm); font-weight: 500; padding: 12px 28px; transition: all var(--transition); border: none; }
.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  border-radius: 999px;
  padding: 14px 32px;
  box-shadow: 0 22px 60px rgba(212,175,55,.18);
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 26px 78px rgba(212,175,55,.22);
}

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline-gold { border: 1.5px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }

.btn-outline-light { border: 1.5px solid rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }

.btn-whatsapp { background: #25D366; color: #fff; font-weight: 500; }
.btn-whatsapp:hover { background: #1da851; color: #fff; transform: translateY(-2px); }

/* ---------- Navbar ---------- */
#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 0;
  transition: transform .35s cubic-bezier(.25,.8,.25,1), opacity .35s ease, background .35s ease, padding .35s ease, box-shadow .35s ease, backdrop-filter .35s ease, color .35s ease;
  background: transparent;
  z-index: 1100;
  transform: translateY(0);
  opacity: 1;
  will-change: transform, opacity, background;
}
#mainNav.nav-hidden {
  transform: translateY(-120%);
  opacity: 0;
}
#mainNav.scrolled {
  background: rgba(255,255,255,.92);
  padding: 10px 0;
  box-shadow: 0 28px 80px rgba(10,37,64,.12);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(15,23,42,.08);
}
#mainNav .navbar-brand { color: #fff; transition: color .35s ease, transform .35s ease; }
#mainNav.scrolled .navbar-brand { color: var(--navy); transform: translateY(-1px); }
#mainNav.scrolled .nav-link { color: rgba(10,37,64,.78); }
#mainNav.scrolled .nav-link:hover,
#mainNav.scrolled .nav-link.active { color: var(--gold); }
#mainNav.scrolled .brand-mark { background: var(--navy); color: #fff; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 14px;
  background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: 1.3rem;
}
.brand-text { color: #fff; font-size: 1.4rem; letter-spacing: .5px; }
.brand-logo-img { width: 38px; height: 38px; object-fit: contain; border-radius: 14px; }

#mainNav .nav-link {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  margin: 0 6px;
  position: relative;
  padding: 8px 4px !important;
}
#mainNav .nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--gold); width: 0; transition: width var(--transition);
}
#mainNav .nav-link:hover, #mainNav .nav-link.active { color: #fff; }
#mainNav .nav-link:hover::after, #mainNav .nav-link.active::after { width: 100%; }

.lang-switch a { color: rgba(255,255,255,.7); font-weight: 600; font-size: .85rem; padding: 0 4px; }
.lang-switch a.active { color: var(--gold); }
.lang-switch a:hover { color: #fff; }

.navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(212,175,55,.3); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(10,37,64,.58) 0%, rgba(10,37,64,.34) 100%),
              url('../images/hero-home.png') center/cover no-repeat fixed;
  background-blend-mode: overlay;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,.16), transparent 32%),
              linear-gradient(to bottom, rgba(10,37,64,.24), rgba(10,37,64,.32));
  z-index: 1;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: 3.4rem; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 22px; text-shadow: 0 16px 40px rgba(0,0,0,.18); }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.95); max-width: 620px; margin-bottom: 34px; }
.hero .hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.26);
  color: #fff; padding: 10px 22px; border-radius: 999px;
  font-size: .92rem; font-weight: 500; margin-bottom: 24px;
}
.hero .hero-badge i { font-size: 1rem; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .hero { min-height: 80vh; background-attachment: scroll; }
  .hero h1 { font-size: 2.1rem; }
  .hero p { font-size: 1.05rem; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 180px 0 90px;
  color: #fff;
  background: linear-gradient(180deg, rgba(10,37,64,.50) 0%, rgba(10,37,64,.24) 100%),
              url('../images/hero-home.png') center/cover no-repeat;
  background-blend-mode: overlay;
}
.page-hero h1 { color: #fff; font-size: 2.8rem; font-weight: 700; }
.page-hero p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 640px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb-wrap { background: var(--gray-50); padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.breadcrumb { margin: 0; background: transparent; padding: 0; font-size: .9rem; }
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb .active { color: var(--gray-500); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gray-300); }

/* ---------- Why Choose Us cards ---------- */
.feature-card {
  background: #fff; border-radius: var(--radius); padding: 36px 28px;
  text-align: center; height: 100%;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold); font-size: 1.8rem; margin-bottom: 22px;
  transition: all var(--transition);
}
.feature-card:hover .feature-icon { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; transform: rotateY(360deg); }
.feature-card h5 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--gray-500); font-size: .92rem; margin: 0; }

/* ---------- Category cards ---------- */
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 320px; display: flex; align-items: flex-end;
  color: #fff; text-decoration: none;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,37,64,.92) 0%, rgba(10,37,64,.2) 60%, transparent 100%);
}
.cat-card .cat-body { position: relative; z-index: 2; padding: 28px; width: 100%; }
.cat-card .cat-body i { font-size: 1.8rem; color: var(--gold); margin-bottom: 10px; }
.cat-card h4 { color: #fff; margin-bottom: 6px; font-size: 1.3rem; }
.cat-card p { color: rgba(255,255,255,.8); font-size: .85rem; margin: 0; }
.cat-card:hover img { transform: scale(1.1); }
.cat-card:hover { color: #fff; }

/* ---------- Product cards ---------- */
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--gray-200); height: 100%;
  display: flex; flex-direction: column;
  transition: all var(--transition);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--gray-100); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--navy);
  font-size: .72rem; font-weight: 600; padding: 5px 12px; border-radius: 50px;
}
html[dir="rtl"] .product-badge { left: auto; right: 14px; }
.product-stock {
  position: absolute; top: 14px; right: 14px;
  background: rgba(42,157,107,.95); color: #fff;
  font-size: .7rem; font-weight: 500; padding: 5px 10px; border-radius: 50px;
}
html[dir="rtl"] .product-stock { right: auto; left: 14px; }
.product-stock.order { background: rgba(233,162,59,.95); }
.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-body .ref { font-size: .75rem; color: var(--gold); font-weight: 600; letter-spacing: 1px; }
.product-body h5 { font-size: 1.1rem; margin: 6px 0 10px; }
.product-body .desc { color: var(--gray-500); font-size: .88rem; margin-bottom: 14px; flex: 1; }
.product-meta { font-size: .82rem; color: var(--gray-700); margin-bottom: 4px; }
.product-meta strong { color: var(--navy); }
.product-price {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-200);
}
.product-price .price { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.product-price .price small { font-size: .75rem; color: var(--gray-500); font-weight: 400; }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn { padding: 8px 14px; font-size: .8rem; }

/* ---------- Process steps ---------- */
.process-step { text-align: center; position: relative; padding: 20px; }
.process-step .step-num {
  width: 80px; height: 80px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold); font-size: 1.6rem; font-weight: 700;
  margin-bottom: 20px; position: relative;
  box-shadow: 0 10px 30px rgba(10,37,64,.2);
}
.process-step .step-num::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px dashed var(--gold); opacity: .4;
}
.process-step h5 { font-size: 1.15rem; margin-bottom: 8px; }
.process-step p { color: var(--gray-500); font-size: .9rem; margin: 0; }

/* ---------- Stats ---------- */
.stats-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; padding: 70px 0; position: relative; overflow: hidden;
}
.stats-section::before {
  content: ''; position: absolute; top: -50%; right: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,175,55,.08) 0%, transparent 70%);
}
.stat-item { text-align: center; }
.stat-item .stat-num { font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-item .stat-label { color: rgba(255,255,255,.8); margin-top: 10px; font-size: .95rem; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff; border-radius: var(--radius); padding: 36px;
  border: 1px solid var(--gray-200); height: 100%;
  position: relative;
}
.testimonial-card .quote-mark { font-size: 3rem; color: var(--gold); opacity: .2; line-height: 1; }
.testimonial-card .stars { color: var(--gold); margin-bottom: 14px; }
.testimonial-card .review { color: var(--gray-700); font-size: .98rem; margin-bottom: 22px; }
.testimonial-card .author { display: flex; align-items: center; gap: 14px; }
.testimonial-card .author img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.testimonial-card .author h6 { margin: 0; font-size: 1rem; }
.testimonial-card .author span { color: var(--gray-500); font-size: .85rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius); padding: 60px 50px; color: #fff;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; bottom: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(212,175,55,.1);
}
.cta-banner h2 { color: #fff; font-size: 2.2rem; }
.cta-banner p { color: rgba(255,255,255,.85); font-size: 1.1rem; }

/* ---------- Gallery ---------- */
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; transition: transform .5s ease; }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,37,64,.85), transparent 60%);
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item .gallery-caption {
  position: absolute; bottom: 20px; left: 20px; z-index: 2; color: #fff;
  opacity: 0; transform: translateY(10px); transition: all var(--transition);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* ---------- About page ---------- */
.about-img-wrap { position: relative; border-radius: var(--radius); overflow: hidden; }
.about-img-wrap img { width: 100%; height: 480px; object-fit: cover; }
.about-img-wrap .exp-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--gold); color: var(--navy);
  padding: 18px 26px; border-radius: var(--radius-sm);
  text-align: center;
}
.about-img-wrap .exp-badge .num { font-size: 2rem; font-weight: 700; line-height: 1; }
.about-img-wrap .exp-badge .lbl { font-size: .8rem; font-weight: 500; }

.value-card {
  background: #fff; border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--gray-200); height: 100%; transition: all var(--transition);
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.value-card i { font-size: 2rem; color: var(--gold); margin-bottom: 14px; }
.value-card h5 { font-size: 1.1rem; margin-bottom: 8px; }
.value-card p { color: var(--gray-500); font-size: .9rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-card {
  background: #fff; border-radius: var(--radius); padding: 30px;
  border: 1px solid var(--gray-200); text-align: center; height: 100%;
  transition: all var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.contact-card i { font-size: 2.2rem; color: var(--gold); margin-bottom: 16px; }
.contact-card h5 { font-size: 1.1rem; margin-bottom: 8px; }
.contact-card p { color: var(--gray-500); margin: 0; }

.contact-form-wrap { background: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-md); }
.form-control, .form-select {
  border-radius: var(--radius-sm); border: 1px solid var(--gray-300);
  padding: 12px 16px; font-size: .95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.15);
}
.form-label { font-weight: 500; color: var(--navy); font-size: .9rem; }

.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; }
.faq-item .accordion-button { font-weight: 500; color: var(--navy); padding: 18px 22px; }
.faq-item .accordion-button:not(.collapsed) { background: var(--gray-50); color: var(--navy); }
.faq-item .accordion-button:focus { box-shadow: none; }
.faq-item .accordion-body { color: var(--gray-700); }

.whatsapp-cta {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: var(--radius); padding: 40px; color: #fff; text-align: center;
}
.whatsapp-cta i { font-size: 3rem; margin-bottom: 14px; }
.whatsapp-cta h3 { color: #fff; }
.whatsapp-cta p { color: rgba(255,255,255,.9); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.7); }
.site-footer .brand-mark { background: var(--gold); }
.site-footer .text-light-muted { color: rgba(255,255,255,.6); font-size: .92rem; }
.footer-title { color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: 22px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .92rem; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
html[dir="rtl"] .footer-links a:hover { padding-left: 0; padding-right: 5px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: .92rem; color: rgba(255,255,255,.65); }
.footer-contact i { color: var(--gold); margin-top: 4px; }
.footer-contact a { color: rgba(255,255,255,.65); }
.footer-contact a:hover { color: var(--gold); }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff; margin-right: 8px;
  transition: all var(--transition);
}
.social-links a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: .88rem; color: rgba(255,255,255,.5); }

/* ---------- Floating WhatsApp ---------- */
.float-whatsapp {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; box-shadow: 0 6px 20px rgba(37,211,102,.4);
  animation: pulse 2s infinite;
}
.float-whatsapp:hover { color: #fff; transform: scale(1.1); }
html[dir="rtl"] .float-whatsapp { right: auto; left: 28px; }

@keyframes pulse {
  0% { box-shadow: 0 6px 20px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 6px 20px rgba(37,211,102,.4), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 6px 20px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 28px; left: 28px; z-index: 998;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
html[dir="rtl"] .back-to-top { left: auto; right: 28px; }

/* ---------- Brands strip ---------- */
.brands-strip { padding: 50px 0; background: var(--gray-50); }
.brand-logo {
  display: flex; align-items: center; justify-content: center;
  height: 80px; opacity: .55; filter: grayscale(100%); transition: all var(--transition);
  font-size: 1.3rem; font-weight: 700; color: var(--navy);
}
.brand-logo:hover { opacity: 1; filter: grayscale(0); }

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,37,64,.95); display: none;
  align-items: center; justify-content: center; padding: 30px;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 90%; max-height: 85vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 24px; right: 24px; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-chip {
  padding: 8px 20px; border-radius: 50px; border: 1px solid var(--gray-300);
  background: #fff; color: var(--gray-700); font-size: .88rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
}
.filter-chip:hover { border-color: var(--gold); color: var(--navy); }
.filter-chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box input { padding-left: 42px; }
.search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-500); }
html[dir="rtl"] .search-box input { padding-left: 16px; padding-right: 42px; }
html[dir="rtl"] .search-box i { left: auto; right: 14px; }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius-sm); border: none; padding: 16px 20px; }
.alert-success { background: #e8f7f0; color: #1a7a52; }
.alert-error { background: #fce8e8; color: #a83232; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .section { padding: 60px 0; }
  .section-title h2 { font-size: 1.9rem; }
  #mainNav { background: rgba(10,37,64,.97); padding: 12px 0; }
  #mainNav .navbar-collapse { background: var(--navy); margin-top: 14px; padding: 20px; border-radius: var(--radius); }
  #mainNav .nav-link { color: rgba(255,255,255,.85); }
  .nav-actions { margin-top: 14px; }
  .hero h1 { font-size: 2.4rem; }
  .page-hero { padding: 140px 0 60px; }
  .page-hero h1 { font-size: 2.1rem; }
  .cta-banner { padding: 40px 28px; }
  .cta-banner h2 { font-size: 1.7rem; }
}

@media (max-width: 576px) {
  .hero h1 { font-size: 1.9rem; }
  .stat-item .stat-num { font-size: 2.2rem; }
  .float-whatsapp { width: 50px; height: 50px; font-size: 1.5rem; bottom: 20px; right: 20px; }
  .back-to-top { bottom: 20px; left: 20px; }
}
/* ===== Gestion du nom en arabe dans le badge ===== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

html[dir="rtl"] .hero-badge {
    direction: rtl;
}

.badge-divider {
    opacity: 0.4;
    font-weight: 300;
    margin: 0 0.25rem;
}

.company-name-ar {
    display: inline-block;
    font-family: 'Tajawal', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.05em;
    line-height: 1.2;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.18);
    padding: 0.14rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    letter-spacing: 0.02em;
    white-space: nowrap;
    direction: rtl;
    unicode-bidi: isolate;
}