/* =========================
   TOKENS
========================= */
:root {
  --bg: #ffffff;
  --panel: rgba(175, 175, 175, 0.06);
  --panel2: rgba(255, 255, 255, 0.09);
  --text: #000000;
  --muted: rgba(51, 51, 51, 0.75);
  --line: rgba(255, 255, 255, 0.12);

  --accent: #fad10e;
  --accent2: #ffea6a;

  --radius: 18px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);

  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}
.lang-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
}

html[dir="rtl"] .lang-switcher {
  right: auto;
  left: 20px;
}

.lang-switcher a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #000;
  background: #fff;
  transition: 0.3s ease;
}

.lang-switcher a:hover {
  background: #000;
  color: #fff;
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
  background:
    radial-gradient(
      1200px 600px at 15% 0%,
      rgba(255, 255, 255, 0.1),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 90% 30%,
      rgba(99, 102, 241, 0.1),
      transparent 55%
    ),
    var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   GLOBAL LAYOUT
========================= */
.section__container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 18px;
}

.section__header {
  margin: 0 0 22px 0;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.yellow-title {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), #e7bf05);
  color: #1b1b1b;
  font-weight: 900;
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 14px 35px rgba(250, 209, 14, 0.18);
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}
.btn--small {
  padding: 10px 16px;
  font-size: 14px;
}
.btn--full {
  width: 100%;
}

/* =========================
   NAV
========================= */
.site-header {
  position: relative;
  overflow: hidden;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(165, 187, 250, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  height: 166px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35));
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 999px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.nav__links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e7bf05;
}

/* ===== NAV BASE ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.nav__links {
  display: flex;
  gap: 20px;
  list-style: none;
}

/* زر المنيو مخفي على الديسكتوب */
.nav__toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: #e7bf05;
  cursor: pointer;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    width: 100%;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    display: none; /* مقفولة */
  }

  .nav__links.show {
    display: flex;
  }

  .nav__cta,
  .lang-switcher {
    width: 100%;
    margin-top: 12px;
    text-align: center;
  }

  .lang-switcher a {
    display: inline-block;
  }
}

/* =========================
   HERO
========================= */
.header__container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding-top: 28px;
}

.header__content h1 {
  margin: 0 0 10px;
  font-size: 54px;
  font-weight: 950;
  letter-spacing: 0.2px;
}
.header__content h4 {
  margin: 0 0 16px;
  color: var(--accent);
  font-weight: 800;
  line-height: 1.45;
}
.header__content p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.85;
  font-size: 15px;
}

.header__image {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.04);
}
.header__image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}
.header__socials {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: 10px;
}
.header__socials a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(11, 15, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

/* =========================
   WORK
========================= */
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.work__card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}
.work__card span {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(250, 209, 14, 0.12);
  color: var(--accent);
  border: 1px solid rgba(250, 209, 14, 0.25);
  margin-bottom: 10px;
}
.work__card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
}
.work__card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* =========================
   DEALS
========================= */
.deals__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.deals__header__content p {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

.deals__nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
}
.deals__nav a {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
.deals__nav a.active {
  background: rgba(250, 209, 14, 0.14);
  border-color: rgba(250, 209, 14, 0.28);
  color: var(--text);
}

.deals__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.deals__card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.04);
}
.deals__card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}
.deals__card:hover img {
  transform: scale(1.08);
}
.deals__card span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(11, 15, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  font-weight: 900;
  font-size: 12px;
}

/* =========================
   FEATURED / PAYMENT PLAN
========================= */
.featured__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.featured__image {
  display: grid;
  gap: 12px;
}
.featured__image img {
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
  height: 260px;
  object-fit: cover;
}
.featured__content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.clear-text {
  margin: 0 0 10px;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 20px;
}

.featured__content p {
  margin: 8px 0 20px 0;
  color: red;
  font-weight: 700;
   text-align: center;
   font-size: 45px;

}

.featured__content__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 16px;
}
.featured__card {
  background: rgba(11, 15, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}
.featured__card h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 900;
}
.featured__card p {
  margin: 0;
  font-size: 22px;
  color: var(--text);
  font-weight: 950;
}

/* =========================
   FORM
========================= */
.form__container {
  padding-top: 30px;
  padding-bottom: 90px;
}
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  background: #f5f5f5;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}
.contact-form h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 950;
  color: var(--accent);
}
.contact-form input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 15, 26, 0.55);
  color: var(--text);
  outline: none;
  margin-bottom: 10px;
  font-size: 14px;
}
.contact-form input::placeholder {
  color: #ffffff;
}
.contact-form input:focus {
  border-color: rgba(250, 209, 14, 0.45);
  box-shadow: 0 0 0 4px rgba(250, 209, 14, 0.12);
}
.form-msg {
  display: none;
  margin: 12px 0 0;
  font-weight: 800;
}

/* افتراضي: خُد اتجاه الصفحة */
.contact-form {
  direction: inherit;
}

/* نصوص عربي */
html[lang="ar"] .contact-form input {
  text-align: right;
}

/* نصوص إنجليزي */
html[lang="en"] .contact-form input {
  text-align: left;
}

/* أرقام دايمًا LTR */
.contact-form input[type="tel"],
.contact-form input[type="email"] {
  direction: ltr;
  text-align: left;
}

/* =========================
   FOOTER
========================= */

.footer__container {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 42px;
  background-color: #ccc;
}
.footer__col h3,
.footer__col h4 {
  margin: 0 0 10px;
  font-weight: 950;
}
.footer__col p,
.footer__col a {
  color: var(--muted);
  display: block;
  margin: 8px 0;
  font-weight: 700;
  font-size: 14px;
}
.footer__bar {
  text-align: center;
  padding: 18px;
  color: rgba(14, 14, 14, 0.6);
  border-top: 1px solid var(--line);
  background-color: #ccc;
}

/* =========================
   RESPONSIVE + MOBILE TYPOGRAPHY
========================= */
@media (max-width: 980px) {
  .header__container {
    grid-template-columns: 1fr;
  }
  .header__image img {
    height: 420px;
  }
  .work__grid {
    grid-template-columns: 1fr;
  }
  .deals__grid {
    grid-template-columns: 1fr;
  }
  .featured__grid {
    grid-template-columns: 1fr;
  }
  .featured__content__grid {
    grid-template-columns: 1fr;
  }
  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .section__container {
    padding: 54px 14px;
  }

  /* mobile headings */
  h1 {
    font-size: 26px;
  }
  h2 {
    font-size: 20px;
  }
  h3 {
    font-size: 18px;
  }
  h4 {
    font-size: 14px;
  }
  p {
    font-size: 13px;
    line-height: 1.7;
  }

  .section__header {
    font-size: 24px;
  }
  .clear-text {
    font-size: 24px;
  }

  .nav__links {
    display: none;
  } /* نفس روح landing pages: nav بسيط على الموبايل */
  .nav__cta {
    display: none;
  } /* اختياري: لو عايزها تظهر قولّي */

  .logo-img {
    height: 80px;
  }
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* زر اللغة */
.lang-item a {
  padding: 6px 14px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
}

/* زر المنيو */
.nav__toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
  }

  .nav__links.show {
    display: flex;
  }

  .nav__cta {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
}
