/*
Theme Name: Haibat Al-Iraq
Theme URI: https://iraq-webhosting.com
Author: IWT - Iraq Web Hosting
Description: قالب شركة هيبة العراق للمقاولات العامة
Version: 1.0.0
Requires at least: 5.8
Text Domain: haibat-iraq
Tags: rtl-language, arabic, construction, business
*/

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --navy:        #0D1B2A;
  --navy-mid:    #162436;
  --navy-light:  #1E3450;
  --copper:      #C17D3C;
  --copper-lt:   #D4955A;
  --copper-dk:   #9B6027;
  --white:       #FFFFFF;
  --off-white:   #F5F3EF;
  --light-gray:  #ECEAE5;
  --text:        #2A2A2A;
  --muted:       #6B7280;
  --border:      #DDD9D0;
  --font:        'Tajawal', sans-serif;
  --radius:      6px;
  --radius-lg:   14px;
  --shadow:      0 4px 24px rgba(13,27,42,0.10);
  --shadow-lg:   0 12px 48px rgba(13,27,42,0.16);
  --trans:       all 0.3s ease;
  --max-w:       1200px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { direction: rtl; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--trans); }
ul { list-style: none; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.sec { padding: 80px 0; }
.sec-alt { background: var(--off-white); }
.sec-dark { background: var(--navy); }

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 10px;
}
.sec-label::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--copper);
  border-radius: 2px;
  display: inline-block;
}
.sec-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 14px;
}
.sec-title-white { color: var(--white); }
.sec-desc { font-size: 16px; color: var(--muted); line-height: 1.85; max-width: 600px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--trans);
}
.btn-copper  { background: var(--copper); color: var(--white); border-color: var(--copper); }
.btn-copper:hover { background: var(--copper-dk); border-color: var(--copper-dk); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline-w { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-w:hover { background: rgba(255,255,255,0.1); border-color: var(--white); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: var(--shadow); }

/* scroll animation */
.anim { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.anim.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; }

/* ============================================================
   TOP BAR
   ============================================================ */
#top-bar {
  display: none !important;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-bar-contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  transition: var(--trans);
}
.top-bar-contact a:hover { color: var(--copper-lt); }
.top-bar-contact .icon { font-size: 14px; }
.top-bar-tagline { font-size: 12px; color: rgba(255,255,255,0.35); font-style: italic; }

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 16px rgba(13,27,42,0.08);
  transition: var(--trans);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

/* Center nav absolutely in header */
.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Logo */
.site-logo { display: flex; align-items: center; }
.site-logo img { height: 54px; width: auto; }
.logo-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
}
.logo-text span { color: var(--copper); display: block; font-size: 12px; font-weight: 500; }

/* Nav */
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  transition: var(--trans);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
  color: var(--copper);
  background: rgba(193,125,60,0.07);
}
.main-nav > ul > li > a .arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}
.main-nav > ul > li:hover > a .arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--trans);
  z-index: 100;
}
.main-nav > ul > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: var(--trans);
}
.dropdown li a:hover { background: var(--off-white); color: var(--copper); padding-right: 18px; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 25px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--trans);
}

/* Mobile nav */
#mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  background: var(--white);
  z-index: 1000;
  box-shadow: -4px 0 32px rgba(0,0,0,0.15);
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
#mobile-nav.open { transform: translateX(0); display: block; }
#mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}
#mobile-overlay.open { display: block; }
.mobile-nav-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}
.mobile-nav-close button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--navy);
  padding: 4px 8px;
}
#mobile-nav ul li a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  border-radius: var(--radius);
  border-bottom: 1px solid var(--light-gray);
  transition: var(--trans);
}
#mobile-nav ul li a:hover { background: var(--off-white); color: var(--copper); }
#mobile-nav .sub-items { padding-right: 16px; }
#mobile-nav .sub-items a { font-size: 14px; font-weight: 400; border-bottom: 1px dashed var(--light-gray); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
#hero {
  position: relative;
  height: 90vh;
  min-height: 560px;
  max-height: 820px;
  overflow: hidden;
}

.hero-slides { height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-slide.active .hero-slide-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13,27,42,0.82) 0%,
    rgba(13,27,42,0.55) 50%,
    rgba(13,27,42,0.3) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}
.hero-text { max-width: 680px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(193,125,60,0.2);
  border: 1px solid rgba(193,125,60,0.4);
  color: var(--copper-lt);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-badge .pulse {
  width: 7px; height: 7px;
  background: var(--copper);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero-title {
  font-size: clamp(28px, 5vw, 58px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero-title .accent { color: var(--copper-lt); }
.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.85;
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Slider controls */
.hero-controls {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: var(--trans);
  border: none;
}
.hero-dot.active {
  background: var(--copper);
  width: 28px;
  border-radius: 5px;
}

.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}
.hero-arrow {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  pointer-events: all;
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--copper); border-color: var(--copper); }

/* ============================================================
   STATS BAR
   ============================================================ */
#stats-bar { background: var(--navy); padding: 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-right: 1px solid rgba(255,255,255,0.07);
}
.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,0.07);
  transition: var(--trans);
}
.stat-item:hover { background: rgba(255,255,255,0.03); }
.stat-num {
  font-size: 40px;
  font-weight: 900;
  color: var(--copper);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stat-lbl { font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 500; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about { background: var(--off-white); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.about-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border-bottom: 3px solid transparent;
  transition: var(--trans);
  text-align: center;
}
.about-card:hover {
  border-bottom-color: var(--copper);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.about-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(193,125,60,0.12), rgba(193,125,60,0.05));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 18px;
  transition: var(--trans);
}
.about-card:hover .about-icon { background: var(--copper); }
.about-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.about-card p { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ============================================================
   QUALITY BANNER
   ============================================================ */
#quality-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
#quality-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(193,125,60,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.quality-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.quality-inner h2 {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 900;
  color: var(--white);
}
.quality-inner h2 span { color: var(--copper-lt); }
.quality-divider {
  width: 60px; height: 3px;
  background: var(--copper);
  margin: 16px auto;
  border-radius: 2px;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
#services { background: var(--white); }
.services-header { margin-bottom: 52px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--trans);
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: transparent; }
.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
  background: var(--light-gray);
}
.service-card:hover .service-card-img { transform: scale(1.04); }
.service-card-img-wrap { overflow: hidden; }
.service-card-body { padding: 24px 20px; }
.service-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.service-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--copper);
}
.service-card a:hover { gap: 10px; }

/* ============================================================
   WHY US
   ============================================================ */
#why-us { background: var(--off-white); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.why-reasons { list-style: none; }
.why-reason {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.why-reason:last-child { border-bottom: none; }
.why-num {
  min-width: 40px; height: 40px;
  background: var(--navy);
  color: var(--copper);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
}
.why-reason-text h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.why-reason-text p { font-size: 14px; color: var(--muted); }

.why-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.why-feat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  transition: var(--trans);
}
.why-feat:hover { border-color: var(--copper); box-shadow: var(--shadow); }
.why-feat .icon { font-size: 28px; margin-bottom: 10px; }
.why-feat h4 { font-size: 14px; font-weight: 700; color: var(--navy); }
.why-feat p { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
#projects { background: var(--white); }
.projects-header { margin-bottom: 52px; }
.projects-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.proj-tab {
  padding: 9px 22px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--muted);
  transition: var(--trans);
}
.proj-tab.active, .proj-tab:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.proj-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.proj-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.proj-card:hover img { transform: scale(1.06); }
.proj-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.85) 0%, transparent 55%);
  opacity: 0;
  transition: var(--trans);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.proj-card:hover .proj-card-overlay { opacity: 1; }
.proj-card-overlay h3 { color: var(--white); font-size: 16px; font-weight: 700; }
.proj-card-overlay span { color: var(--copper-lt); font-size: 13px; }

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 88vh; border-radius: var(--radius-lg); object-fit: contain; }
#lightbox-close {
  position: absolute;
  top: 20px; left: 20px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
#lightbox-prev, #lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 28px;
  cursor: pointer;
  background: rgba(255,255,255,0.15);
  border: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
}
#lightbox-prev { right: 24px; }
#lightbox-next { left: 24px; }
#lightbox-prev:hover, #lightbox-next:hover { background: var(--copper); }

/* ============================================================
   GALLERY SLIDER
   ============================================================ */
#gallery { background: var(--navy); padding: 72px 0; }
.gallery-header { text-align: center; margin-bottom: 40px; }
.gallery-track-wrap { overflow: hidden; border-radius: var(--radius-lg); }
.gallery-track {
  display: flex;
  gap: 16px;
  animation: galleryScroll 30s linear infinite;
}
.gallery-track:hover { animation-play-state: paused; }
.gallery-item {
  min-width: 320px;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }

@keyframes galleryScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   CONTACT CARDS (new layout - no form)
   ============================================================ */
#contact { background: var(--off-white); }
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--trans);
}
.contact-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--copper);
}
.cc-icon {
  width: 64px; height: 64px;
  background: var(--navy);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
  transition: var(--trans);
}
.contact-card:hover .cc-icon { background: var(--copper); }
.contact-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
}
.contact-card a,
.contact-card p {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  word-break: break-all;
  transition: var(--trans);
}
.contact-card a:hover { color: var(--copper); }

/* Phone number fix — always LTR */
.phone-ltr, [dir="ltr"] {
  direction: ltr;
  unicode-bidi: embed;
}

/* Top bar phone fix */
.top-bar-contact a[href^="tel"],
.foot-contact-item a[href^="tel"],
.c-text a[href^="tel"] {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

@media (max-width: 768px) {
  .contact-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .contact-cards-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: #090F18; padding-top: 72px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand .foot-logo { margin-bottom: 18px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.85; max-width: 260px; margin-bottom: 24px; }
.foot-social { display: flex; gap: 10px; }
.foot-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  transition: var(--trans);
}
.foot-social a:hover { background: var(--copper); color: white; transform: translateY(-3px); }
.foot-col h4 { font-size: 15px; font-weight: 700; color: white; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.foot-col h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 30px; height: 2px; background: var(--copper); border-radius: 2px; }
.foot-col ul li { margin-bottom: 10px; }
.foot-col ul li a { font-size: 14px; color: rgba(255,255,255,0.4); transition: var(--trans); display: inline-flex; align-items: center; gap: 6px; }
.foot-col ul li a::before { content: '←'; font-size: 10px; opacity: 0; transition: var(--trans); }
.foot-col ul li a:hover { color: var(--copper-lt); gap: 10px; }
.foot-col ul li a:hover::before { opacity: 1; }
.foot-contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot-contact-item .fi { font-size: 16px; min-width: 20px; }
.foot-contact-item a, .foot-contact-item span { font-size: 13px; color: rgba(255,255,255,0.4); transition: var(--trans); }
.foot-contact-item a:hover { color: var(--copper-lt); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-bottom a { color: var(--copper); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
#wa-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 500;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: var(--trans);
  animation: waFloat 3s ease-in-out infinite;
}
#wa-float:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }
#wa-float img { width: 30px; height: 30px; }

/* Scroll top */
#scroll-top {
  position: fixed;
  bottom: 96px;
  left: 28px;
  z-index: 500;
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--trans);
  box-shadow: var(--shadow);
}
#scroll-top.show { opacity: 1; visibility: visible; }
#scroll-top:hover { background: var(--copper); transform: translateY(-3px); }

/* ============================================================
   PAGE TEMPLATES
   ============================================================ */
.page-banner {
  background: linear-gradient(105deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 130px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--copper), var(--copper-lt), var(--copper));
}
.page-banner h1 { font-size: clamp(28px,4vw,48px); color: white; margin-bottom: 10px; }
.page-banner p { color: rgba(255,255,255,0.55); font-size: 16px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.breadcrumb a { color: var(--copper-lt); }

.entry-content { max-width: 800px; margin: 0 auto; padding: 72px 24px; }
.entry-content h2, .entry-content h3 { color: var(--navy); margin: 32px 0 14px; }
.entry-content p { margin-bottom: 18px; line-height: 1.9; color: var(--text); }
.entry-content a { color: var(--copper); border-bottom: 1px solid rgba(193,125,60,0.3); }
.entry-content img { border-radius: var(--radius-lg); margin: 28px 0; width: 100%; }
.entry-content ul { padding-right: 20px; margin-bottom: 18px; }
.entry-content ul li { list-style: disc; margin-bottom: 8px; line-height: 1.8; }

/* WP core */
.aligncenter { display: block; margin: 0 auto; }
.wp-caption-text { font-size: 13px; color: var(--muted); text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.4); }
}
@keyframes waFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .why-grid { gap: 40px; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sec { padding: 60px 0; }
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .hero-arrows { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-box { padding: 28px 20px; }
  .why-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .why-features { grid-template-columns: 1fr; }
}

/* ============================================================
   ELEMENTOR COMPATIBILITY
   ============================================================ */

/* Main content no padding */
.elementor-page #main-content,
.elementor-page .entry-content {
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Elementor sections full width */
.elementor-section-wrap,
.elementor-section {
  max-width: 100% !important;
}

/* Fix inner container width */
.elementor-section .elementor-container {
  max-width: 1200px;
}

/* RTL fix */
.elementor-widget-wrap,
.elementor-element,
.elementor-section {
  direction: rtl;
}

/* Fix heading widget */
.elementor-widget-heading .elementor-heading-title {
  font-family: 'Tajawal', sans-serif !important;
}

/* Fix text editor */
.elementor-widget-text-editor .elementor-widget-container {
  font-family: 'Tajawal', sans-serif;
}

/* Fix image widget sizing */
.elementor-widget-image img {
  width: 100%;
  object-fit: cover;
}

/* Fix icon-box RTL */
.elementor-widget-icon-box.elementor-position-left .elementor-icon-box-wrapper {
  flex-direction: row-reverse;
  text-align: right;
}

/* Button font */
.elementor-button {
  font-family: 'Tajawal', sans-serif !important;
}

/* Hide page title on Elementor pages */
.elementor-page .page-banner,
.elementor-page .entry-header {
  display: none !important;
}

/* Force header/footer always visible */
#site-header, #top-bar, #site-footer, #wa-float {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Header stays on top */
.elementor-page #site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* Remove default margins Elementor adds */
.elementor-page .elementor {
  margin-top: 0 !important;
}

/* Fix column gaps */
.elementor-column-gap-no > .elementor-row {
  padding: 0 !important;
}

/* ============================================================
   ELEMENTOR RESPONSIVE FIXES
   ============================================================ */

/* ── Section label (خدماتنا، من نحن label) ── */
.elementor-widget-heading .elementor-heading-title {
  font-family: 'Tajawal', sans-serif !important;
  direction: rtl;
}

/* ── Elementor columns responsive ── */
@media (max-width: 1024px) {
  .elementor-column[data-settings*='"_column_size":25'] {
    width: 50% !important;
  }
}

@media (max-width: 767px) {
  /* Stack ALL columns on mobile */
  .elementor-column {
    width: 100% !important;
  }
  /* Fix inner padding */
  .elementor-section .elementor-container {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
  /* Hero title smaller on mobile */
  .elementor-section#home .elementor-heading-title {
    font-size: 32px !important;
    line-height: 1.3 !important;
  }
  /* Hero padding */
  .elementor-section#home .elementor-column-wrap {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }
  /* Services / projects images full width */
  .elementor-widget-image img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
  }
  /* Why us section - stack image below text */
  .elementor-section#why .elementor-column:last-child {
    margin-top: 24px;
  }
  /* Contact cards grid → 1 column on mobile */
  .elementor-widget-html div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Stats - 2 per row on mobile */
  .elementor-section#stats .elementor-column {
    width: 50% !important;
  }
  /* Section heading sizes on mobile */
  .elementor-widget-heading[data-widget_type="heading.default"] h2.elementor-heading-title {
    font-size: 26px !important;
  }
  /* About cards - 2 per row on tablet/mobile */
  .elementor-section#abcards .elementor-column {
    width: 50% !important;
  }
  /* Why us text align */
  .elementor-section#why .elementor-heading-title {
    text-align: right !important;
  }
  /* Footer menu on mobile */
  .footer-nav { flex-wrap: wrap; gap: 8px; }
  /* Reduce section padding on mobile */
  .elementor-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .elementor-section#home {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 480px) {
  /* Stats - 1 per row on small phones */
  .elementor-section#stats .elementor-column {
    width: 50% !important;
  }
  /* About cards - 1 per row on small phones */
  .elementor-section#abcards .elementor-column {
    width: 100% !important;
  }
  /* Hero title */
  .elementor-section#home .elementor-heading-title {
    font-size: 26px !important;
  }
}
