:root {
  --red: #c8242b;
  --red-dark: #9f1c22;
  --dark: #2f3336;
  --dark-2: #1d2022;
  --gray: #666b70;
  --light: #f5f5f5;
  --border: #e7e7e7;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(31, 34, 36, 0.10);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 96px;
  display: grid;
  grid-template-columns: 350px 1fr auto;
  align-items: center;
  gap: 26px;
}

.brand {
  text-decoration: none;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  position: relative;
  min-width: 92px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 20px;
  border-color: var(--red);
}

.brand-mark::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
}

.brand-mark::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid var(--red);
  border-right: 2px solid var(--red);
}

.m-red {
  color: var(--red);
}

.m-dark {
  color: var(--dark);
}

.brand-text {
  border-left: 1px solid var(--border);
  padding-left: 13px;
  line-height: 1.25;
}

.brand-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: 1px;
}

.brand-ar {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--dark);
  direction: rtl;
  text-align: left;
}

.brand-sub {
  font-size: 10.5px;
  color: var(--gray);
  font-weight: 700;
}

.brand-small {
  font-size: 11px;
  color: var(--red);
  font-weight: 800;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.main-nav a {
  color: var(--dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  position: relative;
}

.main-nav a:hover {
  color: var(--red);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: 0.2s;
}

.main-nav a:hover::after {
  width: 100%;
}

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

.lang-btn,
.header-btn,
.btn {
  border: none;
  text-decoration: none;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-btn {
  background: var(--white);
  color: var(--red);
  border: 1px solid var(--red);
}

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

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

.btn-outline {
  background: var(--white);
  color: var(--red);
  border: 1px solid var(--red);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96), rgba(255,255,255,0.84)),
    radial-gradient(circle at 85% 25%, rgba(200,36,43,0.16), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f2f2f2 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47,51,54,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,51,54,0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  right: -170px;
  bottom: -210px;
  width: 590px;
  height: 590px;
  background: var(--red);
  transform: rotate(38deg);
  opacity: 0.92;
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 60px;
}

.label {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.03;
  letter-spacing: -2px;
  margin-bottom: 22px;
}

.hero-content h1 span {
  display: block;
  color: var(--dark);
}

.hero-content h1 strong {
  display: block;
  color: var(--red);
}

.hero-text {
  max-width: 650px;
  color: var(--gray);
  font-size: 19px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-cards {
  display: grid;
  gap: 22px;
}

.hero-card {
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow);
  max-width: 420px;
  margin-left: auto;
}

.hero-card.offset {
  margin-left: 0;
  margin-right: auto;
}

.icon,
.service-icon {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 30px;
  font-weight: 900;
  color: var(--white);
}

.red-icon,
.service-icon {
  background: var(--red);
}

.dark-icon,
.service-icon.ai {
  background: var(--dark);
}

.hero-card h3 {
  font-size: 23px;
  margin-bottom: 8px;
}

.hero-card p {
  color: var(--gray);
}

.stats {
  position: relative;
  z-index: 4;
  margin-top: -70px;
  padding-bottom: 70px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.stats-grid div {
  padding: 30px;
  border-right: 1px solid var(--border);
}

.stats-grid div:last-child {
  border-right: none;
}

.stats-grid span {
  color: var(--red);
  font-weight: 900;
  font-size: 14px;
}

.stats-grid h3 {
  margin: 8px 0;
  font-size: 22px;
}

.stats-grid p {
  color: var(--gray);
}

.section {
  padding: 82px 0;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.section h2 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -1px;
}

.section p,
.text-block p {
  color: var(--gray);
  font-size: 17px;
  margin-bottom: 14px;
}

.services-section {
  background: var(--light);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(31,34,36,0.06);
}

.service-card.dark-card {
  background: var(--dark);
  color: var(--white);
}

.service-card h3 {
  font-size: 23px;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--gray);
}

.dark-card p {
  color: #d9d9d9;
}

.service-card ul {
  list-style: none;
  margin-top: 18px;
}

.service-card li {
  margin: 9px 0;
}

.service-card li::before {
  content: "✓";
  color: var(--red);
  font-weight: 900;
  margin-right: 10px;
}

.dark-card li::before {
  color: #ff777d;
}

.projects-section {
  background: var(--white);
}

.project-box {
  background: var(--light);
  padding: 28px;
  border-left: 5px solid var(--red);
  border-radius: 14px;
}

.contact-section {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  color: var(--white);
  padding: 78px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.light-label {
  color: #ff777d;
}

.contact-section h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  margin-bottom: 15px;
}

.contact-section p {
  color: #e6e6e6;
}

.contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 30px;
  border-radius: 18px;
  display: grid;
  gap: 16px;
}

.contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(200,36,43,0.18);
  color: #ff777d;
  font-size: 21px;
  font-weight: 900;
}

.contact-item strong {
  display: block;
  color: var(--white);
  margin-bottom: 3px;
  font-size: 14px;
}

.contact-item a {
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
}

.contact-item a:hover {
  color: #ff777d;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.btn-whatsapp {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
  color: var(--white);
}

.btn-whatsapp:hover {
  background: rgba(255,255,255,0.10);
}

.footer {
  background: #17191b;
  color: var(--white);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer a {
  color: var(--white);
  text-decoration: none;
}

.footer a:hover {
  color: #ff777d;
}

html[dir="rtl"] body {
  font-family: Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .header-inner {
  direction: ltr;
}

html[dir="rtl"] .main-nav,
html[dir="rtl"] .hero-content,
html[dir="rtl"] .section,
html[dir="rtl"] .contact-section {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .service-card li::before {
  margin-right: 0;
  margin-left: 10px;
}

html[dir="rtl"] .stats-grid div {
  border-right: none;
  border-left: 1px solid var(--border);
}

html[dir="rtl"] .stats-grid div:last-child {
  border-left: none;
}

html[dir="rtl"] .project-box {
  border-left: none;
  border-right: 5px solid var(--red);
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  .brand,
  .main-nav,
  .header-actions {
    justify-content: center;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .hero-grid,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .hero-card.offset {
    margin: 0;
  }

  .services-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid div {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stats-grid div:last-child {
    border-bottom: none;
  }
}

@media (max-width: 620px) {
  .brand {
    flex-direction: column;
    text-align: center;
  }

  .brand-text {
    border-left: none;
    padding-left: 0;
  }

  .brand-ar {
    text-align: center;
  }

  .main-nav {
    gap: 14px;
  }

  .header-actions {
    flex-direction: column;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero {
    padding: 70px 0 125px;
  }

  .stats {
    margin-top: -55px;
  }

  .contact-actions {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* SVG professional icons update */
.icon img,
.service-icon img {
  width: 42px;
  height: 42px;
  display: block;
}

.service-icon.ai,
.dark-icon {
  background: #2f3336 !important;
}

.service-card.dark-card {
  background: #2f3336 !important;
  color: #ffffff;
}

.service-card.dark-card p {
  color: #d9d9d9;
}

.service-card.dark-card li {
  color: #ffffff;
}

/* Company information section */
.company-info-section {
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.company-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.company-card span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.company-card strong {
  color: var(--dark);
  font-size: 18px;
  line-height: 1.4;
}

/* Vision and mission */
.vision-section {
  background: linear-gradient(135deg, #2f3336, #1d2022);
  color: #ffffff;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.vision-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 34px;
}

.vision-card .label {
  color: #ff777d;
}

.vision-card h3 {
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #ffffff;
}

.vision-card p {
  color: #e6e6e6;
  font-size: 17px;
}

html[dir="rtl"] .company-card {
  text-align: right;
}

@media (max-width: 900px) {
  .company-grid,
  .vision-grid {
    grid-template-columns: 1fr;
  }
}

/* Scope of Works Section */
.scope-section {
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.scope-intro {
  max-width: 850px;
  color: var(--gray);
  font-size: 17px;
  margin-top: 12px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.scope-item {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  min-height: 145px;
  position: relative;
  overflow: hidden;
  transition: 0.2s ease;
}

.scope-item::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 90px;
  height: 90px;
  background: rgba(200,36,43,0.08);
  border-radius: 50%;
}

.scope-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(31,34,36,0.08);
  border-color: rgba(200,36,43,0.35);
}

.scope-item span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 18px;
}

.scope-item h3 {
  font-size: 20px;
  line-height: 1.35;
  color: var(--dark);
  position: relative;
  z-index: 1;
}

html[dir="rtl"] .scope-section {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .scope-item::after {
  right: auto;
  left: -35px;
}

@media (max-width: 1000px) {
  .scope-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .scope-grid {
    grid-template-columns: 1fr;
  }
}

/* Construction CV / Previous Works */
.construction-cv-section {
  background: #f5f5f5;
  border-top: 1px solid var(--border);
}

.cv-intro {
  max-width: 900px;
  color: var(--gray);
  font-size: 17px;
  margin-top: 12px;
}

.cv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.cv-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(31,34,36,0.06);
  position: relative;
  overflow: hidden;
}

.cv-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(200,36,43,0.07);
}

.cv-number {
  width: 46px;
  height: 46px;
  background: var(--red);
  color: #ffffff;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 18px;
}

.cv-card h3 {
  font-size: 23px;
  color: var(--dark);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cv-card ul {
  list-style: none;
  position: relative;
  z-index: 1;
}

.cv-card li {
  color: var(--gray);
  margin: 10px 0;
  line-height: 1.6;
}

.cv-card li::before {
  content: "✓";
  color: var(--red);
  font-weight: 900;
  margin-right: 10px;
}

html[dir="rtl"] .construction-cv-section {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .cv-card::after {
  right: auto;
  left: -50px;
}

html[dir="rtl"] .cv-card li::before {
  margin-right: 0;
  margin-left: 10px;
}

@media (max-width: 900px) {
  .cv-grid {
    grid-template-columns: 1fr;
  }
}

/* Client Certificates Section */
.certificates-section {
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.cert-intro {
  max-width: 900px;
  color: var(--gray);
  font-size: 17px;
  margin-top: 12px;
}

.cert-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.cert-summary div {
  background: var(--dark);
  color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.12);
}

.cert-summary span {
  color: #ff777d;
  display: block;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cert-summary strong {
  display: block;
  font-size: 18px;
  line-height: 1.4;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.cert-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  min-height: 190px;
  position: relative;
  overflow: hidden;
  transition: 0.2s ease;
}

.cert-card::before {
  content: "✓";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  background: rgba(200,36,43,0.12);
  color: var(--red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(31,34,36,0.08);
  border-color: rgba(200,36,43,0.35);
}

.cert-card h3 {
  color: var(--dark);
  font-size: 21px;
  margin-bottom: 12px;
  padding-right: 42px;
}

.cert-card p {
  color: var(--gray);
  font-size: 16px;
}

.cert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

html[dir="rtl"] .certificates-section {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .cert-card::before {
  right: auto;
  left: 18px;
}

html[dir="rtl"] .cert-card h3 {
  padding-right: 0;
  padding-left: 42px;
}

@media (max-width: 1000px) {
  .cert-summary,
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .cert-summary,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .cert-actions {
    flex-direction: column;
  }
}

/* Major Project Experience Section */
.major-projects-section {
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.major-projects-intro {
  max-width: 900px;
  color: var(--gray);
  font-size: 17px;
  margin-top: 12px;
}

.major-projects-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.major-projects-summary div {
  background: var(--dark);
  color: #ffffff;
  border-radius: 16px;
  padding: 24px;
}

.major-projects-summary span {
  display: block;
  color: #ff777d;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.major-projects-summary strong {
  font-size: 20px;
  line-height: 1.35;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.sector-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: 0.2s ease;
}

.sector-card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 130px;
  height: 130px;
  background: rgba(200,36,43,0.07);
  border-radius: 50%;
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(31,34,36,0.08);
  border-color: rgba(200,36,43,0.35);
}

.sector-card h3 {
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.sector-card p {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.sector-card ul {
  list-style: none;
  position: relative;
  z-index: 1;
}

.sector-card li {
  color: var(--dark);
  margin: 8px 0;
  line-height: 1.55;
}

.sector-card li::before {
  content: "✓";
  color: var(--red);
  font-weight: 900;
  margin-right: 10px;
}

html[dir="rtl"] .major-projects-section {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .sector-card::after {
  right: auto;
  left: -55px;
}

html[dir="rtl"] .sector-card li::before {
  margin-right: 0;
  margin-left: 10px;
}

@media (max-width: 900px) {
  .major-projects-summary,
  .sector-grid {
    grid-template-columns: 1fr;
  }
}

/* Approval note for certificate/profile requests */
.approval-note {
  margin-top: 34px;
  background: rgba(200,36,43,0.08);
  border: 1px solid rgba(200,36,43,0.22);
  border-left: 5px solid var(--red);
  border-radius: 14px;
  padding: 22px;
}

.approval-note strong {
  display: block;
  color: var(--red);
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 6px;
}

.approval-note p {
  color: var(--dark);
  margin: 0;
}

html[dir="rtl"] .approval-note {
  border-left: 1px solid rgba(200,36,43,0.22);
  border-right: 5px solid var(--red);
  text-align: right;
}

/* Mobile hamburger menu + cleaner mobile header */
.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  justify-self: end;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--dark);
  display: block;
  transition: 0.2s ease;
}

.mobile-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(31, 34, 36, 0.55);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-panel {
  width: min(360px, 88vw);
  height: 100%;
  background: #ffffff;
  padding: 24px;
  transform: translateX(-100%);
  transition: 0.25s ease;
  overflow-y: auto;
}

.mobile-menu.is-open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-top strong {
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
}

.mobile-menu-top button {
  width: 38px;
  height: 38px;
  border: none;
  background: var(--light);
  color: var(--dark);
  border-radius: 10px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 900;
  padding: 13px 14px;
  border-radius: 10px;
  background: var(--light);
  border: 1px solid var(--border);
}

.mobile-nav a:hover {
  color: var(--red);
  border-color: rgba(200,36,43,0.35);
}

.mobile-menu-actions {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.mobile-lang,
.mobile-whatsapp {
  width: 100%;
  text-decoration: none;
  text-align: center;
  min-height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.mobile-whatsapp {
  background: #25D366;
  color: #ffffff;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1800;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.whatsapp-main {
  border: none;
  background: #25D366;
  color: #ffffff;
  border-radius: 999px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0,0,0,0.20);
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.20);
  display: grid;
  place-items: center;
}

.whatsapp-options {
  display: grid;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.whatsapp-options.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-options a {
  width: 285px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--dark);
  box-shadow: 0 12px 28px rgba(31,34,36,0.14);
}

.whatsapp-options a span {
  width: 48px;
  height: 48px;
  background: #25D366;
  color: #ffffff;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
}

.whatsapp-options a strong {
  display: block;
  font-size: 15px;
  color: var(--dark);
}

.whatsapp-options a small {
  color: var(--gray);
  font-weight: 700;
}

.whatsapp-options a:hover {
  border-color: #25D366;
}

/* Cleaner responsive header override */
@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: 1fr auto !important;
    min-height: 78px;
    padding: 10px 0 !important;
    gap: 12px;
  }

  .brand {
    justify-content: flex-start !important;
    min-width: 0;
  }

  .brand-mark {
    min-width: 78px;
    height: 54px;
    font-size: 35px;
  }

  .brand-mark::before,
  .brand-mark::after {
    width: 62px;
    height: 16px;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-ar,
  .brand-sub,
  .brand-small {
    font-size: 10px;
  }

  .main-nav,
  .header-actions {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 620px) {
  .brand {
    flex-direction: row !important;
    text-align: left !important;
  }

  .brand-text {
    border-left: 1px solid var(--border) !important;
    padding-left: 10px !important;
  }

  .brand-ar {
    text-align: left !important;
  }

  .brand-sub {
    display: none;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-main {
    padding: 13px 15px;
  }

  .whatsapp-options a {
    width: min(300px, calc(100vw - 32px));
  }
}

html[dir="rtl"] .mobile-menu-panel {
  margin-left: auto;
  transform: translateX(100%);
}

html[dir="rtl"] .mobile-menu.is-open .mobile-menu-panel {
  transform: translateX(0);
}

html[dir="rtl"] .mobile-nav,
html[dir="rtl"] .mobile-menu-top {
  direction: rtl;
}

html[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 22px;
  align-items: flex-start;
}

@media (max-width: 620px) {
  html[dir="rtl"] .whatsapp-float {
    left: 16px;
  }
}


/* MANAGEMENT_CONTACT_START */
/* Management Contact Section */
.management-section {
  background: var(--light);
  border-top: 1px solid var(--border);
}

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

.management-intro h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.management-intro p {
  color: var(--gray);
  font-size: 17px;
}

.director-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  box-shadow: 0 14px 35px rgba(31,34,36,0.08);
}

.director-badge {
  width: 90px;
  height: 90px;
  background: var(--dark);
  color: #ffffff;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
  border-bottom: 6px solid var(--red);
}

.director-content span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.director-content h3 {
  color: var(--dark);
  font-size: 28px;
  margin: 6px 0 20px;
}

.director-links {
  display: grid;
  gap: 12px;
}

.director-links a {
  text-decoration: none;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  color: var(--dark);
  word-break: break-word;
}

.director-links a strong {
  display: block;
  color: var(--red);
  font-size: 13px;
  margin-bottom: 3px;
}

.director-links a:hover {
  border-color: rgba(200,36,43,0.45);
  background: #ffffff;
}

html[dir="rtl"] .management-section {
  direction: rtl;
  text-align: right;
}

@media (max-width: 900px) {
  .management-grid {
    grid-template-columns: 1fr;
  }

  .director-card {
    grid-template-columns: 1fr;
  }
}
/* MANAGEMENT_CONTACT_END */

/* Certified Project Reference Box */
.certified-projects-box {
  background: linear-gradient(135deg, #2f3336, #1d2022);
  color: #ffffff;
  border-radius: 18px;
  padding: 30px;
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.certified-projects-box .label {
  color: #ff777d;
}

.certified-projects-box h3 {
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #ffffff;
}

.certified-projects-box p {
  color: #e6e6e6;
  margin: 0;
}

.certified-project-list {
  display: grid;
  gap: 12px;
}

.certified-project-list span {
  display: block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 14px 16px;
  color: #ffffff;
  font-weight: 800;
}

.certified-project-list span::before {
  content: "✓";
  color: #ff777d;
  font-weight: 900;
  margin-right: 10px;
}

html[dir="rtl"] .certified-projects-box {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .certified-project-list span::before {
  margin-right: 0;
  margin-left: 10px;
}

@media (max-width: 900px) {
  .certified-projects-box {
    grid-template-columns: 1fr;
  }
}

/* DOCUMENT_REQUEST_START */
.document-request-section {
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.document-request-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.document-request-content h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.document-request-content p {
  color: var(--gray);
  font-size: 17px;
  line-height: 1.7;
}

.document-request-cards {
  display: grid;
  gap: 16px;
}

.document-card {
  display: block;
  text-decoration: none;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  color: var(--dark);
  transition: 0.2s ease;
}

.document-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200,36,43,0.45);
  box-shadow: 0 14px 35px rgba(31,34,36,0.08);
}

.document-card span {
  display: inline-block;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.document-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.document-card small {
  display: block;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.5;
}

.document-card.dark {
  background: #2f3336;
  color: #ffffff;
  border-color: #2f3336;
}

.document-card.dark small {
  color: #e0e0e0;
}

html[dir="rtl"] .document-request-section {
  direction: rtl;
  text-align: right;
}

@media (max-width: 900px) {
  .document-request-grid {
    grid-template-columns: 1fr;
  }
}
/* DOCUMENT_REQUEST_END */

/* MECMISR_LOGO_START */
.mecmisr-header-logo {
  height: 58px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.logo,
.brand,
.nav-brand,
.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 768px) {
  .mecmisr-header-logo {
    height: 46px;
    max-width: 180px;
  }
}
/* MECMISR_LOGO_END */

/* FORCE_MECMISR_3D_LOGO_START */
.mecmisr-header-logo,
header img[src*="logo"],
.header img[src*="logo"],
.navbar img[src*="logo"] {
  content: url("/assets/logo/mecmisr-logo-header-600.png?v=3dlogo") !important;
  height: 64px !important;
  width: auto !important;
  max-width: 260px !important;
  object-fit: contain !important;
  display: block !important;
}

.logo-box,
.logo-mark,
.brand-mark,
.logo-icon {
  background: url("/assets/logo/mecmisr-logo-header-600.png?v=3dlogo") center center / contain no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
  border: 0 !important;
  width: 260px !important;
  height: 74px !important;
  padding: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .mecmisr-header-logo,
  header img[src*="logo"],
  .header img[src*="logo"],
  .navbar img[src*="logo"] {
    height: 50px !important;
    max-width: 200px !important;
  }

  .logo-box,
  .logo-mark,
  .brand-mark,
  .logo-icon {
    width: 200px !important;
    height: 58px !important;
  }
}
/* FORCE_MECMISR_3D_LOGO_END */
