/* ═══════════════════════════════════════════════════
   NEXT WEB — shared.css
   Global reset, variables, navbar, footer, utilities
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Syne:wght@400;600;700;800&display=swap');

/* ── CSS VARIABLES ─────────────────────────────────── */
:root {
  /* Light Mode (default) */
  --bg:        #f5f3ef;
  --bg2:       #ece9e3;
  --bg3:       #e2dfd8;
  --surface:   #ffffff;
  --surface2:  #f8f6f2;
  --text:      #270083;
  --text2:     #3d3a34;
  --muted:     #7a756c;
  --border:    rgba(0,0,0,0.08);
  --border2:   rgba(0,0,0,0.12);
  --gold:      #b8882a;
  --gold-l:    #d4a84b;
  --gold-dim:  rgba(184,136,42,0.12);
  --gold-brd:  rgba(184,136,42,0.3);
  --blue:      #2563eb;
  --green:     #16a34a;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 60px rgba(0,0,0,0.12);
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

[data-theme="dark"] {
  --bg:        #0a0908;
  --bg2:       #0f0e0c;
  --bg3:       #161411;
  --surface:   #141210;
  --surface2:  #1c1a17;
  --text:      #f0ece4;
  --text2:     #c8c3b8;
  --muted:     #7a756c;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --gold:      #c9a84c;
  --gold-l:    #e8c870;
  --gold-dim:  rgba(201,168,76,0.12);
  --gold-brd:  rgba(201,168,76,0.28);
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 60px rgba(0,0,0,0.6);
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.35s, color 0.35s;
}
body[dir="rtl"] { font-family: 'Cairo', sans-serif; }
body[dir="ltr"] { font-family: 'Syne', sans-serif; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* ── LAYOUT ─────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
section { padding: 100px 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── TYPOGRAPHY ─────────────────────────────────────── */
h1,h2,h3,h4 { line-height: 1.2; color: var(--text); }

/* ── UTILITIES ──────────────────────────────────────── */
.tag-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim); border: 1px solid var(--gold-brd);
  padding: 6px 18px; border-radius: 100px;
  margin-bottom: 20px;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2, .section-header h1 {
  font-size: clamp(28px, 4vw, 52px); font-weight: 800;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--text) 30%, var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-header p { color: var(--muted); font-size: 16px; max-width: 520px; margin: 0 auto; line-height: 1.8; }
.gold-text {
  background: linear-gradient(135deg, var(--gold) 20%, var(--gold-l) 60%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.alt-bg { background: var(--bg2); }
.center-btn { text-align: center; margin-top: 48px; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 14px; cursor: pointer;
  border: none; transition: all 0.28s cubic-bezier(.22,.68,0,1.2);
  font-family: inherit; white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  color: #fff;
  box-shadow: 0 4px 20px rgba(184,136,42,0.35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(184,136,42,0.5); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border2);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn-wa {
  background: #25d366; color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }
.btn-lg { font-size: 16px; padding: 16px 40px; }
.btn-full { width: 100%; justify-content: center; }

/* ── NAVBAR ──────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 20px 0;
  transition: all 0.3s;
}
.navbar.scrolled {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: var(--shadow);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
}
/* Logo */
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-img {
  height: 42px; width: 42px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--bg3);
}
.logo-text { font-size: 18px; font-weight: 800; color: var(--text); }
.logo-text span { color: var(--gold); }

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: all 0.2s; cursor: pointer; display: block;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg2); }

/* Nav controls */
.nav-controls { display: flex; align-items: center; gap: 8px; }
.ctrl-btn {
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text); font-weight: 700; font-size: 12px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s; font-family: inherit;
  white-space: nowrap;
}
.ctrl-btn:hover { border-color: var(--gold); color: var(--gold); }
.lang-toggle-btn { color: var(--gold); border-color: var(--gold-brd); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 6px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0;
  height: 100vh; z-index: 190;
  background: var(--surface);
  padding: 90px 28px 28px;
  flex-direction: column; gap: 4px;
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(.22,.68,0,1.2);
}
body[dir="rtl"] .mobile-menu { transform: translateX(-100%); }
.mobile-menu.open { display: flex; transform: translateX(0) !important; }
.mobile-menu a {
  color: var(--text); font-size: 22px; font-weight: 700;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-controls { display: flex; gap: 10px; margin-top: 20px; }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 64px 0 28px;
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 260px; line-height: 1.8; }
.foot-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.foot-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-links a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.foot-links a:hover { color: var(--text); }
.foot-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.foot-bottom p { font-size: 13px; color: var(--muted); }
.socials { display: flex; gap: 8px; }
.soc {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: var(--bg2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--muted);
  transition: all 0.2s;
}
.soc:hover { border-color: var(--gold-brd); color: var(--gold); transform: translateY(-2px); }

/* ── WA FLOAT ────────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  background: #25d366; color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 13px 20px; border-radius: 100px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 28px rgba(37,211,102,0.4);
  animation: floatBounce 3s ease-in-out infinite;
  border: none; font-family: inherit; cursor: pointer;
}
body[dir="rtl"] .wa-float { right: auto; left: 24px; }
@keyframes floatBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.wa-float:hover { animation: none; transform: translateY(-4px) scale(1.04); }

/* ── TOAST ───────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 84px; right: 24px; z-index: 400;
  padding: 14px 22px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 14px; font-family: inherit;
  opacity: 0; transform: translateY(20px);
  transition: all 0.35s cubic-bezier(.22,.68,0,1.2);
  pointer-events: none; max-width: 320px;
}
body[dir="rtl"] .toast { right: auto; left: 24px; }
.toast.toast-show { opacity: 1; transform: translateY(0); }
.toast-success { background: linear-gradient(135deg,var(--gold),var(--gold-l)); color: #fff; box-shadow: 0 8px 30px rgba(184,136,42,0.4); }
.toast-error   { background: #dc2626; color: #fff; box-shadow: 0 8px 30px rgba(220,38,38,0.35); }

/* ── FADE-IN ANIMATIONS ──────────────────────────────── */
.fi { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fi.vis { opacity: 1; transform: translateY(0); }
.fi-d1 { transition-delay: 0.1s; }
.fi-d2 { transition-delay: 0.2s; }
.fi-d3 { transition-delay: 0.3s; }
.fi-d4 { transition-delay: 0.4s; }
.anim-fade { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.anim-fade.vis { opacity: 1; transform: translateY(0); }
.anim-d1 { transition-delay: 0.12s; }
.anim-d2 { transition-delay: 0.24s; }
.anim-d3 { transition-delay: 0.36s; }
.anim-d4 { transition-delay: 0.48s; }

/* ── INNER PAGE HERO ─────────────────────────────────── */
.inner-page-hero {
  padding: 160px 0 80px;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links, .nav-cta { display: none; }
  .nav-controls .ctrl-btn.hide-mob { display: none; }
  section { padding: 70px 0; }
  .inner-page-hero { padding: 120px 0 60px; }
}
@media (max-width: 500px) {
  .foot-grid { grid-template-columns: 1fr; }
  .wa-float .wa-label { display: none; }
}
