/* Reset & Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Cairo', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; border-radius: 12px; }
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* Color System */
:root {
  /* لوحة ألوان أكثر راحة للعين */
  --bg: #0f1720;       /* خلفية داكنة هادئة (Slate 900) */
  --surface: #111827;  /* طبقات سطحية أعلى قليلاً */
  --muted: #b6c2cf;    /* نص ثانوي مائل للأزرق الرمادي */
  --text: #e6edf3;     /* نص أساسي مريح وغير صارخ */
  --primary: #5eead4;  /* تيفاني/تركواز هادئ */
  --accent: #60a5fa;   /* أزرق هادئ للتدرجات */
  --success: #22c55e;
  --danger: #ef4444;
  --card: #111827;     /* بطاقات قريبة من السطح لراحة العين */
  --chip: #0f1a2a;     /* شارات داكنة مائلة للأزرق */
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: rgba(11,18,32,0.6); border-bottom: 1px solid rgba(255,255,255,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; color: var(--text); }
.brand { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 38px; width: auto; display: block; }
.intro-logo { background: none; box-shadow: none; width: auto; height: auto; }
.intro-logo-img { width: 84px; height: auto; display: block; }

.logo { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #00131a; font-weight: 800; }
.brand-name { font-weight: 700; }
.brand-sub { font-size: 13px; color: var(--muted); }
.nav { display: none; gap: 18px; }
.nav a { color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--text); }
.actions { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn { border: 1px solid rgba(255,255,255,0.14); padding: 10px 14px; border-radius: 12px; color: var(--text); font-weight: 700; transition: .2s ease; display: inline-flex; align-items: center; gap: 8px; }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #062022; border: none; box-shadow: 0 6px 20px rgba(96,165,250,0.18); }
.btn.primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.secondary { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.btn.secondary:hover { background: rgba(255,255,255,0.1); }
.btn.ghost { background: transparent; }

/* Intro Screen */
.intro-screen { position: fixed; inset: 0; background: radial-gradient(100% 120% at 50% 50%, rgba(12,22,40,0.2), rgba(6,10,18,0.96)); backdrop-filter: blur(2px); z-index: 9999; display: grid; place-items: center; }
.intro-inner { display: grid; place-items: center; gap: 10px; transform: translateY(10px); }
.intro-logo { width: 70px; height: 70px; border-radius: 16px; display: grid; place-items: center; font-weight: 900; font-size: 32px; color: #00131a; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 12px 40px rgba(0,0,0,0.35); }
.intro-text { color: var(--text); font-weight: 800; letter-spacing: 0.5px; }
.intro-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s ease, visibility .5s ease; }

/* Hero */
.hero { position: relative; min-height: 88vh; display: grid; place-items: center; color: var(--text); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url('../images/hero.jpg') center/cover no-repeat; filter: saturate(1.1) contrast(1.05); transform: scale(1.06); }
/* JS سيحاول تلقائيًا التبديل بين hero.jpg ثم hero.png ثم hero.svg إن وُجد */
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 50%, rgba(11,18,32,0.1), rgba(11,18,32,0.8)), linear-gradient(to bottom, rgba(11,18,32,0.2), var(--bg)); }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 80px 0; }
.hero-title { font-size: clamp(28px, 4vw, 48px); line-height: 1.2; margin: 0 0 14px; letter-spacing: 0.2px; }
.hero-sub { font-size: clamp(15px, 2vw, 20px); color: var(--muted); margin-bottom: 22px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 64px 0; background: var(--bg); color: var(--text); }
.section.alt { background: linear-gradient(180deg, #0f1720, #0b1624); }
.section-title { font-size: 28px; margin: 0 0 18px; }
.section-title.center { text-align: center; }
.grid.two { display: grid; grid-template-columns: 1fr; gap: 22px; }

/* About */
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.checks li { color: var(--text); }
.checks i { color: var(--success); margin-left: 8px; }
.about-media img { aspect-ratio: 4/3; object-fit: cover; }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { background: var(--card); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
.card-body { padding: 14px 14px 18px; }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); }

/* Chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip { background: var(--chip); color: var(--text); border: 1px solid rgba(255,255,255,0.08); padding: 10px 14px; border-radius: 999px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-grid img { aspect-ratio: 3/2; object-fit: cover; }

/* Contact */
.contact-card { background: var(--card); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 16px; }
.contact-card p { margin: 8px 0; color: var(--text); }
.contact-card i { color: var(--primary); width: 22px; text-align: center; }
.contact-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.map-holder iframe { width: 100%; height: 280px; border: 0; border-radius: 16px; }

/* Footer */
.site-footer { padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.06); background: var(--surface); color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.socials { display: flex; gap: 14px; font-size: 18px; }

/* Responsive */
@media (min-width: 768px) {
  .nav { display: flex; }
  .grid.two { grid-template-columns: 1.2fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .hero { min-height: 88vh; }
}

/* Entry Animations */
:root { --revealY: 22px; }
.hero-title, .hero-sub, .hero-cta { opacity: 0; transform: translateY(var(--revealY)); }

/* Language flipping helpers */
html[dir="ltr"] .checks i { margin-right: 8px; margin-left: 0; }

/* Subtle focus */
button:focus, a:focus { outline: 2px dashed var(--primary); outline-offset: 3px; border-radius: 10px; }

