/* ==========================================================================
   ELBADRY FOR REAL ESTATE INVESTMENT AND CONTRACTING
   Official Corporate Website Stylesheet
   Brand Colors:
     - Dark Base: #0a0a0a / #111111 / #181818
     - Brand Red: #ce2e32
     - Brand Red Dark: #a51f23
     - Pure White: #ffffff
     - Light Gray: #f4f4f4
     - Border Subtles: rgba(255, 255, 255, 0.08)
   ========================================================================== */

:root {
  --bg-black: #080808;
  --bg-dark: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1e1e1e;
  --bg-subtle: #222222;
  --brand-red: #ce2e32;
  --brand-red-hover: #b52428;
  --brand-red-glow: rgba(206, 46, 50, 0.28);
  --text-white: #ffffff;
  --text-light: #f4f4f4;
  --text-muted: #a0a0a0;
  --text-dim: #707070;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-red: rgba(206, 46, 50, 0.4);
  --font-ar: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-en: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-red: 0 8px 30px rgba(206, 46, 50, 0.35);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --container-max: 1280px;
  --header-height: 84px;
}

/* --------------------------------------------------------------------------
   RESET & GLOBAL SETUP
-------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-black);
  color: var(--text-light);
  font-family: var(--font-ar);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[dir="ltr"] body {
  font-family: var(--font-en);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   LAYOUT UTILITIES
-------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  position: relative;
}

.section-darker {
  background-color: var(--bg-dark);
}

.section-black {
  background-color: var(--bg-black);
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(206, 46, 50, 0.12);
  border: 1px solid var(--border-red);
  color: #ff5257;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--brand-red);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   BUTTONS
-------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-red);
  color: var(--text-white);
  box-shadow: 0 4px 18px var(--brand-red-glow);
}

.btn-primary:hover {
  background-color: var(--brand-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--brand-red-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-white);
  border: 1px solid var(--border-card);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

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

.btn-outline-red:hover {
  background: var(--brand-red);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background-color: #20b858;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   TOP INFO BAR
-------------------------------------------------------------------------- */
.topbar {
  background-color: #050505;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-items {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.topbar-item:hover {
  color: var(--text-white);
}

.topbar-icon {
  color: var(--brand-red);
  font-size: 0.9rem;
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.lang-switch:hover {
  background: var(--brand-red);
  color: var(--text-white);
  border-color: var(--brand-red);
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION
-------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  background-color: rgba(10, 10, 10, 0.97);
  border-bottom-color: rgba(206, 46, 50, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo-card {
  background: #ffffff;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-fast);
}

.brand-logo-card:hover {
  transform: scale(1.02);
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-text-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.brand-text-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.2;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #d0d0d0;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--brand-red);
  transition: width var(--transition-fast);
}

[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
}

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

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

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.hamburger-btn span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--text-white);
  border-radius: 2px;
  transition: all var(--transition-smooth);
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(16px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 6rem 2rem 3rem 2rem;
  transform: translateY(-100%);
  transition: transform var(--transition-smooth);
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.mobile-nav-link {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--brand-red);
}

.mobile-nav-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   HERO SECTION
-------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-color: #0d0d0d;
  overflow: hidden;
  padding: 5rem 0;
}

.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.35) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 8, 8, 0.94) 0%,
    rgba(14, 14, 14, 0.75) 50%,
    rgba(8, 8, 8, 0.95) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.15rem;
  background: rgba(206, 46, 50, 0.15);
  border: 1px solid var(--border-red);
  color: #ff686c;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.18;
  margin-bottom: 1.35rem;
}

.hero-title .highlight {
  color: var(--brand-red);
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 1.15rem;
  color: #cccccc;
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-badges-strip {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
}

.hero-badge-item {
  display: flex;
  flex-direction: column;
}

.hero-badge-val {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.1;
}

.hero-badge-val span {
  color: var(--brand-red);
}

.hero-badge-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   STATS COUNTERS BAR
-------------------------------------------------------------------------- */
.stats-bar {
  background: #141414;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 3rem 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
}

.stat-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(206, 46, 50, 0.12);
  border: 1px solid var(--border-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-red);
  font-size: 1.6rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   ABOUT SECTION
-------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-lead {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.6;
}

.about-lead span {
  color: var(--brand-red);
}

.about-p {
  color: #b8b8b8;
  line-height: 1.8;
  font-size: 1rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border-right: 3px solid var(--brand-red);
  transition: transform var(--transition-fast);
}

[dir="ltr"] .pillar-card {
  border-right: 1px solid var(--border-light);
  border-left: 3px solid var(--brand-red);
}

.pillar-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.35rem;
}

.pillar-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-visuals {
  position: relative;
}

.about-img-main {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.about-floating-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 1rem;
}

[dir="ltr"] .about-floating-card {
  right: auto;
  left: -20px;
}

.floating-icon {
  font-size: 2rem;
  color: var(--brand-red);
}

.floating-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-white);
}

.floating-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   ORGANIZATION & LEADERSHIP
-------------------------------------------------------------------------- */
.org-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  margin-top: 2rem;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.leader-card {
  background: #1a1a1a;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.leader-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-red);
}

.leader-card.chairman {
  grid-column: 1 / -1;
  max-width: 480px;
  margin: 0 auto;
  border-color: var(--border-red);
  background: linear-gradient(180deg, #222222 0%, #161616 100%);
}

.leader-role {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ff5e63;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.leader-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-white);
}

.dept-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
}

.dept-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.dept-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

.dept-staff {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   SERVICES SECTION
-------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-red);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(206, 46, 50, 0.15);
}

.service-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(206, 46, 50, 0.12);
  border: 1px solid var(--border-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  font-size: 1.85rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon-box {
  background: var(--brand-red);
  color: var(--text-white);
  transform: scale(1.08);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.95rem;
  color: #a8a8a8;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.86rem;
  color: #c4c4c4;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-feature-item::before {
  content: '✓';
  color: var(--brand-red);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   PROJECTS PORTFOLIO
-------------------------------------------------------------------------- */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-tab {
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--brand-red);
  color: var(--text-white);
  border-color: var(--brand-red);
  box-shadow: 0 4px 15px var(--brand-red-glow);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-card);
  box-shadow: var(--shadow-md);
}

.project-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: #1f1f1f;
}

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

.project-card:hover .project-img {
  transform: scale(1.06);
}

.project-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(6px);
  color: #ff5257;
  border: 1px solid var(--border-red);
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

[dir="ltr"] .project-tag {
  right: auto;
  left: 1rem;
}

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

.project-meta-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.project-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.project-summary {
  font-size: 0.9rem;
  color: #adadad;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
}

.project-spec-item {
  display: flex;
  flex-direction: column;
}

.project-spec-label {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.project-spec-value {
  color: var(--text-light);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   IMAGE GALLERY & LIGHTBOX
-------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 250px;
  background-color: #1a1a1a;
  cursor: pointer;
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.gallery-item:hover {
  border-color: var(--brand-red);
  transform: scale(1.02);
  z-index: 5;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.07);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(8, 8, 8, 0.92) 0%, rgba(8, 8, 8, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.gallery-category-badge {
  font-size: 0.72rem;
  color: #ff5f64;
  font-weight: 600;
  text-transform: uppercase;
}

.gallery-zoom-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(206, 46, 50, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
}

[dir="rtl"] .gallery-zoom-icon {
  left: auto;
  right: 1rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-dialog {
  position: relative;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: #000000;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

.lightbox-footer {
  margin-top: 1rem;
  text-align: center;
  width: 100%;
}

.lightbox-caption {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.35rem;
}

.lightbox-counter {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-light);
  color: var(--text-white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 2005;
}

.lightbox-btn:hover {
  background: var(--brand-red);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: -4rem;
}

.lightbox-next {
  right: -4rem;
}

.lightbox-close {
  position: absolute;
  top: -3.5rem;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
  color: var(--text-white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--brand-red);
  transform: rotate(90deg);
}

/* --------------------------------------------------------------------------
   HEAVY EQUIPMENT & FLEET SECTION
-------------------------------------------------------------------------- */
.equipment-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.equipment-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: #191919;
  border: 1px solid var(--border-red);
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
}

.equipment-stat-num {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--brand-red);
  line-height: 1;
}

.equipment-stat-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
}

.equipment-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 1.5rem;
}

.equipment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: right;
}

[dir="ltr"] .equipment-table {
  text-align: left;
}

.equipment-table th {
  background: #202020;
  color: var(--text-white);
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--brand-red);
}

.equipment-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: #c0c0c0;
}

.equipment-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
}

/* --------------------------------------------------------------------------
   WHY CHOOSE US / CREDENTIALS
-------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  position: relative;
  transition: all var(--transition-fast);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-red);
  background: var(--bg-card-hover);
}

.why-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  background: rgba(206, 46, 50, 0.12);
  border: 1px solid var(--border-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  font-size: 2rem;
}

.why-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.why-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   OFFICIAL ACCREDITATIONS & BANKING PARTNERS
-------------------------------------------------------------------------- */
.trust-strip {
  padding: 4rem 0;
  background: #0d0d0d;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: transform var(--transition-fast);
}

.cert-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-red);
}

.cert-thumb-wrap {
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  background: #1d1d1d;
}

.cert-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.cert-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.35rem;
}

.cert-authority {
  font-size: 0.8rem;
  color: #ff686c;
}

.banks-block {
  text-align: center;
}

.banks-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.75rem;
}

.banks-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.bank-pill {
  padding: 0.65rem 1.25rem;
  background: #181818;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: #d0d0d0;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.bank-pill:hover {
  border-color: var(--brand-red);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   CALL TO ACTION
-------------------------------------------------------------------------- */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, #1b0708 0%, #111111 60%, #0d0d0d 100%);
  border-top: 1px solid var(--border-red);
  border-bottom: 1px solid var(--border-red);
  padding: 5rem 0;
  text-align: center;
}

.cta-box {
  max-width: 780px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.cta-desc {
  font-size: 1.15rem;
  color: #d0d0d0;
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   CONTACT SECTION
-------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all var(--transition-fast);
}

.contact-channel-card:hover {
  border-color: var(--border-red);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.contact-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(206, 46, 50, 0.12);
  border: 1px solid var(--border-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-channel-info {
  display: flex;
  flex-direction: column;
}

.contact-channel-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.contact-channel-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-white);
  direction: ltr;
}

[dir="rtl"] .contact-channel-val.is-arabic-text {
  direction: rtl;
}

/* Branch Locations */
.branches-card {
  background: #181818;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.branches-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.branch-item {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.branch-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.branch-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ff686c;
  margin-bottom: 0.25rem;
}

.branch-address {
  font-size: 0.85rem;
  color: #b5b5b5;
  line-height: 1.6;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  box-shadow: var(--shadow-md);
}

.form-header {
  margin-bottom: 2rem;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e0e0e0;
}

.form-label .req {
  color: var(--brand-red);
}

.form-input,
.form-textarea {
  width: 100%;
  background: #0f0f0f;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--text-white);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--brand-red);
  background: #141414;
  box-shadow: 0 0 0 3px var(--brand-red-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #555555;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* Honeypot field (hidden from legitimate users) */
.hp-field {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Form feedback messages */
.form-feedback {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.form-feedback.success {
  display: block;
  background: rgba(39, 174, 96, 0.15);
  border: 1px solid #27ae60;
  color: #2ecc71;
}

.form-feedback.error {
  display: block;
  background: rgba(206, 46, 50, 0.15);
  border: 1px solid var(--brand-red);
  color: #ff5f64;
}

.form-submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
}

.form-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading .btn-spinner {
  display: inline-block;
}

/* --------------------------------------------------------------------------
   FOOTER
-------------------------------------------------------------------------- */
.site-footer {
  background-color: #060606;
  border-top: 1px solid var(--border-light);
  padding: 5rem 0 2rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo-card {
  background: #ffffff;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  max-width: 180px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.88rem;
  color: #9c9c9c;
  line-height: 1.7;
}

.footer-legal-badge {
  font-size: 0.78rem;
  color: #ff686c;
  background: rgba(206, 46, 50, 0.08);
  border: 1px solid var(--border-red);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--brand-red);
}

[dir="rtl"] .footer-col-title::after {
  left: auto;
  right: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #b0b0b0;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link:hover {
  color: var(--brand-red);
  transform: translateX(4px);
}

[dir="rtl"] .footer-link:hover {
  transform: translateX(-4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.footer-contact-icon {
  color: var(--brand-red);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

.footer-copy {
  color: #777777;
}

/* --------------------------------------------------------------------------
   BACK TO TOP BUTTON
-------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--brand-red);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(206, 46, 50, 0.4);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-fast);
}

[dir="rtl"] .back-to-top {
  right: auto;
  left: 2rem;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--brand-red-hover);
  transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (Breakpoints: 1024px, 768px, 480px)
-------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2.1rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-visuals {
    max-width: 600px;
    margin: 0 auto;
  }
  .equipment-overview {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .lightbox-prev {
    left: 0.5rem;
  }
  .lightbox-next {
    right: 0.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }
  .topbar {
    display: none; /* Streamline on mobile */
  }
  .nav-menu {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .hero-section {
    min-height: 75vh;
    padding: 3.5rem 0;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-badges-strip {
    gap: 1.25rem;
  }
  .projects-grid,
  .services-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .about-floating-card {
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    margin-top: 1rem;
  }
  .cta-title {
    font-size: 1.85rem;
  }
  .contact-form-wrap {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .btn {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
