/* El Shiekh — shared landing styles (futuristic / tech, light theme) */
:root {
  --bg-deep: #f0f4f9;
  --bg-elevated: #ffffff;
  --card: rgba(255, 255, 255, 0.92);
  --cyan: #0e7490;
  --cyan-bright: #0891b2;
  --orange: #ea580c;
  --orange-deep: #c2410c;
  --text: #0f172a;
  --text-muted: #64748b;
  --grid-line: rgba(14, 116, 144, 0.11);
  --glow-cyan: 0 8px 32px rgba(14, 116, 144, 0.12);
  --glow-orange: 0 6px 24px rgba(234, 88, 12, 0.15);
  --font-sans: "Space Grotesk", "Tajawal", system-ui, sans-serif;
  --font-display: "Orbitron", "Tajawal", sans-serif;
  --font-ar: "Tajawal", "Cairo", sans-serif;
  --r: 12px;
  --r-lg: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.6;
  overflow-x: hidden;
}

body.page-ar {
  font-family: var(--font-ar);
}

a {
  color: var(--cyan);
  text-decoration: none;
}
.phone-ltr {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

/* Ambient + grid */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 55% at 15% 10%, rgba(56, 189, 248, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 88% 75%, rgba(253, 186, 116, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(224, 231, 255, 0.5) 0%, transparent 55%),
    var(--bg-deep);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 100%);
  pointer-events: none;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(15, 23, 42, 0.025) 2px,
    rgba(15, 23, 42, 0.025) 4px
  );
  opacity: 0.5;
}

.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.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;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(14, 116, 144, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  padding: 7px;
  border-radius: 16px;
  position: relative;
  z-index: 0;
  background:
    radial-gradient(ellipse 130% 120% at 30% 15%, rgba(56, 189, 248, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 90% 80% at 100% 100%, rgba(253, 186, 116, 0.35) 0%, transparent 50%),
    linear-gradient(155deg, #ffffff 0%, #f1f5f9 50%, #e8f4fc 100%);
  border: 1px solid rgba(14, 116, 144, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 4px 20px rgba(15, 23, 42, 0.08);
  filter: drop-shadow(0 2px 6px rgba(14, 116, 144, 0.12));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-text .en-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.brand-text .ar-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.2;
}

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

.nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--cyan-bright);
  background: rgba(14, 116, 144, 0.1);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #fb923c 0%, var(--orange-deep) 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--glow-orange);
  text-decoration: none;
  font-family: inherit;
}
.lang-btn:hover {
  filter: brightness(1.08);
  color: #fff;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0 4rem;
  min-height: min(70vh, 640px);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
    text-align: center;
  }
  .hero-visual {
    order: -1;
  }
  .badges {
    justify-content: center;
  }
  .hero-cta {
    justify-content: center;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  border-radius: 2px;
}

body[dir="rtl"] .eyebrow {
  flex-direction: row-reverse;
}
body[dir="rtl"] .eyebrow::before {
  background: linear-gradient(270deg, var(--cyan), transparent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  background: linear-gradient(120deg, #0f172a 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.page-ar .hero h1 {
  font-family: var(--font-ar);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 0 1.5rem;
}

.hero-lead--top {
  max-width: none;
  margin: 0 0 2rem;
  padding: 1.35rem 1.5rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.75;
  color: var(--text);
  text-align: center;
  border-radius: var(--r-lg);
  border: 1px solid rgba(14, 116, 144, 0.22);
  background:
    linear-gradient(135deg, rgba(224, 242, 254, 0.85) 0%, rgba(255, 237, 213, 0.55) 100%),
    #ffffff;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), var(--glow-cyan);
}

.hero-lead--top strong {
  color: var(--orange-deep);
  font-weight: 700;
}

body.page-ar .hero-lead--top {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  line-height: 1.85;
}

body[dir="rtl"] .hero-lead {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 901px) {
  body[dir="rtl"] .hero-lead {
    margin-right: 0;
    margin-left: auto;
  }
  body[dir="ltr"] .hero-lead {
    margin-left: 0;
  }
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(14, 116, 144, 0.28);
  color: var(--cyan-bright);
  background: rgba(14, 116, 144, 0.08);
}

.badge--orange {
  border-color: rgba(234, 88, 12, 0.35);
  color: #c2410c;
  background: rgba(254, 215, 170, 0.45);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
  background: linear-gradient(135deg, #0e7490 0%, #0c4a6e 100%);
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  box-shadow: var(--glow-cyan);
  text-decoration: none;
  font-family: inherit;
}
.btn-primary:hover {
  filter: brightness(1.05);
  color: #f8fafc;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(234, 88, 12, 0.4);
  border-radius: var(--r);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-ghost:hover {
  background: rgba(255, 237, 213, 0.65);
  box-shadow: var(--glow-orange);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

/* Hero logo: multi-layer “stage” (depth, brand colors, soft vignette) */
.logo-frame {
  --logo-frame-r: 22px;
  position: relative;
  padding: 2.25rem 2.5rem 2.6rem;
  border-radius: var(--logo-frame-r);
  background: transparent;
  border: 1px solid rgba(14, 116, 144, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.85) inset,
    0 16px 48px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(14, 116, 144, 0.06);
  backdrop-filter: blur(18px);
  isolation: isolate;
}

.logo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: var(--logo-frame-r);
  pointer-events: none;
  background:
    radial-gradient(ellipse 95% 55% at 50% 0%, rgba(56, 189, 248, 0.28) 0%, transparent 52%),
    radial-gradient(ellipse 75% 60% at 10% 88%, rgba(6, 182, 212, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 92% 78%, rgba(253, 186, 116, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(255, 255, 255, 0.85) 0%, transparent 58%),
    radial-gradient(ellipse 88% 85% at 50% 75%, rgba(0, 0, 0, 0) 0%, rgba(148, 163, 184, 0.12) 100%),
    linear-gradient(170deg, #f8fafc 0%, #e2e8f0 40%, #f1f5f9 100%);
  animation: logo-ambient 14s ease-in-out infinite;
}

@keyframes logo-ambient {
  0%,
  100% {
    filter: saturate(1) hue-rotate(0deg);
    opacity: 1;
  }
  50% {
    filter: saturate(1.12) hue-rotate(-4deg);
    opacity: 0.98;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-frame::before {
    animation: none;
  }
  .logo-frame,
  .circuit-ring,
  .circuit-dots {
    animation: none;
  }
}

.logo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: var(--logo-frame-r);
  pointer-events: none;
  background-image: repeating-linear-gradient(
      -8deg,
      transparent 0,
      transparent 3px,
      rgba(14, 116, 144, 0.06) 3px,
      rgba(14, 116, 144, 0.06) 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0) 2px,
      rgba(14, 116, 144, 0.08) 2px,
      rgba(14, 116, 144, 0.08) 3px
    );
  background-size: 100% 100%, 20px 20px;
  mix-blend-mode: multiply;
  opacity: 0.65;
  mask-image: radial-gradient(ellipse 88% 85% at 50% 48%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 88% 85% at 50% 48%, black 0%, transparent 100%);
}

.logo-frame img {
  position: relative;
  z-index: 1;
  width: min(280px, 70vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(15, 23, 42, 0.12)) drop-shadow(0 0 0 rgba(14, 116, 144, 0.08));
}

.circuit-ring {
  position: absolute;
  inset: -8%;
  z-index: 0;
  border: 1px solid rgba(14, 116, 144, 0.2);
  border-radius: 28px;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.12) inset;
  animation: ring-pulse 4s ease-in-out infinite;
}

.circuit-dots {
  position: absolute;
  z-index: 2;
  width: 12px;
  height: 12px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--orange);
  animation: float 3s ease-in-out infinite;
}
.circuit-dots.d1 {
  top: 5%;
  right: 8%;
}
.circuit-dots.d2 {
  bottom: 12%;
  left: 5%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation-delay: 1.2s;
}

@keyframes ring-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.02);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Sections */
section {
  padding: 2.5rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

body.page-ar .section-title {
  font-family: var(--font-ar);
  font-size: 1.5rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 36rem;
  margin: 0 0 2rem;
}

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

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

.service-card {
  position: relative;
  padding: 1.35rem 1.25rem;
  border-radius: var(--r);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(14, 116, 144, 0.14);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--orange), transparent);
  opacity: 0.6;
}

.service-card:hover {
  border-color: rgba(14, 116, 144, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1), var(--glow-cyan);
}

.service-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  font-size: 1.25rem;
  border-radius: 10px;
  background: rgba(14, 116, 144, 0.1);
  color: #0e7490;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--text);
}

body.page-ar .service-card h3 {
  font-size: 1.05rem;
}

.service-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Spec strip */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .spec-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .spec-strip {
    grid-template-columns: 1fr;
  }
}

.spec {
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-radius: var(--r);
  border: 1px solid rgba(234, 88, 12, 0.2);
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.spec strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--orange);
  line-height: 1.2;
}

body.page-ar .spec strong {
  font-family: var(--font-ar);
  font-size: 1.6rem;
}

.spec span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* CTA block */
.cta-block {
  margin-top: 1rem;
  padding: 2.5rem 1.5rem;
  border-radius: var(--r-lg);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(224, 242, 254, 0.9) 0%, rgba(255, 237, 213, 0.75) 100%),
    #ffffff;
  border: 1px solid rgba(14, 116, 144, 0.18);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.cta-block h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

body.page-ar .cta-block h2 {
  font-family: var(--font-ar);
  font-size: 1.55rem;
}

.cta-block p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(14, 116, 144, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-footer .footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  padding: 5px;
  border-radius: 12px;
  opacity: 0.98;
  background:
    radial-gradient(ellipse 120% 100% at 35% 20%, rgba(56, 189, 248, 0.3) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 100% 100%, rgba(253, 186, 116, 0.3) 0%, transparent 50%),
    linear-gradient(150deg, #ffffff 0%, #e2e8f0 100%);
  border: 1px solid rgba(14, 116, 144, 0.18);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
}

.mono {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.75rem;
  color: #0c4a6e;
  opacity: 0.9;
}

/* RTL tweaks */
[dir="rtl"] .eyebrow::before {
  order: 1;
}
[dir="rtl"] .nav-actions {
  flex-direction: row-reverse;
}
[dir="rtl"] .site-header {
  flex-direction: row-reverse;
}
[dir="rtl"] .brand {
  flex-direction: row-reverse;
}
[dir="rtl"] .badges,
[dir="rtl"] .hero-cta {
  flex-direction: row-reverse;
}
[dir="rtl"] .service-card::before {
  background: linear-gradient(270deg, transparent, var(--cyan), var(--orange), transparent);
}
[dir="rtl"] .spec-strip {
  direction: rtl;
}
[dir="rtl"] .site-footer {
  flex-direction: row-reverse;
}
@media (max-width: 900px) {
  [dir="rtl"] .site-header,
  [dir="rtl"] .site-footer {
    flex-direction: column;
    text-align: center;
  }
}
