/* ═══════════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════════ */
:root {
  --bg:        #06060A;
  --surface:   #0E0E16;
  --raised:    #16161F;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --gold:      #E8A020;
  --gold-dim:  rgba(232,160,32,0.15);
  --gold-glow: rgba(232,160,32,0.35);
  --violet:    #7C5CFC;
  --violet-dim:rgba(124,92,252,0.14);
  --text:      #F0F0F5;
  --muted:     rgba(240,240,245,0.50);
  --faint:     rgba(240,240,245,0.22);
  --green:     #25D366;
  --telegram:  #229ED9;
  --r:  14px;
  --r2: 22px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Tajawal', 'Space Grotesk', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.display   { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.1; }
.headline  { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 800; line-height: 1.2; }
.subhead   { font-size: clamp(0.9rem, 1.8vw, 1.05rem); color: var(--muted); line-height: 1.7; }
.eyebrow   {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── NAV ─────────────────────────────────────── */
/* ── NAV (Optimized for Mobile/App style) ──────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 16px; /* Reduced side padding slightly for tiny screens */
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6,6,10,0.85);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; 
  align-items: center; 
  gap: 8px;
  text-decoration: none;
  min-width: 0; /* Prevents text overflow blowouts */
}

.nav-logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: #fff;
  flex-shrink: 0;
}

.nav-logo-name { 
  font-size: 0.95rem; 
  font-weight: 800; 
  color: var(--text);
  white-space: nowrap;
}

.nav-logo-sub { 
  font-size: 0.6rem; 
  color: var(--muted); 
  display: block; 
  margin-top: -2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex; 
  align-items: center; 
  gap: 16px; /* Adaptive spacing */
  list-style: none;
}

.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.85rem; font-weight: 600;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--gold);
  color: #06060A !important;
  padding: 6px 12px; /* Touch-friendly but compact vertical bounds */
  border-radius: 6px;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  white-space: nowrap;
  transition: background .2s, transform .15s !important;
}
.nav-cta:hover { background: #f0b030 !important; transform: translateY(-1px); }

/* ── Language Switcher ───────────────────────── */
.lang-switcher {
  display: flex; 
  align-items: center; 
  gap: 2px;
  background: var(--raised);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 2px;
}
.lang-btn {
  padding: 4px 6px; /* Narrower button padding on small touchpoints */
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: transparent;
}
.lang-btn.active { background: var(--gold); color: #06060A; }

/* ── Mobile UI Media Query Fix ────────────────── */
@media (max-width: 640px) {
  /* Safely hide the text links to ensure logo & buttons can sit beautifully on one clean line */
  .nav-links li:not(:last-child):not(:nth-last-child(2)) { 
    display: none; 
  }
  
  nav {
    padding: 0 12px;
  }
  
  .nav-links {
    gap: 8px; /* Tighter button convergence on mobile */
  }
  
  .nav-logo-sub {
    display: none; /* Drops the description line on mobile for a punchier branding box */
  }
}/* ── NAV (Optimized for Mobile/App style) ──────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 16px; /* Reduced side padding slightly for tiny screens */
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6,6,10,0.85);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; 
  align-items: center; 
  gap: 8px;
  text-decoration: none;
  min-width: 0; /* Prevents text overflow blowouts */
}

.nav-logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: #fff;
  flex-shrink: 0;
}

.nav-logo-name { 
  font-size: 0.95rem; 
  font-weight: 800; 
  color: var(--text);
  white-space: nowrap;
}

.nav-logo-sub { 
  font-size: 0.6rem; 
  color: var(--muted); 
  display: block; 
  margin-top: -2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex; 
  align-items: center; 
  gap: 16px; /* Adaptive spacing */
  list-style: none;
}

.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.85rem; font-weight: 600;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--gold);
  color: #06060A !important;
  padding: 6px 12px; /* Touch-friendly but compact vertical bounds */
  border-radius: 6px;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  white-space: nowrap;
  transition: background .2s, transform .15s !important;
}
.nav-cta:hover { background: #f0b030 !important; transform: translateY(-1px); }

/* ── Language Switcher ───────────────────────── */
.lang-switcher {
  display: flex; 
  align-items: center; 
  gap: 2px;
  background: var(--raised);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 2px;
}
.lang-btn {
  padding: 4px 6px; /* Narrower button padding on small touchpoints */
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: transparent;
}
.lang-btn.active { background: var(--gold); color: #06060A; }

/* ── Mobile UI Media Query Fix ────────────────── */
@media (max-width: 640px) {
    .nav-logo-name{
    display: none;
  }
  .nav-logo-sub{
    display: none;
  }

  /* Safely hide the text links to ensure logo & buttons can sit beautifully on one clean line */
  .nav-links li:not(:last-child):not(:nth-last-child(2)) { 
    display: none; 
  }
  
  nav {
    padding: 0 12px;
  }
  
  .nav-links {
    gap: 8px; /* Tighter button convergence on mobile */
  }
  
  .nav-logo-sub {
    display: none; /* Drops the description line on mobile for a punchier branding box */
  }
}

/* ── Language Switcher ── */
.lang-switcher {
  display: flex; align-items: center; gap: 4px;
  background: var(--raised); border: 1px solid var(--border2);
  border-radius: 8px; padding: 3px;
}
.lang-btn {
  padding: 4px 10px; border-radius: 5px;
  font-size: 0.72rem; font-weight: 700;
  color: var(--muted); cursor: pointer;
  border: none; background: transparent;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--gold); color: #06060A; }

/* ── PAGE HEADER ── */
.page-header {
  padding-top: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; top: -30%; right: 10%;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, var(--gold-glow) 0%, transparent 65%);
  pointer-events: none; opacity: 0.4;
}
.page-header::after {
  content: '';
  position: absolute; bottom: -40%; left: 5%;
  width: 350px; height: 350px;
  background: radial-gradient(ellipse, var(--violet-dim) 0%, transparent 70%);
  pointer-events: none;
}
.page-header-inner {
  position: relative; z-index: 2;
  padding: 72px 24px 64px;
  text-align: center;
}
.page-header-inner .eyebrow { margin-bottom: 14px; }
.page-header-inner p { max-width: 520px; margin: 16px auto 0; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.78rem; color: var(--muted); margin-bottom: 20px;
}
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb span { color: var(--faint); }

/* ── CONTACT SECTION ── */
.contact-section { padding: 80px 0 100px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
}

/* ── FORM CARD ── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 40px;
}
.form-card h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.form-subtitle { font-size: 0.88rem; color: var(--muted); margin-bottom: 32px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 700;
  color: var(--muted); margin-bottom: 8px;
}
.form-group label span { color: var(--gold); margin-inline-start: 2px; }

.form-control {
  width: 100%; background: var(--raised);
  border: 1px solid var(--border2); border-radius: var(--r);
  padding: 13px 16px; color: var(--text);
  font-family: inherit; font-size: 0.92rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-control::placeholder { color: var(--faint); }
textarea.form-control { resize: vertical; min-height: 130px; }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(240,240,245,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
[dir="rtl"] select.form-control {
  background-position: left 14px center;
  padding-right: 16px;
  padding-left: 36px;
}

/* ── Buttons ── */
.btn-submit {
  width: 100%; padding: 15px;
  background: var(--gold); color: #06060A;
  font-weight: 800; font-size: 1rem;
  border: none; border-radius: var(--r); cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px var(--gold-glow);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit;
}
.btn-submit:hover { background: #f0b030; transform: translateY(-2px); box-shadow: 0 8px 28px var(--gold-glow); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── Alerts ── */
.alert-banner {
  display: none;
  border-radius: var(--r);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  align-items: center; gap: 10px;
}
.alert-banner.show { display: flex; }
.alert-success {
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.3);
  color: #34d399;
}
.alert-error {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  color: #f87171;
}

/* ── SOCIAL PANEL ── */
.social-panel { display: flex; flex-direction: column; gap: 20px; }

.social-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px 28px 24px;
}
.social-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.social-card p  { font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }

.btn-social {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 12px;
  text-decoration: none; font-weight: 700; font-size: 0.9rem;
  transition: transform .15s, box-shadow .2s, background .2s;
  margin-bottom: 10px; border: 1px solid transparent;
}
.btn-social:last-child { margin-bottom: 0; }
.btn-social:hover { transform: translateY(-2px); }

.btn-whatsapp {
  background: rgba(37,211,102,0.12);
  border-color: rgba(37,211,102,0.25);
  color: var(--green);
  box-shadow: 0 2px 12px rgba(37,211,102,0.1);
}
.btn-whatsapp:hover { background: rgba(37,211,102,0.2); box-shadow: 0 6px 20px rgba(37,211,102,0.2); }

.btn-telegram {
  background: rgba(34,158,217,0.12);
  border-color: rgba(34,158,217,0.25);
  color: var(--telegram);
  box-shadow: 0 2px 12px rgba(34,158,217,0.1);
}
.btn-telegram:hover { background: rgba(34,158,217,0.2); box-shadow: 0 6px 20px rgba(34,158,217,0.2); }

.btn-instagram {
  background: rgba(228,64,95,0.12);
  border-color: rgba(228,64,95,0.25);
  color: #e4405f;
  box-shadow: 0 2px 12px rgba(228,64,95,0.08);
}
.btn-instagram:hover { background: rgba(228,64,95,0.2); box-shadow: 0 6px 20px rgba(228,64,95,0.18); }

.btn-email {
  background: rgba(232,160,32,0.1);
  border-color: rgba(232,160,32,0.22);
  color: var(--gold);
  box-shadow: 0 2px 12px rgba(232,160,32,0.08);
}
.btn-email:hover { background: rgba(232,160,32,0.18); box-shadow: 0 6px 20px rgba(232,160,32,0.18); }

.social-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.2rem;
}
.icon-wa { background: rgba(37,211,102,0.15); }
.icon-tg { background: rgba(34,158,217,0.15); }
.icon-ig { background: rgba(228,64,95,0.15); }
.icon-em { background: rgba(232,160,32,0.15); }

.social-text-block { display: flex; flex-direction: column; }
.social-label { font-size: 0.76rem; opacity: 0.65; font-weight: 600; margin-top: 1px; }

/* ── INFO CARD ── */
.info-card {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 24px 28px;
}
.info-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; margin-top: 1px;
}
.info-label { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.info-value { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-top: 1px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .social-panel { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .social-panel { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  nav .nav-links li:not(:last-child):not(:nth-last-child(2)) { display: none; }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Footer ── */
footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 32px 0; text-align: center;
}
.footer-bottom { font-size: 0.78rem; color: var(--faint); }
