/* ============================================
   حلول التصنيف لخدمات الأعمال
   Classification Solutions for Business Services
   Brand: Deep Teal-Navy + Mint accent (matched to logo)
   ============================================ */

:root {
  --navy-deep: #1F4A6B;
  --navy-soft: #2E6189;
  --mint: #7FB7AE;
  --mint-soft: #C9E4DE;
  --gold: #7FB7AE; /* alias used by old class names */

  --bg: #F4F8FA;
  --bg-2: #E8F1F3;
  --card: #FFFFFF;
  --text: #1F4A6B;
  --text-muted: #5A7689;
  --border: #D5E2E8;
  --white: #FFFFFF;

  --shadow-elegant: 0 20px 60px -20px rgba(31, 74, 107, 0.25);
  --shadow-mint: 0 10px 30px -10px rgba(127, 183, 174, 0.45);

  --gradient-hero: linear-gradient(135deg, rgba(31, 74, 107, 0.88), rgba(46, 97, 137, 0.72) 55%, rgba(127, 183, 174, 0.55));
  --gradient-mint: linear-gradient(135deg, #7FB7AE, #5A9C92);
  --gradient-navy: linear-gradient(160deg, #2E6189, #1F4A6B);

  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { direction: rtl; scroll-behavior: smooth; }
body {
  font-family: "Tajawal", "Cairo", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: 3px; color: var(--mint); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 900;
  color: var(--navy-deep); line-height: 1.2;
}
.section-title .accent { color: var(--mint); }
.section-subtitle {
  font-size: 17px; color: var(--text-muted); margin-top: 14px;
}
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }

/* ============= NAVBAR ============= */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(31, 74, 107, 0.4);
  backdrop-filter: blur(8px);
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(31, 74, 107, 0.96);
  box-shadow: var(--shadow-elegant);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 16px;
}
.nav-logo {
  background: rgba(255, 255, 255, 0.96);
  padding: 6px 12px; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: none; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--mint); }
.nav-cta {
  display: none; align-items: center; gap: 14px;
}
.nav-phone {
  font-size: 13px; color: rgba(255, 255, 255, 0.85);
  display: flex; align-items: center; gap: 6px;
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gradient-mint); color: var(--navy-deep);
  font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 10px;
  box-shadow: var(--shadow-mint);
  transition: filter 0.2s, transform 0.2s;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

.burger {
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px;
  color: white; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.burger:hover { background: rgba(255, 255, 255, 0.1); }
.burger svg { width: 22px; height: 22px; }

.mobile-menu {
  background: rgba(31, 74, 107, 0.98); backdrop-filter: blur(8px);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.mobile-menu.open { max-height: 500px; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 8px 16px 24px; gap: 4px; }
.mobile-menu a {
  padding: 12px 14px; border-radius: 8px; color: rgba(255, 255, 255, 0.9);
  font-size: 16px; font-weight: 500; transition: background 0.2s, color 0.2s;
}
.mobile-menu a:hover { background: rgba(255, 255, 255, 0.1); color: var(--mint); }
.mobile-menu .btn-primary { margin-top: 12px; padding: 14px; }

@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: flex; }
  .burger { display: none; }
}

/* ============= HERO ============= */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0; background: var(--gradient-hero);
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  color: white;
}
.hero-tag {
  display: inline-block; align-self: flex-start;
  background: rgba(127, 183, 174, 0.2); color: var(--mint-soft);
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(127, 183, 174, 0.4);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(32px, 6vw, 64px); font-weight: 900;
  line-height: 1.1; max-width: 800px;
}
.hero-desc {
  font-size: clamp(15px, 1.6vw, 19px); color: rgba(255, 255, 255, 0.85);
  max-width: 640px; margin-top: 20px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.4); color: white;
  padding: 12px 24px; border-radius: 10px;
  font-weight: 600; font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--mint); }

.hero-dots {
  position: absolute; bottom: 32px; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: center; gap: 10px;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.4); transition: all 0.3s;
}
.hero-dot.active { background: var(--mint); width: 32px; }

/* ============= ABOUT ============= */
.about { background: var(--card); }
.about-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
  align-items: center;
}
.about-img {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-elegant); aspect-ratio: 4/3;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; color: var(--navy-deep); }
.about-text h2 .accent { color: var(--mint); }
.about-text p { color: var(--text-muted); margin-top: 18px; font-size: 16px; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 32px;
}
.stat {
  background: var(--bg-2); border-radius: var(--radius);
  padding: 20px 16px; text-align: center;
  border: 1px solid var(--border);
}
.stat-num { font-size: clamp(24px, 3vw, 36px); font-weight: 900; color: var(--mint); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

/* ============= SERVICES ============= */
.services { background: var(--bg); }
.services-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
.service-card {
  background: var(--card); border-radius: var(--radius);
  padding: 28px; border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elegant);
  border-color: var(--mint);
}
.service-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--gradient-mint); color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; box-shadow: var(--shadow-mint);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 19px; font-weight: 800; color: var(--navy-deep); }
.service-card p { color: var(--text-muted); font-size: 14px; margin-top: 10px; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--mint); font-weight: 700; font-size: 14px; margin-top: 16px;
}
.service-link:hover { color: var(--navy-deep); }

@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============= WHY US ============= */
.why { background: var(--card); }
.why-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
.why-card {
  text-align: center; padding: 28px 20px;
  border-radius: var(--radius); background: var(--bg-2);
  border: 1px solid var(--border);
  transition: transform 0.3s;
}
.why-card:hover { transform: translateY(-4px); }
.why-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 14px; background: var(--gradient-navy); color: var(--mint-soft);
  display: flex; align-items: center; justify-content: center;
}
.why-icon svg { width: 30px; height: 30px; }
.why-card h4 { font-size: 17px; font-weight: 800; color: var(--navy-deep); }
.why-card p { color: var(--text-muted); font-size: 14px; margin-top: 8px; }

@media (min-width: 600px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============= TESTIMONIALS ============= */
.testimonials { background: var(--bg); }
.testi-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
.testi-card {
  background: var(--card); border-radius: var(--radius);
  padding: 28px; border: 1px solid var(--border);
  position: relative;
}
.quote-mark {
  font-size: 60px; line-height: 1; color: var(--mint);
  position: absolute; top: 12px; left: 24px; opacity: 0.4;
  font-family: Georgia, serif;
}
.testi-text { color: var(--text); font-size: 15px; margin-bottom: 20px; padding-top: 8px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--gradient-navy); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.testi-name { font-weight: 700; color: var(--navy-deep); font-size: 15px; }
.testi-role { font-size: 12px; color: var(--text-muted); }

@media (min-width: 700px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============= CONTACT ============= */
.contact { background: var(--bg-2); }
.contact-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
.contact-form {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-elegant);
}
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
.form-group label {
  display: block; font-weight: 700; color: var(--navy-deep);
  font-size: 14px; margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px; font-size: 14px;
  color: var(--text); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(127, 183, 174, 0.2);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-error { color: #C0392B; font-size: 12px; margin-top: 4px; }

.contact-info {
  background: var(--gradient-navy); color: white;
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-elegant);
}
.contact-info h3 { font-size: 22px; font-weight: 800; }
.contact-info > p { color: rgba(255, 255, 255, 0.7); font-size: 14px; margin-top: 6px; }
.contact-list { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(127, 183, 174, 0.2); color: var(--mint);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.contact-value { font-weight: 700; font-size: 15px; color: white; }
.contact-value:hover { color: var(--mint); }

.socials { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.socials-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6); text-transform: uppercase; margin-bottom: 14px;
}
.social-list { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px; padding: 8px 12px; font-size: 13px;
  color: white; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.social-link:hover { background: rgba(127, 183, 174, 0.15); border-color: var(--mint); color: var(--mint); }
.social-link svg { width: 16px; height: 16px; }

@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: 3fr 2fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* ============= FOOTER ============= */
.footer { background: var(--navy-deep); color: white; padding-top: 60px; }
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
}
.footer-logo {
  background: white; padding: 8px 14px; border-radius: 10px;
  display: inline-block; margin-bottom: 18px;
}
.footer-logo img { height: 48px; width: auto; }
.footer-about p { color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.footer h4 { font-size: 15px; font-weight: 800; color: var(--mint); margin-bottom: 18px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a, .footer ul li { font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.footer ul a:hover { color: var(--mint); }
.footer-contact-list li { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact-list svg { width: 16px; height: 16px; color: var(--mint); flex-shrink: 0; margin-top: 4px; }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-social {
  width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.8); transition: all 0.2s;
}
.footer-social:hover { background: rgba(127, 183, 174, 0.15); border-color: var(--mint); color: var(--mint); }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0; text-align: center;
  color: rgba(255, 255, 255, 0.6); font-size: 12px;
}
.footer-bottom .container {
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}

@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) { .footer-bottom .container { flex-direction: row; justify-content: space-between; } }

/* ============= REVEAL ANIMATION ============= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* WhatsApp floating button */
.wa-float {
  position: fixed; bottom: 22px; left: 22px; z-index: 40;
  width: 56px; height: 56px; border-radius: 999px;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
