/* home.css - Waznah Landing Page Styles (Clean, Fast & SEO-Optimized) */
:root {
  --primary: #0f172a;
  --primary-dark: #0f172a;
  --primary-green: #22c55e;
  --accent-blue: #3b82f6;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f1f5f9;
  --bg-gray: #f8fafc;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-gray);
  color: var(--text-main);
  margin: 0;
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.page {
  min-height: 100vh;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Animations === */
@keyframes softPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.badge-pulse {
  animation: softPulse 2s infinite;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(4px);
}

@keyframes modalSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* === Navigation === */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  flex-direction: column;
  gap: 5px;
  transition: 0.2s;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #0f172a;
  border-radius: 2px;
  transition: 0.3s;
}

.nav-links-wrapper {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* === Hero Section === */
.hero-section {
  position: relative;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.96)),
    url('hero-waznah.png');
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  padding: 65px 25px 75px 25px;
  color: white;
  text-align: center;
  margin-bottom: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.hero-title {
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-title span {
  color: var(--primary-green);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 660px;
  margin: 0 auto 28px auto;
  line-height: 1.7;
}

.hero-btn {
  padding: 15px 35px;
  border-radius: 99px;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.btn-glow {
  background: var(--primary-green);
  color: white;
  border: none;
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* === Brand Ticker === */
@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-ticker-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding: 14px 0;
  background: rgba(241, 245, 249, 0.5);
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  margin: 10px 0;
  direction: ltr;
}

.brand-ticker-track {
  display: inline-flex;
  gap: 60px;
  animation: scrollTicker 25s linear infinite;
}

.brand-ticker-item {
  font-weight: 900;
  color: #64748b;
  font-size: 15px;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === Bento Grid (Services) === */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.bento-item {
  background: white;
  border-radius: 20px;
  padding: 25px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 195px;
  text-decoration: none;
  color: inherit;
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.bento-wide {
  grid-column: span 2;
}

.bento-icon {
  font-size: 32px;
  background: #f1f5f9;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.bento-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: var(--primary-dark);
}

.bento-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

/* === Service Pricing Cards === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.07);
}

/* === Journey Steps === */
.journey-section {
  margin: 50px 0;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.step-card {
  background: white;
  padding: 28px 18px 22px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  position: relative;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.step-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-green);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 4px solid #f8fafc;
}

/* === Local SEO Hubs (الأحياء والماركات) === */
.seo-hubs-section {
  margin: 55px 0;
  background: white;
  padding: 35px 30px;
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  direction: rtl;
  text-align: right;
}

.seo-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.seo-hub-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.seo-hub-card:hover {
  background: #f0fdf4;
  border-color: #22c55e;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(34, 197, 94, 0.1);
}

.seo-hub-card h4 {
  margin: 0 0 3px 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}

.seo-hub-card span {
  font-size: 11.5px;
  color: #64748b;
  display: block;
}

/* === Reviews & Gallery Carousel === */
.reviews-section {
  padding: 45px 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  direction: rtl;
  text-align: center;
}

.reviews-carousel-container {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 15px 0;
}

.reviews-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px;
  scrollbar-width: none;
}

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

.review-slide-card {
  min-width: 310px;
  max-width: 350px;
  flex: 1 0 310px;
  background: white;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  text-align: right;
  scroll-snap-align: center;
  box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-slide-card:hover {
  transform: translateY(-4px);
  border-color: #facc15;
}

.review-stars {
  color: #fbbf24;
  font-size: 18px;
  margin-bottom: 12px;
  display: flex;
  gap: 3px;
}

.review-text-content {
  font-size: 14px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.review-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 100%);
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
}

.review-author-name {
  font-weight: bold;
  font-size: 13.5px;
  color: #0f172a;
}

.review-location-tag {
  font-size: 11.5px;
  color: #94a3b8;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.carousel-btn {
  background: white;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.04);
  transition: all 0.2s;
}

.carousel-btn:hover {
  background: var(--primary-green);
  color: white;
  border-color: var(--primary-green);
  transform: scale(1.06);
}

/* === FAQ Accordion === */
.faq-section {
  max-width: 850px;
  margin: 60px auto;
  padding: 0 10px;
  text-align: right;
  direction: rtl;
}

.faq-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 10px;
}

.faq-subtitle {
  font-size: 14px;
  color: #64748b;
  text-align: center;
  margin-bottom: 28px;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-question {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 22px;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
  border-top: 0 solid #f1f5f9;
}

.faq-item.active .faq-answer {
  max-height: 280px;
  padding: 16px 22px 22px;
  border-top-width: 1px;
}

.faq-icon {
  font-size: 20px;
  color: var(--primary-green);
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* === Floating Buttons === */
.phone-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #22c55e;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
  z-index: 999;
  cursor: pointer;
  text-decoration: none;
  animation: phonePulse 2s infinite;
}

@keyframes phonePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #25D366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* === Responsive Mobile === */
@media (max-width: 768px) {
  nav {
    position: sticky !important;
    top: 0;
    z-index: 999;
    background: rgba(248,250,252,0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(0,0,0,0.08);
    padding: 12px 16px !important;
    margin: 0 -16px;
    width: calc(100% + 32px);
  }
  .nav-mobile-toggle { display: flex; }
  .nav-links-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: white;
    padding: 14px 20px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-top: 1px solid #e2e8f0;
    z-index: 998;
  }
  .nav-links-wrapper.open { display: flex; }
  .nav-links-wrapper a, .nav-links-wrapper button {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .hero-section { padding: 45px 16px 55px !important; border-radius: 18px !important; }
  .hero-title { font-size: clamp(1.45rem, 5.5vw, 2.1rem) !important; }
  .hero-subtitle { font-size: 1rem !important; }
  .hero-btn { width: 100% !important; justify-content: center !important; padding: 14px 20px !important; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: auto; }

  .steps-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .step-card { padding: 20px 12px !important; }

  .pricing-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .pricing-card { padding: 14px 12px !important; gap: 10px !important; }

  .discount-banner-btns { flex-direction: column !important; width: 100% !important; }
  .discount-banner-btns a, .discount-banner-btns button {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .seo-hubs-section { padding: 24px 18px; }
  .seo-hub-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .faq-question { padding: 14px 16px; font-size: 14px; }
  section h2 { font-size: 22px !important; }
  section h3 { font-size: 18px !important; }
  .shell { padding: 0 16px !important; }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr !important; }
  .pricing-grid { grid-template-columns: 1fr !important; }
  .seo-hub-grid { grid-template-columns: 1fr; }
}
