/* ==========================================================================
   أيادي العمران للمقاولات العامة - Landing Page Styles
   ألوان مستمدة من الشعار: أزرق أساسي، أزرق فاتح، أسود، مع لمسة برتقالية
   ========================================================================== */

/* ---------- Design Tokens (ألوان الشعار والمظهر) ---------- */
:root {
  /* Primary: أزرق الشعار (داكن للعناوين والبطاقة المركزية) */
  --color-primary: #0d3b66;
  --color-primary-light: #1a5f8a;
  /* Light blue: عناصر الشعار والأيقونات */
  --color-brand-light: #2d9cdb;
  --color-brand-lighter: #56b4e8;
  /* Accent: لمسة برتقالية للتمييز */
  --color-accent: #e67e22;
  --color-accent-light: #f39c12;
  /* Neutrals */
  --color-bg: #ffffff;
  --color-bg-dark: #0a0a0a;
  --color-text: #2c3e50;
  --color-text-muted: #5d6d7e;
  --color-border: #e0e6ed;
  /* Typography */
  --font-ar: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --font-en: 'Outfit', 'Segoe UI', sans-serif;
  /* Spacing & Layout */
  --container-max: 1200px;
  --container-gutter: 1.25rem;
  --section-padding-y: 3.5rem;
  --header-height: 3.5rem;
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  /* Border radius */
  --radius-card: 12px;
  --radius-btn: 8px;
  /* ارتفاع الهيدر الكلي (للمسافة تحت الفيكسد هيدر) */
  --header-total: 140px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

/* Anchor scroll offset so content is not hidden under fixed header */
section {
  scroll-margin-top: var(--header-total);
}

#services-heading,
#why-heading,
#contact {
  scroll-margin-top: var(--header-total);
}

body {
  margin: 0;
  padding-top: var(--header-total);
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  overflow-x: hidden;
  font-family: var(--font-ar);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* RTL/LTR: عند التبديل للإنجليزية نغيّر الاتجاه عبر .locale-en */
.locale-en body,
.locale-en .header__inner,
.locale-en .services-grid,
.locale-en .advantages-grid,
.locale-en .contact-grid {
  direction: ltr;
}

.locale-en .header__brand,
.locale-en .section__header,
.locale-en .contact-list,
.locale-en .contact-card {
  text-align: left;
}

.locale-en .navbar__list {
  flex-direction: row;
}

[dir="rtl"] .contact-map__link { margin-right: 0; margin-left: auto; }
.locale-en .contact-map__link { margin-left: 0; margin-right: auto; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-brand-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Utility: إخفاء عناصر واجهة القارئ فقط ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* إظهار/إخفاء حسب اللغة */
.lang-en { display: none; }
.lang-ar { display: inline; }
.locale-en .lang-en { display: inline; }
.locale-en .lang-ar { display: none; }

/* للعناصر البلوك (عناوين، فقرات) */
.lang-en.block { display: block; }
.lang-ar.block { display: block; }
.locale-en .lang-ar.block { display: none; }
.locale-en .lang-en.block { display: block; }

/* ---------- Layout: Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

/* ---------- Header (هيدر واحد: شعار + اسم + أزرار اتصل/لغة) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: var(--color-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header__main {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding-block: 0.4rem 0.5rem;
}

/* بانر الصورة تحت النافبار (هيرو): ارتفاع ~480px، الصورة تغطي المساحة */
.hero-banner {
  width: 100%;
  height: 480px;
  min-height: 450px;
  max-height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-brand-light) 100%);
  position: relative;
}

.hero-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ========== Navbar (شريط التنقل) ========== */
.navbar {
  background: var(--color-primary);
  padding-block: 0.6rem 0.75rem;
  box-shadow: 0 2px 8px rgba(13, 59, 102, 0.25);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.locale-en .navbar__inner {
  flex-direction: row;
}

.navbar__logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

/* زر الهامبرجر: يظهر على الجوال فقط */
.navbar__toggler {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-bg);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.navbar__toggler:hover {
  background: rgba(255, 255, 255, 0.25);
}

.navbar__toggler[aria-expanded="true"] .navbar__toggler-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.navbar__toggler[aria-expanded="true"] .navbar__toggler-icon {
  background: transparent;
}

.navbar__toggler[aria-expanded="true"] .navbar__toggler-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.navbar__toggler-icon {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: background 0.2s ease;
}

.navbar__toggler-icon::before,
.navbar__toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease;
}

.navbar__toggler-icon::before {
  top: -6px;
}

.navbar__toggler-icon::after {
  top: 6px;
}

.navbar__list {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar__link {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-btn);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.navbar__link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-bg);
}

.navbar__link--active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-bg);
}

.navbar__phone {
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-bg);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-btn);
  white-space: nowrap;
}

.navbar__phone:hover {
  background: rgba(255, 255, 255, 0.3);
  color: var(--color-bg);
}

/* على الجوال: مسافة أكبر للهيدر الطويل + هامبرجر وإخفاء القائمة حتى تُفتح */
@media (max-width: 768px) {
  :root {
    --header-total: 165px;
  }

  .navbar__toggler {
    display: flex;
  }

  .navbar__list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem;
    background: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 50;
  }

  .navbar--open .navbar__list {
    display: flex;
  }

  .navbar__list li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar__list li:last-child {
    border-bottom: none;
  }

  .navbar__link {
    display: block;
    padding: 0.85rem 1rem;
    width: 100%;
    text-align: inherit;
  }

  .navbar__inner {
    position: relative;
  }
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-height);
  padding-block: 0.25rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
}

.header__logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.header__titles {
  min-width: 0;
}

.header__company-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
}

.header__group {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-brand-light);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* زر تبديل اللغة */
.lang-switcher {
  font-family: var(--font-en);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-bg);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.lang-switcher:hover {
  background: var(--color-primary-light);
  color: var(--color-bg);
  transform: translateY(-1px);
}

/* محتوى زر اللغة: نعرض EN عند العربية و"عربي" عند الإنجليزية */
.lang-switcher__en { display: none; }
.locale-en .lang-switcher__ar { display: none; }
.locale-en .lang-switcher__en { display: inline; }

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-bg);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.header__cta:hover {
  background: var(--color-primary-light);
  color: var(--color-bg);
  transform: translateY(-1px);
}

/* ---------- Sections Common ---------- */
.section {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-block: var(--section-padding-y);
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--color-primary);
  text-align: center;
}

.section__subtitle {
  margin: 0 auto 2rem;
  max-width: 50ch;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.section__header {
  margin-bottom: 2rem;
}

.section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.section__bg--why {
  opacity: 0.1;
}

/* خلفية ثابتة أثناء التمرير (parallax) + حركة بطيئة ٢٠–٣٠ ثانية */
.section__bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  pointer-events: none;
}

.section__bg-img--why {
  /* تظليل خفيف لقراءة النص */
  background-image: linear-gradient(180deg, rgba(13, 59, 102, 0.55) 0%, rgba(13, 59, 102, 0.7) 100%),
    url("../images/why-us.png");
  animation: why-bg-drift 25s ease-in-out infinite;
}

@keyframes why-bg-drift {
  0%, 100% {
    background-position: 0 0, 50% 50%;
  }
  25% {
    background-position: 0 0, 48% 52%;
  }
  50% {
    background-position: 0 0, 52% 48%;
  }
  75% {
    background-position: 0 0, 51% 49%;
  }
}

.section--why .section__bg {
  background-image: linear-gradient(180deg, var(--color-brand-lighter) 0%, var(--color-primary) 100%);
}

.section--services .section__bg {
  background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-brand-light) 100%);
  top: 120px;
  z-index: 0;
}

/* Floating gradient blobs (soft green/blue, subtle motion) */
.blob-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.32;
  animation: blob-float 16s ease-in-out infinite;
  will-change: transform;
}

.blob--1 {
  width: 55vmax;
  height: 55vmax;
  left: -15%;
  top: -10%;
  background: radial-gradient(circle, rgba(45, 156, 219, 0.45) 0%, rgba(22, 127, 138, 0.3) 50%, transparent 70%);
  animation-duration: 18s;
  animation-delay: 0s;
}

.blob--2 {
  width: 45vmax;
  height: 45vmax;
  right: -10%;
  bottom: -5%;
  background: radial-gradient(circle, rgba(30, 122, 107, 0.4) 0%, rgba(26, 95, 138, 0.25) 50%, transparent 70%);
  animation-duration: 14s;
  animation-delay: -4s;
}

.blob--3 {
  width: 40vmax;
  height: 40vmax;
  left: 30%;
  bottom: -15%;
  background: radial-gradient(circle, rgba(86, 180, 232, 0.35) 0%, rgba(45, 156, 219, 0.2) 50%, transparent 70%);
  animation-duration: 20s;
  animation-delay: -8s;
}

@keyframes blob-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(4%, -3%) scale(1.05);
  }
  66% {
    transform: translate(-3%, 5%) scale(0.98);
  }
}

/* Pause blob animation when section is in view (scroll-triggered) */
.section--blob-bg.section--blobs-in-view .blob {
  animation-play-state: paused;
}

/* ===============================
   Services Section (overlaps hero)
================================ */

.section--services {
  margin-top: -120px;
  position: relative;
  z-index: 10;
  padding-top: 0;
}

.section--services .container {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: center;
  margin-bottom: 2rem;
}

.service-card {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.service-card--light {
  background: #ffffff;
}

.service-card--primary {
  background: #0d3b66;
  color: white;
  transform: translateY(-30px) scale(1.05);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.service-card--primary .service-card__title {
  color: white;
}

.service-card--primary .service-card__desc {
  color: rgba(255, 255, 255, 0.9);
}

.service-card--primary .service-card__number {
  color: rgba(255, 255, 255, 0.8);
}

.service-card--primary .service-card__number-prefix {
  color: rgba(255, 255, 255, 0.95);
}

.service-card--primary .service-card__icon--light {
  color: rgba(255, 255, 255, 0.95);
}

.service-card__number {
  font-size: 28px;
  font-weight: 700;
  color: #7a8a9a;
  margin-bottom: 10px;
  display: block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.service-card__number-prefix {
  font-weight: 800;
  color: var(--color-brand-light);
  margin-inline-end: 0.15em;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 15px;
  color: #2d9cdb;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0d3b66;
}

.service-card__desc {
  font-size: 14px;
  color: #5d6d7e;
  line-height: 1.6;
}

/* Single-column services on tablet and below so cards don’t overflow (e.g. 912px viewport) */
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    height: 320px;
    min-height: 280px;
    max-height: 360px;
  }

  .section--services {
    margin-top: -80px;
    padding-top: 0.5rem;
  }

  .section--services .section__bg {
    top: 80px;
  }

  .service-card--primary {
    transform: translateY(-10px) scale(1.02);
  }
}

.services-summary {
  text-align: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(13, 59, 102, 0.04) 100%);
  border-radius: 16px;
  border: 1px solid rgba(13, 59, 102, 0.1);
  box-shadow: 0 4px 20px rgba(13, 59, 102, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  max-width: 42rem;
  margin-inline: auto;
  position: relative;
}

.services-summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-brand-light), transparent);
  border-radius: 0 0 3px 3px;
}

.services-summary__line {
  margin: 0;
  line-height: 1.5;
}

.services-summary__line--main {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.services-summary__line--sub {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.services-summary__line--sub .lang-ar {
  letter-spacing: 0.03em;
}

/* ---------- Why Us / Advantages ---------- */
.section--why .container {
  position: relative;
  z-index: 1;
}

.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.advantage-card {
  padding: 1.75rem;
  background: var(--color-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.advantage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.advantage-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--color-brand-light);
}

.advantage-card__icon--accent {
  color: var(--color-accent);
}

.advantage-card__icon svg {
  width: 100%;
  height: 100%;
}

.advantage-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.advantage-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ---------- Contact Section ---------- */
.section--contact {
  background: linear-gradient(180deg, #f0f7fc 0%, var(--color-bg) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

/* كروت التواصل */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.contact-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--color-brand-light);
}

.contact-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 156, 219, 0.12);
  color: var(--color-brand-light);
  border-radius: 10px;
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
}

.contact-card__body {
  min-width: 0;
}

.contact-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.contact-card__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-block;
}

a.contact-card__value:hover {
  color: var(--color-brand-light);
  text-decoration: underline;
}

.contact-card__note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* العنوانان تحت بعض */
.contact-card--address .contact-card__body {
  width: 100%;
}

.contact-addresses {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-address {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-address:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-address__label {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.contact-address__value {
  font-style: normal;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.5;
}

.contact-map__label {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1rem;
}

.contact-map__embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: var(--color-border);
}

.contact-map__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.contact-map__link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-brand-light);
}

.contact-map__link:hover {
  color: var(--color-primary);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-bg);
  margin-top: 3rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.95);
}

.site-footer a:hover {
  color: var(--color-bg);
  text-decoration: underline;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1.5rem;
}

.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer__titles {
  min-width: 0;
}

.footer__name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-bg);
  line-height: 1.35;
}

.footer__group {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.footer__heading {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-bg);
}

.footer__services .footer__text,
.footer__contact .footer__text,
.footer__contact .footer__address {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.footer__contact .footer__address {
  margin-top: 0.35rem;
}

.footer__bottom {
  text-align: center;
}

.footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Responsive: Tablet ---------- */
@media (min-width: 640px) {
  :root {
    --container-gutter: 1.5rem;
    --section-padding-y: 4rem;
  }

  .header__company-name {
    font-size: 1.0625rem;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Responsive: Desktop ---------- */
@media (min-width: 1024px) {
  :root {
    --container-gutter: 2rem;
    --section-padding-y: 5rem;
  }

  .header__inner {
    padding-block: 0.35rem;
  }

  .header__logo {
    width: 56px;
    height: 56px;
  }

  .header__company-name {
    font-size: 1.125rem;
  }

  .advantages-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .advantage-card {
    padding: 2rem;
  }

  .contact-map__embed {
    padding-bottom: 45%;
  }

  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 2.5rem;
  }

  .footer__bottom {
    text-align: center;
  }
}

/* Wider content area on large viewports to reduce empty side space */
@media (min-width: 1280px) {
  :root {
    --container-max: 1400px;
  }
}

@media (min-width: 1600px) {
  :root {
    --container-max: 1600px;
  }
}

/* ---------- Reduced motion (احترام تفضيلات المستخدم) ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .service-card:hover,
  .advantage-card:hover {
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
