/* ===================================
   Main CSS - Lawyer Website
   مكتب المحامي عبدالله بن صديق فلاته
   =================================== */

/* Import Section Background System */
@import url('section-background.css');

/* CSS Variables - Color Palette */
:root {
  /* Primary Colors */
  --navy-blue: #0A0F3C;
  --gold-start: #C8A041;
  --gold-end: #E8C46A;
  --gold-dark: #C8A041;
  --gold-light: #E8C46A;
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --primary-text: #0A0F3C;

  /* Gradients */
  --gold-gradient: linear-gradient(90deg, #C8A041, #E8C46A);

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(10, 15, 60, 0.1);
  --shadow-md: 0 4px 8px rgba(10, 15, 60, 0.15);
  --shadow-lg: 0 8px 16px rgba(10, 15, 60, 0.2);
  --shadow-hover: 0 12px 24px rgba(200, 160, 65, 0.3);

  /* Transitions */
  --transition-fast: 200ms;
  --transition-normal: 300ms;
  --transition-slow: 400ms;
  --easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Tajawal', Arial, Helvetica, sans-serif;
}

body {
  font-family: 'Tajawal', Arial, Helvetica, sans-serif !important;
  font-size: 16px;
  line-height: 1.7;
  color: var(--primary-text);
  background-color: var(--white);
  font-weight: 400;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Tajawal', Arial, Helvetica, sans-serif !important;
  color: var(--navy-blue);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.01em;
}

/* العناوين الرئيسية الكبيرة - IBM Plex Arabic Bold */
h1 {
  font-size: 36px;
  font-weight: 900 !important;
  line-height: 1.3;
}

/* العناوين الفرعية - IBM Plex Arabic Bold */
h2 {
  font-size: 30px;
  font-weight: 800 !important;
  line-height: 1.4;
}

/* عناوين الأقسام - IBM Plex Arabic Bold */
h3 {
  font-size: 24px;
  font-weight: 800 !important;
  line-height: 1.4;
}

/* عناوين الكروت - IBM Plex Arabic Bold */
h4 {
  font-size: 20px;
  font-weight: 700 !important;
  line-height: 1.5;
}

h5 {
  font-size: 18px;
  font-weight: 700 !important;
  line-height: 1.5;
}

h6 {
  font-size: 16px;
  font-weight: 700 !important;
  line-height: 1.5;
}

/* الفقرات والنصوص - Tajawal Regular */
p {
  font-family: 'Tajawal', Arial, Helvetica, sans-serif !important;
  font-size: 16px;
  font-weight: 400 !important;
  line-height: 1.8;
  color: var(--primary-text);
  margin-bottom: var(--spacing-sm);
}

/* نصوص أكبر للمقدمات */
.lead,
.intro-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  color: #555;
}

/* نصوص صغيرة */
small,
.small-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

/* Links */
a {
  color: var(--navy-blue);
  text-decoration: none;
  transition: color var(--transition-fast) var(--easing);
}

a:hover {
  color: var(--gold-start);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Buttons */
.btn-primary {
  background: var(--gold-gradient);
  color: var(--white);
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal) var(--easing);
}

.btn-primary:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: var(--spacing-xs);
}

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.mt-5 {
  margin-top: var(--spacing-xl);
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

.mb-5 {
  margin-bottom: var(--spacing-xl);
}

.pt-1 {
  padding-top: var(--spacing-xs);
}

.pt-2 {
  padding-top: var(--spacing-sm);
}

.pt-3 {
  padding-top: var(--spacing-md);
}

.pt-4 {
  padding-top: var(--spacing-lg);
}

.pt-5 {
  padding-top: var(--spacing-xl);
}

.pb-1 {
  padding-bottom: var(--spacing-xs);
}

.pb-2 {
  padding-bottom: var(--spacing-sm);
}

.pb-3 {
  padding-bottom: var(--spacing-md);
}

.pb-4 {
  padding-bottom: var(--spacing-lg);
}

.pb-5 {
  padding-bottom: var(--spacing-xl);
}

/* Responsive Typography and Spacing */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  /* Adjust spacing for tablets */
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  h4 {
    font-size: 18px;
  }

  body {
    font-size: 14px;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  /* Adjust spacing for mobile */
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .mt-5 {
    margin-top: var(--spacing-lg) !important;
  }

  .mb-5 {
    margin-bottom: var(--spacing-lg) !important;
  }

  /* Button adjustments */
  .btn-primary,
  .btn-outline-primary {
    padding: 10px 24px;
    font-size: 14px;
  }
}

/* Extra Small Mobile (320px - 575px) */
@media (max-width: 575px) {
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 18px;
  }

  body {
    font-size: 13px;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  /* Further reduce spacing on very small screens */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* Language Toggle Button */
.language-toggle {
  background: var(--gold-gradient);
  color: var(--white);
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-normal) var(--easing);
  min-width: 60px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.language-toggle:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  opacity: 0.9;
}

.language-toggle:active {
  transform: translateY(0);
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Fade In Animation for Language Switch */
.fade-in {
  animation: fadeIn var(--transition-normal) var(--easing);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
/* Card styles removed - جميع تنسيقات الكروت محذوفة */


/* ===================================
   Custom Scrollbar Design
   =================================== */

/* For Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-track {
  background: #e8ecef;
  border-radius: 8px;
  margin: 4px 0;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--navy-blue) 0%, #1a2570 100%);
  border-radius: 8px;
  border: 3px solid #e8ecef;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold-start) 0%, var(--gold-light) 100%);
  border-color: #dce0e3;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3), 0 0 8px rgba(200, 160, 65, 0.4);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, var(--gold-dark) 0%, var(--gold-start) 100%);
}

* {
  scrollbar-width: auto;
  scrollbar-color: var(--navy-blue) #e8ecef;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
