/* ==========================================================================
   Car Wash Station — Design tokens
   Palette:  #0B0B0C (ink), #F7D10A (signal yellow), #FFFFFF, #1A1A1C (panel),
             #9A9A9E (muted)
   Type:     "Anton" (display, condensed/loud) + "Inter" (body/UI)
   Signature: the "swoosh + shine" divider — a repeating diagonal wave shape
              (echoing the wave under the car in the logo) used as section
              separators instead of plain straight lines.
   ========================================================================== */

:root {
  --ink: #0b0b0c;
  --panel: #17171a;
  --panel-2: #1f1f23;
  --yellow: #f7d10a;
  --yellow-dim: #c9ac08;
  --white: #ffffff;
  --muted: #9a9a9e;
  --line: rgba(255, 255, 255, 0.08);

  --font-display: "Anton", "Tajawal", sans-serif;
  --font-body: "Inter", "Tajawal", sans-serif;

  --radius: 14px;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body { font-family: "Tajawal", var(--font-body); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .display {
  font-family: "Tajawal", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

.section { padding: 90px 0; position: relative; }
.section-alt { background: var(--panel); }
.text-center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 0 0 0 rgba(247, 209, 10, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(247, 209, 10, 0.25); }
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 18px 36px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(11, 11, 12, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 140px; width: auto; filter: drop-shadow(0 10px 24px rgba(247,209,10,0.18)); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.brand img.logo-highlight { padding: 6px; border-radius: 8px; background: transparent; outline: 3px solid rgba(247,209,10,0.12); }
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.brand-text span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  line-height: 1.2;
}
[dir="rtl"] .brand-text { margin-right: 8px; margin-left: 0; }
[dir="ltr"] .brand-text { margin-left: 8px; margin-right: 0; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width 0.2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--yellow); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
}
.lang-switch:hover { border-color: var(--yellow); color: var(--yellow); }
.admin-link {
  border-color: rgba(247, 209, 10, 0.35);
  color: var(--yellow);
  padding: 8px 14px;
  font-size: 13px;
}
.admin-link:hover { background: rgba(247, 209, 10, 0.12); border-color: var(--yellow); color: var(--yellow); }

.burger { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  background: radial-gradient(60% 60% at 85% 10%, rgba(247, 209, 10, 0.12), transparent 60%), var(--ink);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero h1 { font-size: clamp(38px, 5vw, 64px); }
.hero h1 .accent { color: var(--yellow); }
.hero p { font-size: 18px; color: var(--muted); max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 30px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  overflow: hidden;
}
.hero-art .fa-car-side { font-size: 160px; color: var(--yellow); filter: drop-shadow(0 20px 40px rgba(247,209,10,0.25)); }
.hero-image {
  width: 100%;
  max-width: 620px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  transition:.4s ease;
}
.hero-image:hover { transform:scale(1.02); }

.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
}

.stats-bar {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: 44px; color: var(--yellow); }
[dir="rtl"] .stat .num { font-family: "Tajawal", sans-serif; font-weight: 800; }
.stat .label { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- Wave divider ---------- */
.wave-divider {
  width: 100%;
  height: 60px;
  display: block;
  color: var(--panel);
}
.wave-divider.flip { transform: rotate(180deg); }
.wave-divider path { fill: currentColor; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); border-color: rgba(247,209,10,0.4); }
.card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #222226, #131315);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-content {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card h3 { font-size: 20px; text-transform: none; margin: 0; color: var(--white); }
[dir="rtl"] .card h3 { font-family: "Tajawal", sans-serif; }
.card p { color: rgba(255,255,255,0.9); font-size: 15px; margin: 0; }
.card .price-tag { color: var(--yellow); font-weight: 700; margin-top: 4px; }
.card .btn { margin-top: auto; }

.product-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-media {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #222226, #131315);
  display: flex; align-items: center; justify-content: center;
  color: var(--yellow); font-size: 48px;
}
.product-body { padding: 22px; }
.product-body h3 { font-size: 18px; text-transform: none; margin-bottom: 6px; }
[dir="rtl"] .product-body h3 { font-family: "Tajawal", sans-serif; }
.product-body .cat { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }

/* ---------- Testimonials ---------- */
.testi-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.testi-stars { color: var(--yellow); margin-bottom: 14px; letter-spacing: 3px; }
.testi-name { font-weight: 700; margin-top: 16px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--yellow);
  color: var(--ink);
  border-radius: 24px;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--ink); margin-bottom: 8px; }
.cta-band p { color: rgba(11,11,12,0.75); margin: 0; }
.cta-band .btn-primary { background: var(--ink); color: var(--white); }
.cta-band .btn-primary:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.25); }

/* ---------- Footer ---------- */
.site-footer { background: #060607; border-top: 1px solid var(--line); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); max-width: 320px; }
.footer-col h4 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; color: var(--yellow); }
.footer-col li { margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.footer-col a:hover { color: var(--yellow); }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.social-links a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  z-index: 1000;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  animation: pulse-wa 2.4s infinite;
}
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  padding: 70px 0 50px;
  text-align: center;
  background: linear-gradient(180deg, rgba(247,209,10,0.08), transparent);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(32px, 4vw, 48px); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.info-item .ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(247,209,10,0.12); color: var(--yellow);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.info-item h4 { margin: 0 0 4px; font-size: 15px; text-transform: none; }
[dir="rtl"] .info-item h4 { font-family: "Tajawal", sans-serif; }
.info-item p { margin: 0; color: var(--muted); font-size: 14px; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.08); }
.status-badge .dot { width: 8px; height: 8px; border-radius: 50%; }
.status-badge.open .dot { background: #2ecc71; }
.status-badge.closed .dot { background: #e74c3c; }

.form-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--panel);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px; /* >=16px : évite le zoom auto d'iOS Safari au focus */
  margin-bottom: 16px;
}
[dir="rtl"] .form-control { font-family: "Tajawal", sans-serif; }
.form-control:focus { outline: none; border-color: var(--yellow); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 100%; min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ============================================================
   SECTION : SERVICE DELIVERY (intégré au thème sombre)
   ============================================================ */
.delivery-section {
  padding: 4rem 0 5rem;
  background: var(--panel);
  border-radius: 30px 30px 0 0;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
}

/* Bandeau publicitaire */
.promo-banner {
  background: var(--yellow);
  color: var(--ink);
  text-align: center;
  padding: 0.7rem 1.5rem;
  border-radius: 60px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 2.5rem;
  animation: pulse-banner 2.5s infinite;
  box-shadow: 0 4px 12px rgba(247, 209, 10, 0.3);
}
.promo-banner i { margin: 0 0.6rem; }
@keyframes pulse-banner {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); background: var(--yellow-dim); }
}

.delivery-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.delivery-content .badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.25rem 1.2rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}
.delivery-content h2 {
  font-size: 2.5rem;
  margin-bottom: 0.3rem;
  color: var(--white);
}
.delivery-sub {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.delivery-desc {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.8rem;
  line-height: 1.7;
}

.delivery-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--white);
}
.feature-item i {
  color: var(--yellow);
  font-size: 1.3rem;
  width: 2rem;
  text-align: center;
}

.delivery-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.5);
}
.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.image-wrapper:hover img { transform: scale(1.03); }

.floating-badge {
  position: absolute;
  bottom: 1.5rem;
  right: -0.5rem;
  background: var(--panel-2);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
}
.floating-badge i {
  color: var(--yellow);
  font-size: 1.2rem;
}

.pulse-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(247, 209, 10, 0.04);
  border: 1px solid rgba(247, 209, 10, 0.08);
  animation: pulse-ring 3.5s infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---- Delivery Gallery (4 colonnes) ---- */
.delivery-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.delivery-gallery a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.delivery-gallery a img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.delivery-gallery a:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.delivery-gallery a:hover img {
    transform: scale(1.05);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .navbar { flex-wrap: nowrap; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand img { height: 48px; }
  .brand-text span { font-size: 12px; letter-spacing: 0.02em; white-space: normal; line-height: 1.3; }
  .nav-links, .nav-actions .btn-primary { display: none; }
  .nav-actions { gap: 8px; }
  .lang-switch { padding: 8px 14px; font-size: 13px; }
  .burger { display: block; flex-shrink: 0; font-size: 26px; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--panel);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
  .nav-links.mobile-open a { font-size: 17px; padding: 8px 0; }

  .hero { padding: 70px 0 60px; }
  .hero h1 { font-size: clamp(32px, 9vw, 42px); }
  .hero p { font-size: 17px; line-height: 1.65; max-width: 100%; }

  .eyebrow { font-size: 14px; }

  .stats-bar { grid-template-columns: 1fr; gap: 30px; }
  .stat .num { font-size: 40px; }
  .stat .label { font-size: 15px; }

  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .card h3 { font-size: 20px; }
  .card p { font-size: 16px; }
  .card-content { padding: 22px 22px 24px; }

  .product-body { padding: 20px; }
  .product-body h3 { font-size: 18px; }
  .product-body .cat { font-size: 12.5px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-col h4 { font-size: 16px; }
  .footer-col li { font-size: 15px; }
  .footer-bottom { font-size: 13px; }

  .cta-band { flex-direction: column; text-align: center; padding: 40px 26px; }
  .cta-band h2 { font-size: 26px; }
  .cta-band p { font-size: 16px; }
  .section { padding: 60px 0; }

  .page-hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .info-item h4 { font-size: 16px; }
  .info-item p { font-size: 15px; }

  .testi-card { padding: 24px; }
  .testi-name { font-size: 16px; }

  .delivery-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .delivery-content h2 { font-size: 2rem; }
  .delivery-features {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 1rem;
  }
  .floating-badge {
    right: 1rem;
    bottom: 1rem;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
  .pulse-ring {
    width: 150px;
    height: 150px;
  }
  .promo-banner {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }

  .delivery-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .delivery-gallery a img {
    height: 150px;
  }

  .wa-float { width: 56px; height: 56px; font-size: 26px; bottom: 18px; }
}

@media (max-width: 480px) {
  .brand img { height: 40px; }
  .brand-text { display: none; }

  .hero h1 { font-size: clamp(28px, 9.5vw, 34px); }
  .hero p { font-size: 16px; }

  .stat .num { font-size: 34px; }

  .btn { padding: 14px 22px; font-size: 15px; }
  .btn-lg { padding: 16px 28px; font-size: 16px; }

  .delivery-gallery {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .delivery-gallery a img {
    height: 200px;
  }
}

/* Ajustements RTL (arabe) */
html[dir="rtl"] .floating-badge {
  right: auto;
  left: -0.5rem;
}
html[dir="rtl"] .floating-badge i {
  margin-left: 0.5rem;
  margin-right: 0;
}
html[dir="rtl"] .promo-banner i {
  margin: 0 0.6rem;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}