.hero-bg {
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.moroccan-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230ea5e9' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.moroccan-border {
  border-bottom: 3px solid #f97316;
  border-bottom-style: double;
  padding-bottom: 10px;
  display: inline-block;
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.btn-pulse {
  animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
  0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.btn-hover {
  transition: all 0.3s ease;
}

.btn-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(14, 165, 233, 0.25);
}

.feature-icon,
.value-icon,
.contact-icon,
.module-icon,
.price-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.menu-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 50;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #374151;
  position: relative;
  transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #374151;
  left: 0;
  transition: all 0.3s ease;
}

.menu-icon::before { top: -6px; }
.menu-icon::after { bottom: -6px; }

.menu-button.active .menu-icon { background-color: transparent; }
.menu-button.active .menu-icon::before { transform: rotate(45deg); top: 0; }
.menu-button.active .menu-icon::after { transform: rotate(-45deg); bottom: 0; }

.mobile-menu {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  width: min(80vw, 400px);
  height: 100vh;
  height: 100dvh;
  background-color: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 40;
  overflow-y: auto;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.active {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
}

[dir="rtl"] .mobile-menu {
  transform: translate3d(-100%, 0, 0);
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

[dir="rtl"] .mobile-menu.active {
  transform: translate3d(0, 0, 0);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 30;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .mobile-menu,
  .menu-overlay {
    display: none !important;
  }
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

.testimonial-slider { overflow: hidden; position: relative; }
.testimonial-track { display: flex; transition: transform 0.5s ease; }
.testimonial-slide { min-width: 100%; padding: 0 1rem; box-sizing: border-box; }

@media (min-width: 768px) {
  .testimonial-slide { min-width: 50%; }
}

@media (min-width: 1024px) {
  .testimonial-slide { min-width: 33.333%; }
}

.toggle-label {
  position: relative;
  display: block;
  width: 48px;
  height: 24px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.toggle-label .toggle-switch {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

input[type="checkbox"].sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-input {
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
}

.form-input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.input-error { border-color: #ef4444 !important; }
.error-message { color: #ef4444; font-size: 0.875rem; margin-top: 0.25rem; display: none; }
.form-success { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.form-success.show { opacity: 1; transform: translateY(0); }

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
  margin: 3rem auto;
  max-width: 300px;
}

.floating-element { animation: float 6s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  z-index: 1000;
  background: #0ea5e9;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  text-underline-offset: 2px;
}

main a[href] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

main a[href].btn-hover,
main a[href][class*="bg-"] {
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}
