/* ================================
   Custom Styles - Neamat Yasmine Sarl
   ================================ */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: #d97706;
  color: white;
  border-radius: 0 0 0.5rem 0.5rem;
  z-index: 100;
  font-size: 0.875rem;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Nav links */
.nav-link {
  position: relative;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f59e0b;
  transition: width 0.2s;
}
.nav-link:hover::after {
  width: 100%;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  position: relative;
}
.lang-switcher:hover {
  border-color: #f59e0b;
}
.lang-switcher .lang-fr {
  color: #6b7280;
  transition: color 0.2s;
}
.lang-switcher .lang-ar {
  color: #6b7280;
  transition: color 0.2s;
}
.lang-switcher .separator {
  color: #d1d5db;
  font-weight: 400;
}
.lang-switcher .active-indicator {
  position: absolute;
  bottom: -2px;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: #f59e0b;
  border-radius: 1px;
  transition: transform 0.3s ease;
}
.lang-switcher[data-active="ar"] .active-indicator {
  transform: translateX(0);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: white;
  color: #d97706;
  font-weight: 600;
  border-radius: 0.75rem;
  border: 2px solid #f59e0b;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-secondary:hover {
  background: #fffbeb;
  transform: translateY(-1px);
}

/* Section shared styles */
.section-tag {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: #fef3c7;
  color: #b45309;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

/* Service card */
.service-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  transition: all 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06), 0 4px 8px rgba(0, 0, 0, 0.04);
  border-color: #fde68a;
}

/* Product card */
.product-card {
  padding: 1rem;
  border-radius: 1rem;
  transition: all 0.3s;
  cursor: default;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
section {
  animation: fadeInUp 0.6s ease-out both;
}

/* RTL overrides */
html[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}
html[dir="rtl"] .lang-switcher .active-indicator {
  transform: translateX(0);
}
html[dir="rtl"] .service-card:hover {
  border-color: #fde68a;
}

/* Mobile menu animation */
#mobileMenu {
  transition: max-height 0.3s ease, opacity 0.2s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobileMenu.open {
  max-height: 300px;
  opacity: 1;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

/* Form input focus */
input:focus, textarea:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    color-scheme: light;
  }
}
