/* =====================================================
   Kelo-Cote Landing Page — style.css
   Arabic RTL product landing page
   ===================================================== */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #28a745;
  --green-dark: #1e7e34;
  --green-light: #d4edda;
  --blue: #007bff;
  --red: #dc3545;
  --yellow: #ffc107;
  --text: #1a1a2e;
  --text-muted: #6c757d;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --border: #dee2e6;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --radius: 12px;
  --max-w: 520px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ---- TICKER BAR ---- */
.ticker-wrap {
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 0;
  overflow: hidden;
  width: 100%;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 0;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}

.ticker-track span {
  display: inline-block;
  padding: 0 32px;
}

.ticker-track span::after {
  content: '·';
  margin-right: 32px;
  color: rgba(255,255,255,0.5);
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- PAGE WRAPPER ---- */
.page-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 0 100px;
}

/* ---- HERO IMAGE ---- */
.hero-image-section {
  background: linear-gradient(180deg, #e8f4fd 0%, #f0f8ff 60%, #fff 100%);
  padding: 8px 0 0;
}

.hero-img-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 380px;
}

/* ---- STATS ---- */
.stats-section {
  padding: 16px 16px 0;
}

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

.stat-box {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
}

.stat-number {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- TRUST BADGE ---- */
.trust-badge-section {
  padding: 16px 16px 0;
  text-align: center;
}

.trust-badge {
  display: inline-block;
  background: #fff8e1;
  border: 1.5px solid #ffc107;
  color: #856404;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
}

/* ---- PRODUCT INTRO ---- */
.product-intro {
  padding: 20px 16px 0;
  text-align: center;
}

.product-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 8px;
}

.title-arabic {
  background: linear-gradient(135deg, #0d6efd, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ---- PRICE BLOCK ---- */
.price-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-direction: row-reverse;
  justify-content: center;
}

.price-block.center {
  justify-content: center;
}

.price-old {
  font-size: 18px;
  color: #adb5bd;
  text-decoration: line-through;
  font-weight: 600;
}

.price-new {
  font-size: 32px;
  font-weight: 900;
  color: var(--green);
}

/* ---- CTA BUTTON ---- */
.btn-cta {
  display: block;
  width: 100%;
  background: var(--green);
  color: #fff;
  font-family: 'Tajawal', sans-serif;
  font-size: 18px;
  font-weight: 800;
  padding: 16px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, transform 0.1s;
  margin-top: 8px;
  letter-spacing: 0.3px;
}

.btn-cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.btn-cta:active {
  transform: translateY(0);
}

.mt-16 {
  margin-top: 16px;
}

/* ---- SECTIONS ---- */
.section {
  padding: 32px 16px 0;
}

.section-title {
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}

/* ---- BEFORE / AFTER ---- */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ba-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ba-img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  border: 2px solid var(--border);
}

.ba-arrow {
  font-size: 20px;
  line-height: 1;
}

/* ---- SUITABILITY ---- */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  font-size: 15px;
  font-weight: 600;
  padding: 10px 14px;
  background: var(--green-light);
  border-radius: 8px;
  color: #155724;
}

/* ---- COMPARISON TABLE ---- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-table thead {
  background: var(--bg-light);
}

.comparison-table th,
.comparison-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: right;
  font-weight: 700;
}

.th-product {
  background: #e8f5e9;
  color: var(--green-dark);
  font-weight: 800;
}

.td-yes  { font-size: 18px; color: var(--green); }
.td-no   { font-size: 18px; color: var(--red); }
.td-warn { font-size: 18px; color: var(--yellow); }

/* ---- OFFER SECTION ---- */
.offer-card {
  background: linear-gradient(135deg, #e8f5e9, #ffffff);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
}

.offer-img {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 16px;
  border-radius: var(--radius);
  object-fit: contain;
}

.offer-title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
}

.offer-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.offer-badge {
  display: inline-block;
  background: #ff4d4d;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 50px;
  margin: 12px 0;
}

.stock-counter {
  font-size: 14px;
  font-weight: 700;
  color: #dc3545;
  margin: 10px 0;
  background: #fff5f5;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #f5c2c7;
}

.stock-counter strong {
  font-size: 20px;
  color: #dc3545;
}

/* ---- HOW TO USE ---- */
.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px 18px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow);
}

.step-num {
  background: var(--green);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- TRUST ---- */
.trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 14px;
  background: var(--bg-light);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.trust-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* ---- ORDER FORM ---- */
.order-section {
  background: var(--bg-light);
  border-radius: var(--radius);
  margin: 32px 16px 0;
  padding: 24px 16px;
  border: 1px solid var(--border);
}

.order-trust-row {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-bottom: 20px;
  gap: 8px;
}

.order-trust-item {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.6;
}

.order-trust-item span {
  display: block;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  direction: rtl;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c757d' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--red);
}

/* Delivery Options */
.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.delivery-option {
  cursor: pointer;
}

.delivery-option input[type="radio"] {
  display: none;
}

.delivery-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  text-align: center;
}

.delivery-option input[type="radio"]:checked + .delivery-label {
  border-color: var(--green);
  background: var(--green-light);
}

.delivery-icon { font-size: 20px; }
.delivery-text { font-size: 14px; font-weight: 700; }
.delivery-price { font-size: 13px; color: var(--green); font-weight: 800; }

/* Order Total */
.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
}

.total-amount {
  font-size: 22px;
  font-weight: 900;
  color: var(--green);
}

/* Submit Button */
.btn-submit {
  font-size: 20px;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(40, 167, 69, 0.35);
}

/* Order Success */
.order-success {
  display: none;
  text-align: center;
  padding: 32px 16px;
  background: var(--green-light);
  border-radius: var(--radius);
  border: 2px solid var(--green);
}

.order-success.visible {
  display: block;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.order-success h3 {
  font-size: 22px;
  font-weight: 900;
  color: #155724;
  margin-bottom: 8px;
}

.order-success p {
  color: #155724;
  font-size: 15px;
}

/* ---- TESTIMONIALS ---- */
.testimonials-section {
  padding: 32px 16px 0;
}

.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.testimonial-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.testimonial-avatar {
  font-size: 28px;
  margin-bottom: 6px;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}

.testimonial-stars {
  font-size: 14px;
  margin-bottom: 8px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.7;
}

/* Rating summary */
.rating-summary {
  text-align: center;
  margin: 20px 0;
}

.rating-stars {
  font-size: 24px;
  margin-bottom: 4px;
}

.rating-score {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
}

.rating-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ---- FAQ ---- */
.faq-section {
  padding: 32px 16px 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  direction: rtl;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question[aria-expanded="true"] {
  background: var(--green-light);
  color: #155724;
}

.faq-icon {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--green);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 16px 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- STICKY CTA ---- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 10px 16px 14px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.12);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

.sticky-btn {
  margin: 0;
  font-size: 17px;
  padding: 14px;
}

/* ---- RESPONSIVE: Desktop ---- */
@media (min-width: 600px) {
  .page-wrapper {
    padding-bottom: 40px;
  }

  .hero-img {
    max-height: 480px;
  }

  .ba-grid {
    gap: 24px;
  }

  .steps-grid {
    flex-direction: row;
  }

  .step-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
  }

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

  .sticky-cta {
    display: none;
  }

  .product-intro .btn-cta {
    width: auto;
    display: inline-block;
    padding: 14px 48px;
    font-size: 18px;
  }
}

@media (max-width: 599px) {
  :root {
    --max-w: 100%;
  }

  .product-title {
    font-size: 26px;
  }

  .price-new {
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .stat-box {
    padding: 10px 4px;
  }

  .stat-number {
    font-size: 16px;
  }

  .stat-label {
    font-size: 11px;
  }

  .stat-icon {
    font-size: 18px;
  }

  .section {
    padding: 24px 12px 0;
  }

  .order-section {
    margin: 24px 12px 0;
    padding: 20px 12px;
  }
}
