/* ============================================================================
   BURNEX landing pages — ONE shared stylesheet for index.html (Arabic) / en.html.
   ----------------------------------------------------------------------------
   - Base rules are styled LTR (English). Arabic RTL tweaks live under [dir="rtl"].
   - Fonts come from CSS variables switched by html[lang="ar"] vs html:not([lang="ar"]).
   ========================================================================== */

:root {
  --fire: #FF4800;
  --gold: #FFB400;
  --ember: #FF2200;
  --dark: #0A0A0A;
  --charcoal: #1A1A1A;
  --ash: #2A2A2A;
  --cream: #FFF5EC;
  --green: #2D6A2D;
}

/* Font families per language (English = default / Arabic = html[lang="ar"]) */
html:not([lang="ar"]) {
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-cond: 'Barlow Condensed', 'Barlow', sans-serif;
}
html[lang="ar"] {
  --font-head: 'Tajawal', sans-serif;
  --font-body: 'Cairo', sans-serif;
  --font-cond: 'Cairo', sans-serif;
}

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

body {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* Shared focus ring (a11y) */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── HERO ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, #4a1500 0%, #0A0A0A 65%);
  padding: 2rem 1.5rem;
  text-align: center;
}

.hero-bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,72,0,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,72,0,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 12s linear infinite;
}
@keyframes gridDrift { to { background-position: 48px 48px; } }

/* Version / language switcher */
.lang-switch {
  position: absolute;
  top: 1rem; right: 1rem;
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  z-index: 3;
  font-family: var(--font-body);
}
[dir="rtl"] .lang-switch { right: auto; left: 1rem; }
.lang-switch a {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255,245,236,.6);
  text-decoration: none;
  padding: .3rem .75rem;
  border: 1px solid rgba(255,245,236,.18);
  border-radius: 999px;
  background: rgba(0,0,0,.4);
  transition: color .2s, border-color .2s, background .2s;
}
.lang-switch a:hover { color: var(--cream); border-color: rgba(255,180,0,.55); }
.lang-switch a[aria-current="page"] {
  color: var(--dark);
  background: var(--gold);
  border-color: var(--gold);
}

.hero-badge {
  position: relative;
  z-index: 1;
  background: var(--green);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .4rem 1.2rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  animation: fadeUp .6s ease both;
}
[dir="rtl"] .hero-badge {
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: none;
  padding: .4rem 1.4rem;
}

.hero-headline {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: clamp(4rem, 13vw, 9rem);
  line-height: .92;
  text-align: center;
  letter-spacing: .02em;
  animation: fadeUp .7s .1s ease both;
}
[dir="rtl"] .hero-headline {
  font-size: clamp(3.5rem, 13vw, 8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: normal;
}
.hero-headline span {
  background: linear-gradient(135deg, var(--gold) 0%, var(--fire) 60%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  position: relative;
  z-index: 1;
  font-family: var(--font-cond);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  letter-spacing: .08em;
  color: rgba(255,245,236,.65);
  margin-top: .6rem;
  text-align: center;
  animation: fadeUp .7s .2s ease both;
}
[dir="rtl"] .hero-sub {
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.4rem);
  letter-spacing: normal;
  margin-top: .8rem;
}

.hero-product {
  position: relative;
  z-index: 1;
  margin: 2.5rem auto 0;
  width: min(380px, 90vw);
  animation: floatUp 3s ease-in-out infinite;
}
[dir="rtl"] .hero-product { margin: 2rem auto 0; width: min(400px, 92vw); }
.hero-product img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 0 60px rgba(255,72,0,.55)) drop-shadow(0 30px 40px rgba(0,0,0,.8));
}

.fire-ring {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 40%, rgba(255,90,0,.12) 60%, transparent 80%);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes floatUp { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-cta {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  animation: fadeUp .7s .4s ease both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--fire));
  color: #fff;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 32px rgba(255,100,0,.45);
  text-decoration: none;
  display: inline-block;
}
[dir="rtl"] .btn-primary { font-size: 1.05rem; letter-spacing: normal; text-transform: none; }
.btn-primary:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 40px rgba(255,100,0,.65); }
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.2) 100%);
}

.price-pill {
  background: var(--charcoal);
  border: 1px solid rgba(255,180,0,.3);
  border-radius: 4px;
  padding: 1rem 1.8rem;
  text-align: center;
}
.price-pill .only { font-size: .8rem; color: var(--gold); font-weight: 700; text-transform: uppercase; }
[dir="rtl"] .price-pill .only { text-transform: none; }
.price-pill .amount { font-family: var(--font-head); font-size: 2.2rem; color: var(--gold); }
[dir="rtl"] .price-pill .amount { font-size: 2rem; font-weight: 900; }
.price-pill .note { font-size: .7rem; color: rgba(255,245,236,.5); }

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

.scroll-arrow {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,245,236,.3);
  font-size: 1.4rem;
  text-decoration: none;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-arrow:hover { color: rgba(255,245,236,.6); }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ── STATS STRIP ──────────────────────────────────────────────────────── */
.stats {
  background: linear-gradient(90deg, var(--fire), var(--gold), var(--fire));
  background-size: 200%;
  animation: shimmer 4s linear infinite;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
@keyframes shimmer { to { background-position: 200% 0; } }
.stat-item { text-align: center; color: var(--dark); font-weight: 900; }
.stat-num { font-family: var(--font-head); font-size: 2rem; line-height: 1; }
[dir="rtl"] .stat-num { font-weight: 900; }
.stat-label { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
[dir="rtl"] .stat-label { font-size: .72rem; font-weight: 700; letter-spacing: normal; text-transform: none; }

/* ── SECTION COMMON ───────────────────────────────────────────────────── */
section { padding: 5rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.sec-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  text-align: center;
  margin-bottom: .4rem;
  letter-spacing: .04em;
}
[dir="rtl"] .sec-title { font-size: clamp(2rem, 7vw, 4rem); font-weight: 900; letter-spacing: normal; }
.sec-title span { color: var(--fire); }
.sec-subtitle {
  text-align: center;
  color: rgba(255,245,236,.5);
  font-size: .95rem;
  margin-bottom: 3rem;
  letter-spacing: .04em;
}
[dir="rtl"] .sec-subtitle { letter-spacing: normal; }

/* ── BEFORE / AFTER ───────────────────────────────────────────────────── */
.transform-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 0 80px rgba(255,72,0,.2);
}
.t-side { position: relative; background: var(--charcoal); padding: 2.5rem 1.5rem; text-align: center; }
.t-side.before { border-right: 2px solid var(--fire); }
[dir="rtl"] .t-side.before { border-right: none; border-left: 2px solid var(--fire); }
.t-label { font-family: var(--font-head); font-size: 2rem; letter-spacing: .1em; margin-bottom: .8rem; }
[dir="rtl"] .t-label { font-size: 1.8rem; font-weight: 900; letter-spacing: normal; }
.t-side.before .t-label { color: rgba(255,245,236,.4); }
.t-side.after .t-label { color: var(--gold); }
.t-bullets { list-style: none; text-align: left; display: inline-block; }
[dir="rtl"] .t-bullets { text-align: right; }
.t-bullets li { font-size: .9rem; margin-bottom: .4rem; display: flex; gap: .5rem; align-items: center; }
[dir="rtl"] .t-bullets li { flex-direction: row-reverse; }
.t-bullets li::before { content: '✓'; color: var(--fire); font-weight: 700; }
.t-side.before .t-bullets li { color: rgba(255,245,236,.45); }
.t-side.before .t-bullets li::before { content: '✗'; color: rgba(255,72,0,.4); }
.divider-fire {
  position: absolute;
  left: 50%; top: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--fire), var(--ember));
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 20px var(--fire);
}
[dir="rtl"] .divider-fire { left: auto; right: 50%; transform: translateX(50%); }

/* ── BENEFITS ─────────────────────────────────────────────────────────── */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.benefit-card {
  background: var(--charcoal);
  border: 1px solid rgba(255,72,0,.15);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
[dir="rtl"] .benefit-card { text-align: right; }
.benefit-card:hover { transform: translateY(-4px); border-color: rgba(255,72,0,.5); }
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fire), var(--gold));
}
[dir="rtl"] .benefit-card::before { background: linear-gradient(90deg, var(--gold), var(--fire)); }
.benefit-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.benefit-title {
  font-family: var(--font-cond);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .5rem;
  color: var(--gold);
}
[dir="rtl"] .benefit-title { font-size: 1.15rem; font-weight: 800; letter-spacing: normal; text-transform: none; }
.benefit-text { font-size: .9rem; color: rgba(255,245,236,.65); line-height: 1.6; }
[dir="rtl"] .benefit-text { line-height: 1.8; }

/* ── REVIEWS ──────────────────────────────────────────────────────────── */
.reviews-section { background: var(--charcoal); padding: 5rem 1.5rem; }
.reviews-inner { max-width: 1100px; margin: 0 auto; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.review-card {
  background: var(--ash);
  border-radius: 8px;
  padding: 1.8rem;
  border: 1px solid rgba(255,255,255,.05);
  position: relative;
}
[dir="rtl"] .review-card { text-align: right; }
.review-card::before {
  content: '"';
  position: absolute;
  top: .5rem; right: 1rem;
  font-family: var(--font-head);
  font-size: 4rem;
  color: rgba(255,72,0,.15);
  line-height: 1;
}
[dir="rtl"] .review-card::before { right: auto; left: 1rem; }
.review-stars { color: var(--gold); font-size: 1rem; margin-bottom: .8rem; letter-spacing: .1em; }
.review-text { font-size: .92rem; color: rgba(255,245,236,.8); line-height: 1.65; margin-bottom: 1.2rem; }
[dir="rtl"] .review-text { line-height: 1.8; }
.review-author { display: flex; align-items: center; gap: .8rem; }
[dir="rtl"] .review-author { flex-direction: row-reverse; }
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fire), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .9rem; color: #fff;
  flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: .9rem; }
.review-meta { font-size: .75rem; color: rgba(255,245,236,.45); }
[dir="rtl"] .review-meta { text-align: right; }
.verified { display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; color: #4caf50; font-weight: 600; margin-top: .2rem; }

/* ── ORDER FORM ───────────────────────────────────────────────────────── */
.order-section { background: radial-gradient(ellipse 80% 60% at 50% 0%, #2a0d00 0%, var(--dark) 70%); padding: 5rem 1.5rem; }
.order-inner { max-width: 560px; margin: 0 auto; }
.order-card {
  background: var(--charcoal);
  border: 1px solid rgba(255,72,0,.3);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 0 60px rgba(255,72,0,.1);
}
.order-title { font-family: var(--font-head); font-size: 2.5rem; text-align: center; margin-bottom: .3rem; }
[dir="rtl"] .order-title { font-size: 2.2rem; font-weight: 900; }
.order-subtitle { text-align: center; font-size: .9rem; color: rgba(255,245,236,.55); margin-bottom: 2rem; line-height: 1.7; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-row .form-group { margin-bottom: 0; }
.form-group label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,245,236,.6); }
[dir="rtl"] .form-group label { font-size: .8rem; letter-spacing: normal; text-transform: none; }
.form-group input, .form-group select {
  background: var(--ash);
  border: 1px solid rgba(255,72,0,.2);
  border-radius: 4px;
  padding: .85rem 1rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}
[dir="rtl"] .form-group input, [dir="rtl"] .form-group select { text-align: right; direction: rtl; }
/* Phone always reads left-to-right regardless of page direction */
.form-group input[type="tel"] { direction: ltr; }
[dir="rtl"] .form-group input[type="tel"] { text-align: left; direction: ltr; }
.form-group input:focus, .form-group select:focus { border-color: var(--fire); }
.form-group input[aria-invalid="true"], .form-group select[aria-invalid="true"] { border-color: #ff4d4d; }
.form-group input::placeholder { color: rgba(255,245,236,.25); }
.form-group select option { background: var(--ash); }

.field-error { display: none; color: #ff6b5a; font-size: .72rem; font-weight: 600; margin-top: .1rem; }
.field-error.show { display: block; }

.order-total { background: var(--ash); border-radius: 4px; padding: 1rem 1.2rem; display: flex; justify-content: space-between; align-items: center; margin: 1.2rem 0; }
.order-total .label { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
[dir="rtl"] .order-total .label { font-size: .9rem; text-transform: none; letter-spacing: normal; }
.order-total .price { font-family: var(--font-head); font-size: 2rem; color: var(--gold); }
[dir="rtl"] .order-total .price { font-weight: 900; }

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--fire));
  color: #fff;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 1.1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 28px rgba(255,100,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}
[dir="rtl"] .submit-btn { letter-spacing: normal; text-transform: none; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(255,100,0,.6); }

.order-trust { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.4rem; }
.trust-item { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: rgba(255,245,236,.45); }
.trust-item span { font-size: 1rem; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(255,72,0,.12); padding: 1.4rem 0; }
.faq-q {
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--cream);
  list-style: none;
  transition: color .2s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--gold); }
.faq-q .arrow { font-size: .8rem; transition: transform .3s; flex-shrink: 0; }
details[open] .faq-q .arrow { transform: rotate(180deg); }
.faq-a { padding-top: .8rem; font-size: .9rem; color: rgba(255,245,236,.6); line-height: 1.7; }
[dir="rtl"] .faq-a { line-height: 1.8; }

/* ── FOOTER ───────────────────────────────────────────────────────────── */
footer {
  background: #050505;
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: .78rem;
  color: rgba(255,245,236,.25);
  line-height: 1.8;
  border-top: 1px solid rgba(255,72,0,.08);
}
footer a { color: rgba(255,245,236,.55); text-decoration: none; }
footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-brand { font-family: var(--font-head); font-size: 1.15rem; color: var(--gold); letter-spacing: .06em; }
[dir="rtl"] .footer-brand { letter-spacing: normal; font-weight: 900; }
.footer-contact { margin: .5rem 0; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .8rem 0; font-weight: 600; }
.footer-legal { max-width: 640px; margin: .4rem auto 0; }
.footer-legal summary { cursor: pointer; color: rgba(255,245,236,.5); font-weight: 600; list-style: none; padding: .3rem 0; }
.footer-legal summary::-webkit-details-marker { display: none; }
.footer-legal summary:hover { color: var(--gold); }
.footer-legal p { margin-top: .4rem; font-size: .72rem; color: rgba(255,245,236,.55); line-height: 1.7; }
.disclaimer { margin-top: 1rem; font-size: .72rem; color: rgba(255,245,236,.6); }
.staff-login { display: inline-block; margin-top: 1rem; font-size: .7rem; opacity: .55; }

/* ── TOAST ────────────────────────────────────────────────────────────── */
/* Base (LTR / toast mode): bottom-right, fire-green gradient */
#toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: linear-gradient(135deg, var(--green), #1a4d1a);
  color: #fff;
  padding: 1rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  transform: translateY(120%);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  z-index: 999;
  max-width: 320px;
  font-family: var(--font-body);
}
#toast.show { transform: translateY(0); }
/* RTL toast mode: bottom-left */
[dir="rtl"] #toast { right: auto; left: 2rem; }

/* ── MOBILE ───────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .stats { gap: 1.5rem; }
  .transform-wrap { grid-template-columns: 1fr; }
  .t-side.before,
  [dir="rtl"] .t-side.before { border-right: none; border-left: none; border-bottom: 2px solid var(--fire); }
  .divider-fire { display: none; }
  .lang-switch { position: static; justify-content: center; margin-bottom: 1.2rem; }
}
