/* ============================================================
   Refaay Limousine – Custom CSS
   Theme: Black & Gold Luxury
   ============================================================ */

:root {
  --gold: #C9A84C;
  --gold-light: #E4C97A;
  --gold-dark: #A0822A;
  --dark: #0a0a0a;
  --dark-700: #1a1a1a;
  --dark-800: #141414;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ── Selection ── */
::selection { background: var(--gold); color: var(--dark); }

/* ── Alpine x-cloak ── */
[x-cloak] { display: none !important; }

/* ── Base ── */
body { font-family: inherit; scroll-behavior: smooth; }

/* ── Gradients ── */
.hero-gradient {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1208 50%, #0a0a0a 100%);
}
.cta-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
}

/* ── Buttons ── */
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--dark);
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}
.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-1px);
}

/* ── Navbar ── */
.nav-link {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-link:hover { color: var(--gold); }

/* ── Cards ── */
.service-card {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  transition: all 0.3s ease;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(201,168,76,0.12);
}

.vehicle-card {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}
.vehicle-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(201,168,76,0.12);
}

/* ── Divider ── */
.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

/* ── Filter Pills ── */
.filter-pill {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.filter-pill:hover, .filter-pill.active {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

/* ── Testimonial ── */
.testimonial-card {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
}

/* ── FAQ ── */
.faq-item {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(201,168,76,0.3); }

/* ── Spec Card ── */
.spec-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* ── Social Icons ── */
.social-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: all 0.2s;
  text-decoration: none;
}
.social-icon:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

/* ── Footer Link ── */
.footer-link {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  transition: color 0.2s;
  text-decoration: none;
  display: block;
}
.footer-link:hover { color: var(--gold); }

/* ── Forms ── */
.form-input,
input.form-input,
select.form-input,
textarea.form-input,
input[name], select[name], textarea[name] {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input[name]:focus, select[name]:focus, textarea[name]:focus,
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
select[name] option { background: #1a1a1a; color: #fff; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-error { color: #fc8181; font-size: 0.75rem; margin-top: 4px; }
.form-section { padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

/* ── RTL Adjustments ── */
html[dir="rtl"] .me-1 { margin-right: 0; margin-left: 0.25rem; }
html[dir="rtl"] .me-2 { margin-right: 0; margin-left: 0.5rem; }
html[dir="rtl"] .me-3 { margin-right: 0; margin-left: 0.75rem; }
html[dir="rtl"] .ms-auto { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .swiper-button-next { left: 10px; right: auto; }
html[dir="rtl"] .swiper-button-prev { right: 10px; left: auto; }

/* ── Swiper Custom ── */
.swiper-pagination-bullet { background: rgba(255,255,255,0.3); }
.swiper-pagination-bullet-active { background: var(--gold); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 18px; color: var(--gold); }

/* ── Animate.css utility ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-float { animation: float 3s ease-in-out infinite; }

/* ── Responsive / Mobile ── */
@media (max-width: 640px) {
  /* Typography */
  .font-display { font-size: 1.75rem; }
  h1.font-display { font-size: 2rem; line-height: 1.2; }

  /* Filter pills – horizontal scroll */
  section.py-6 .flex.flex-wrap { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .filter-pill { white-space: nowrap; flex-shrink: 0; }

  /* Form inputs – prevent iOS zoom (must be 16px+) */
  input[name], select[name], textarea[name],
  input.form-input, select.form-input, textarea.form-input {
    font-size: 1rem;
    padding: 12px 14px;
  }

  /* Booking form padding */
  .bg-dark-700.rounded-2xl { padding: 18px; }

  /* Sidebar no sticky on mobile */
  .sticky { position: relative; top: auto !important; }

  /* Vehicle gallery height on mobile */
  .vehicleMainSwiper img { height: 240px !important; }

  /* Footer – single column */
  footer .grid.grid-cols-1.md\:grid-cols-4 { grid-template-columns: 1fr; }

  /* Hero height reduction */
  .h-72 { height: 220px; }
  .h-64 { height: 190px; }
  .h-48 { height: 160px; }

  /* Spec card grid on mobile */
  .spec-card { font-size: 0.82rem; padding: 8px 12px; }

  /* WhatsApp FAB size */
  a.w-14.h-14 { width: 52px; height: 52px; }
  a.w-14.h-14 i { font-size: 1.25rem; }
}

@media (max-width: 400px) {
  h1.font-display { font-size: 1.6rem; }
  .font-display { font-size: 1.4rem; }
}

/* Prevent hover effects on touch screens */
@media (hover: none) and (pointer: coarse) {
  .vehicle-card:hover,
  .service-card:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,0.06); }
  .btn-gold:hover,
  .btn-outline:hover { transform: none; box-shadow: none; }
  .social-icon:hover { transform: none; }
}
