/* === Local brand fonts === */
@font-face{
  font-family:"GE SS Text";
  src:url("../fonts/GE_SS_TEXT_LIGHT.woff2") format("woff2"),
      url("../fonts/GE_SS_TEXT_LIGHT.OTF") format("opentype");
  font-weight:300;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"GE SS Text";
  src:url("../fonts/GE_SS_TEXT_MEDIUM.woff2") format("woff2"),
      url("../fonts/GE%20SS%20Text%20Medium.otf") format("opentype");
  font-weight:500;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"GE SS Text";
  src:url("../fonts/GE_SS_TEXT_BOLD.woff2") format("woff2"),
      url("../fonts/GE%20SS%20Text%20Bold.otf") format("opentype");
  font-weight:700;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:"Montserrat";
  src:url("../fonts/Montserrat-Arabic-Light.woff2") format("woff2"),
      url("../fonts/Montserrat-Arabic-Light.ttf") format("truetype");
  font-weight:300;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Montserrat";
  src:url("../fonts/Montserrat-Arabic-Regular.woff2") format("woff2"),
      url("../fonts/Montserrat-Arabic-Regular.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Montserrat";
  src:url("../fonts/Montserrat-Arabic-SemiBold.woff2") format("woff2"),
      url("../fonts/Montserrat-Arabic-SemiBold.ttf") format("truetype");
  font-weight:600;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Montserrat";
  src:url("../fonts/Montserrat-Arabic-Bold.woff2") format("woff2"),
      url("../fonts/Montserrat-Arabic-Bold.ttf") format("truetype");
  font-weight:700;
  font-style:normal;
  font-display:swap;
}

:root{
  --bg:#0b1220; --fg:#eef2ff; --muted:#a8b3cf; --card:#0f1a33; --line:rgba(255,255,255,.10);
  --accent:#bd993a; --accent2:#2dd4bf; --shadow:0 18px 45px rgba(0,0,0,.35);
  --radius:18px; --max:1480px;
  
  --font-ar: "GE SS Text","Montserrat",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --font-en: "Montserrat",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --font-body: var(--font-en);
  --font: var(--font-body);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-size:17px; line-height:1.6;
  margin:0; font-family:var(--font);
  background: radial-gradient(1200px 800px at 10% 0%, rgba(45,212,191,.10), transparent 55%),
              radial-gradient(900px 700px at 90% 10%, rgba(189,153,58,.12), transparent 60%),
              var(--bg);
  color:var(--fg);
}
a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}
.topbar{position:sticky; top:0; z-index:50; backdrop-filter:saturate(140%) blur(10px);
  background:rgba(11,18,32,.72); border-bottom:1px solid var(--line);}
.nav{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 0;}
.brand{display:flex; align-items:center; gap:12px}
.brand .logo{width:64px; height:64px; border-radius:14px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  display:grid; place-items:center; box-shadow:var(--shadow);
  padding:8px;}
.brand .name{display:flex; flex-direction:column; line-height:1.1}
.brand .name b{font-size:17px; letter-spacing:.2px}
.brand .name span{font-size:13px; color:var(--muted)}
.navlinks{display:flex; align-items:center; gap:14px; flex-wrap:wrap}
.navlinks a{font-size:16px; font-weight:650; color:var(--muted); padding:12px 14px; border-radius:12px;}
.navlinks a:hover{background:rgba(255,255,255,.10); color:var(--fg)}
.actions{display:flex; align-items:center; gap:10px}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 16px; border-radius:999px; border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04); color:var(--fg); font-size:15px; font-weight:650; cursor:pointer;
  font-family:inherit;}
.btn:active{transform:translateY(1px)}
.btn:hover{background:rgba(255,255,255,.07)}
.btn.primary{border-color:rgba(189,153,58,.55);
  background:linear-gradient(135deg, rgba(189,153,58,.95), rgba(189,153,58,.55));
  color:#1a1408; font-weight:700;}
.btn.whatsapp{border-color:rgba(37,211,102,.55);
  background:#25D366;
  color:#ffffff; font-weight:800;}
.btn.whatsapp:hover{filter:brightness(.95)}

/* Language buttons */
/* Root (index.html) language chooser buttons */
.lang-card{padding:28px;}
@media (max-width: 520px){ .lang-card{padding:20px;} }

/* ------------------------------
   Laptop/Desktop header + spacing tuning
   (mobile remains as-is)
   ------------------------------ */
@media (min-width: 769px){
  /* Header height */
  .nav{padding:12px 0; gap:14px;}
  .brand{gap:10px}
  .brand .logo{width:54px; height:54px; padding:7px; border-radius:14px;}
  .brand .name b{font-size:16px;}
  .brand .name span{font-size:12px;}

  /* Nav links + action buttons a bit tighter */
  .navlinks{gap:10px;}
  .navlinks a{padding:10px 12px; font-size:15px;}
  .topbar .btn{padding:9px 14px; font-size:14px;}

  /* Language switcher button inside header */
  .topbar .btn.lang{gap:8px;}
  .btn.lang .label, .btn.lang .lang-label{padding-inline-start:4px;}

  /* Reduce space under the header (hero top padding) */
  .hero{padding-top:44px;}
}

.lang-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:11px 18px;
  overflow:hidden;
  justify-content:flex-start;
}
.lang-btn .flag{
  width:28px;
  height:18px;
  max-width:28px;
  max-height:18px;
  object-fit:cover;
  border-radius:6px;
  flex:0 0 auto;
  display:block;
}
.lang-btn span{line-height:1; white-space:nowrap; padding-inline-start:6px;}
.lang-btn.lang-ar{direction:rtl; flex-direction:row-reverse; justify-content:flex-end;}
.lang-btn.lang-en{direction:ltr;}

/* Header language switcher (inside navbar) */
.btn.lang{
  display:inline-flex;
  align-items:center;
  gap:10px;
  overflow:hidden;
  white-space:nowrap;
  direction:ltr; /* keeps flag + label stable on both ar/en pages */
}

.btn.lang .label, .btn.lang .lang-label{line-height:1; white-space:nowrap; padding-inline-start:6px;}
.btn.lang .flag{
  width:28px;
  height:18px;
  max-width:28px;
  max-height:18px;
  object-fit:cover;
  border-radius:6px;
  flex:0 0 auto;
  display:block;
}

.hero{padding:62px 0 26px}
.grid{display:grid; grid-template-columns:1.2fr .8fr; gap:18px;}

@media (min-width: 921px){html[lang="ar"] .hero .grid{grid-template-columns:.8fr 1.2fr;}}
@media (max-width: 920px){ .grid{grid-template-columns:1fr} .actions{flex-wrap:wrap} }
.card{background:rgba(15,26,51,.78); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow);}
.hero .card{padding:26px}
.kicker{font-size:12px; color:var(--muted); letter-spacing:.6px; text-transform:uppercase}
.h1{font-size:38px; margin:10px 0 12px; line-height:1.12}
@media (max-width: 520px){ .h1{font-size:30px} }
.lead{color:var(--muted); font-size:17px; line-height:1.75; max-width:60ch}
.pills{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px}
.pill{font-size:12px; color:var(--muted); padding:8px 10px; border-radius:999px; border:1px solid var(--line); background:rgba(255,255,255,.03);}
.section{padding:26px 0}
.section h2{font-size:22px; margin:0 0 12px}
.muted{color:var(--muted); font-size:0.95rem; line-height:1.6}
.cards{display:grid; grid-template-columns:repeat(3,1fr); gap:14px}
@media (max-width: 980px){ .cards{grid-template-columns:1fr} }
.tile{padding:16px}
.tile b{display:block; margin:6px 0 8px}
.tile p{margin:0; color:var(--muted); line-height:1.7; font-size:14px}
.tag{display:inline-flex; gap:8px; align-items:center; border:1px solid var(--line); border-radius:999px; padding:6px 10px; font-size:12px; color:var(--muted);}
.split{display:grid; grid-template-columns:1fr 1fr; gap:14px}
@media (max-width: 920px){ .split{grid-template-columns:1fr} }
.form{padding:18px}
.field{display:flex; flex-direction:column; gap:6px; margin-bottom:12px}
label{font-size:12px; color:var(--muted)}
input, select, textarea{border:1px solid var(--line); background:rgba(255,255,255,.03); color:var(--fg);
  padding:12px 12px; border-radius:14px; outline:none;
  font-family:inherit;}
textarea{min-height:110px; resize:vertical}
small.help{color:var(--muted); font-size:0.95rem; line-height:1.6}
.footer{padding:28px 0 40px; border-top:1px solid var(--line); margin-top:28px;}
.footer .row{display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap}
.footer a{color:var(--muted); font-size:13px}
.footer a:hover{color:var(--fg)}

/* Footer RTL parity (match EN layout, mirrored for Arabic) */
/* (Footer RTL mirroring is handled in the dedicated grid rules below.) */
.notice{background:rgba(255,255,255,.05); border:1px solid var(--line); border-radius:16px; padding:14px 16px;
  color:var(--muted); font-size:13px; line-height:1.7;}
.cookie{position:fixed; left:18px; right:18px; bottom:18px; max-width:var(--max); margin:0 auto; display:none;}
.cookie .card{padding:14px 14px}
.cookie .row{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap}
.lang{font-size:12px; color:var(--muted)}


/* ------------------------------
   Mobile polish (Home hero)
   ------------------------------ */

/* Give hero more breathing room under the sticky header (EN/LTR) */
@media (max-width: 768px) {
  .hero {
    padding-top: 96px;
  }
}

/* Arabic (RTL) needs a bit more top spacing because headlines are longer */
@media (max-width: 768px) {
  html[dir="rtl"] .hero {
    padding-top: 104px;
  }
}

/* Make hero actions stack nicely on mobile */
@media (max-width: 768px) {
  .hero .actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .hero .actions a,
  .hero .actions button {
    width: 100%;
    justify-content: center;
  }
}


html[lang="ar"]{ --font-body: var(--font-ar); }
html[lang="en"]{ --font-body: var(--font-en); }

/* Logo image */
.logo{ width:56px; height:56px; border-radius:14px; overflow:hidden; display:grid; place-items:center; background:transparent; }
.logo img{width:100%; height:100%; object-fit:contain; filter:contrast(1.25) saturate(1.25) brightness(1.12);}
[dir="rtl"] .hero .grid{direction:ltr;}
[dir="rtl"] .hero .grid .card{direction:rtl; text-align:right;}


/* Brand spacing */
.brand .name b{display:block; line-height:1.15}
.brand .name span{display:block; margin-top:6px; font-size:0.92rem; color:var(--muted)}

html[lang="ar"] .navlinks a{font-weight:500}

html[lang="ar"] .hero .grid{direction:ltr}
html[lang="ar"] .hero .grid > *{direction:rtl}

/* Footer layout for Arabic: TRUE mirror of EN.
   EN: left column = about/social/copy, right column = links.
   AR (mirror): RIGHT column = about/social/copy, LEFT column = links.
   Use the same grid approach as EN, but swap columns.
*/
html[lang="ar"] .footer .container{
  display:grid !important;
  grid-template-columns:auto 1fr !important; /* links | about */
  align-items:start !important;
  gap:16px !important;
}
html[lang="ar"] .footer .row{display:contents !important;}
html[lang="ar"] .footer .footer-links{
  grid-column:1 !important;
  justify-self:start !important;
  justify-content:flex-start !important;
  text-align:left !important;
}
html[lang="ar"] .footer .footer-about{
  grid-column:2 !important;
  justify-self:end !important;
  text-align:right !important;
}
html[lang="ar"] .footer .social{
  grid-column:2 !important;
  justify-content:flex-end !important;
}
html[lang="ar"] .footer .footer-copy{
  grid-column:2 !important;
  text-align:right !important;
  direction:ltr; /* keep © 2026 readable */
  unicode-bidi:plaintext;
}
/* (intentionally no extra overrides here) */

/* Social icons */
.footer .social{display:flex; gap:12px; align-items:center; justify-content:flex-start; flex-wrap:wrap; margin-top:10px}

.footer .social a{width:36px; height:36px; display:grid; place-items:center; border-radius:10px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.06)}
.footer .social svg{width:18px; height:18px; fill:rgba(255,255,255,.92)}
.footer .social a:hover{background:rgba(255,255,255,.10)}
.footer .social a[aria-label="YouTube"]:hover svg{fill:#FF0000}
.footer .social a[aria-label="Facebook"]:hover svg{fill:#1877F2}
.footer .social a[aria-label="Instagram"]:hover svg{fill:#E4405F}
.footer .social a[aria-label="TikTok"]:hover svg{fill:#ffffff}

/* Social mini links (header) */
.social-mini{display:flex;gap:8px;align-items:center;margin-right:10px;}
html[lang="ar"] .social-mini{margin-right:0;margin-left:10px;}
.social-mini a{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--glass);border:1px solid rgba(255,255,255,.10);color:var(--text);text-decoration:none;font-size:14px;}
.social-mini a:hover{border-color:rgba(255,255,255,.22);}

/* Header social icons */
.social-mini{display:flex;gap:10px;align-items:center;}
.social-mini a{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--glass);border:1px solid rgba(255,255,255,.10);color:var(--text);text-decoration:none;}
.social-mini svg{width:18px;height:18px;fill:currentColor;opacity:.85;}
.social-mini a:hover svg{opacity:1;}

/* Arabic: keep form column on the LEFT, while preserving RTL text inside cards */
html[lang="ar"] .hero-grid{direction:ltr;}
html[lang="ar"] .hero-grid .card{direction:rtl;text-align:right;}

/* Footer layout parity (EN reference)
   NOTE: use !important to prevent legacy flex/wrap rules from pushing the links to a lower row.
*/
html[lang="en"] .footer .container{display:grid !important; grid-template-columns: 1fr auto; align-items:start; gap:16px;}
html[lang="en"] .footer .row{display:contents !important;}
html[lang="en"] .footer .footer-about{grid-column:1;}
html[lang="en"] .footer .footer-links{grid-column:2; justify-self:end; align-self:start; display:flex; gap:14px; flex-wrap:wrap; margin-top:0 !important;}
html[lang="en"] .footer .social{grid-column:1; justify-content:flex-start; margin-top:10px;}
html[lang="en"] .footer .footer-copy{grid-column:1;}

/* NOTE: Older footer flex overrides removed.
   The grid-based footer parity rules above are the single source of truth.
*/
