/* Stylesheet for AQUASTOP Landing Page */

:root {
  /* Brand Palette */
  --primary: #0B5ED7;
  --primary-hover: #094cb0;
  --primary-light: rgba(11, 94, 215, 0.1);
  --secondary: #00AEEF;
  --secondary-hover: #0096ce;
  --secondary-light: rgba(0, 174, 239, 0.1);
  --accent: #FFB000;
  --accent-hover: #e09b00;
  --accent-light: rgba(255, 176, 0, 0.1);
  
  /* Neutral Palette */
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-slate: #f1f5f9;
  --text-dark: #1e293b;
  --text-medium: #475569;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  
  /* Alert / Info */
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.1);
  --danger: #ef4444;
  
  /* Fonts & Radius */
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Shadow & Blur */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 20px -3px rgba(15, 23, 42, 0.05), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 32px -6px rgba(11, 94, 215, 0.08), 0 10px 20px -8px rgba(11, 94, 215, 0.04);
  --shadow-accent: 0 12px 24px -6px rgba(255, 176, 0, 0.3);
  --shadow-primary: 0 12px 24px -6px rgba(11, 94, 215, 0.3);
  --blur-glass: blur(12px);
  --border-glass: 1px solid rgba(255, 255, 255, 0.7);
  
  /* Timings */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
}

/* Common Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 12px;
  position: relative;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 48px auto;
}

@media (max-width: 768px) {
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 32px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.badge-orange {
  background-color: var(--accent-light);
  color: var(--accent-hover);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  width: auto;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--text-dark);
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-light);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--bg-white);
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* Animation Utilities for Scroll Triggering */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--blur-glass);
  border-bottom: var(--border-glass);
  padding: 0;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  transition: var(--transition);
}

header.scrolled .header-container {
  padding: 8px 24px;
}

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

.logo-container img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 480px) {
  .logo-container img {
    height: 40px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-cta .btn {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

@media (max-width: 480px) {
  .header-cta {
    display: none;
  }
}

/* Language Switcher Styling */
.lang-switcher {
  display: flex;
  align-items: center;
  background-color: var(--bg-slate);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: var(--blur-glass);
}

.lang-btn {
  background: none;
  border: none;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-light);
  border-radius: var(--radius-full);
  transition: var(--transition);
  font-family: var(--font-display);
}

.lang-btn:hover {
  color: var(--primary);
}

.lang-btn.active {
  background-color: var(--primary);
  color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.lang-separator {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 0 4px;
  display: none; /* Pill toggling looks cleaner without a separator line */
}

/* Hero Section */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  background: radial-gradient(circle at 80% 20%, rgba(0, 174, 239, 0.08) 0%, rgba(255, 255, 255, 0) 50%),
              radial-gradient(circle at 10% 70%, rgba(11, 94, 215, 0.05) 0%, rgba(255, 255, 255, 0) 60%),
              var(--bg-white);
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 130px; /* Shift down to accommodate the promo banner header on mobile */
    padding-bottom: 40px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.hero-category-eyebrow {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  line-height: 1.3;
}

.hero-main-heading {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

@media (max-width: 768px) {
  .hero-main-heading {
    font-size: 2.25rem;
  }
}

.hero-main-heading span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-medium);
  margin-bottom: 32px;
  max-width: 600px;
}

@media (max-width: 992px) {
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 24px;
  }
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
}

@media (max-width: 992px) {
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

.hero-trust {
  display: flex;
  gap: 24px;
}

@media (max-width: 992px) {
  .hero-trust {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-trust {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-medium);
}

.trust-item svg {
  color: var(--primary);
  width: 20px;
  height: 20px;
}

.hero-visual {
  position: relative;
  width: 100%;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: var(--transition);
}

.hero-visual:hover img {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-badge {
  position: absolute;
  background-color: var(--bg-white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(11, 94, 215, 0.1);
  animation: float 4s ease-in-out infinite;
}

.hero-badge-1 {
  bottom: 20px;
  left: -20px;
}

.hero-badge-2 {
  top: 20px;
  right: -10px;
  animation-delay: 2s;
}

@media (max-width: 768px) {
  .hero-badge {
    display: none;
  }
}

.hero-badge svg {
  color: #22c55e;
  width: 24px;
  height: 24px;
}

.hero-badge-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
}

.hero-badge-text strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-dark);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Trust Banner */
.trust-banner {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
}

.trust-banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .trust-banner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .trust-banner-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.trust-banner-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--bg-white);
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.trust-banner-card svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  flex-shrink: 0;
}

.trust-banner-card-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.trust-banner-card-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Problem Section */
.problems {
  background-color: var(--bg-white);
}

.problems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 992px) {
  .problems-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.problems-visual {
  position: relative;
}

.problems-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.problems-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.problem-card {
  display: flex;
  gap: 16px;
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--danger);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.problem-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.problem-card svg {
  color: var(--danger);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.problem-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--text-medium);
}

/* Solution Section */
.solution {
  background-color: var(--bg-light);
}

.solution-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 992px) {
  .solution-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .solution-grid > .solution-image-container {
    order: 2;
  }
}

.solution-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.solution-image-container img {
  border-radius: var(--radius-lg);
  max-width: 100%;
  box-shadow: var(--shadow-lg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 480px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.benefit-card {
  background-color: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.benefit-card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

.benefit-card-icon svg {
  width: 24px;
  height: 24px;
}

.benefit-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.benefit-card p {
  font-size: 0.875rem;
  color: var(--text-medium);
  line-height: 1.5;
}

/* How It Works Section */
.how-it-works {
  background-color: var(--bg-white);
}

.steps-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 992px) {
  .steps-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.step-item {
  display: flex;
  gap: 20px;
  background-color: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
  position: relative;
}

.step-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 44px;
  width: 2px;
  height: 24px;
  background-color: var(--border-color);
  z-index: 1;
}

.step-item:last-child::after {
  display: none;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--primary-light);
}

.step-info h3 {
  font-size: 1.125rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.step-info p {
  font-size: 0.95rem;
  color: var(--text-medium);
}

.steps-image-container img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

/* Applications Section */
.applications {
  background-color: var(--bg-light);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.app-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-light);
}

.app-card-icon {
  padding: 20px 20px 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-card-icon .icon-box {
  width: 40px;
  height: 40px;
  background-color: var(--secondary-light);
  color: var(--secondary-hover);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card-icon .icon-box svg {
  width: 22px;
  height: 22px;
}

.app-card-icon h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.app-card-desc {
  padding: 0 20px 20px 20px;
  font-size: 0.875rem;
  color: var(--text-medium);
}

/* Results Before/After Slider Section */
.results {
  background-color: var(--bg-white);
}

.slider-container-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.slider-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
  touch-action: pan-y;
  background-color: #e2e8f0;
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.slider-img.before {
  /* Underneath */
}

.slider-img.after {
  /* Overlay - clipped by JS width modification */
  width: 50%; /* JS changes this value */
  border-right: 3px solid var(--primary);
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%; /* JS changes this value */
  width: 4px;
  background-color: var(--primary);
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
}

.slider-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 0 6px rgba(11, 94, 215, 0.2);
  transition: transform 0.1s ease;
}

.slider-handle-button svg {
  width: 24px;
  height: 24px;
}

.slider-label {
  position: absolute;
  bottom: 20px;
  padding: 6px 14px;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: var(--blur-glass);
  color: var(--bg-white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 8;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slider-label.before-label {
  right: 20px;
}

.slider-label.after-label {
  left: 20px;
}

/* Statistics Grid below Slider */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
  }
}

.stat-card {
  background-color: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-display);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-medium);
}

/* Customer Testimonials Section */
.testimonials {
  background-color: var(--bg-light);
}

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

@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.testimonial-card {
  background-color: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stars {
  color: var(--accent);
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.stars svg {
  width: 18px;
  height: 18px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: 24px;
  font-style: italic;
  line-height: 1.6;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.user-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.user-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Product Options & Order Form Section */
.pricing-order {
  background-color: var(--bg-white);
  scroll-margin-top: 100px;
}

.pricing-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pricing-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.pricing-actions .btn {
  padding: 16px 48px;
  font-size: 1.125rem;
  box-shadow: var(--shadow-accent);
  width: 100%;
  max-width: 400px;
}


/* Packaging Selectors */
.pricing-selector {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pack-card {
  position: relative;
  background-color: var(--bg-white);
  border: 2px solid var(--border-color);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.pack-card:hover {
  border-color: var(--secondary);
  background-color: rgba(0, 174, 239, 0.02);
}

.pack-card.selected {
  border-color: var(--primary);
  background-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.pack-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pack-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background-color: var(--accent);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

.pack-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.pack-coverage {
  font-size: 0.875rem;
  color: var(--text-light);
}

.pack-use-case {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.pack-price-container {
  text-align: right;
}

.pack-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-display);
}

.pack-price-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
}

/* Order Form */
.order-form-container {
  background-color: var(--bg-light);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

@media (max-width: 480px) {
  .order-form-container {
    padding: 24px;
  }
}

.order-form-container h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  font-weight: 800;
}

.order-form-container p {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 8px;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  background-color: var(--bg-white);
  color: var(--text-dark);
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.price-summary {
  background-color: var(--bg-white);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px dashed var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-summary-label {
  font-weight: 600;
  color: var(--text-medium);
}

.price-summary-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-display);
}

.form-trust-badges {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.form-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
}

.form-badge-item svg {
  width: 20px;
  height: 20px;
  color: var(--success);
}

/* FAQ Accordion Section */
.faq {
  background-color: var(--bg-light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--text-light);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px;
  color: var(--text-medium);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  padding-bottom: 20px;
}

/* Final CTA Section */
.final-cta {
  background: linear-gradient(135deg, #094cb0 0%, #032d6c 100%);
  color: var(--bg-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 20%, rgba(0, 174, 239, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(255, 176, 0, 0.1) 0%, transparent 40%);
  z-index: 1;
}

.final-cta-container {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.final-cta h2 {
  font-size: 2.75rem;
  color: var(--bg-white);
  margin-bottom: 16px;
  font-weight: 800;
}

@media (max-width: 768px) {
  .final-cta h2 {
    font-size: 2rem;
  }
}

.final-cta p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
}

@media (max-width: 768px) {
  .final-cta p {
    font-size: 1rem;
    margin-bottom: 28px;
  }
}

.final-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

@media (max-width: 480px) {
  .final-cta-buttons {
    flex-direction: column;
    gap: 12px;
  }
  .final-cta-buttons .btn {
    width: 100%;
  }
}

/* Sticky Mobile CTA Bar */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: var(--blur-glass);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.1);
  padding: 12px 24px;
  display: flex;
  gap: 12px;
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: var(--border-glass);
}

.sticky-cta-bar.visible {
  transform: translateY(0);
}

.sticky-cta-bar .btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

@media (min-width: 769px) {
  .sticky-cta-bar {
    display: none;
  }
}

/* Footer Section */
footer {
  background-color: #0f172a;
  color: var(--text-muted);
  padding: 60px 0 30px 0;
  font-size: 0.875rem;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
}

.footer-info img {
  height: 52px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .footer-info img {
    margin-left: auto;
    margin-right: auto;
  }
}

.footer-info p {
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 350px;
}

@media (max-width: 768px) {
  .footer-info p {
    margin-left: auto;
    margin-right: auto;
  }
}

.footer-links h4, .footer-contact h4 {
  color: var(--bg-white);
  font-size: 1.125rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links ul a:hover {
  color: var(--secondary);
}

.footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-phone {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-phone:hover {
  color: var(--secondary);
}

@media (max-width: 768px) {
  .footer-contact ul li {
    justify-content: center;
  }
}

.footer-contact svg {
  color: var(--primary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Success Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: var(--blur-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 480px;
  width: 100%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-icon {
  width: 64px;
  height: 64px;
  background-color: var(--success-light);
  color: var(--success);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
}

.modal-icon svg {
  width: 36px;
  height: 36px;
}

.modal-content h3 {
  font-size: 1.75rem;
  margin-bottom: 12px;
  font-weight: 800;
}

.modal-content p {
  color: var(--text-medium);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* Floating WhatsApp Widget for Desktop */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: var(--bg-white);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 990;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #20ba5a;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 80px; /* shift up to not overlap sticky cta bar */
    width: 50px;
    height: 50px;
    right: 20px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* Spinner Animation for Forms */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.spinner {
  vertical-align: middle;
}

/* ==========================================================================
   RTL & Arabic Translation Adjustments
   ========================================================================== */

/* Apply Cairo font when lang="ar" is active */
html[lang="ar"] {
  font-family: 'Cairo', sans-serif !important;
}

html[lang="ar"] h1, 
html[lang="ar"] h2, 
html[lang="ar"] h3, 
html[lang="ar"] h4, 
html[lang="ar"] h5, 
html[lang="ar"] h6,
html[lang="ar"] .btn,
html[lang="ar"] .badge,
html[lang="ar"] .pack-title,
html[lang="ar"] .pack-badge,
html[lang="ar"] .price-summary-label,
html[lang="ar"] .faq-question {
  font-family: 'Cairo', sans-serif !important;
}

/* Form layouts in RTL */
html[dir="rtl"] input, 
html[dir="rtl"] select, 
html[dir="rtl"] textarea {
  text-align: right;
  direction: rtl;
}

/* Problem section specific overrides */
html[dir="rtl"] .problem-card {
  border-right: 4px solid var(--danger);
  border-left: none;
}

html[dir="rtl"] .problem-card:hover {
  transform: translateX(-4px);
}

/* Step list flow lines */
html[dir="rtl"] .step-item::after {
  right: 44px;
  left: auto;
}

/* Hero Badge coordinates positioning flips */
html[dir="rtl"] .hero-badge-1 {
  bottom: 20px;
  right: -20px;
  left: auto;
}

html[dir="rtl"] .hero-badge-2 {
  top: 20px;
  left: -10px;
  right: auto;
}

/* Ensure the LTR image slider holds LTR layout so drag calculation isn't broken */
.slider-box {
  direction: ltr !important;
}

/* Stat card alignment */
html[dir="rtl"] .stat-card {
  direction: rtl;
}

/* FAQ question layout adjustment */
html[dir="rtl"] .faq-question {
  text-align: right;
}

/* Form checklist badges flex layout default swap */
html[dir="rtl"] .form-trust-badges {
  flex-direction: row-reverse;
}

/* Floating WhatsApp position in RTL - shift to bottom left so it does not collide with other widgets */
html[dir="rtl"] .whatsapp-float {
  left: 30px;
  right: auto;
}

@media (max-width: 768px) {
  html[dir="rtl"] .whatsapp-float {
    left: 20px;
    right: auto;
  }
}

/* ==========================================================================
   Speed & Mobile Conversion (CRO) Styles
   ========================================================================== */

.promo-banner {
  background: linear-gradient(90deg, #ffb000 0%, #ff8c00 100%);
  color: var(--text-dark);
  padding: 6px 0;
  font-size: 0.825rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-family: var(--font-display);
}

html[lang="fr"] .promo-banner {
  font-size: 0.775rem;
}

@media (max-width: 480px) {
  html[lang="fr"] .promo-banner {
    font-size: 0.725rem;
  }
}

.promo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 16px !important;
}

.promo-text {
  display: inline-flex;
  align-items: center;
}

.countdown-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.timer-segment {
  background-color: var(--text-dark);
  color: var(--bg-white);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

.timer-segment strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* 2. Slide-up Social Proof Purchase Notifications */
.purchase-notification {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--blur-glass);
  border: 1px solid rgba(11, 94, 215, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1010;
  max-width: 310px;
  width: calc(100% - 48px);
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
}

.purchase-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--bg-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.notification-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.notification-title {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-dark);
}

.notification-desc {
  font-size: 0.775rem;
  color: var(--text-medium);
  line-height: 1.2;
}

.notification-time {
  font-size: 0.675rem;
  color: var(--text-light);
  font-weight: 500;
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0 4px;
  position: absolute;
  top: 6px;
  right: 10px;
  line-height: 1;
  transition: var(--transition);
}

.notification-close:hover {
  color: var(--danger);
}

/* RTL positioning flips for notification toast */
html[dir="rtl"] .purchase-notification {
  left: auto;
  right: 24px;
}

html[dir="rtl"] .notification-close {
  right: auto;
  left: 10px;
}

/* 3. Form Validation Visual Overrides */
.form-group {
  position: relative;
}

.form-group input.valid, .form-group select.valid {
  border-color: var(--success) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

html[dir="rtl"] .form-group input.valid {
  background-position: left 14px center;
  padding-right: 16px;
  padding-left: 40px;
}

.form-group input.invalid, .form-group select.invalid {
  border-color: var(--danger) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

html[dir="rtl"] .form-group input.invalid {
  background-position: left 14px center;
  padding-right: 16px;
  padding-left: 40px;
}

/* 4. Pack card glow/scale animations on selection */
.pack-card {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s, background-color 0.2s;
}

.pack-card:hover {
  transform: translateY(-2px);
}

.pack-card.selected {
  transform: scale(1.02);
  border-color: var(--primary) !important;
  background-color: var(--primary-light) !important;
  box-shadow: 0 8px 20px rgba(11, 94, 215, 0.12);
  border-width: 2px;
}

/* Checkout Modal Overrides */
.checkout-modal-content {
  max-width: 500px;
  padding: 30px;
  text-align: left;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

html[dir="rtl"] .checkout-modal-content {
  text-align: right;
}

.checkout-modal-content .order-form-container {
  background-color: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

/* Modal Close Button styling */
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2.25rem;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--danger);
  transform: scale(1.1);
}

html[dir="rtl"] .modal-close-btn {
  left: 20px;
  right: auto;
}

/* Styling to fit Checkout Modal on a single screen without scrolling on mobile */
@media (max-width: 576px) {
  .checkout-modal-content {
    padding: 16px 20px !important;
    max-width: 95% !important;
    max-height: 95vh !important;
  }

  .checkout-modal-content h3 {
    font-size: 1.25rem !important;
    margin-bottom: 4px !important;
  }

  .checkout-modal-content p {
    font-size: 0.8rem !important;
    margin-bottom: 12px !important;
  }

  .checkout-modal-content .form-group {
    margin-bottom: 8px !important;
  }

  .checkout-modal-content .form-group label {
    font-size: 0.75rem !important;
    margin-bottom: 4px !important;
  }

  .checkout-modal-content .form-group input,
  .checkout-modal-content .form-group select {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
  }

  .checkout-modal-content .price-summary {
    padding: 8px 12px !important;
    margin-bottom: 12px !important;
  }

  .checkout-modal-content .price-summary-label {
    font-size: 0.85rem !important;
  }

  .checkout-modal-content .price-summary-value {
    font-size: 1.35rem !important;
  }

  .checkout-modal-content .btn {
    padding: 10px 20px !important;
    font-size: 0.95rem !important;
  }

  /* Hide trust badges on mobile checkout to save vertical height */
  .checkout-modal-content .form-trust-badges {
    display: none !important;
  }
  
  .checkout-modal-content .modal-close-btn {
    top: 10px !important;
    right: 15px !important;
    font-size: 1.75rem !important;
  }
  
  html[dir="rtl"] .checkout-modal-content .modal-close-btn {
    left: 15px !important;
    right: auto !important;
  }
}

/* RTL Layout Adjustments */
html[dir="rtl"] {
  font-family: 'Cairo', 'Inter', sans-serif;
  text-align: right;
}

html[dir="rtl"] .problem-card {
  border-left: none;
  border-right: 4px solid var(--danger);
}

html[dir="rtl"] .problem-card:hover {
  transform: translateX(-4px);
}

html[dir="rtl"] .hero-badge-1 {
  left: auto;
  right: -20px;
}

html[dir="rtl"] .hero-badge-2 {
  right: auto;
  left: -10px;
}

html[dir="rtl"] .pack-badge {
  right: auto;
  left: 16px;
}

html[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 16px;
}

html[dir="rtl"] .steps-list {
  border-left: none;
  border-right: 2px solid var(--primary-light);
}

html[dir="rtl"] .step-number {
  left: auto;
  right: -17px;
}

html[dir="rtl"] .trust-banner-card svg,
html[dir="rtl"] .hero-trust svg,
html[dir="rtl"] .footer-contact svg {
  margin-right: 0;
  margin-left: 8px;
}

html[dir="rtl"] .faq-icon {
  margin-left: 0;
  margin-right: auto;
}

