/* ==========================================================================
   KEMA PLAZA - Construction Chemicals & Modern Paints
   Design System & Master Stylesheet
   Fonts: Cairo (Arabic) & Montserrat (English)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Montserrat:wght@400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  color: var(--color-text, #1e293b);
  background-color: var(--color-light, #f8fafc);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

/* English Typography Override */
body[dir="ltr"], html[lang="en"] body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

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

/* Utilities & Containers */
.kema-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* TOP BAR */
.kema-topbar {
  background: var(--color-dark, #0f172a);
  color: #e2e8f0;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kema-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.kema-topbar-contacts {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.kema-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
  transition: color 0.2s;
}

.kema-topbar-item:hover {
  color: var(--color-accent, #f59e0b);
}

.kema-topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kema-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.kema-lang-btn:hover {
  background: var(--color-secondary, #0284c7);
  border-color: var(--color-secondary, #0284c7);
}

/* MAIN NAVBAR */
.kema-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.kema-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.kema-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kema-brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.kema-brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary, #003380);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.kema-brand-text p {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted, #64748b);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.kema-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.kema-nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text, #1e293b);
  position: relative;
  padding: 0.5rem 0;
}

.kema-nav-link:hover, .kema-nav-link.active {
  color: var(--color-primary, #003380);
}

.kema-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary, #0284c7);
  transition: width 0.25s ease;
}

.kema-nav-link:hover::after, .kema-nav-link.active::after {
  width: 100%;
}

.kema-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-primary, #003380), var(--color-secondary, #0284c7));
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(0, 51, 128, 0.25);
  border: none;
  cursor: pointer;
}

.kema-nav-cta:hover {
  background: linear-gradient(135deg, var(--color-primary-dark, #002052), var(--color-primary, #003380));
  box-shadow: 0 6px 18px rgba(0, 51, 128, 0.35);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.kema-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary, #003380);
  cursor: pointer;
}

/* HERO SECTION */
.kema-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.84) 0%, rgba(0, 40, 110, 0.70) 50%, rgba(15, 23, 42, 0.86) 100%), url('../images/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  padding: 5.5rem 0 5rem;
  overflow: hidden;
}

.kema-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.kema-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--color-accent, #f59e0b);
  color: var(--color-accent, #f59e0b);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.kema-hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.kema-hero-title span {
  color: var(--color-accent, #f59e0b);
}

.kema-hero-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 600px;
}

.kema-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.kema-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--color-accent, #f59e0b);
  color: #0f172a;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

.kema-btn-primary:hover {
  background: var(--color-accent-hover, #d97706);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.kema-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  transition: all 0.25s;
}

.kema-btn-secondary:hover {
  background: #ffffff;
  color: var(--color-primary, #003380);
  border-color: #ffffff;
}

/* Projects Section CTA Button */
.kema-btn-projects-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #003380 0%, #0284c7 100%);
  color: #ffffff !important;
  padding: 0.95rem 2.5rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 51, 128, 0.25);
  border: 1px solid rgba(0, 51, 128, 0.2);
  transition: all 0.25s ease;
}

.kema-btn-projects-cta:hover {
  background: linear-gradient(135deg, #002255 0%, #003380 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 51, 128, 0.35);
}

.kema-btn-projects-cta i.fa-folder-open {
  color: #fbbf24;
  font-size: 1.15rem;
  transition: transform 0.25s ease;
}

.kema-btn-projects-cta:hover i.fa-folder-open {
  transform: scale(1.15);
}

.kema-btn-projects-cta i.fa-arrow-left,
.kema-btn-projects-cta i.fa-arrow-right {
  font-size: 0.9rem;
  transition: transform 0.25s ease;
}

[dir="rtl"] .kema-btn-projects-cta:hover i.fa-arrow-left {
  transform: translateX(-4px);
}

[dir="ltr"] .kema-btn-projects-cta:hover i.fa-arrow-right {
  transform: translateX(4px);
}

.kema-hero-visual {
  position: relative;
}

.kema-hero-image-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: #0f172a;
}

.kema-hero-featured-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.kema-hero-image-frame:hover .kema-hero-featured-img {
  transform: scale(1.04);
}

.kema-hero-floating-tag {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  left: 1.25rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kema-hero-floating-tag i {
  font-size: 1.75rem;
  color: var(--color-accent, #f59e0b);
}

.kema-hero-floating-tag strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.kema-hero-floating-tag span {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

.kema-hero-floating-badge-2 {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(0, 51, 128, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.kema-hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.kema-hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kema-hero-feature:last-child {
  margin-bottom: 0;
}

.kema-hero-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid var(--color-secondary, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #38bdf8;
  flex-shrink: 0;
}

.kema-hero-feature-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.kema-hero-feature-text p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* STATS BAR */
.kema-stats {
  background: #ffffff;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  padding: 1.75rem 2rem;
}

.kema-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.kema-stat-item {
  text-align: center;
  padding: 0 1rem;
}

.kema-stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary, #003380);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.kema-stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-muted, #64748b);
}

/* SECTION HEADINGS */
.kema-section {
  padding: 5rem 0;
}

.kema-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.kema-section-badge {
  display: inline-block;
  color: var(--color-secondary, #0284c7);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.kema-section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-dark, #0f172a);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.kema-section-desc {
  font-size: 1.05rem;
  color: var(--color-muted, #64748b);
  line-height: 1.7;
}

/* ABOUT SECTION (Responsive) */
.kema-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.kema-about-content {
  min-width: 0;
}
.kema-about-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border: 4px solid #fff;
  background: #fff;
}
.kema-about-card-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.kema-about-card-mobile {
  display: none;
}
.kema-about-locations {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.kema-about-location-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  flex: 1;
  min-width: 200px;
}

@media (max-width: 991px) {
  .kema-about-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .kema-about-media-desktop {
    display: none;
  }
  .kema-about-card-mobile {
    display: block;
    margin: 0 0 1.5rem;
  }
  .kema-about-card {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 576px) {
  .kema-section {
    padding: 3rem 0;
  }
  .kema-section-header {
    margin-bottom: 2rem;
  }
  .kema-section-title {
    font-size: 1.55rem;
  }
  .kema-about-section .kema-section-title {
    font-size: 1.55rem;
  }
  .kema-about-locations {
    gap: 0.85rem;
  }
  .kema-about-location-item {
    min-width: 100%;
  }
  .kema-project-card-thumb {
    height: 195px;
  }
  .kema-project-card-body {
    padding: 1.15rem;
  }
  .kema-product-card-body {
    padding: 1.15rem;
  }
}

/* PRODUCT CARDS */
.kema-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.kema-product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border, #e2e8f0);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.kema-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 51, 128, 0.12);
  border-color: var(--color-secondary, #0284c7);
}

.kema-product-thumb {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #f1f5f9;
}

.kema-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.kema-product-card:hover .kema-product-thumb img {
  transform: scale(1.08);
}

.kema-product-badge {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  background: var(--color-primary, #003380);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.kema-product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.kema-product-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-secondary, #0284c7);
  margin-bottom: 0.35rem;
}

.kema-product-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-dark, #0f172a);
  margin-bottom: 0.6rem;
}

.kema-product-desc {
  font-size: 0.9rem;
  color: var(--color-muted, #64748b);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.kema-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  gap: 0.5rem;
}

.kema-btn-sm-quote {
  background: linear-gradient(135deg, var(--color-primary, #003380), var(--color-secondary, #0284c7));
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.kema-btn-sm-quote:hover {
  background: var(--color-dark, #0f172a);
}

.kema-btn-sm-details {
  color: var(--color-primary, #003380);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.kema-btn-sm-details:hover {
  color: var(--color-secondary, #0284c7);
}

/* QUOTATION MODAL / FORM */
.kema-quote-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border, #e2e8f0);
}

.kema-form-group {
  margin-bottom: 1.25rem;
}

.kema-form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark, #0f172a);
  margin-bottom: 0.4rem;
}

.kema-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text, #1e293b);
  background: #f8fafc;
  transition: all 0.2s;
}

.kema-form-control:focus {
  outline: none;
  border-color: var(--color-secondary, #0284c7);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.kema-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* CONTACT & LOCATIONS */
.kema-locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.kema-location-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.75rem;
  border: 1px solid var(--color-border, #e2e8f0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  text-align: center;
  transition: all 0.3s;
}

.kema-location-card:hover {
  border-color: var(--color-secondary, #0284c7);
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 51, 128, 0.08);
}

.kema-location-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(0, 51, 128, 0.08);
  color: var(--color-primary, #003380);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.kema-location-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-dark, #0f172a);
  margin-bottom: 0.5rem;
}

.kema-location-card p {
  font-size: 0.9rem;
  color: var(--color-muted, #64748b);
  line-height: 1.6;
}

/* Projects Section Wrapper */
.kema-projects-section {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.kema-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.kema-project-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border, #e2e8f0);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.kema-project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 51, 128, 0.12);
  border-color: var(--color-secondary, #0284c7);
}

.kema-project-card-thumb {
  height: 220px;
  overflow: hidden;
  background: #0b1329;
  position: relative;
}

.kema-project-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.kema-project-card:hover .kema-project-card-thumb img {
  transform: scale(1.04);
}

.kema-project-card-stamp {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.kema-project-card-body {
  padding: 1.35rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.kema-project-card-location {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-secondary, #0284c7);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.kema-project-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-dark, #0f172a);
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.kema-project-card-meta {
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.kema-project-card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

.kema-project-card-meta-item.client {
  color: var(--color-primary, #003380);
}

.kema-project-card-meta-item.consultant {
  color: #475569;
}

.kema-project-card-desc {
  font-size: 0.875rem;
  color: var(--color-muted, #64748b);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.kema-project-card-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.95rem;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.kema-project-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: #16a34a;
  background: #dcfce7;
  padding: 3px 9px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kema-project-link {
  font-size: 0.825rem;
  font-weight: 800;
  color: var(--color-primary, #003380);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.kema-project-link:hover {
  color: var(--color-secondary, #0284c7);
  transform: translateX(-3px);
}

/* CERTIFICATES GRID */
.kema-certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.kema-cert-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid var(--color-border, #e2e8f0);
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kema-cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 51, 128, 0.08);
}

.kema-cert-thumb {
  height: 240px;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.kema-cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kema-cert-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-dark, #0f172a);
  margin-bottom: 0.4rem;
}

.kema-cert-issuer {
  font-size: 0.85rem;
  color: var(--color-secondary, #0284c7);
  font-weight: 600;
}

/* FOOTER */
.kema-footer {
  background: var(--color-dark, #0f172a);
  color: #cbd5e1;
  padding: 4.5rem 0 2rem;
  border-top: 4px solid var(--color-primary, #003380);
}

.kema-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.kema-footer-brand h2 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.kema-footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.kema-footer-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.kema-footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 40px;
  height: 2px;
  background: var(--color-accent, #f59e0b);
}

.kema-footer-links {
  list-style: none;
}

.kema-footer-links li {
  margin-bottom: 0.65rem;
}

.kema-footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.kema-footer-links a:hover {
  color: var(--color-accent, #f59e0b);
  padding-inline-start: 5px;
}

.kema-social-links {
  display: flex;
  gap: 0.75rem;
}

.kema-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.kema-social-link:hover {
  background: var(--color-secondary, #0284c7);
  color: #fff;
  transform: translateY(-3px);
}

.kema-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & MOBILE DESIGN SYSTEM
   ========================================================================== */
@media (max-width: 1024px) {
  .kema-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .kema-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .kema-hero-actions {
    justify-content: center;
  }
  .kema-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kema-locations-grid {
    grid-template-columns: 1fr;
  }
  .kema-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Hide bulky topbar on mobile/tablets to free up vertical screen space */
@media (max-width: 991px) {
  .kema-topbar {
    display: none !important;
  }
  .kema-nav-menu {
    display: none !important;
  }
  .kema-mobile-toggle {
    display: flex !important;
  }
  .kema-navbar-actions-mobile {
    display: flex !important;
  }
  .kema-brand-logo {
    height: 44px;
  }
}

@media (max-width: 768px) {
  .kema-section {
    padding: 3.5rem 0;
  }
  .kema-section-header {
    margin-bottom: 2.25rem;
  }
  .kema-section-title {
    font-size: 1.75rem;
  }
  .kema-product-grid,
  .kema-projects-grid,
  .kema-certs-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .kema-btn-projects-cta {
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
  }
  .kema-stats-grid {
    grid-template-columns: 1fr;
  }
  .kema-hero-title {
    font-size: 2rem;
  }
  .kema-form-row {
    grid-template-columns: 1fr;
  }
  .kema-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Navbar Actions (Quick WA, Lang, Hamburger) */
.kema-navbar-actions-mobile {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

.kema-mobile-quick-wa {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.kema-mobile-quick-wa:hover {
  background: #10b981;
  color: #ffffff;
  transform: scale(1.05);
}

.kema-mobile-quick-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-primary, #003380);
  background: #f0f7ff;
  border: 1px solid #bae6fd;
  text-decoration: none;
  transition: all 0.2s ease;
}
.kema-mobile-quick-lang:hover {
  background: var(--color-primary, #003380);
  color: #ffffff;
}

.kema-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 1.25rem;
  color: var(--color-primary, #003380);
  cursor: pointer;
  transition: all 0.2s ease;
}
.kema-mobile-toggle:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0284c7;
}

/* ==========================================================================
   OFF-CANVAS MOBILE DRAWER (LUXURY APP-STYLE NAVIGATION)
   ========================================================================== */
.kema-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}
.kema-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.kema-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 86%;
  max-width: 350px;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* RTL orientation (Arabic) */
[dir="rtl"] .kema-drawer {
  right: 0;
  transform: translateX(100%);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
}
[dir="rtl"] .kema-drawer.active {
  transform: translateX(0);
}

/* LTR orientation (English) */
[dir="ltr"] .kema-drawer {
  left: 0;
  transform: translateX(-100%);
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.25);
}
[dir="ltr"] .kema-drawer.active {
  transform: translateX(0);
}

/* Drawer Header */
.kema-drawer-header {
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.kema-drawer-brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
}
.kema-drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.kema-drawer-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: rotate(90deg);
}

/* Drawer Body & Menu */
.kema-drawer-body {
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.kema-drawer-menu {
  list-style: none;
  padding: 0 0.75rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.kema-drawer-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.kema-drawer-link:hover {
  background: #f8fafc;
  color: #003380;
  transform: translateX(-3px);
}
[dir="ltr"] .kema-drawer-link:hover {
  transform: translateX(3px);
}
.kema-drawer-link.active {
  background: #e0f2fe;
  color: #003380;
}
.drawer-link-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #003380;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-inline-end: 12px;
  flex-shrink: 0;
  transition: all 0.2s;
}
.kema-drawer-link:hover .drawer-link-icon,
.kema-drawer-link.active .drawer-link-icon {
  background: #003380;
  color: #ffffff;
}
.drawer-link-text {
  flex-grow: 1;
}
.drawer-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: #fef3c7;
  color: #b45309;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-inline-end: 8px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.drawer-chevron {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Drawer CTA */
.kema-drawer-cta-wrap {
  padding: 1.25rem 1rem 0.5rem;
}
.kema-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #003380, #0284c7);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 51, 128, 0.25);
  transition: all 0.2s ease;
}
.kema-drawer-cta:hover {
  background: linear-gradient(135deg, #002255, #003380);
  box-shadow: 0 6px 20px rgba(0, 51, 128, 0.35);
  transform: translateY(-1px);
}

/* Drawer Contacts Section */
.kema-drawer-contacts {
  margin-top: 1.25rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 1.25rem 1rem;
}
.drawer-section-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.drawer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.65rem 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.drawer-contact-item:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 51, 128, 0.06);
}
.drawer-contact-item.wa {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.drawer-contact-item.wa:hover {
  border-color: #4ade80;
}
.drawer-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.drawer-contact-icon.tel {
  background: #e0f2fe;
  color: #0284c7;
}
.drawer-contact-icon.tel-sec {
  background: #fef3c7;
  color: #d97706;
}
.drawer-contact-icon.wa-icon {
  background: #25d366;
  color: #ffffff;
}
.drawer-contact-info {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

[dir="rtl"] .drawer-contact-info {
  text-align: right;
}

[dir="ltr"] .drawer-contact-info {
  text-align: left;
}

.drawer-contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 2px;
  line-height: 1.2;
}

.drawer-contact-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  display: block;
}

[dir="rtl"] .drawer-contact-val {
  text-align: right !important;
  direction: ltr;
  unicode-bidi: embed;
}

[dir="ltr"] .drawer-contact-val {
  text-align: left !important;
  direction: ltr;
}

.drawer-contact-item.wa .drawer-contact-val {
  color: #166534;
}

.drawer-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}
.drawer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.drawer-social-btn.fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.drawer-social-btn.ig:hover { background: #e4405f; color: #fff; border-color: #e4405f; }
.drawer-social-btn.in:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.drawer-social-btn.mail:hover { background: #ea4335; color: #fff; border-color: #ea4335; }

/* ==========================================
   PAGINATION STYLING & SVG CONTAINMENT
   ========================================== */
.kema-pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 0;
}
.kema-pagination-info {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}
.kema-pagination-info strong {
  color: #0f172a;
  font-weight: 800;
}
.kema-pagination-list {
  display: inline-flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.kema-page-item {
  display: inline-block;
}
.kema-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.kema-page-link:hover {
  background: #f1f5f9;
  color: var(--color-primary, #003380);
  border-color: #cbd5e1;
}
.kema-page-item.active .kema-page-link {
  background: var(--color-primary, #003380);
  color: #ffffff;
  border-color: var(--color-primary, #003380);
  box-shadow: 0 2px 6px rgba(0, 51, 128, 0.25);
}
.kema-page-item.disabled .kema-page-link {
  color: #94a3b8;
  background: #f8fafc;
  border-color: #e2e8f0;
  cursor: not-allowed;
  opacity: 0.7;
}
.kema-page-link.dots {
  border: none;
  background: transparent;
  cursor: default;
}
/* UNIVERSAL SVG SAFETY RULE FOR ANY PAGINATION */
nav[role="navigation"] svg, .pagination svg, .kema-pagination-container svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}
