* { box-sizing: border-box; }

html {
  --brand: #1565C0;
  --brand-2: #1976D2;
  --brand-dark: #0D47A1;
  --brand-light: #42A5F5;
  --gold: #FFD54F;
  --bg-dark: #080c18;
  --bg-secondary: #0f1525;
  --bg-alt: #162035;
  --text-light: #f0f2f5;
  --text-gray: #c8ccd4;
  --text-muted: #8892a4;
  --border: #1e2a45;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-light);
  background: var(--bg-dark);
  direction: rtl;
  line-height: 1.5;
}

html[lang="en"] body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.container { width: min(1100px, 94%); margin-inline: auto; }

.skip-link {
  position: absolute; right: -999px; top: auto;
}

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 12, 24, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
}

.brand {
  display: flex; gap: 0.5rem; align-items: center; flex-shrink: 0;
}

.brand__name {
  font-weight: 700; font-size: 0.95rem; color: var(--text-light);
  white-space: nowrap;
}

.logo {
  width: 34px; height: 34px;
  filter: drop-shadow(0 2px 4px rgba(21, 101, 192, 0.3));
}

.nav-group {
  display: flex; align-items: center; gap: 0.4rem;
}

.nav { position: relative; }

.nav__toggle { display: none; }

.nav__list {
  display: flex; flex-wrap: wrap; gap: 0.2rem;
  list-style: none; margin: 0; padding: 0;
}

.nav__list a {
  display: block; padding: 0.4rem 0.7rem; border-radius: 6px;
  text-decoration: none; color: var(--text-gray); font-weight: 600;
  font-size: 0.85rem; transition: all 0.2s ease;
}

.nav__list a:hover {
  background: var(--brand); color: white; transform: translateY(-1px);
}

/* LANGUAGE SWITCHER */
.lang-btn {
  padding: 0.35rem 0.75rem; border-radius: 6px;
  border: 1px solid var(--brand); background: transparent;
  color: var(--brand-light); font-weight: 700; font-size: 0.8rem;
  cursor: pointer; transition: all 0.2s ease; font-family: inherit;
}

.lang-btn:hover {
  background: var(--brand); color: white;
}

/* HERO */
.hero {
  position: relative; min-height: 55vh; display: grid; place-items: center;
  border-bottom: 2px solid var(--brand); overflow: clip;
}

.hero__media {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(21, 101, 192, 0.3), rgba(0,0,0,0.7)),
              radial-gradient(circle at 30% 40%, rgba(21, 101, 192, 0.2), transparent);
  background-position: center; background-size: cover;
  filter: saturate(110%) contrast(105%) brightness(0.85);
  transition: opacity 1.2s ease; opacity: 1;
}

.hero__media.is-fading { opacity: 0.8; }

.hero__inner { position: relative; padding: 50px 0 40px; text-align: center; }

.hero__copy { max-width: 750px; margin: 0 auto; }

h1 {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  line-height: 1.2; margin: 0 0 0.7rem; color: white;
  font-weight: 800; text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero__subtitle {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  line-height: 1.4; margin-bottom: 1rem; color: var(--text-gray);
}

.actions {
  display: flex; gap: 0.6rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 1rem;
}

.trust {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center; padding-right: 0; list-style: none;
  margin: 1rem 0 0.8rem; font-size: 0.85rem; color: var(--text-gray);
}

.hero-quote {
  margin-top: 1rem; padding: 0.8rem 1.2rem;
  background: rgba(21, 101, 192, 0.12);
  border-inline-start: 3px solid var(--brand); border-radius: 8px;
  font-size: 0.9rem; max-width: 500px; margin-inline: auto;
}

/* TYPOGRAPHY */
h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin: 0 0 0.5rem; color: white; font-weight: 700;
}

h3 {
  color: var(--text-light);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin: 0 0 0.4rem; font-weight: 700;
}

h4 { color: var(--text-light); font-weight: 600; margin: 0 0 0.3rem; }

p, li { color: var(--text-gray); font-size: 0.9rem; margin: 0; }

a { color: var(--brand-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.lead {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.5; color: var(--text-gray); max-width: 750px; margin-inline: auto;
}

/* SECTIONS */
.section { padding: 35px 0; }

.section--alt { background: var(--bg-secondary); }

.section--cta {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  text-align: center;
}

.section-header { text-align: center; margin-bottom: 1.5rem; }

/* STATS */
.stats-grid {
  display: grid; gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin-top: 1.5rem;
}

.stat-card {
  padding: 1.2rem 0.8rem; background: var(--bg-secondary);
  border: 1.5px solid var(--brand); border-radius: 8px;
  text-align: center; transition: transform 0.2s ease;
}

.stat-card:hover { transform: translateY(-2px); }

.stat-number {
  font-size: 1.8rem; font-weight: 800; color: var(--brand);
  margin-bottom: 0.2rem;
}

.stat-label { font-size: 0.85rem; color: var(--text-gray); }

/* SPLIT */
.split {
  display: grid; gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* PANELS */
.panel {
  padding: 1.2rem; border: 1px solid var(--border);
  background: var(--bg-alt); border-radius: 8px;
  transition: all 0.2s ease;
}

.panel:hover {
  border-color: var(--brand);
  box-shadow: 0 3px 12px rgba(21, 101, 192, 0.12);
}

/* CARDS */
.grid.cards {
  display: grid; gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 0.9rem 1rem; border: 1px solid var(--border);
  background: var(--bg-alt); border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  perspective: 600px;
}

.card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 24px rgba(21, 101, 192, 0.15);
  border-color: var(--brand);
}

.card--featured {
  border-color: var(--brand);
  background: linear-gradient(145deg, var(--bg-alt), var(--bg-secondary));
  position: relative; overflow: hidden;
}

.card--featured::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(66, 165, 245, 0.06), transparent);
  transition: left 0.6s ease;
}

.card--featured:hover::before { left: 100%; }

.card--highlight {
  text-align: center;
  position: relative; z-index: 1;
}

.card--highlight::after {
  content: ''; position: absolute; inset: 0; border-radius: 8px;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(66, 165, 245, 0.08), transparent 70%);
  opacity: 0; transition: opacity 0.3s ease; z-index: -1; pointer-events: none;
}

.card--highlight:hover::after { opacity: 1; }

.card-icon {
  font-size: 1.6rem; margin-bottom: 0.4rem;
  display: inline-block; transition: transform 0.3s ease;
}

.card:hover .card-icon { transform: scale(1.15); }

/* LISTS */
.list { line-height: 1.6; padding-inline-start: 1.2rem; margin: 0; }

.list--check { list-style: none; padding-inline-start: 0; }

.list--check li { margin-bottom: 0.2rem; }

.list--check li::before {
  content: '\2713 '; color: var(--gold); font-weight: bold;
}

/* CONTACT */
.contact-info { display: flex; flex-direction: column; gap: 0.6rem; }

.info-item {
  display: flex; gap: 0.8rem; align-items: start;
  padding: 0.6rem 0.8rem;
  background: var(--bg-alt); border-radius: 6px;
  border: 1px solid var(--border);
}

.info-item:hover { border-color: var(--brand); }

.info-icon { font-size: 1.3rem; min-width: 32px; text-align: center; }

.info-item h3 { margin: 0 0 0.1rem; font-size: 0.85rem; }
.info-item p { margin: 0; font-size: 0.8rem; }
.info-item a { font-size: 0.85rem; }

/* FORM */
.form { display: grid; gap: 0.6rem; }

.form label {
  display: block; font-weight: 600; font-size: 0.85rem;
}

.form input,
.form textarea,
.form select {
  width: 100%; padding: 0.55rem 0.8rem; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg-secondary);
  color: var(--text-light); font-family: inherit; font-size: 0.85rem;
  margin-top: 0.2rem; transition: all 0.25s ease;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

/* BUTTONS */
.btn {
  display: inline-block; padding: 0.55rem 1.2rem; border-radius: 6px;
  border: 2px solid var(--brand);
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: white; text-decoration: none; font-weight: 700;
  font-size: 0.85rem; cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 8px rgba(21, 101, 192, 0.2);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.btn--ghost {
  background: transparent; color: var(--text-light);
  border-color: var(--text-muted); box-shadow: none;
}

.btn--ghost:hover {
  border-color: var(--brand); color: var(--brand-light);
  background: rgba(21, 101, 192, 0.08);
}

.btn--sm { padding: 0.35rem 0.8rem; font-size: 0.8rem; }

.btn--large { padding: 0.8rem 1.8rem; font-size: 0.9rem; }

/* CTA BOX */
.cta-box { max-width: 550px; margin: 0 auto; text-align: center; }

.cta-box h2 { color: white; margin-bottom: 0.5rem; }

.cta-box p {
  color: rgba(255,255,255,0.9); font-size: 1rem; margin-bottom: 1rem;
}

/* FOOTER */
.site-footer {
  border-top: 2px solid var(--brand);
  background: var(--bg-dark); padding: 1.5rem 0 0.8rem;
}

.footer-content {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 1rem;
}

.footer-brand h3 { color: var(--brand); margin-bottom: 0.3rem; font-size: 1rem; }
.footer-brand p { font-size: 0.8rem; }

.footer-links ul { list-style: none; padding: 0; margin: 0; }

.footer-links a {
  display: block; padding: 0.15rem 0;
  transition: color 0.2s ease; font-size: 0.85rem;
}

.footer-links a:hover { color: var(--brand); text-decoration: none; }

.footer-contact p { margin: 0.15rem 0; font-size: 0.85rem; }
.footer-contact a { color: var(--text-gray); font-size: 0.85rem; }
.footer-contact a:hover { color: var(--brand); }

.footer-bottom {
  text-align: center; padding-top: 0.8rem;
  border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.8rem;
}

/* FLOATING WHATSAPP */
.whatsapp-float {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 99; width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: whatsapp-pulse 2s ease-in-out infinite;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1); box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  text-decoration: none;
}

.whatsapp-float svg { display: block; }

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.65); }
}

/* SCROLL ANIMATIONS */
.scroll-in { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.scroll-in.visible { opacity: 1; transform: translateY(0); }

/* BETTER HOVER FOR STATS */
.stat-card {
  position: relative; overflow: hidden;
}

.stat-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 8px;
  background: linear-gradient(135deg, rgba(21, 101, 192, 0.1), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}

.stat-card:hover::before { opacity: 1; }

/* BETTER HOVER FOR INFO ITEMS */
.info-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-item:hover {
  transform: translateX(-3px);
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.12);
}

/* GLOW BUTTON */
.btn {
  position: relative; overflow: hidden;
}

.btn::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: width 0.4s ease, height 0.4s ease;
  transform: translate(-50%, -50%);
}

.btn:active::after {
  width: 300px; height: 300px;
}

/* PANEL ENHANCEMENTS */
.panel {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel:hover {
  transform: translateY(-2px);
}

/* TOUCH STATE */
.touch-active.info-item { border-color: var(--brand); transform: translateX(-2px); }
.touch-active.card { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 6px 20px rgba(21, 101, 192, 0.12); }
.touch-active.panel { transform: translateY(-2px); border-color: var(--brand); }

/* RESPONSIVE */
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }

  .nav-group { gap: 0.3rem; }

  .nav__toggle {
    display: inline-flex; background: var(--bg-secondary);
    border: 1px solid var(--border); color: var(--text-light);
    border-radius: 6px; padding: 0.35rem 0.7rem;
    font-weight: 600; cursor: pointer; font-size: 1rem;
  }

  .nav__list {
    display: none; flex-direction: column;
    background: var(--bg-dark); border: 1px solid var(--border);
    border-radius: 8px; padding: 0.5rem;
    position: absolute; top: 100%; margin-top: 4px;
    inset-inline-start: 0;
    min-width: 160px; box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    z-index: 30;
  }

  .nav__list[aria-expanded="true"] { display: flex; }

  .nav__list a { width: 100%; }

  .actions { flex-direction: column; }

  .trust { flex-direction: column; gap: 0.4rem; text-align: center; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .grid.cards { grid-template-columns: 1fr; }

  .footer-content { grid-template-columns: 1fr; text-align: center; }

  .hero { min-height: 45vh; }
  .hero__inner { padding: 40px 0 30px; }
  .section { padding: 28px 0; }
  .section-header { margin-bottom: 1rem; }
}

@media (max-width: 600px) {
  .brand__name { font-size: 0.8rem; }
  .logo { width: 28px; height: 28px; }
  .lang-btn { padding: 0.25rem 0.5rem; font-size: 0.7rem; }
  .nav__toggle { padding: 0.25rem 0.5rem; font-size: 0.9rem; }
  .nav__list { min-width: 140px; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 0.8rem; }
  .stat-number { font-size: 1.5rem; }

  h1 { font-size: 1.2rem; }
  .section { padding: 22px 0; }
  .section-header { margin-bottom: 0.8rem; }

  .panel { padding: 0.8rem; }
  .card { padding: 0.65rem 0.75rem; }
  .card-icon { font-size: 1.3rem; margin-bottom: 0.3rem; }
  .card h3 { font-size: 0.9rem; }
  .card p { font-size: 0.75rem; }

  .info-item { padding: 0.5rem 0.6rem; gap: 0.5rem; }
  .info-icon { font-size: 1.1rem; min-width: 26px; }
  .form input, .form textarea, .form select { padding: 0.5rem 0.6rem; }

  .hero-quote { padding: 0.6rem 0.8rem; }
  .hero { min-height: 35vh; }
  .hero__inner { padding: 30px 0 20px; }
  .btn { padding: 0.45rem 1rem; font-size: 0.8rem; }

  .site-footer { padding: 1rem 0 0.6rem; }
  .footer-content { gap: 0.8rem; }

  .trust { font-size: 0.8rem; gap: 0.3rem; }
  .lead { font-size: 0.85rem; }
  p, li { font-size: 0.8rem; }

  .cta-box h2 { font-size: 1.1rem; }
  .cta-box p { font-size: 0.85rem; }
}

@media (max-width: 380px) {
  .container { width: 96%; }
  .brand__name { font-size: 0.7rem; }
  .logo { width: 24px; height: 24px; }
  .lang-btn { font-size: 0.65rem; padding: 0.2rem 0.4rem; }
  .nav__list { min-width: 120px; }
}
