/* ─────────────────────────────────────────────────────────────
   Wee-Sy Official Website — Design System
   Brand identity: Forest green (#001915 → #054239) + Gold (#d4af37)
   ───────────────────────────────────────────────────────────── */

:root {
  --forest-950: #001915;
  --forest-900: #022820;
  --forest-800: #054239;
  --forest-700: #0a5a4a;
  --forest-600: #0f7259;
  --gold-1:    #f4cf5e;
  --gold-2:    #d4af37;
  --gold-3:    #b8941f;
  --white:     #ffffff;
  --gray-100:  rgba(255,255,255,0.92);
  --gray-300:  rgba(255,255,255,0.75);
  --gray-500:  rgba(255,255,255,0.55);
  --gray-700:  rgba(255,255,255,0.30);
  --gray-900:  rgba(255,255,255,0.10);
  --shadow-gold: 0 6px 28px rgba(212, 175, 55, 0.25);
  --shadow-md:   0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg:   0 12px 48px rgba(0, 0, 0, 0.45);
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: radial-gradient(ellipse at top, var(--forest-900) 0%, var(--forest-950) 60%, #000 100%);
  color: var(--white);
  font-family: 'Cairo', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

html[dir="rtl"] { direction: rtl; }
html[dir="ltr"] { direction: ltr; }

a { color: var(--gold-2); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-1); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ─── Navigation ─── */
nav.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(2, 40, 32, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-900);
  z-index: 100;
  padding: 14px 0;
}
nav.topbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
nav.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-2);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 3px;
}
nav.topbar .brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  animation: brandPulse 2.8s ease-in-out infinite;
}
@keyframes brandPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.25)); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.55)); transform: scale(1.04); }
}
nav.topbar ul {
  display: flex;
  gap: 28px;
  list-style: none;
}
nav.topbar ul a {
  color: var(--gray-100);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}
nav.topbar ul a:hover { color: var(--gold-2); }
nav.topbar .nav-cta {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  color: var(--forest-950);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 13px;
  box-shadow: var(--shadow-gold);
}
.lang-toggle {
  background: transparent;
  border: 1px solid var(--gray-700);
  color: var(--gray-300);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.lang-toggle:hover { border-color: var(--gold-2); color: var(--gold-2); }

/* ─── Mobile menu toggle ─── */
.menu-btn { display: none; background: transparent; border: none; color: var(--white); font-size: 22px; cursor: pointer; }

@media (max-width: 880px) {
  nav.topbar ul { display: none; }
  nav.topbar ul.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--forest-800);
    padding: 20px;
    border-bottom: 1px solid var(--gray-900);
  }
  .menu-btn { display: block; }
}

/* ─── Hero ─── */
.hero {
  padding: 110px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) {
  .hero { padding: 100px 0 40px; }
}
.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-2);
  border-radius: 100px;
  padding: 8px 18px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--white) 30%, var(--gold-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .tagline {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--gray-300);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.btn {
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  color: var(--forest-950);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(212, 175, 55, 0.4); }
.btn-secondary {
  background: var(--gray-900);
  color: var(--white);
  border: 1px solid var(--gray-700);
}
.btn-secondary:hover { border-color: var(--gold-2); color: var(--gold-2); }

/* ─── Phone mockup ─── */
.phone-mockup {
  width: 280px;
  height: 580px;
  margin: 0 auto;
  border-radius: 42px;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  padding: 8px;
  box-shadow:
    0 20px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(212, 175, 55, 0.1),
    inset 0 0 0 2px rgba(255, 255, 255, 0.05);
  position: relative;
}
.phone-mockup .screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: var(--forest-950);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}
.phone-mockup .screen img { width: 80%; opacity: 0.95; }
.phone-mockup .notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #000;
  border-radius: 100px;
  z-index: 2;
}

/* ─── Sections ─── */
section { padding: 60px 0; position: relative; }
@media (max-width: 720px) {
  section { padding: 40px 0; }
}
section h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
  text-align: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--white), var(--gold-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
section .section-subtitle {
  text-align: center;
  color: var(--gray-300);
  font-size: 14px;
  margin-bottom: 36px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ─── Services grid ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--gray-900);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: var(--shadow-md);
}
.service-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--gold-2);
}
.service-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.service-card p { color: var(--gray-300); font-size: 14px; line-height: 1.7; }

/* ─── Syria map section ─── */
.map-section {
  background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.03), transparent);
}
.map-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .map-container { grid-template-columns: 1fr; }
}
.map-svg-wrap {
  position: relative;
  filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.2));
}
.map-svg-wrap svg { width: 100%; max-width: 500px; margin: 0 auto; display: block; }
.governorates-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 20px;
}
.gov-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gray-900);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--gray-100);
  text-align: center;
}

/* ─── Partners section (5 cards: use fixed 5-col on desktop, fewer on smaller) ─── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  /* المشترك (الـ5) يَتمركز تحت بدل ما يكون orphan */
  .partners-grid .partner-card:nth-child(4),
  .partners-grid .partner-card:nth-child(5) {
    grid-column: span 1;
  }
  .partners-grid .partner-card:nth-child(4) { grid-column: 1 / 2; }
  .partners-grid .partner-card:nth-child(5) { grid-column: 3 / 4; }
  /* للتَّعديل: نَجعل الثلاثة الأخيرة تَتمركز */
  .partners-grid > .partner-card:nth-child(4) { grid-column-start: 1; }
  .partners-grid > .partner-card:nth-child(5) { grid-column-start: 3; }
}
@media (max-width: 720px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid .partner-card:nth-child(4),
  .partners-grid .partner-card:nth-child(5) { grid-column: auto; }
  .partners-grid > .partner-card:nth-child(5) {
    grid-column: 1 / 3;
    max-width: 50%;
    justify-self: center;
  }
}
@media (max-width: 440px) {
  .partners-grid { grid-template-columns: 1fr; }
  .partners-grid > .partner-card:nth-child(5) {
    grid-column: 1; max-width: 100%;
  }
}
.partner-card {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.04), transparent);
  border: 1px solid var(--gray-900);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.partner-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  transition: top 0.3s;
}
.partner-card:hover::before { top: 0; }
.partner-card:hover { border-color: rgba(212, 175, 55, 0.4); transform: translateY(-3px); }
.partner-card .partner-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--forest-700), var(--forest-800));
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: var(--gold-2);
}
.partner-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.partner-card p {
  color: var(--gray-300);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.partner-card .partner-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-2);
  border: 1px solid var(--gold-2);
  padding: 6px 14px;
  border-radius: 8px;
  display: inline-block;
}

/* ─── Stats section ─── */
.stats-section {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.04), transparent);
  border-top: 1px solid var(--gray-900);
  border-bottom: 1px solid var(--gray-900);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  text-align: center;
}
.stat-item .stat-value {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: var(--gold-2);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}
.stat-item .stat-label { color: var(--gray-300); font-size: 13px; }

/* ─── Install / Download section ─── */
.install-section {
  text-align: center;
}
.install-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.install-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: start;
  color: var(--white);
  font-weight: 700;
  transition: all 0.2s;
}
.install-card:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.install-card .store-icon { width: 36px; height: 36px; color: var(--gold-2); }
.install-card .store-text small { display: block; color: var(--gray-300); font-size: 10px; font-weight: 600; }
.install-card .store-text strong { font-size: 15px; }

/* ─── Footer ─── */
footer {
  background: var(--forest-950);
  border-top: 1px solid var(--gray-900);
  padding: 60px 0 30px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h4 {
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul a { color: var(--gray-300); font-size: 13px; }
.footer-grid ul a:hover { color: var(--gold-2); }
.footer-grid .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-2);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.footer-grid .footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer-grid .footer-desc { color: var(--gray-300); font-size: 13px; line-height: 1.8; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid var(--gray-900);
  padding-top: 24px;
  text-align: center;
  color: var(--gray-500);
  font-size: 12px;
}
.footer-bottom .social-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-bottom .social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gray-700);
  display: grid;
  place-items: center;
  color: var(--gray-300);
}
.footer-bottom .social-links a:hover { color: var(--gold-2); border-color: var(--gold-2); }

/* ─── Inner page hero ─── */
.page-hero {
  padding: 130px 0 50px;
  text-align: center;
  position: relative;
}
.page-hero::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  margin: 24px auto 0;
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-2);
  letter-spacing: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--white), var(--gold-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
  line-height: 1.2;
}
.page-hero .lead {
  color: var(--gray-300);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ─── Generic content section (1/2/3 column cards) ─── */
.content-section { padding: 50px 0; }
.content-section h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  color: var(--gold-2);
  margin-bottom: 28px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.content-section h2 svg { width: 28px; height: 28px; }
.content-grid {
  display: grid;
  gap: 16px;
}
.content-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.content-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.content-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .content-grid.cols-3, .content-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .content-grid.cols-2, .content-grid.cols-3, .content-grid.cols-4 { grid-template-columns: 1fr; }
}

/* ─── Info card (used in about, contact) ─── */
.info-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--gray-900);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.info-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.info-card:hover::before { opacity: 1; }
.info-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--gold-2);
}
.info-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.info-card p, .info-card li {
  color: var(--gray-300);
  font-size: 13px;
  line-height: 1.7;
}
.info-card ul { list-style: none; padding: 0; margin: 0; }
.info-card ul li {
  padding-inline-start: 18px;
  position: relative;
  margin-bottom: 6px;
}
.info-card ul li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--gold-2);
  font-weight: 900;
}
.info-card a {
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.info-card a:hover { text-decoration: underline; }
.info-card .meta {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 8px;
}

/* Wide card variant (full row) */
.info-card.wide { grid-column: 1 / -1; }

/* Highlight card (gold-tinted) */
.info-card.highlight {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
  border-color: rgba(212, 175, 55, 0.4);
}

/* ─── Legal pages typography (privacy, terms) ─── */
.legal-page { padding: 110px 0 60px; max-width: 880px; margin: 0 auto; }
.legal-page .legal-hero {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--gray-900);
}
.legal-page .legal-hero .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: var(--gold-2);
}
.legal-page h1 {
  font-size: 36px;
  font-weight: 900;
  color: var(--gold-2);
  margin-bottom: 8px;
}
.legal-page .updated {
  color: var(--gray-500);
  font-size: 13px;
}
.legal-page .legal-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--gray-900);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}
.legal-page .legal-section:hover { border-color: rgba(212, 175, 55, 0.25); }
.legal-page h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-1);
  margin-bottom: 14px;
  text-align: start;
  background: none;
  -webkit-text-fill-color: var(--gold-1);
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-page h2::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--gold-2);
  border-radius: 2px;
}
.legal-page p { color: var(--gray-100); font-size: 14.5px; line-height: 1.85; margin-bottom: 12px; }
.legal-page ul { padding-inline-start: 22px; margin-bottom: 12px; }
.legal-page ul li { color: var(--gray-100); margin-bottom: 6px; line-height: 1.75; font-size: 14px; }
.legal-page strong { color: var(--gold-1); font-weight: 800; }
.legal-page a { color: var(--gold-2); }
.legal-page a:hover { text-decoration: underline; }

/* ─── Animations ─── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.float { animation: float 5s ease-in-out infinite; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.7s ease-out backwards; }
