/* ── PIXUN.DEV — MAIN STYLESHEET ── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;900&family=Plus+Jakarta+Sans:wght@700;800&family=Space+Grotesk:wght@500;700&display=swap');

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

:root {
  --blue-50:  #E6F1FB;
  --blue-100: #B5D4F4;
  --blue-400: #378ADD;
  --blue-600: #185FA5;
  --blue-800: #0C447C;
  --blue-900: #042C53;
  --gray-50:  #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-400: #868E96;
  --gray-600: #495057;
  --gray-900: #212529;
  --white:    #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.7;
  direction: rtl;
}

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

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--gray-200);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-wordmark {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 20px; letter-spacing: -0.5px;
  color: var(--gray-900);
}
.logo-wordmark em { color: var(--blue-400); font-style: normal; }
.logo-dot { color: var(--gray-400); font-size: 16px; }

/* Hero tagline */
.hero-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 3px;
  color: var(--blue-400); text-transform: uppercase;
  margin-bottom: 8px; margin-top: -8px;
}

/* Footer logo wrap */
.footer-logo-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 6px;
}
.footer-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 500; letter-spacing: 2.5px;
  color: var(--blue-400); text-transform: uppercase; margin-bottom: 4px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--gray-600);
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--blue-600); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--gray-600); border-radius: 2px; transition: all .3s;
}
.nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 24px 16px;
  border-top: 0.5px solid var(--gray-200);
}
.nav-mobile a {
  padding: 10px 0; font-size: 15px; font-weight: 600;
  color: var(--gray-600); text-decoration: none;
  border-bottom: 0.5px solid var(--gray-100);
}
.nav-mobile.open { display: flex; }

/* ── BUTTONS ── */
.btn-main {
  display: inline-block;
  background: var(--blue-600); color: var(--white);
  padding: 11px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700; text-decoration: none;
  border: none; cursor: pointer; font-family: 'Cairo', sans-serif;
  transition: background .2s;
}
.btn-main:hover { background: var(--blue-800); }
.btn-outline {
  display: inline-block;
  background: transparent; color: var(--blue-600);
  padding: 11px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700; text-decoration: none;
  border: 1.5px solid var(--blue-600); cursor: pointer;
  font-family: 'Cairo', sans-serif; transition: all .2s;
}
.btn-outline:hover { background: var(--blue-600); color: var(--white); }

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 88px 24px 72px;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue-50); color: var(--blue-600);
  padding: 5px 16px; border-radius: 99px;
  font-size: 13px; font-weight: 700; margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-400); display: inline-block;
}
.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -1.5px; margin-bottom: 20px;
}
.hero h1 em { color: var(--blue-600); font-style: normal; }
.hero p {
  font-size: 17px; color: var(--gray-400);
  max-width: 520px; margin: 0 auto 36px; line-height: 1.8;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── STATS ── */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 0.5px solid var(--gray-200);
  border-bottom: 0.5px solid var(--gray-200);
}
.stat {
  padding: 32px 16px; text-align: center;
  border-left: 0.5px solid var(--gray-200);
}
.stat:last-child { border-left: none; }
.stat-num {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px; font-weight: 800; color: var(--blue-600);
}
.stat-label { font-size: 13px; color: var(--gray-400); margin-top: 4px; display: block; }

/* ── SECTIONS ── */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-50); }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--blue-400); text-transform: uppercase; margin-bottom: 8px;
}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 30px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px;
}
.section-sub { font-size: 15px; color: var(--gray-400); margin-bottom: 44px; }

/* ── SERVICES ── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}
.service-card {
  background: var(--white);
  border: 0.5px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.service-card:hover {
  border-color: var(--blue-100);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--gray-400); line-height: 1.7; }

/* ── PROJECTS ── */
.tabs { display: flex; gap: 0; margin-bottom: 32px; border-bottom: 0.5px solid var(--gray-200); }
.tab {
  padding: 10px 22px; font-size: 14px; font-weight: 600;
  color: var(--gray-400); cursor: pointer; background: none;
  border: none; border-bottom: 2px solid transparent;
  transition: all .2s; font-family: 'Cairo', sans-serif;
}
.tab.active { color: var(--blue-600); border-bottom-color: var(--blue-600); }
.tab:hover { color: var(--blue-600); }

.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.proj-card {
  background: var(--white); border: 0.5px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.proj-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.proj-thumb {
  height: 180px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.proj-card:hover .proj-thumb img { transform: scale(1.05); }
.proj-thumb .no-img { font-size: 48px; opacity: 0.3; }
.proj-body { padding: 18px; }
.proj-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.proj-body p { font-size: 13px; color: var(--gray-400); line-height: 1.6; margin-bottom: 12px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.proj-tag {
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 99px; background: var(--blue-50); color: var(--blue-600);
}
.proj-tag.green { background: #EAF3DE; color: #3B6D11; }
.proj-tag.gray { background: var(--gray-100); color: var(--gray-600); border: 0.5px solid var(--gray-200); }

/* ── CONTACT ── */
.contact-card {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 50%, var(--blue-600) 100%);
  border-radius: var(--radius-xl); padding: 52px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.contact-text h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px; font-weight: 800; color: var(--white); margin-bottom: 10px;
}
.contact-text p { font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 24px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; font-weight: 600;
  transition: color .2s;
}
.contact-link:hover { color: var(--white); }

/* ── BUSINESS CARD ── */
.business-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg); padding: 28px 32px;
  min-width: 260px; backdrop-filter: blur(10px);
  flex-shrink: 0;
}
.bc-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.bc-logo-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--blue-400);
  display: flex; align-items: center; justify-content: center;
}
.bc-logo span { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 15px; color: var(--white); }
.bc-name { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.bc-role { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.bc-info { font-size: 12px; color: rgba(255,255,255,0.85); line-height: 2.2; }
.bc-info span { color: rgba(255,255,255,0.45); margin-left: 6px; }

/* ── FOOTER ── */
.footer {
  padding: 40px 0;
  border-top: 0.5px solid var(--gray-200);
  background: var(--white);
}
.footer-inner { text-align: center; }
.footer-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px; font-weight: 800; margin-bottom: 8px;
}
.footer-logo em { color: var(--blue-400); font-style: normal; }
.footer p { font-size: 13px; color: var(--gray-400); }
.footer-copy { margin-top: 8px; font-size: 12px; color: var(--gray-200); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 64px 24px 52px; }
  .hero h1 { font-size: 32px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 20px 8px; }
  .stat-num { font-size: 22px; }
  .contact-card { padding: 32px 24px; flex-direction: column; }
  .business-card { min-width: unset; width: 100%; }
  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: none; border-bottom: 0.5px solid var(--gray-200); }
  .projects-grid { grid-template-columns: 1fr; }
}
