/* ==========================================================================
   Wesam Finance - Landing Page Stylesheet
   Theme: Royal Navy & Electric Cyan High-Contrast Compact
   Font: IBM Plex Sans Arabic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --primary: #1E40AF;
  --primary-light: #0284C7;
  --primary-glow: #38BDF8;
  --dark: #0F172A;
  --dark-surface: #1E293B;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --border-light: #CBD5E1;
  --transition: all 0.3s ease;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  position: relative;
  scroll-behavior: smooth;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  direction: rtl;
  color: var(--text-dark);
  background-color: #F1F5F9;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

.text-center { text-align: center; }
.text-cyan { color: var(--primary-glow) !important; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  text-align: center;
}

.section-title {
  font-size: 2.1rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 700;
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto 30px;
  font-weight: 400;
  text-align: center;
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-brand img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: #F8FAFC;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover { color: var(--primary-glow); }

.nav-cta {
  background: linear-gradient(135deg, #2563EB 0%, #0284C7 100%);
  color: #FFFFFF !important;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 700 !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: auto;
  padding-top: 105px;
  padding-bottom: 45px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
}

.hero-content { text-align: center; }

.hero-content .badge-lead {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7DD3FC;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.6rem;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #FFFFFF;
  text-align: center;
}

.hero-title span { color: #38BDF8; }

.hero-desc {
  font-size: 1.08rem;
  color: #E2E8F0;
  margin: 0 auto 24px;
  max-width: 600px;
  line-height: 1.7;
  text-align: center;
}

.hero-features-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-bottom: 28px;
  list-style: none;
}

.hero-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #F8FAFC;
  font-weight: 600;
}

.hero-features-list i { color: #38BDF8; }

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #2563EB 0%, #0284C7 100%);
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
  overflow: hidden;
  max-width: 100%;
}

.avatar-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 28px;
  padding: 6px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(37, 99, 235, 0.3));
  z-index: 2;
}

.avatar-img-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #0F172A;
}

.avatar-img-card img {
  width: 100%;
  height: 480px;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.avatar-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.avatar-caption h3 { font-size: 1.1rem; color: #FFFFFF; text-align: center; }
.avatar-caption p { font-size: 0.82rem; color: #7DD3FC; font-weight: 600; text-align: center; }

/* Floating Price & 3D Icons Stage */
.price-popup-stage {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.floating-3d-icons-stage {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 11;
  overflow: hidden;
}

.dynamic-price-card {
  position: absolute;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #38BDF8;
  padding: 6px 13px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: floatUpAndFade 4.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  white-space: nowrap;
}

.dynamic-price-card .p-tag { font-size: 0.72rem; color: #94A3B8; display: block; }
.dynamic-price-card .p-amount { font-size: 0.95rem; color: #4ADE80; font-weight: 700; direction: ltr; display: block; }

@keyframes floatUpAndFade {
  0% { opacity: 0; transform: translateY(40px) scale(0.85); }
  15% { opacity: 1; transform: translateY(0px) scale(1); }
  80% { opacity: 1; transform: translateY(-30px) scale(1); }
  100% { opacity: 0; transform: translateY(-50px) scale(0.9); }
}

.money-3d-icon {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0;
  animation: moneyIconFade 5s ease-in-out infinite;
}

@keyframes moneyIconFade {
  0% { opacity: 0; transform: translateY(20px) scale(0.7); }
  25% { opacity: 1; transform: translateY(-10px) scale(1.15); }
  75% { opacity: 1; transform: translateY(-30px) scale(1); }
  100% { opacity: 0; transform: translateY(-50px) scale(0.7); }
}

/* Services Section (DESKTOP: 3 COLUMNS) */
.services-section {
  padding: 55px 0;
  background: #F8FAFC;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 26px 22px;
  border: 1px solid #CBD5E1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: var(--transition);
  text-align: center;
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #E0F2FE;
  color: #0369A1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}

.service-title { font-size: 1.2rem; color: #0F172A; margin-bottom: 6px; font-weight: 700; text-align: center; }

.service-hebrew {
  display: inline-block;
  font-size: 0.88rem;
  color: #0369A1;
  font-weight: 700;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  padding: 2px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  direction: ltr;
}

.service-desc { color: #334155; font-size: 0.94rem; line-height: 1.6; text-align: center; }

/* ULTRA COMPACT FORM SECTION */
.form-section {
  padding: 50px 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.form-wrapper-modern {
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  max-width: 700px;
  margin: 0 auto;
}

.lead-form-modern .form-grid-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group-modern { margin-bottom: 0; }
.form-group-modern.full-width { grid-column: span 2; }

.input-icon-wrapper { position: relative; }

.input-icon-wrapper i {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #38BDF8;
  font-size: 1rem;
  pointer-events: none;
}

.input-icon-wrapper input,
.input-icon-wrapper select,
.input-icon-wrapper textarea {
  width: 100%;
  padding: 12px 42px 12px 16px;
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 10px;
  color: #FFFFFF;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 0.92rem;
  transition: var(--transition);
}

.input-icon-wrapper input::placeholder,
.input-icon-wrapper select,
.input-icon-wrapper textarea::placeholder {
  color: #94A3B8;
  font-size: 0.9rem;
}

.input-icon-wrapper input:focus,
.input-icon-wrapper select:focus,
.input-icon-wrapper textarea:focus {
  outline: none;
  border-color: #38BDF8;
  background: #0F172A;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.input-icon-wrapper select option {
  background: #0F172A;
  color: #FFFFFF;
}

.btn-submit-modern {
  width: 100%;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  background: linear-gradient(135deg, #2563EB 0%, #0284C7 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Marquee Section */
.gallery-section {
  padding: 55px 0;
  background: #F8FAFC;
  overflow: hidden;
  position: relative;
}

.marquee-stage-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  overflow: hidden;
  position: relative;
  direction: ltr;
}

.marquee-row-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}

.gallery-card-item {
  flex: 0 0 auto;
  height: 230px;
  margin: 0 8px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card-item img {
  height: 100%;
  width: auto;
  max-width: 420px;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  background: #0F172A;
}

/* Reviews Section */
.reviews-section {
  padding: 55px 0;
  background: #F1F5F9;
  position: relative;
  overflow: hidden;
}

.reviews-carousel-wrapper {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 45px;
}

.reviews-slider-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 2px;
}

.reviews-slider-track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 calc(25% - 14px);
  min-width: 270px;
  background: #FFFFFF;
  padding: 22px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  border: 1px solid #CBD5E1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.review-stars { color: #D97706; margin-bottom: 8px; font-size: 0.95rem; text-align: center; }
.review-text { font-size: 0.92rem; color: #1E293B; font-style: italic; margin-bottom: 14px; line-height: 1.65; text-align: center; }
.review-tag { display: inline-block; font-size: 0.8rem; color: #0369A1; background: #E0F2FE; padding: 4px 10px; border-radius: 20px; font-weight: 600; border: 1px solid #BAE6FD; margin: 0 auto; }

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3);
  z-index: 10;
}

.carousel-prev { right: 0px; }
.carousel-next { left: 0px; }

/* 9:16 Vertical Stories Videos Section */
.stories-video-section {
  padding: 55px 0;
  background: #FFFFFF;
  overflow: hidden;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.story-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0F172A;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.1);
  border: 1px solid #CBD5E1;
  aspect-ratio: 9 / 16;
  max-height: 480px;
}

.story-card iframe {
  width: 100%; height: 100%; border: 0; display: block;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px; left: 20px;
  width: 56px; height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
}

/* Footer (DESKTOP: PERFECT RIGHT ALIGNMENT) */
footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 45px 0 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: right;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
  align-items: start;
}

.footer-about img { height: 42px; margin-bottom: 14px; display: block; }
.footer-about p { text-align: right; line-height: 1.7; }

.footer-links h4, .footer-contact h4 {
  color: #FFFFFF;
  margin-bottom: 14px;
  font-size: 1.05rem;
  text-align: right;
}

.footer-links ul { list-style: none; text-align: right; }
.footer-links li { margin-bottom: 8px; text-align: right; }
.footer-links a { color: #CBD5E1; text-decoration: none; font-weight: 500; }

.footer-contact p { text-align: right; }

.copyright { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.88rem; }

/* PRO MOBILE STYLES (EXCLUSIVELY FOR SMARTPHONES) */
@media (max-width: 992px) {
  .navbar .container {
    position: relative;
    justify-content: flex-start;
  }

  .logo-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .logo-brand img {
    height: 40px;
  }

  .mobile-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: #0F172A;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    flex-direction: column;
    padding: 25px 20px;
    gap: 18px;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .hero-visual {
    order: -1;
    min-height: auto;
    width: 100%;
    margin-bottom: 0;
  }

  .avatar-wrapper {
    max-width: 100%;
    margin: 0 auto;
  }

  .avatar-img-card img {
    height: 480px;
  }

  .dynamic-price-card {
    padding: 4px 9px;
    font-size: 0.72rem;
  }

  .dynamic-price-card .p-amount {
    font-size: 0.85rem;
  }

  .hero-features-list {
    display: none !important;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.35;
    text-align: center;
  }

  .hero-desc {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  .btn-primary {
    width: auto;
    min-width: 220px;
    max-width: 88%;
    justify-content: center;
    padding: 10px 24px;
    font-size: 0.92rem;
  }

  .btn-secondary {
    width: auto;
    min-width: 200px;
    max-width: 88%;
    justify-content: center;
    padding: 10px 22px;
    font-size: 0.88rem;
  }

  .carousel-nav-btn {
    display: none !important;
  }

  .reviews-carousel-wrapper {
    padding: 0 10px;
    overflow: hidden;
  }

  .reviews-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 12px;
    padding: 6px 0;
  }

  .review-card {
    flex: 0 0 85vw;
    scroll-snap-align: center;
  }

  .lead-form-modern .form-grid-modern {
    grid-template-columns: 1fr;
  }

  .form-group-modern.full-width {
    grid-column: span 1;
  }

  /* SINGLE HORIZONTAL ROW CAROUSEL FOR MOBILE VIDEOS */
  .stories-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 15px;
    padding: 0 10px;
  }

  .stories-grid::-webkit-scrollbar {
    display: none;
  }

  .story-card {
    flex: 0 0 85vw;
    scroll-snap-align: center;
    max-height: 520px;
    border-radius: 24px;
  }

  /* ULTRA COMPACT MOBILE SERVICES LAYOUT */
  .services-section {
    padding: 35px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    padding: 14px 16px;
    border-radius: 14px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .service-header-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .service-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.05rem;
    margin: 0 !important;
    flex-shrink: 0;
  }

  .service-title {
    font-size: 1.02rem;
    margin-bottom: 0;
    text-align: right;
  }

  .service-hebrew {
    font-size: 0.78rem;
    padding: 1px 7px;
    margin-bottom: 0;
    border-radius: 4px;
  }

  .service-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    text-align: right;
    color: #475569;
  }

  /* HIDE FOOTER ABOUT PARAGRAPH AND QUICK LINKS ON MOBILE */
  .footer-about, .footer-links {
    display: none !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: center;
  }

  .footer-contact h4, .footer-contact p {
    text-align: center;
  }

  .footer-contact div {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 30px;
  }

  .avatar-wrapper {
    max-width: 100%;
  }

  .avatar-img-card img {
    height: 460px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .review-card {
    flex: 0 0 88vw;
  }

  .form-wrapper-modern {
    padding: 20px 16px;
  }
}
