/* =========================================================
   ONVEXO — Dishwashing Liquid Landing Page
   Mobile-first stylesheet
   ========================================================= */

:root {
  --yellow: #FFD700;
  --yellow-light: #FFE44D;
  --green: #2E7D32;
  --green-light: #4CAF50;
  --white: #FFFFFF;
  --blue-light: #E3F2FD;
  --text-dark: #212121;

  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Poppins', sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(33, 33, 33, 0.12);
  --shadow-lg: 0 20px 45px rgba(33, 33, 33, 0.18);
  --container-width: 1140px;
  --nav-height: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ar);
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; }

/* English/brand strings render in Poppins regardless of RTL context */
.logo, .nav-cta, .price-currency, .footer-bottom, .hero-tag, .ba-label {
  font-family: var(--font-en);
}

.skip-link {
  position: absolute;
  right: -9999px;
  top: 0;
  background: var(--green);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 0 8px;
  z-index: 1000;
}
.skip-link:focus { right: 0; }

/* ===== Layout helpers ===== */
.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  text-align: center;
  color: var(--green);
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: #616161;
  font-family: var(--font-en);
  margin-bottom: 40px;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

/* ===== Fade-in-on-scroll ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.35);
}
.btn-primary:hover { background: var(--green-light); box-shadow: 0 12px 26px rgba(46, 125, 50, 0.4); }

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

.btn-block { width: 100%; }

/* ===== Navigation ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  height: var(--nav-height);
  transition: box-shadow 0.25s ease;
}
.navbar.scrolled { box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08); }

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--green);
  letter-spacing: 0.5px;
}

.nav-menu {
  position: fixed;
  top: var(--nav-height);
  right: -100%;
  width: 78%;
  max-width: 320px;
  height: calc(100vh - var(--nav-height));
  background: var(--white);
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 24px;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.08);
  transition: right 0.3s ease;
  display: flex;
}
.nav-menu.open { right: 0; }

.nav-link {
  display: block;
  width: 100%;
  padding: 12px 8px;
  font-weight: 600;
  font-family: var(--font-en);
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-link:hover { background: var(--blue-light); color: var(--green); }

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  border-radius: 50px;
  text-align: center;
  margin-top: 8px;
}
.nav-cta:hover { background: var(--green-light); }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 8px;
  z-index: 501;
}
.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 56px 20px 80px;
  background: linear-gradient(160deg, var(--yellow-light) 0%, var(--yellow) 45%, var(--blue-light) 100%);
  overflow: hidden;
}

.hero-bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.15));
  animation: rise linear infinite;
}

@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translateY(-110vh) translateX(20px); opacity: 0; }
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.6);
  color: var(--green);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.4;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #3a3a3a;
  margin-bottom: 20px;
}

.price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--green);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 800;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.price-badge .price-num { font-size: 1.4rem; }
.price-badge .price-unit { font-size: 0.95rem; font-weight: 600; }

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

.hero-visual { width: 100%; display: flex; justify-content: center; }

/* ===== Bottle illustration (pure CSS, no images) ===== */
.bottle-illustration {
  position: relative;
  width: 160px;
  height: 300px;
}

.bottle-cap {
  width: 46px;
  height: 26px;
  background: var(--green);
  border-radius: 6px 6px 2px 2px;
  margin: 0 auto;
}

.bottle-neck {
  width: 30px;
  height: 22px;
  background: var(--yellow-light);
  margin: 0 auto;
}

.bottle-body {
  width: 160px;
  height: 250px;
  background: linear-gradient(160deg, var(--yellow-light), var(--yellow) 60%, #FFC400);
  border-radius: 30px 30px 46px 46px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.bottle-body::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 18px;
  width: 22px;
  height: 90px;
  background: rgba(255,255,255,0.45);
  border-radius: 50%;
  filter: blur(2px);
}

.bottle-label {
  background: var(--white);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bottle-brand { font-family: var(--font-en); font-weight: 800; color: var(--green); font-size: 1.1rem; }
.bottle-sub { font-family: var(--font-en); font-size: 0.65rem; color: #757575; letter-spacing: 1px; text-transform: uppercase; }

.bottle-jumbo { width: 220px; height: 400px; }
.bottle-jumbo .bottle-body { width: 220px; height: 330px; }
.bottle-jumbo .bottle-cap { width: 60px; height: 32px; }
.bottle-jumbo .bottle-neck { width: 40px; height: 28px; }

.floating-lemon {
  position: absolute;
  font-size: 2rem;
  animation: bob 3.5s ease-in-out infinite;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.15));
}
.lemon-1 { top: 10px; left: -20px; animation-delay: 0s; }
.lemon-2 { bottom: 40px; right: -24px; font-size: 1.5rem; animation-delay: 1.2s; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(12deg); }
}

/* ===== Features ===== */
.features { padding: 70px 20px; max-width: var(--container-width); margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid #f0f0f0;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.feature-card h3 { color: var(--green); font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: #555; font-size: 0.95rem; }

/* ===== Showcase ===== */
.showcase { background: var(--blue-light); padding: 70px 20px; }

.showcase-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 44px;
  align-items: center;
}

.showcase-visual { display: flex; justify-content: center; }

.showcase-content { width: 100%; }
.showcase-content h2 { color: var(--green); font-size: 1.6rem; margin-bottom: 20px; text-align: center; }

.bullet-list { max-width: 420px; margin: 0 auto 32px; }
.bullet-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-weight: 600;
  border-bottom: 1px dashed #c8d9ea;
}
.check { color: var(--green); font-weight: 800; }

.before-after {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ba-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ba-label { font-weight: 700; color: var(--text-dark); font-size: 0.9rem; }
.ba-arrow { font-size: 1.8rem; color: var(--green); }

.plate {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #f2f2f2;
  border: 6px solid #e0e0e0;
  position: relative;
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.08);
}

.plate-dirty::before,
.plate-dirty::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 90, 40, 0.65), rgba(120, 90, 40, 0.15));
}
.plate-dirty::before { width: 40px; height: 26px; top: 22px; left: 18px; }
.plate-dirty::after { width: 24px; height: 18px; bottom: 16px; right: 14px; }

.plate-clean {
  background: linear-gradient(160deg, var(--white), #f7fbff);
  border-color: var(--green-light);
}
.plate-clean::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 20px;
  width: 16px;
  height: 46px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  filter: blur(1px);
}

/* ===== Pricing ===== */
.pricing { padding: 70px 20px; max-width: var(--container-width); margin: 0 auto; text-align: center; }

.pricing-card {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 40px 28px;
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.pricing-card h3 { font-family: var(--font-en); font-weight: 700; margin-bottom: 6px; }

.price-big {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--green);
  margin: 12px 0 20px;
}
.price-big .price-currency { font-size: 1.1rem; font-weight: 700; margin-right: 6px; }

.pricing-features { text-align: right; margin-bottom: 28px; }
.pricing-features li { padding: 8px 0; font-weight: 600; display: flex; gap: 8px; align-items: center; }

.bulk-offer {
  margin: 28px auto 0;
  max-width: 420px;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-weight: 700;
}
.save-tag { color: var(--green); }

/* ===== Testimonials ===== */
.testimonials { background: linear-gradient(180deg, var(--white), var(--blue-light)); padding: 70px 20px; }

.testimonials-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.stars { color: var(--yellow); font-size: 1.2rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p { color: #444; margin-bottom: 14px; font-size: 0.95rem; }
.testimonial-name { font-weight: 700; color: var(--green); font-size: 0.9rem; }

/* ===== Order Form ===== */
.order-form-section { padding: 70px 20px; max-width: 560px; margin: 0 auto; }

.order-form {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
}

.honeypot { position: absolute; left: -9999px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.9rem; }

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
}
.form-group input.invalid { border-color: #d32f2f; }

.error-message {
  display: block;
  color: #d32f2f;
  font-size: 0.82rem;
  margin-top: 6px;
  min-height: 1em;
}

.form-note { text-align: center; margin-top: 16px; font-size: 0.85rem; color: #666; }

.form-success,
.form-error {
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 700;
}
.form-success { background: #e8f5e9; color: var(--green); }
.form-error { background: #fdecea; color: #d32f2f; }

/* ===== Footer ===== */
.footer { background: var(--text-dark); color: #eee; padding: 48px 20px 24px; }

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand .logo { color: var(--yellow-light); }
.footer-brand p { font-family: var(--font-en); font-size: 0.85rem; color: #bbb; margin-top: 6px; }

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: var(--white);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.whatsapp-link:hover { transform: translateY(-2px); }

.footer-social { display: flex; gap: 14px; }
.social-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s ease;
}
.social-icon:hover { background: var(--green); }

.footer-bottom {
  text-align: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #999;
}

/* ===== Video Modal ===== */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  z-index: 1;
}
.modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #f0f0f0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
}
.modal-video-placeholder .floating-lemon { position: static; font-size: 3rem; display: block; margin: 0 auto 16px; animation: bob 2s ease-in-out infinite; }
.modal-video-placeholder p { font-weight: 700; color: var(--green); }

/* ===== Responsive breakpoints ===== */
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2.4rem; }
}

@media (min-width: 900px) {
  .hamburger { display: none; }

  .nav-menu {
    position: static;
    flex-direction: row;
    align-items: center;
    width: auto;
    height: auto;
    max-width: none;
    box-shadow: none;
    padding: 0;
    gap: 8px;
  }
  .nav-cta { margin-top: 0; padding: 10px 26px; }

  .hero-container {
    flex-direction: row-reverse;
    text-align: right;
    justify-content: space-between;
  }
  .hero-text { flex: 1; }
  .hero-actions { justify-content: flex-start; }
  .hero-title { font-size: 2.9rem; }
  .hero-visual { flex: 1; }

  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }

  .showcase-container { flex-direction: row-reverse; align-items: center; text-align: right; }
  .showcase-visual, .showcase-content { flex: 1; }
  .showcase-content h2 { text-align: right; }
  .bullet-list { margin: 0 0 32px; }
  .before-after { justify-content: flex-start; }
}

@media (min-width: 1200px) {
  .hero-title { font-size: 3.2rem; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .fade-in, .bubble, .floating-lemon, .btn { animation: none !important; transition: none !important; }
  .fade-in { opacity: 1; transform: none; }
}
