/* ── footer.css — Architectural Floating Card Footer in Site Colors ── */

.site-footer {
  position: relative;
  width: 100%;
  padding: 48px 5% 64px;
  background: transparent;
  z-index: 30;
  box-sizing: border-box;
  overflow: visible;
}

/* Atmospheric Ambient Aurora behind the footer (neutralized) */
.footer-ambient-aura {
  display: none;
}

/* ── Architectural Outer Guide Frame ── */
.footer-frame-wrapper {
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  z-index: 2;
}

/* Crosshair Hairline Guides (extending past corners) */
.footer-frame-wrapper::before,
.footer-frame-wrapper::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

/* Horizontal guidelines extending past left/right */
.footer-frame-wrapper::before {
  top: 0;
  bottom: 0;
  left: -28px;
  right: -28px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark .footer-frame-wrapper::before {
  border-color: rgba(255, 255, 255, 0.09);
}

/* Vertical guidelines extending past top/bottom */
.footer-frame-wrapper::after {
  left: 0;
  right: 0;
  top: -28px;
  bottom: -28px;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark .footer-frame-wrapper::after {
  border-color: rgba(255, 255, 255, 0.09);
}

/* ── Main Architectural Card (Frosted Glass — يرى #ambient-bg الثابت خلفه) ── */
.footer-card {
  position: relative;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 0;
  padding: 56px 60px 48px;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

body.dark .footer-card {
  background: rgba(6, 10, 8, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.footer-card::before {
  display: none;
}


/* ── Upper Grid: Logo & Slogan vs 3 Navigation Columns ── */
.footer-card-top {
  display: grid;
  grid-template-columns: 1.1fr 1.35fr;
  gap: 56px;
  align-items: flex-start;
  width: 100%;
}

/* Logo & Slogan Column */
.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.footer-logo-mark {
  color: var(--ink);
  transition: transform 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-logo-mark:hover {
  transform: translateY(-2px);
  color: var(--accent);
}

.footer-logo-img {
  height: 42px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.12));
}

body.dark .footer-logo-img {
  filter: brightness(0) invert(1);
}

.footer-slogan {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 500;
  line-height: 1.36;
  color: var(--ink);
  letter-spacing: -0.02em;
  max-width: 320px;
  margin: 0;
}

body.lang-ar .footer-slogan {
  font-family: 'Thmanyah Serif Text', 'Cairo', serif;
  letter-spacing: normal;
  line-height: 1.45;
}

body.dark .footer-slogan {
  color: #f1f5f9;
}

/* 3 Link Columns */
.footer-columns-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col-header {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 22px;
}

body.dark .footer-col-header {
  color: rgba(0, 255, 165, 0.8);
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list li a,
.footer-nav-static {
  font-size: 0.9rem;
  color: var(--ink-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.22s ease, transform 0.22s ease;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.footer-nav-list li a:hover,
.footer-nav-static:hover {
  color: var(--accent);
  transform: translateX(3px);
}

body.dark .footer-nav-list li a,
body.dark .footer-nav-static {
  color: #ffffff;
}

body.dark .footer-nav-list li a:hover,
body.dark .footer-nav-static:hover {
  color: #00ffa5;
}

.footer-arrow-icon {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  flex-shrink: 0;
}

.footer-nav-list li a:hover .footer-arrow-icon,
.footer-nav-static:hover .footer-arrow-icon {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Middle Meta Info (Location & Phone) ── */
.footer-card-middle {
  margin: 44px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-location-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

body.dark .footer-location-tag {
  color: #64748b;
}

.footer-phone-tag {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}

.footer-phone-tag:hover {
  color: var(--accent);
}

body.dark .footer-phone-tag {
  color: #cbd5e1;
}

body.dark .footer-phone-tag:hover {
  color: #00ffa5;
}

/* ── Bottom Row: Huge Email vs Socials & Copyright ── */
.footer-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-giant-email {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  display: inline-block;
}

.footer-giant-email:hover {
  color: var(--accent);
}

body.dark .footer-giant-email {
  color: #ffffff;
}

body.dark .footer-giant-email:hover {
  color: #00ffa5;
  text-shadow: 0 0 24px rgba(0, 255, 165, 0.4);
}

.footer-legal-copy {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: -0.01em;
  margin: 0;
}

body.dark .footer-legal-copy {
  color: #64748b;
}

/* Bottom Right Socials */
.footer-social-cluster {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 6px;
}

.footer-icon-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.85);
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.footer-icon-pill:hover {
  transform: translateY(-3px);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.16), inset 0 1px 1px #fff;
}

body.dark .footer-icon-pill {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body.dark .footer-icon-pill:hover {
  transform: translateY(-3px);
  color: #00ffa5;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(0, 255, 165, 0.45);
  box-shadow: 0 6px 20px rgba(0, 255, 165, 0.25);
}

.footer-icon-pill svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   ARCHITECTURAL STATEMENT FOOTER — RESPONSIVE UPGRADE
   Precision layouts for Tablet & Mobile keeping core identity
   ══════════════════════════════════════════════════════════════ */

/* ── Tablet Mode (641px to 1080px) ── */
@media (max-width: 1080px) and (min-width: 641px) {
  .site-footer {
    padding: 44px 3.5% 56px;
    overflow: visible;
  }

  /* Crosshair Hairline Guides (extending past corners like desktop) */
  .footer-frame-wrapper::before,
  .footer-frame-wrapper::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    pointer-events: none !important;
    z-index: 3 !important;
  }

  /* Horizontal guidelines extending past left/right */
  .footer-frame-wrapper::before {
    top: 0 !important;
    bottom: 0 !important;
    left: -20px !important;
    right: -20px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  }

  body.dark .footer-frame-wrapper::before {
    border-color: rgba(255, 255, 255, 0.12) !important;
  }

  /* Vertical guidelines extending past top/bottom */
  .footer-frame-wrapper::after {
    left: 0 !important;
    right: 0 !important;
    top: -20px !important;
    bottom: -20px !important;
    border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
  }

  body.dark .footer-frame-wrapper::after {
    border-color: rgba(255, 255, 255, 0.12) !important;
  }

  .footer-card {
    border-radius: 0 !important;
    padding: 44px 36px 36px;
    min-height: auto;
    gap: 36px;
    box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }

  body.dark .footer-card {
    box-shadow: 0 30px 80px -16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  .footer-card-top {
    display: flex;
    flex-direction: column;
    gap: 36px;
    width: 100%;
  }

  .footer-brand-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    gap: 24px;
  }

  body.dark .footer-brand-block {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .footer-slogan {
    max-width: 440px;
    font-size: 1.3rem;
    text-align: end;
  }

  body.lang-ar .footer-slogan,
  html[dir="rtl"] .footer-slogan {
    text-align: start;
  }

  /* Tablet Navigation Grid: 2 Columns (Company + Industries in Col 1, Capabilities beside them in Col 2) */
  .footer-columns-wrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px 32px !important;
    width: 100% !important;
  }

  .footer-col-item:nth-child(1) {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .footer-col-item:nth-child(2) {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
  }

  .footer-col-item:nth-child(3) {
    grid-column: 1 !important;
    grid-row: 2 !important;
    margin-top: 6px !important;
  }

  .footer-col-item {
    display: flex;
    flex-direction: column;
  }

  .footer-col-header {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    color: var(--muted);
  }

  body.dark .footer-col-header {
    color: rgba(0, 255, 165, 0.85);
  }

  .footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Location, Availability & Phone: Clean without any pill background */
  .footer-card-middle {
    margin: 8px 0 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  body.dark .footer-card-middle {
    background: transparent;
    border: none;
  }

  .footer-location-tag {
    background: transparent;
    border: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .footer-phone-tag {
    background: transparent;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-2);
    direction: ltr;
  }

  body.dark .footer-phone-tag {
    color: #cbd5e1;
  }

  body.dark .footer-phone-tag:hover {
    color: #00ffa5;
  }

  .footer-card-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 24px;
    padding-top: 4px;
  }

  /* Giant Email: Clean free text, no background or border */
  .footer-giant-email {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    white-space: nowrap;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
  }

  body.dark .footer-giant-email {
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .footer-social-cluster {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 0;
  }
}

/* ── Mobile Phone Mode (<= 640px) ── */
@media (max-width: 640px) {
  .site-footer {
    padding: 32px 14px 54px;
    overflow: visible;
  }

  /* Crosshair Hairline Guides (extending past corners like desktop) */
  .footer-frame-wrapper::before,
  .footer-frame-wrapper::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    pointer-events: none !important;
    z-index: 3 !important;
  }

  /* Horizontal guidelines extending past left/right */
  .footer-frame-wrapper::before {
    top: 0 !important;
    bottom: 0 !important;
    left: -10px !important;
    right: -10px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  }

  body.dark .footer-frame-wrapper::before {
    border-color: rgba(255, 255, 255, 0.12) !important;
  }

  /* Vertical guidelines extending past top/bottom */
  .footer-frame-wrapper::after {
    left: 0 !important;
    right: 0 !important;
    top: -12px !important;
    bottom: -12px !important;
    border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
  }

  body.dark .footer-frame-wrapper::after {
    border-color: rgba(255, 255, 255, 0.12) !important;
  }

  .footer-card {
    border-radius: 0 !important;
    padding: 28px 18px 24px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 16px 44px -10px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
  }

  body.dark .footer-card {
    background: rgba(6, 12, 9, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  /* 1. Brand Block: Centered, Focused, High-Aesthetic */
  .footer-card-top {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .footer-brand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    width: 100%;
  }

  body.dark .footer-brand-block {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .footer-logo-img {
    height: 38px;
    width: auto;
    margin: 0 auto;
  }

  .footer-slogan {
    font-size: 1.15rem;
    line-height: 1.4;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
  }

  body.lang-ar .footer-slogan,
  html[dir="rtl"] .footer-slogan {
    font-family: 'Thmanyah Serif Text', 'Cairo', serif;
    font-size: 1.18rem;
    line-height: 1.48;
    text-align: center;
  }

  /* 2. Navigation Columns: Balanced 2-Column Luxury Grid */
  .footer-columns-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 14px;
    width: 100%;
  }

  .footer-col-item:nth-child(1) {
    grid-column: 1;
  }

  .footer-col-item:nth-child(2) {
    grid-column: 2;
    grid-row: span 2;
  }

  .footer-col-item:nth-child(3) {
    grid-column: 1;
  }

  .footer-col-header {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--muted);
  }

  body.dark .footer-col-header {
    color: rgba(0, 255, 165, 0.85);
  }

  .footer-nav-list {
    gap: 10px;
  }

  .footer-nav-list li a,
  .footer-nav-static {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  /* 3. Middle Meta Info: Clean without background */
  .footer-card-middle {
    margin: 4px 0 0;
    padding: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  body.dark .footer-card-middle {
    background: transparent !important;
    border: none !important;
  }

  .footer-location-tag {
    background: transparent !important;
    border: none !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.06em !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    color: var(--muted) !important;
  }

  .footer-phone-tag {
    background: transparent !important;
    border: none !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--accent) !important;
    direction: ltr !important;
    display: inline-block !important;
  }

  /* 4. Bottom Contact & Socials: Ordered for Maximum Impact */
  .footer-card-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 18px !important;
    width: 100%;
    padding-top: 14px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  }

  body.dark .footer-card-bottom {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
  }

  .footer-contact-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
    width: 100% !important;
  }

  /* Giant Email: Clean Typography with no background or pill */
  .footer-giant-email {
    font-size: clamp(1.2rem, 5.4vw, 1.65rem) !important;
    letter-spacing: -0.02em !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: var(--ink) !important;
    transition: color 0.25s ease, text-shadow 0.25s ease !important;
  }

  body.dark .footer-giant-email {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
  }

  .footer-giant-email:hover,
  .footer-giant-email:active {
    color: var(--accent) !important;
    background: transparent !important;
    border: none !important;
    transform: none !important;
  }

  /* Social Icons: Sized & Centered for Easy Touch */
  .footer-social-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 2px 0;
  }

  .footer-icon-pill {
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }

  .footer-icon-pill svg {
    width: 19px;
    height: 19px;
  }

  .footer-legal-copy {
    font-size: 0.76rem;
    opacity: 0.72;
    margin: 0;
    text-align: center;
    line-height: 1.4;
  }

  body.lang-ar .footer-nav-list li a:hover,
  body.lang-ar .footer-nav-static:hover,
  html[dir="rtl"] .footer-nav-list li a:hover,
  html[dir="rtl"] .footer-nav-static:hover {
    transform: translateX(-3px);
  }
}

@media (max-width: 380px) {
  .footer-card {
    border-radius: 0 !important;
    padding: 24px 14px 20px;
  }

  .footer-columns-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-col-item:nth-child(2) {
    grid-column: 1;
    grid-row: auto;
  }

  .footer-giant-email {
    font-size: 0.95rem;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
}