/* ===== مصنع الريان - Shared Styles ===== */
:root {
  --brand-orange: #f97316;
  --brand-darkorange: #ea580c;
  --brand-navy: #0f172a;
  --brand-dark: #1e293b;
  --brand-gold: #eab308;
  --brand-graybg: #f8fafc;
}

body {
  font-family: 'Cairo', sans-serif;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
}

.active-tab {
  color: #f97316 !important;
  border-bottom: 3px solid #f97316;
  font-weight: 700;
}

.pulse-btn {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
  70% { transform: scale(1.03); box-shadow: 0 0 0 12px rgba(249, 115, 22, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

/* Smooth focus for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

/* Lazy image fade-in */
img.lazyload {
  opacity: 0;
  transition: opacity 0.4s ease;
}
img.lazyload.loaded {
  opacity: 1;
}

/* ===== Scroll Animations ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.scroll-animate:nth-child(3) { transition-delay: 0.3s; }
.scroll-animate:nth-child(4) { transition-delay: 0.4s; }
.scroll-animate:nth-child(5) { transition-delay: 0.5s; }
.scroll-animate:nth-child(6) { transition-delay: 0.6s; }

/* ===== Back to Top Button ===== */
#back-to-top {
  position: fixed;
  bottom: 90px;
  left: 24px;
  width: 48px;
  height: 48px;
  background: var(--brand-navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 49;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: var(--brand-orange);
  transform: translateY(-3px);
}

/* ===== FAQ Accordion ===== */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--brand-orange);
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: white;
  border: none;
  text-align: right;
  font-weight: 700;
  font-size: 16px;
  color: var(--brand-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--brand-orange);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: #f8fafc;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 16px 20px;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.testimonial-stars {
  color: #fbbf24;
  margin-bottom: 12px;
}

/* ===== How It Works Steps ===== */
.step-card {
  text-align: center;
  padding: 24px;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-darkorange));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* ===== Partner Logos ===== */
.partner-logo {
  background: white;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  min-height: 80px;
}

.partner-logo:hover {
  border-color: var(--brand-orange);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ===== Lightbox Modal ===== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  max-width: 600px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: white;
  color: var(--brand-navy);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: var(--brand-orange);
  color: white;
  transform: scale(1.1);
}

.gallery-item {
  cursor: pointer;
}

.gallery-item img {
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}
