/* ============================================
   Components - Cards, Modals, Sliders, Lightbox
   ============================================ */

/* --- Material Chip (Hero Selector) --- */
.material-chip {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: var(--color-text-inverse);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  white-space: nowrap;
}

.material-chip:hover,
.material-chip.is-active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.material-chip__swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Service Card --- */
.service-card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-2xl);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
}

.service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-lg);
  color: var(--color-accent);
}

.service-card__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-sm);
}

.service-card__desc {
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-lg);
}

.service-card__list {
  text-align: start;
  padding: var(--sp-md) 0;
  border-top: 1px solid var(--color-border);
}

.service-card__list li {
  padding: var(--sp-sm) 0;
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.service-card__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.service-card__toggle {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
  letter-spacing: var(--ls-wide);
  padding: var(--sp-sm) var(--sp-md);
  transition: color var(--duration-fast);
}

.service-card__toggle:hover {
  color: var(--color-accent-hover);
}

/* --- Material Card --- */
.material-card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.material-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.material-card__visual {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto var(--sp-md);
  border: 2px solid var(--color-border);
  transition: border-color var(--duration-fast);
}

.material-card:hover .material-card__visual {
  border-color: var(--color-accent);
}

.material-card__name {
  font-size: var(--fs-base);
  margin-bottom: var(--sp-xs);
}

.material-card__info {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
}

/* --- Before/After Slider --- */
.before-after {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  cursor: ew-resize;
  user-select: none;
}

.before-after__img {
  position: absolute;
  inset: 0;
}

.before-after__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.before-after__placeholder--engraved {
  background-blend-mode: overlay;
}

.before-after__placeholder--engraved::after {
  content: '';
  position: absolute;
  inset: 20%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
}

.before-after__after {
  clip-path: inset(0 50% 0 0);
}

.before-after__slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--color-bg-primary);
  z-index: 2;
  transform: translateX(-50%);
}

.before-after__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--color-bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--color-accent);
  cursor: ew-resize;
}

/* --- Calligraphy Card --- */
.calligraphy-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.calligraphy-card:hover {
  border-color: var(--color-accent);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-4px);
}

.calligraphy-card__preview {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-lg);
}

.calligraphy-card__arabic {
  font-size: 2rem;
  color: var(--color-accent);
  direction: rtl;
}

.calligraphy-card__name {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-xs);
}

.calligraphy-card__ar {
  font-family: var(--font-arabic);
  color: var(--color-accent);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-sm);
  direction: rtl;
}

.calligraphy-card__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

/* --- Process Step --- */
.process-step {
  text-align: center;
  position: relative;
  flex: 1;
}

.process-step__number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-md);
}

.process-step__icon {
  color: var(--color-accent);
  margin-bottom: var(--sp-md);
  display: flex;
  justify-content: center;
}

.process-step__title {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-sm);
}

.process-step__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 240px;
  margin-inline: auto;
}

.process-step__connector {
  width: 60px;
  height: 2px;
  background: var(--color-border);
  align-self: center;
  margin-top: -20px;
  flex-shrink: 0;
}

/* --- Pricing Card --- */
.pricing-card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-2xl);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-bg-dark);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card__name {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-lg);
}

.pricing-card__price {
  margin-bottom: var(--sp-xl);
}

.pricing-card__currency {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  vertical-align: top;
}

.pricing-card__amount {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  line-height: 1;
}

.pricing-card__amount--text {
  font-size: var(--fs-xl);
}

.pricing-card__from {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--sp-xs);
}

.pricing-card__features {
  flex: 1;
  margin-bottom: var(--sp-xl);
}

.pricing-card__features li {
  padding: var(--sp-sm) 0;
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

.pricing-card__features li:last-child {
  border-bottom: none;
}

/* --- Stats --- */
.stats {
  display: flex;
  justify-content: center;
  gap: var(--sp-3xl);
  padding: var(--sp-3xl) 0;
  margin-bottom: var(--sp-3xl);
  border-bottom: 1px solid var(--color-border);
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  line-height: 1;
}

.stat__suffix {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
}

.stat__label {
  display: block;
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  margin-top: var(--sp-sm);
}

/* --- Testimonials --- */
.testimonials__carousel {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
  position: relative;
}

.testimonial {
  display: none;
}

.testimonial.is-active {
  display: block;
}

.testimonial__text {
  font-size: var(--fs-lg);
  font-style: italic;
  line-height: var(--lh-relaxed);
  color: var(--color-text-primary);
  margin-bottom: var(--sp-xl);
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.testimonial__name {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
}

.testimonial__title {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-xl);
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background var(--duration-fast);
  padding: 0;
}

.testimonials__dot.is-active {
  background: var(--color-accent);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-sticky);
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 1.5rem;
}
