/* ===== CSS VARIABLES ===== */
:root {
  --navy: #0A2540;
  --navy-deep: #061B2E;
  --navy-mid: #0d3154;
  --teal: #1DB8A0;
  --teal-hover: #17a08a;
  --teal-light: #2EECD1;
  --gold: #D4A843;
  --gold-light: #F0D078;
  --white: #FFFFFF;
  --off-white: #F5F7FA;
  --gray-100: #E8ECF1;
  --gray-600: #5A6B7F;
  --text-dark: #0F1923;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(10, 37, 64, 0.97);
  backdrop-filter: blur(12px);
  padding: 0.75rem 2rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: white;
}
.nav-logo svg { height: 40px; width: auto; }
.nav-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.nav-logo-text { display: none; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:not(.nav-cta):not(.nav-lang) { position: relative; }
.nav-links a:hover { color: white; }
.nav-links a.active { color: white; }
.nav-links a.active:not(.nav-cta):not(.nav-lang)::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--teal); border-radius: 1px;
}

.nav-links .nav-cta {
  background: var(--teal); color: white;
  padding: 8px 32px; border-radius: 6px;
  font-weight: 600; transition: background 0.2s, transform 0.2s;
}
.nav-links .nav-cta:hover { background: var(--teal-hover); color: white; transform: translateY(-1px); }
.nav-links .nav-cta:active { transform: translateY(0) scale(0.98); }

.nav-links .nav-lang {
  color: rgba(255,255,255,0.6);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 0.8rem;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 16px; border-radius: 6px;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links .nav-lang:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.9); }

.mobile-menu-btn {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px;
}
.mobile-menu-btn span {
  display: block; width: 20px; height: 2px;
  background: white; margin: 4px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: white;
  padding: 12px 32px; border-radius: 6px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--teal-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: white;
  padding: 12px 32px; border-radius: 6px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); color: white; transform: translateY(-1px); }
.btn-outline:active { transform: translateY(0) scale(0.98); }

.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--navy);
  padding: 12px 32px; border-radius: 6px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 1px solid var(--gray-100);
  cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}
.btn-outline-dark:hover { border-color: var(--teal); color: var(--teal); background: rgba(29,184,160,0.04); transform: translateY(-1px); }
.btn-outline-dark:active { transform: translateY(0) scale(0.98); }

/* ===== SECTIONS ===== */
section { padding: 5rem 2rem; }
.section-container { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; width: 20px; height: 2px; background: currentColor; opacity: 0.5;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800; line-height: 1.25;
  color: var(--navy); margin-bottom: 0.75rem;
}
.section-desc {
  font-size: 0.95rem; line-height: 1.7;
  color: var(--gray-600);
}

/* ===== PAGE HERO BANNER ===== */
.page-hero {
  background: var(--navy-deep);
  padding: 8rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 90% at 50% -10%, rgba(29,184,160,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 15% 110%, rgba(29,184,160,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 85% 110%, rgba(29,184,160,0.05) 0%, transparent 50%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-hero .section-container { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.4); font-size: 0.8rem;
  margin-bottom: 1rem;
}
.page-hero .breadcrumb a {
  color: rgba(255,255,255,0.5); text-decoration: none;
  transition: color 0.2s;
}
.page-hero .breadcrumb a:hover { color: var(--teal-light); }
.page-hero .breadcrumb .sep { color: rgba(255,255,255,0.2); }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: white; line-height: 1.2;
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: 1.05rem; line-height: 1.7;
  color: rgba(255,255,255,0.5); max-width: 600px;
  margin: 0 auto;
}

/* ===== STATS ===== */
.stats-section {
  background: var(--navy); padding: 4rem 2rem;
}
.stats-grid {
  max-width: 960px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; text-align: center;
}
.stat-item { color: white; }
.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800; color: var(--teal-light); line-height: 1;
}
.stat-label {
  font-size: 0.8rem; color: rgba(255,255,255,0.45);
  margin-top: 0.5rem; font-weight: 500;
}
.stat-number--cert::before {
  content: 'ISO';
  display: block; font-size: 0.45em;
  letter-spacing: 2px; font-weight: 700;
  opacity: 0.7; margin-bottom: 2px;
}
.stat-divider {
  width: 32px; height: 2px; margin: 0.75rem auto 0;
  background: rgba(29,184,160,0.3); border-radius: 1px;
}

/* ===== CERTIFICATIONS ===== */
.certs-section { background: white; }
.certs-grid {
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 1.5rem;
  margin-top: 2.5rem;
}
.cert-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem; padding: 1.5rem;
  background: var(--off-white); border-radius: var(--radius-lg);
  min-width: 160px; border: 1px solid var(--gray-100);
  transition: border-color 0.2s, transform 0.2s;
}
.cert-item:hover { border-color: var(--teal); transform: translateY(-2px); }
.cert-icon {
  width: 48px; height: 48px;
  background: rgba(29,184,160,0.08);
  border: 1px solid rgba(29,184,160,0.12);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.cert-item h4 { font-size: 0.85rem; color: var(--navy); text-align: center; font-weight: 700; }
.cert-item p { font-size: 0.75rem; color: var(--gray-600); text-align: center; }

/* ===== WHY US ===== */
.why-section { background: var(--off-white); }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.why-card {
  background: white; border-radius: var(--radius-lg);
  padding: 2rem 1.5rem; text-align: center;
  border: 1px solid var(--gray-100);
  transition: border-color 0.2s, transform 0.2s;
}
.why-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.why-icon {
  width: 56px; height: 56px;
  background: rgba(29,184,160,0.08);
  border: 1px solid rgba(29,184,160,0.12);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--teal);
}
.why-card h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.5rem;
}
.why-card p {
  font-size: 0.85rem; color: var(--gray-600); line-height: 1.7;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover { border-color: var(--teal); transform: translateY(-3px); }
.product-card:hover .product-card-body h3 { color: var(--teal); }
.product-card-img {
  height: 220px;
  background: var(--gray-100);
  background-size: cover; background-position: center;
  position: relative;
}
.product-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, transparent 40%, rgba(0,0,0,0.12) 100%);
  pointer-events: none;
}
.product-tag {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: var(--navy); color: white;
  padding: 4px 8px; border-radius: 4px;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  z-index: 1;
}
.product-card-body { padding: 1rem 1.5rem 1.5rem; }
.product-card-body h3 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.25rem;
  transition: color 0.2s;
}
.product-card-body .ar-name {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 0.85rem; color: var(--teal);
  font-weight: 600; margin-bottom: 0.5rem;
  direction: rtl;
}
.product-card-body p {
  font-size: 0.85rem; color: var(--gray-600); line-height: 1.6;
}
.product-card-tags {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 0.75rem;
}
.product-card-tags span {
  background: var(--off-white); padding: 4px 8px;
  border-radius: 4px; font-size: 0.7rem;
  font-weight: 600; color: var(--navy);
  border: 1px solid var(--gray-100);
}
.product-card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 0.75rem;
  color: var(--teal); font-size: 0.82rem; font-weight: 600;
  text-decoration: none; transition: gap 0.2s, color 0.2s;
}
.product-card-link:hover { gap: 12px; color: var(--teal-hover); }

/* ===== PROJECT CARDS ===== */
.project-card {
  background: white; border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1px solid var(--gray-100);
  transition: border-color 0.2s, transform 0.2s;
}
.project-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.project-icon {
  width: 48px; height: 48px;
  background: rgba(29,184,160,0.08);
  border: 1px solid rgba(29,184,160,0.12);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; color: var(--teal);
}
.project-card h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.5rem;
}
.project-card p {
  font-size: 0.85rem; color: var(--gray-600); line-height: 1.7;
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.contact-info { color: white; }
.contact-info h2 {
  font-size: 2rem; font-weight: 800;
  margin-bottom: 1rem; line-height: 1.25;
}
.contact-info p {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem; line-height: 1.7;
  margin-bottom: 2rem;
}
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-detail {
  display: flex; align-items: center; gap: 0.75rem;
  color: rgba(255,255,255,0.7);
}
.contact-detail-icon {
  width: 40px; height: 40px;
  background: rgba(29,184,160,0.15);
  border: 1px solid rgba(29,184,160,0.12);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-light); flex-shrink: 0;
}
.contact-detail-text { font-size: 0.9rem; }
.contact-detail-text strong { display: block; color: white; margin-bottom: 4px; font-size: 0.8rem; }

.contact-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-form h3 {
  color: white; font-size: 1.15rem; font-weight: 700;
  margin-bottom: 1.25rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; color: rgba(255,255,255,0.5);
  font-size: 0.8rem; font-weight: 500;
  margin-bottom: 0.25rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 8px 16px;
  color: white; font-family: inherit; font-size: 0.9rem;
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--teal);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group select option { background: var(--navy); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-submit {
  width: 100%; padding: 12px;
  background: var(--teal); color: white;
  border: none; border-radius: 6px;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.form-submit:hover { background: var(--teal-hover); }
.form-submit:active { transform: scale(0.99); }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 3.5rem 2rem 1.5rem;
  color: rgba(255,255,255,0.4);
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 2.5rem;
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 0.75rem;
}
.footer-brand .footer-logo svg { height: 32px; width: auto; }
.footer-brand .footer-logo img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.footer-brand .footer-logo span { display: none; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 1.25rem; }

.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer-socials a:hover { background: rgba(29,184,160,0.15); border-color: rgba(29,184,160,0.25); color: var(--teal-light); }

.footer-col h4 {
  color: rgba(255,255,255,0.7); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.4); text-decoration: none;
  font-size: 0.85rem; transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--teal-light); }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem;
}
.footer-bottom .cr { font-family: 'Noto Kufi Arabic', sans-serif; direction: rtl; }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ===== KEYFRAMES ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(10,37,64,0.98);
    backdrop-filter: blur(12px);
    padding: 1.5rem; gap: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .page-hero { padding: 7rem 2rem 3rem; }
}
