/* Section Title Component */
.section-title {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s var(--easing-luxury), transform 1.2s var(--easing-luxury);
}

.section-title.center {
  align-items: center;
  text-align: center;
}

.section-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Base Luxury Scroll Reveals */
.fade-up-luxury {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s var(--easing-luxury), transform 1.2s var(--easing-luxury);
}

.fade-up-luxury.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title .title {
  color: var(--color-text-headings);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-title .subtitle {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-family: var(--font-ibm-plex-sans-arabic);
  max-width: 600px;
  line-height: 1.8;
}

.section-title .divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.section-title .dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-gold-luxury);
  border-radius: 50%;
  animation: ornament-float 6s infinite ease-in-out;
}

.section-title .arch {
  width: 24px;
  height: 12px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border: 2px solid var(--color-gold-luxury);
  border-bottom: none;
  animation: ornament-float 8s infinite ease-in-out reverse;
}

@keyframes ornament-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.05); }
}

/* Floating WhatsApp Component */
.whatsapp-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all var(--transition-slow);
  cursor: pointer;
  animation: wa-pulse 2s infinite var(--easing-luxury);
}

[dir="ltr"] .whatsapp-floating {
  right: auto;
  left: 24px;
}

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); transform: scale(1); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); transform: scale(1.05); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); transform: scale(1); }
}

.whatsapp-floating:hover {
  transform: scale(1.05) translateY(-2px);
  background-color: #1EBE5C;
}

.whatsapp-floating:active {
  transform: scale(0.95);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

@media (max-width: 768px) {
  .section-title .title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .section-title {
    margin-bottom: 28px;
    padding-inline: 4px;
  }

  .section-title .subtitle {
    font-size: 0.95rem;
  }

  .whatsapp-floating {
    width: 52px;
    height: 52px;
    right: 14px;
    bottom: 14px;
  }

  [dir="ltr"] .whatsapp-floating {
    right: auto;
    left: 14px;
  }

  .intro-lead {
    font-size: 1rem;
    padding-inline: 4px;
  }

  .btn-free-trial-float {
    font-size: 0.9rem;
    padding: 12px 14px 12px 18px;
    gap: 8px;
  }
}

/* Online Badge Component */
.badge-online {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(11, 107, 53, 0.1);
  border: 1px solid var(--color-primary-dark);
  color: var(--color-primary-dark);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-family: var(--font-ibm-plex-sans-arabic);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(11, 107, 53, 0.05);
  margin-bottom: 16px;
  width: fit-content;
  max-width: 100%;
}
.badge-online.gold {
  background: rgba(200, 166, 0, 0.1);
  border-color: var(--color-gold-luxury);
  color: var(--color-gold-luxury);
}
.badge-online.white {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}
.badge-online .pulsing-dot {
  width: 8px;
  height: 8px;
  background-color: currentColor;
  border-radius: 50%;
  animation: pulse-dot 2.5s infinite var(--easing-luxury);
}

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 0 0 currentColor; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 0 6px transparent; }
  100% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 0 0 transparent; }
}

/* Shared visual identity helpers */
.media-cover {
  width: 100%;

  object-fit: cover;
  display: block;
}

.muted-dot {
  opacity: 0.5;
}

.center-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.intro-lead {
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  line-height: 1.9;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0 auto 40px;
  max-width: 900px;
}

.section-cta {
  padding: clamp(64px, 8vw, 120px) 24px;
  background-color: var(--color-base-paper);
  text-align: center;
}

.section-cta-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-family: var(--font-alexandria);
  color: var(--color-primary-dark);
  margin-bottom: 32px;
}

.section-cta-desc {
  max-width: 680px;
  margin: 0 auto 48px;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.btn-facebook-global {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid rgba(24, 119, 242, 0.35);
  color: #1877F2;
  background-color: transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition-normal);
}

/* ================== Facebook Button Overrides ================== */
.btn-facebook-global:hover {
  color: #fff;
  background-color: #1877F2;
  border-color: #1877F2;
  transform: translateY(-2px);
}

.btn-facebook-global.solid {
  color: #fff;
  border-color: transparent;
  background-color: #1877F2;
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.25);
}

.btn-facebook-global.full-width {
  width: 100%;
}

@media (max-width: 479px) {
  .badge-online {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
    padding-inline: 14px;
  }
}

/* ================== Free Trial Floating Button & Modal ================== */

/* Floating Button */
.btn-free-trial-float {
  position: fixed;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--color-gold-luxury), #FFE066);
  color: var(--color-primary-dark);
  padding: 16px 20px 16px 24px;
  border-radius: 0 30px 30px 0;
  font-family: var(--font-alexandria);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 4px 8px 24px rgba(200, 166, 0, 0.4);
  z-index: 99;
  cursor: pointer;
  border: 2px solid white;
  border-left: none;
  transition: all 0.3s var(--easing-luxury);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: pulse-gold 2s infinite;
}

.btn-free-trial-float:hover {
  transform: translateY(-50%) translateX(10px);
  box-shadow: 8px 12px 30px rgba(200, 166, 0, 0.6);
  padding-left: 30px;
}

@keyframes pulse-gold {
  0% { box-shadow: 4px 0 0 0 rgba(200, 166, 0, 0.7); }
  70% { box-shadow: 4px 0 0 15px rgba(200, 166, 0, 0); }
  100% { box-shadow: 4px 0 0 0 rgba(200, 166, 0, 0); }
}

/* Modal Overlay */
.free-trial-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 107, 53, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--easing-luxury);
  padding: 20px;
}

.free-trial-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Content Box */
.free-trial-modal {
  background: white;
  width: 100%;
  max-width: 900px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  transform: translateY(40px) scale(0.95);
  transition: all 0.5s var(--easing-luxury);
  position: relative;
}

.free-trial-modal-overlay.active .free-trial-modal {
  transform: translateY(0) scale(1);
}

/* Modal Image Side */
.ft-image-side {
  flex: 1;
  background: var(--color-surface);
  position: relative;
  display: none;
}

.ft-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Modal Form Side */
.ft-form-side {
  flex: 1;
  padding: 40px;
  position: relative;
}

.ft-close-btn {
  position: absolute;
  top: 20px;
  left: 20px; /* Left because RTL */
  z-index: 10;
  background: rgba(11, 107, 53, 0.1);
  color: var(--color-primary-dark);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ft-close-btn:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: rotate(90deg);
}

.ft-title {
  color: var(--color-primary-dark);
  font-family: var(--font-alexandria);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.ft-desc {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Form Styles */
.ft-form-group {
  margin-bottom: 16px;
}

.ft-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #F9FAFB;
}

.ft-input:focus {
  outline: none;
  border-color: var(--color-gold-luxury);
  background: white;
  box-shadow: 0 0 0 4px rgba(200, 166, 0, 0.1);
}

.ft-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230b6b35'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  background-size: 20px;
}

textarea.ft-input {
  resize: vertical;
  min-height: 100px;
}

.ft-submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--color-primary-dark);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: var(--font-alexandria);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.ft-submit-btn:hover {
  background: var(--color-primary-darker);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 107, 53, 0.3);
}

@media (min-width: 768px) {
  .ft-image-side {
    display: block;
  }
}

@media (max-width: 767px) {
  .ft-form-side {
    padding: 30px 20px;
  }
  .btn-free-trial-float {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}

/* ================== Chatbot Widget ================== */
.chatbot-widget {
  position: fixed;
  bottom: 24px;
  left: 16px; /* Far left as requested */
  z-index: 9998;
  font-family: var(--font-ibm-plex-sans-arabic);
}

.chatbot-widget * {
  box-sizing: border-box;
}

[dir="ltr"] .chatbot-widget {
  left: auto;
  right: 16px;
}

.chatbot-btn {
  width: 60px;
  height: 60px;
  background: var(--color-primary-dark);
  color: var(--color-gold-luxury);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(11, 107, 53, 0.4);
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s var(--easing-luxury);
  border: 2px solid var(--color-gold-luxury);
  position: relative;
  z-index: 2;
}

.chatbot-btn:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 15px 35px rgba(11, 107, 53, 0.5);
}

.chatbot-btn .chat-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.chatbot-btn.open .chat-icon {
  transform: rotate(180deg) scale(0);
  opacity: 0;
}

.chatbot-btn .close-icon {
  width: 28px;
  height: 28px;
  position: absolute;
  transform: rotate(-180deg) scale(0);
  opacity: 0;
  transition: transform 0.3s ease;
}

.chatbot-btn.open .close-icon {
  transform: rotate(0) scale(1);
  opacity: 1;
}

.chatbot-panel {
  position: absolute;
  bottom: 80px; /* Above the button */
  left: 0;
  width: 360px;
  height: 500px;
  max-height: calc(100vh - 120px);
  background: var(--color-base-paper);
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  visibility: hidden;
  transition: all 0.4s var(--easing-luxury);
  transform-origin: bottom left;
  border: 1px solid rgba(0,0,0,0.05);
}

[dir="ltr"] .chatbot-panel {
  left: auto;
  right: 0;
  transform-origin: bottom right;
}

.chatbot-panel.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.chatbot-header {
  background: #0f172a; /* Navy Blue for Luxury Contrast */
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.chatbot-header .bot-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-gold-luxury), #FFE066);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
}

.chatbot-header .bot-info h4 {
  font-family: var(--font-alexandria);
  font-size: 1.15rem;
  margin: 0 0 2px 0;
  color: white;
}

.chatbot-header .bot-info p {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-gold-luxury);
}

.chatbot-header .status-dot {
  width: 8px;
  height: 8px;
  background: #25D366;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(37, 211, 102, 0.6);
}

.chatbot-messages {
  flex: 1;
  padding: 24px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--color-base-paper);
}

.chat-msg {
  max-width: 85%;
  padding: 14px 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  animation: fade-in-up 0.3s ease;
  word-wrap: break-word;
}

.chat-msg.bot {
  background: white;
  color: var(--color-text-primary);
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  align-self: flex-start;
  border: 1px solid rgba(0,0,0,0.03);
}

[dir="ltr"] .chat-msg.bot {
  border-radius: 16px 16px 4px 16px;
}

.chat-msg.user {
  background: var(--color-primary-dark);
  color: white;
  border-radius: 16px 16px 4px 16px;
  align-self: flex-end;
  box-shadow: 0 4px 15px rgba(11, 107, 53, 0.2);
}

[dir="ltr"] .chat-msg.user {
  border-radius: 16px 16px 16px 4px;
}

.chatbot-input-area {
  padding: 16px 20px;
  background: white;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  gap: 12px;
  align-items: center;
}

.chatbot-input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  font-family: inherit;
  font-size: 1rem;
  background: #f8fafc;
  transition: all 0.3s;
  min-width: 0; /* Prevent flex overflow */
}

.chatbot-input:focus {
  outline: none;
  border-color: var(--color-gold-luxury);
  background: white;
  box-shadow: 0 0 0 3px rgba(200, 166, 0, 0.1);
}

.chatbot-send-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary-dark);
  color: var(--color-gold-luxury);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.chatbot-send-btn:hover {
  background: #0f172a;
  transform: scale(1.05);
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.quick-reply-btn {
  padding: 10px 16px;
  background: white;
  color: var(--color-primary-dark);
  border: 1px solid var(--color-gold-luxury);
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.quick-reply-btn:hover {
  background: rgba(200, 166, 0, 0.1);
  transform: translateY(-1px);
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .chatbot-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    transform-origin: center;
  }
}

