/* ============================================================
   ENGLEASY — Shared stylesheet (used by every page)
   Drop this file in your Netlify project folder alongside the
   HTML files. Every page links to it with:
       <link rel="stylesheet" href="style.css">
   Brand tokens are taken directly from your existing pages so
   the whole site stays visually consistent.
   ============================================================ */

:root {
  --bg-deep:   #050810;
  --bg-mid:    #080d1a;
  --primary:   #2B3073;
  --accent:    #E52C34;   /* Engleasy red */
  --neon-blue: #3d6bff;
  --neon-cyan: #00d4ff;
  --text-primary:   #f0f4ff;
  --text-secondary: #8892b0;
  --text-muted:     #4a5568;
  --card-bg:     rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.07);
  --maxw: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

/* Font swaps automatically with the <html lang> attribute */
body:lang(ar) { font-family: 'Noto Sans Arabic', sans-serif; }
body:lang(en) { font-family: 'DM Sans', sans-serif; }

h1, h2, h3, .serif-text { font-family: 'Noto Sans Arabic', sans-serif; font-weight: 700; line-height: 1.25; }
body:lang(en) h1,
body:lang(en) h2,
body:lang(en) h3,
body:lang(en) .serif-text {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: -0.01em;
}

/* Ambient background glow (same as your live pages) */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(43,48,115,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(61,107,255,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 60% 30%, rgba(0,212,255,0.08) 0%, transparent 50%);
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--neon-cyan);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.18);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}

/* ---------- Navbar ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
  backdrop-filter: blur(20px);
  background: rgba(5,8,16,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-logo img { height: 30px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; transition: color .2s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.lang-switcher {
  cursor: pointer; color: var(--text-primary);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 7px 15px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; font-family: 'DM Sans', sans-serif;
  transition: all .2s ease;
}
.lang-switcher:hover { background: rgba(255,255,255,0.12); }
@media (max-width: 640px){
  .nav-links a.nav-hide-mobile { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 14px; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 700; text-decoration: none;
  font-family: inherit; transition: all .25s ease; line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-cyan) 100%);
  color: #fff; box-shadow: 0 0 24px rgba(61,107,255,0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 44px rgba(0,212,255,0.42); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.14);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 3px solid var(--neon-cyan); outline-offset: 3px; }

/* ---------- Cards ---------- */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* ---------- Media wrappers ---------- */
.video-wrapper {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(61,107,255,0.22);
}
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Forms (native, styled to the brand) ---------- */
.field { margin-bottom: 16px; text-align: start; }
.field label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 7px;
}
.field input, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-primary); font-size: 1rem; font-family: inherit;
  transition: border-color .2s ease;
}
.field input::placeholder { color: var(--text-muted); }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.12);
}
.field select option { background: var(--bg-mid); color: var(--text-primary); }
.form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* Success message shown after a hidden-form submit */
.form-success {
  display: none; text-align: center; padding: 34px 24px;
}
.form-success.show { display: block; animation: fadeUp .5s ease forwards; }
.form-success .tick {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,185,129,0.14); border: 1px solid rgba(16,185,129,0.4);
  font-size: 1.8rem;
}

/* ---------- Testimonials gallery ---------- */
.tgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.tgrid img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4;
  border-radius: 12px; border: 1px solid var(--card-border);
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease;
}
.tgrid img:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 30px rgba(0,0,0,0.45); }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.9); align-items: center; justify-content: center; padding: 24px;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; }
.lightbox-close {
  position: fixed; top: 18px; inset-inline-end: 22px; font-size: 2rem;
  color: #fff; background: none; border: none; cursor: pointer; line-height: 1;
}

/* ---------- Floating WhatsApp (secondary, human escape hatch) ---------- */
.floating-wa {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px;
  background: #25D366; color: #062b16; font-weight: 700; text-decoration: none;
  padding: 12px 18px; border-radius: 999px; font-size: 0.9rem;
  box-shadow: 0 8px 26px rgba(37,211,102,0.35); font-family: 'DM Sans', sans-serif;
}
.floating-wa:hover { transform: translateY(-2px); }
body:lang(en) .floating-wa .wa-text { font-family: 'DM Sans', sans-serif; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0; margin-top: 30px; color: var(--text-secondary);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
footer img { height: 26px; }
footer a { color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; }
footer a:hover { color: var(--text-primary); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp .8s ease forwards; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; animation: none; }
  * { transition: none !important; }
}

/* ---------- Type scale ---------- */
.h-hero { font-size: clamp(2rem, 6vw, 3.4rem); }
.h-sec  { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.lead   { font-size: clamp(1rem, 2.4vw, 1.18rem); color: var(--text-secondary); font-weight: 300; }
.muted  { color: var(--text-secondary); }
.red    { color: var(--accent); }
.cyan   { color: var(--neon-cyan); }
