/* ═══ El Shideed — Critical CSS ═══ */
/* Generated: 2026-10-13 01:30:30 */

/* ══ main.css ══ */
/* ============================================================
   El Shideed — Complete Custom CSS
   Includes all custom classes + critical utilities
   ============================================================ */

/* ---------- Base ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', system-ui, sans-serif;
  background: #030811;
  color: #F0F5FF;
  overflow-x: hidden;
  margin: 0;
  line-height: 1.6;
}
section { scroll-margin-top: 90px; }

/* ---------- Color variables ---------- */
:root {
  --primary: #030811;
  --navy-light: #081226;
  --navy-border: #122646;
  --secondary: #D4AF37;
  --gold-hover: #F1D279;
  --dark-text: #A1B1CC;
  --light-text: #F0F5FF;
}

/* ---------- Glass effects ---------- */
.glass-nav {
  background: rgba(3, 8, 17, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.glass-card {
  background: rgba(8, 18, 38, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(18, 38, 70, 0.6);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(8, 18, 38, 0.7);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* ---------- Gold gradients ---------- */
.gold-text-gradient {
  background: linear-gradient(135deg, #F1D279 0%, #D4AF37 50%, #A37F1A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gold-bg-gradient { background: linear-gradient(135deg, #F1D279 0%, #D4AF37 100%); }
.glow-gold { box-shadow: 0 0 20px rgba(212, 175, 55, 0.25); }

/* ---------- Colors (fallback if Tailwind fails) ---------- */
.bg-primary { background-color: #030811 !important; }
.bg-navyLight { background-color: #081226 !important; }
.bg-navyBorder { background-color: #122646 !important; }
.bg-secondary { background-color: #D4AF37 !important; }
.text-primary { color: #030811 !important; }
.text-secondary { color: #D4AF37 !important; }
.text-white { color: #FFFFFF !important; }
.text-darkText { color: #A1B1CC !important; }
.text-lightText { color: #F0F5FF !important; }
.border-navyBorder { border-color: #122646 !important; }
.border-secondary { border-color: #D4AF37 !important; }
.text-green-400 { color: #4ade80 !important; }
.text-red-400 { color: #f87171 !important; }
.text-red-500 { color: #ef4444 !important; }
.bg-red-500 { background-color: #ef4444 !important; }
.bg-green-500 { background-color: #22c55e !important; }

/* ---------- Animations ---------- */
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulseSlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.03); }
}

.pulse-dot { animation: pulseDot 2s infinite; }
.animate-marquee { animation: marquee 30s linear infinite; }
.animate-pulse-slow { animation: pulseSlow 3s infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-bounce { animation: bounce 1s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

/* ---------- AI Badge shimmer ---------- */
.ai-badge { position: relative; overflow: hidden; }
.ai-badge::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  animation: shimmer 3s infinite;
}

/* ---------- Reading progress ---------- */
#readingProgress {
  position: fixed;
  top: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F1D279, #D4AF37);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* ---------- FAQ accordion ---------- */
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-icon { transition: transform 0.3s ease; }

/* ---------- Copy button ---------- */
.copy-btn { transition: all 0.3s ease; }
.copy-btn.copied { background-color: #16a34a !important; color: #fff !important; }

/* ---------- WhatsApp FAB ---------- */
#waFabWrap {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
@media (min-width: 768px) {
  #waFabWrap { bottom: 24px; left: 24px; }
}
#waBubbles {
  display: none;
  flex-direction: column;
  gap: 8px;
  width: min(320px, calc(100vw - 32px));
}
#waBubbles.show { display: flex; animation: fadeIn 0.3s ease; }
.wa-bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.wa-bubble .wa-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.wa-bubble .wa-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: right;
  direction: rtl;
  line-height: 1.3;
}
.wa-bubble .wa-text strong { font-size: 13px; font-weight: 800; }
.wa-bubble .wa-text span {
  font-size: 11px;
  opacity: 0.85;
  font-family: 'Courier New', monospace;
  direction: ltr;
}

/* ---------- Marquee ---------- */
.marquee-container {
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

/* ---------- Map ---------- */
.map-container { filter: grayscale(0.6) contrast(0.9) hue-rotate(180deg) invert(0.9); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #030811; }
::-webkit-scrollbar-thumb { background: #122646; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #D4AF37; }

/* ---------- Timeline ---------- */
.timeline-item { position: relative; padding-right: 50px; }
.timeline-item::before {
  content: '';
  position: absolute;
  right: 19px; top: 40px; bottom: -20px;
  width: 2px;
  background: linear-gradient(180deg, #D4AF37, transparent);
}
.timeline-item:last-child::before { display: none; }
.timeline-num {
  position: absolute;
  right: 0; top: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #081226;
  border: 2px solid #D4AF37;
  color: #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

/* ---------- Department buttons ---------- */
.dept-btn.active-dept {
  border-color: #D4AF37 !important;
  background: rgba(212, 175, 55, 0.08) !important;
  color: #FFF !important;
  box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.1);
}
.dept-info { display: block; }
.dept-info.hidden { display: none !important; }

/* ---------- Reveal animation ---------- */
.reveal-element {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-element.revealed { opacity: 1; transform: translateY(0); }

/* ---------- Focus ---------- */
*:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Selection ---------- */
::selection { background: #D4AF37; color: #030811; }

/* ---------- Form inputs ---------- */
input, textarea, select, button { font-family: inherit; }
input:focus, textarea:focus, select:focus { outline: none; }

/* ---------- Detail/summary ---------- */
details > summary { cursor: pointer; }
details > summary::marker { display: none; }

/* ---------- Line clamp ---------- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Print ---------- */
@media print {
  header, footer, #waFabWrap, #scrollToTopBtn, #readingProgress, #cookieConsent {
    display: none !important;
  }
  body { background: white; color: black; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  #waBubbles { width: calc(100vw - 32px); }
  .wa-bubble .wa-text strong { font-size: 12px; }
  .wa-bubble .wa-text span { font-size: 10px; }
}

/* ══ improve.css ══ */
/* ═══════════════════════════════════════════════════════════
   El Shideed — Safe Performance & A11y CSS
   ═══════════════════════════════════════════════════════════ */

/* Cairo font fallback to prevent CLS */
@font-face {
  font-family: 'Cairo Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Roboto');
  size-adjust: 100.06%;
  ascent-override: 105%;
  descent-override: 30%;
  line-gap-override: 0%;
}

/* Reserve space for stats (CLS fix) */
.hero-viewport .grid.grid-cols-2 > div,
.hero-viewport .grid.grid-cols-4 > div {
  min-height: 92px;
  contain: layout;
}

.counter {
  display: inline-block;
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
}

/* Marquee reserve */
section:has(.animate-marquee) {
  min-height: 88px;
  contain: layout paint;
}

/* Hero image reserve */
.hero-viewport [class*="w-72"] {
  aspect-ratio: 1 / 1;
}

/* GPU acceleration for animations */
.animate-marquee,
.animate-float,
.animate-pulse-slow,
.animate-bounce,
.animate-spin {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Contrast improvements */
.text-darkText { color: #C5D0E3 !important; }
.text-darkText\/60 { color: #A8B4C7 !important; }

a[href^="tel:"] span,
a[href^="tel:"] .font-mono {
  color: #FFFFFF !important;
}

/* Focus visible */
:focus-visible {
  outline: 3px solid #D4AF37 !important;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Touch targets */
@media (hover: none) and (pointer: coarse) {
  button, a[role="button"] { min-height: 44px; }
  .copy-btn { min-width: 44px !important; min-height: 44px !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Honeypot */
input[name="website"][tabindex="-1"] {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ══ skip-link-fix.css ══ */
/* ═══════════════════════════════════════════════════════════
   Skip Link Fix — Hidden until focus (WCAG 2.4.1)
   ═══════════════════════════════════════════════════════════ */
.skip-link {
  position: absolute !important;
  top: -100px !important;
  left: 0 !important;
  right: auto !important;
  z-index: 99999 !important;
  background: #D4AF37 !important;
  color: #030811 !important;
  padding: 12px 24px !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  border-radius: 0 0 12px 0 !important;
  text-decoration: none !important;
  transition: top 0.25s ease !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0 !important;
  outline: 3px solid #F1D279 !important;
  outline-offset: 2px !important;
}

/* RTL support for skip link */
[dir="rtl"] .skip-link {
  left: auto !important;
  right: 0 !important;
  border-radius: 0 0 0 12px !important;
}

/* Also hide any inline skip-link text from being visible */
a.skip-link:not(:focus) {
  clip-path: inset(50%) !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}



/* ═══════════════════════════════════════════════════════════
   CLS Fixes — Reserve Space (v1)
   ═══════════════════════════════════════════════════════════ */

/* ─── Cairo font fallback (CLS prevention) ─── */
@font-face {
  font-family: 'Cairo Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Roboto'), local('system-ui');
  size-adjust: 100.06%;
  ascent-override: 105%;
  descent-override: 30%;
  line-gap-override: 0%;
}

/* Font stack with fallback */
body, .font-cairo {
  font-family: 'Cairo', 'Cairo Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ─── Hero stats grid — reserve space ─── */
.hero-viewport .grid.grid-cols-2 > div,
.hero-viewport .grid.grid-cols-4 > div {
  min-height: 92px;
  contain: layout;
}

/* ─── Counter stability ─── */
.counter {
  display: inline-block;
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

/* ─── Marquee section ─── */
section:has(.animate-marquee) {
  min-height: 88px;
  contain: layout paint;
}

/* ─── Hero image ─── */
.hero-viewport [class*="w-72"] {
  aspect-ratio: 1 / 1;
  contain: layout paint;
}

/* ─── Section content-visibility (off-screen optimization) ─── */
section:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 500px;
}

/* ─── GPU acceleration for animations ─── */
.animate-marquee,
.animate-float,
.animate-pulse-slow,
.animate-bounce,
.animate-spin {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ─── Prevent images from causing CLS ─── */
img {
  max-width: 100%;
  height: auto;
}
img[width][height] {
  aspect-ratio: attr(width) / attr(height);
}