/* =============================================
   MiddleEast Systems — Shared Styles
   me-syst.com | Egypt
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  --navy:    #070C18;
  --navy2:   #0C1322;
  --navy3:   #111B30;
  --gold:    #C9A84C;
  --gold2:   #DFC06E;
  --gold3:   #F0D888;
  --gold-dim:  rgba(201,168,76,0.12);
  --gold-glow: rgba(201,168,76,0.30);
  --white:   #F4F3EE;
  --muted:   rgba(244,243,238,0.52);
  --muted2:  rgba(244,243,238,0.28);
  --card:    rgba(255,255,255,0.035);
  --border:  rgba(201,168,76,0.18);
  --border2: rgba(255,255,255,0.07);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --radius: 14px;
  --radius-lg: 20px;
}

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

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none;
}

/* ---- CURSOR ---- */
#cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.1s, width 0.25s, height 0.25s;
}
#cursor-ring {
  position: fixed; width: 34px; height: 34px;
  border: 1.5px solid rgba(201,168,76,0.6);
  border-radius: 50%; pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
}

/* ---- NOISE TEXTURE ---- */
body::after {
  content:''; position:fixed; inset:0; z-index:1; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity:.45;
}

/* ---- NAVBAR ---- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 70px; padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(7,12,24,0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom-color: var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  letter-spacing: 0.015em; text-decoration: none; color: var(--white);
  flex-shrink: 0;
}
.nav-logo .accent { color: var(--gold); }
.nav-logo svg { flex-shrink: 0; }
.nav-links {
  display: flex; gap: 2.2rem; list-style: none; align-items: center;
}
.nav-links a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted);
  text-decoration: none; transition: color var(--transition);
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-2px; left:0;
  width:0; height:1px; background:var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--gold); color: var(--navy) !important;
  padding: 0.48rem 1.3rem; border-radius: 50px;
  font-weight: 700 !important; font-size: 0.8rem !important;
  letter-spacing: 0.04em !important; text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 0 18px var(--gold-glow);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--gold2); transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(201,168,76,0.45);
}
.nav-cta::after { display: none !important; }

/* Mobile nav */
.nav-hamburger {
  display: none;
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 8px; padding: 8px 13px;
  color: var(--white); cursor: pointer; font-size: 1.1rem;
}
.mobile-menu {
  display: none;
  position: fixed; top: 70px; left: 0; right: 0;
  background: rgba(7,12,24,0.97); backdrop-filter: blur(20px);
  padding: 1.5rem 5% 2rem; z-index: 999;
  border-bottom: 1px solid var(--border);
  flex-direction: column; gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.85rem 0; color: var(--muted); text-decoration: none;
  font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--border2);
  transition: color var(--transition);
}
.mobile-menu a:last-child { border: none; margin-top: 1rem; }
.mobile-menu a:hover { color: var(--gold); }

/* ---- SECTION UTILITIES ---- */
.section-wrap { padding: 7rem 5%; position: relative; z-index: 2; }
.section-wrap-sm { padding: 4.5rem 5%; position: relative; z-index: 2; }

.section-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 10px; margin-bottom: 0.9rem;
}
.section-label::before { content:''; width:20px; height:1px; background:var(--gold); flex-shrink:0; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; }
.section-title { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.section-sub { color: var(--muted); font-size: 0.95rem; line-height: 1.75; max-width: 520px; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy);
  padding: 0.85rem 2rem; border-radius: 50px;
  font-weight: 700; font-size: 0.88rem; letter-spacing: 0.04em;
  text-decoration: none; transition: all var(--transition);
  box-shadow: 0 0 24px var(--gold-glow); white-space: nowrap;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 0 40px rgba(201,168,76,0.45); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); color: var(--white);
  padding: 0.85rem 2rem; border-radius: 50px;
  font-weight: 500; font-size: 0.88rem; letter-spacing: 0.03em;
  text-decoration: none; transition: all var(--transition);
  backdrop-filter: blur(8px); background: rgba(255,255,255,0.03);
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.btn-gold-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--gold); color: var(--gold);
  padding: 0.7rem 1.6rem; border-radius: 50px;
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em;
  text-decoration: none; transition: all var(--transition);
  background: var(--gold-dim);
}
.btn-gold-outline:hover { background: var(--gold); color: var(--navy); }

/* ---- CARDS ---- */
.glass-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  backdrop-filter: blur(12px); transition: all var(--transition);
  position: relative; overflow: hidden;
}
.glass-card::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, var(--gold-dim) 0%, transparent 60%);
  opacity:0; transition: opacity var(--transition);
}
.glass-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 25px var(--gold-glow); }
.glass-card:hover::before { opacity:1; }

/* ---- SCROLL REVEAL ---- */
.reveal { opacity:0; transform:translateY(35px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ---- GRID LINES BG ---- */
.grid-bg {
  background-image:
    linear-gradient(rgba(201,168,76,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.035) 1px, transparent 1px);
  background-size: 55px 55px;
}

/* ---- DIVIDER ---- */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ---- FOOTER ---- */
footer {
  background: var(--navy2); border-top: 1px solid var(--border);
  padding: 4.5rem 5% 2rem; position: relative; z-index: 2;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; display: inline-flex; }
.footer-brand p { font-size: 0.85rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; }
.social-links { display: flex; gap: 0.6rem; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.75rem; text-decoration: none;
  transition: all var(--transition); font-weight: 700;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.footer-col h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a {
  text-decoration: none; color: var(--muted); font-size: 0.84rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }
.contact-detail {
  display: flex; gap: 10px; margin-bottom: 0.7rem;
  font-size: 0.84rem; color: var(--muted); align-items: flex-start;
}
.contact-detail .icon { color: var(--gold); font-size: 0.9rem; margin-top: 1px; flex-shrink: 0; }
.contact-detail a { color: var(--muted); text-decoration: none; transition: color var(--transition); }
.contact-detail a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: var(--muted2); flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom a { color: var(--muted2); text-decoration: none; transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* ---- FLOATING WHATSAPP ---- */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 2000;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none; transition: all var(--transition);
  animation: waFloat 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.6); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }
@keyframes waFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* PAGE HERO (non-index pages) */
.page-hero {
  min-height: 42vh; display: flex; align-items: center;
  padding: 7rem 5% 4rem; position: relative; overflow: hidden;
}
.page-hero .grid-bg { position: absolute; inset: 0; }
.page-hero .radial {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 30% 50%, rgba(201,168,76,0.08) 0%, transparent 70%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; margin-bottom: 1rem; }
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 540px; line-height: 1.75; }

/* BREADCRUMB */
.breadcrumb {
  display: flex; gap: 0.5rem; align-items: center;
  font-size: 0.78rem; color: var(--muted2); margin-bottom: 1.2rem;
}
.breadcrumb a { color: var(--muted2); text-decoration: none; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* TAGS */
.tag {
  display: inline-block; padding: 0.35rem 0.9rem;
  border: 1px solid var(--border); border-radius: 50px;
  font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section-wrap { padding: 5rem 5%; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
