/* ============================================
   MAAL Firm - Professional Audit & Advisory
   RTL Arabic Website Stylesheet
   ============================================ */

:root {
  --primary: #1a365d;
  --primary-dark: #0f2440;
  --primary-light: #2c5282;
  --accent: #c9a227;
  --accent-hover: #b8941f;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Naskh Arabic', 'Poppins', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 55px;
  width: auto;
  border-radius: var(--radius);
}

.logo-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.logo-text span {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.lang-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.lang-btn:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.92) 0%, rgba(15, 36, 64, 0.85) 100%);
  z-index: -1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  width: 100%;
}

.hero-content {
  max-width: 700px;
  color: white;
  text-align: right;
}

.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid var(--accent);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(5px);
}

.hero-content h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero-content h2 span {
  color: var(--accent);
  font-family: 'Poppins', sans-serif;
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  line-height: 1.9;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(201, 162, 39, 0.3);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  border-color: white;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--primary);
  padding: 3rem 2rem;
  position: relative;
  z-index: 10;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */
.section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

.line {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-img-box {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.about-img-box img {
  max-width: 200px;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.about-img-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  color: var(--primary);
}

.about-img-box p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 1.2rem 1.8rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.experience-badge h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
}

.experience-badge p {
  font-size: 0.85rem;
  font-weight: 600;
}

.about-content h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1.2rem;
  color: var(--text);
  line-height: 1.9;
  text-align: justify;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-right: 3px solid var(--accent);
}

.feature-item span:first-child {
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  background: var(--bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: var(--accent);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.en-title {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-card .desc {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ============================================
   MEMBERSHIPS
   ============================================ */
.memberships-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.membership-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: white;
  padding: 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.membership-card:hover {
  transform: translateX(-5px);
  border-right-color: var(--accent);
  border-right-width: 4px;
}

.membership-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.membership-card h4 {
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.membership-card p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-card {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.team-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 3rem;
  text-align: center;
}

.avatar {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.team-header h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.team-header p {
  opacity: 0.9;
  font-size: 1.05rem;
}

.team-body {
  padding: 2.5rem 3rem;
}

.team-body h4 {
  color: var(--primary);
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.team-body ul {
  list-style: none;
}

.team-body li {
  padding: 0.7rem 0;
  padding-right: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.team-body li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--accent);
  font-weight: bold;
}

/* ============================================
   SECTORS
   ============================================ */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.sector-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.sector-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.sector-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.sector-card h4 {
  color: var(--primary);
  font-size: 1.05rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  background: linear-gradient(135deg, var(--bg-alt) 0%, white 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info, .contact-box {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-info h3, .contact-box h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--accent);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item h4 {
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.contact-item p, .info-row p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.info-row {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row h4 {
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.info-row a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.info-row a:hover {
  color: var(--accent);
}

.whatsapp-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.whatsapp-badge {
  background: #25d366;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 2rem 1.5rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.footer-brand p {
  line-height: 1.9;
  font-size: 0.95rem;
}

.footer-links h4 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

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

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-right: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

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

  .stat-item h4 {
    font-size: 2rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 1.6rem;
  }

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

  .team-header, .team-body {
    padding: 2rem 1.5rem;
  }
}
