/*
  YAHIMDI CAR LUXURY — Styles
  Luxury-inspired theme with smooth animations and responsive layout.
*/

:root {
  --bg: #0a0d12;
  --bg-alt: #101620;
  --card: #141a24;
  --text: #eef2f6;
  --muted: #a7b2c0;
  --gold-1: #c9a862;
  --gold-2: #eddca9;
  --primary: #d9bf78; /* gold */
  --accent: #67d4c0; /* subtle mint accent */
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(214,181,109,0.08), transparent 60%),
              radial-gradient(800px 400px at 10% 10%, rgba(109,214,193,0.08), transparent 60%),
              var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fluid media */
img, svg, video { max-width: 100%; height: auto; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(140%) blur(10px);
  background: color-mix(in oklab, var(--bg-alt) 60%, transparent);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.scrolled .site-header { box-shadow: 0 6px 20px rgba(0,0,0,.35); border-color: rgba(255,255,255,0.08); background: color-mix(in oklab, var(--bg-alt) 82%, transparent); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand.small { font-size: 0.95rem; opacity: 0.9; }
.brand-logo { width: 36px; height: 36px; display: block; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.35); object-fit: cover; }
.brand-text { white-space: nowrap; }

.site-nav { display: flex; gap: 22px; }
.site-nav a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
  position: relative;
  transition: opacity .2s ease, color .2s ease;
}
.site-nav a:hover { opacity: 1; color: var(--primary); }
.site-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; }
.nav-toggle {
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .25s ease, opacity .2s ease; }
.site-nav.open + .nav-toggle span { transform: none; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 30px;
}
.hero::before {
  content: ""; position: absolute; inset: -80px -10% auto -10%; height: 320px; z-index: -1;
  background:
    radial-gradient(500px 220px at 85% 40%, rgba(103,212,192,.25), transparent 60%),
    linear-gradient(135deg, rgba(201,168,98,.25), rgba(237,220,169,.08));
  filter: blur(1px);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
  mask-image: linear-gradient(180deg, black, transparent);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 2.5vw + 1.5rem, 3.4rem);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: .4px;
}
.hero-copy p { color: var(--muted); margin: 0 0 24px; }
.hero-copy h1, .hero-copy p { text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hero-cta { display: flex; gap: 12px; }

.car-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.55); background: #0d121a; }
.car-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.25) 100%); pointer-events: none; }
.hero-badges {
  display: grid; gap: 10px; grid-auto-flow: column; justify-content: start; margin-top: 10px;
}
.badge { background: #0f141d; border: 1px solid rgba(255,255,255,.08); padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 0.9rem; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0)), var(--bg-alt); }
.section-head h2 { font-size: clamp(1.8rem, 1.4vw + 1.2rem, 2.4rem); margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(214,181,109,0.35); box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.card-icon { font-size: 26px; margin-bottom: 6px; }

/* Fleet */
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.fleet-card { background: var(--card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.fleet-card:hover { transform: translateY(-6px); border-color: rgba(214,181,109,0.35); box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.fleet-media { aspect-ratio: 16 / 9; background: #0d121a; }
.fleet-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fleet-body { padding: 18px 18px 20px; }
.fleet-body h3 { margin: 0 0 6px; }
.fleet-specs { margin: 0 0 10px; padding: 0; list-style: none; color: var(--muted); }
.fleet-specs li { margin: 4px 0; }
.link { color: var(--primary); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Location / Map */
.loc-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; align-items: stretch; margin-top: 28px; }
.map-wrap { display: grid; }
.map-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.06); background: #0d121a; }
.map-card::before { content: ""; position: absolute; inset: -1px; border-radius: calc(var(--radius) + 1px); pointer-events: none; background: linear-gradient(135deg, rgba(201,168,98,.25), rgba(237,220,169,.08)); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; }
.map-embed { display: block; width: 100%; height: 100%; min-height: 360px; }
.loc-info h3 { margin: 0 0 8px; }
.loc-info p { margin: 0 0 12px; color: var(--muted); }

/* Booking form */
.booking-form {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 26px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
label { display: grid; gap: 6px; font-weight: 600; color: var(--text); }
input, select {
  appearance: none;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: #0e141d;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus { border-color: rgba(214,181,109,0.5); box-shadow: 0 0 0 3px rgba(214,181,109,0.2); }
.date-field { position: relative; display: block; }
.date-field input { padding-right: 38px; }
.date-field::after {
  content: "";
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; opacity: .7; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23d9bf78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M8 2v4M16 2v4M3 10h18'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
.is-invalid { border-color: #e68; box-shadow: 0 0 0 3px rgba(230,102,136,0.2); }
.form-status { margin-top: 10px; font-weight: 600; }
.form-status.ok { color: var(--accent); }
.form-status.error { color: #ffb3c8; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.form-hint { color: var(--muted); margin: 8px 0 0; font-size: .95rem; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.testimonial { background: var(--card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.testimonial blockquote { margin: 0 0 8px; font-size: 1.05rem; }
.testimonial figcaption { color: var(--muted); }

/* Animated Reviews */
.reviews { display: grid; gap: 16px; margin-top: 26px; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent); }
.marquee-track { display: flex; gap: 14px; padding: 6px 0; will-change: transform; }
.marquee-1 .marquee-track { animation: scroll-left 32s linear infinite; }
.marquee-2 .marquee-track { animation: scroll-left 36s linear infinite reverse; }
.review-card { min-width: 320px; max-width: 360px; background: var(--card); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.review-name { font-weight: 700; }
.review-city { color: var(--muted); font-size: .95rem; }
.review-text { margin: 6px 0 8px; color: var(--text); }
.stars { color: var(--primary); letter-spacing: 1px; }
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { background: var(--card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.contact-actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Legal page */
.legal { max-width: 860px; }
.legal h1 { margin: 0 0 8px; font-size: clamp(1.9rem, 1.6vw + 1.2rem, 2.6rem); }
.legal h2 { margin: 26px 0 8px; font-size: 1.25rem; letter-spacing: .2px; }
.legal p { color: var(--text); margin: 0 0 12px; }
.legal ul { margin: 0 0 12px 18px; color: var(--muted); }
.legal li { margin: 6px 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 700; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease; }
.btn-primary { background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: #0d0f14; }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,0.15); }
.btn-ghost:hover { border-color: rgba(214,181,109,0.5); color: var(--primary); transform: translateY(-1px); }
.btn-wa { background: linear-gradient(135deg, #25D366, #1ebe57); color: #0a0d12; }
.btn-wa:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-yt { background: linear-gradient(135deg, #ff3d3d, #cc0000); color: #fff; }
.btn-yt:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-fb { background: linear-gradient(135deg, #1877F2, #0f5bd3); color: #fff; }
.btn-fb:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn .icon { width: 18px; height: 18px; display: inline-block; }

/* Footer */
.site-footer {
  margin-top: 60px;
  padding: 28px 0 36px;
  background: #0a0d12;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.footer-nav { display: flex; gap: 16px; justify-content: center; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--primary); }
.copy { text-align: right; color: var(--muted); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.visible { opacity: 1; transform: translateY(0); transition: opacity .7s ease, transform .7s ease; }

/* Scroll progress + To top */
.scroll-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold-1), var(--gold-2)); z-index: 2000; box-shadow: 0 0 10px rgba(214,181,109,.6); }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: #0e1015; font-weight: 900; cursor: pointer; box-shadow: var(--shadow); transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .2s ease, opacity .2s ease; }
.to-top.show { transform: translateY(0); opacity: 1; pointer-events: auto; }

/* Header CTA (desktop only) */
.header-cta { margin-left: 12px; display: none; }
@media (min-width: 681px) { .header-cta { display: inline-flex; } }

/* Subtle tilt interaction */
.tilt { transform: translateY(0) perspective(800px) rotateX(0deg) rotateY(0deg); transition: transform .25s ease, box-shadow .25s ease; }
.tilt:hover { transform: translateY(-6px) perspective(800px) rotateX(0.6deg) rotateY(-0.6deg); }

/* Image skeleton shimmer */
.skeleton { position: relative; }
.skeleton::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08), rgba(255,255,255,0.04)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.skeleton.loaded::before { display: none; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Mobile quick action dock */
.quick-dock { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); display: none; gap: 10px; z-index: 1800; }
.quick-dock .btn { padding: 10px 14px; border-radius: 999px; box-shadow: var(--shadow); }
@media (max-width: 680px) { .quick-dock { display: flex; } }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; position: relative; }
  .hero-art, .car-frame { order: -1; }
  /* Overlay hero copy over image for readability */
  .hero-copy {
    position: absolute;
    left: 12px; right: 12px; bottom: 12px;
    background: linear-gradient(180deg, rgba(10,13,18,0.0), rgba(10,13,18,0.78));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 14px 16px;
    backdrop-filter: blur(2px) saturate(110%);
  }
  .hero-cta { flex-direction: column; align-items: stretch; }
}

/* Strengthen car image overlay for text contrast */
.car-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.0) 45%, rgba(0,0,0,0.5) 100%); pointer-events: none; }
@media (max-width: 860px) {
  .card-grid, .fleet-grid, .testimonials, .contact-grid, .loc-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .copy { text-align: center; }
}
@media (max-width: 740px) {
  .hero { padding: 64px 0 24px; }
  .section { padding: 64px 0; }
  .hero-cta { flex-direction: column; align-items: stretch; }
}
@media (max-width: 680px) {
  .site-nav { position: absolute; right: 4%; top: 62px; background: #0c1119; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 10px; display: grid; gap: 6px; width: min(240px, 92%); transform-origin: top right; transform: scale(0.98); opacity: 0; pointer-events: none; transition: transform .18s ease, opacity .18s ease; }
  .site-nav.open { transform: scale(1); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: inline-block; }
}
@media (max-width: 560px) {
  .container { width: min(640px, 92%); }
  .card-grid, .fleet-grid, .testimonials, .contact-grid, .loc-grid { grid-template-columns: 1fr; }
  .hero-badges { grid-auto-flow: row; justify-content: stretch; }
  .brand-logo { width: 32px; height: 32px; }
  .brand-text { font-size: 0.98rem; }
  .booking-form .btn-primary { width: 100%; }
  .to-top { right: 14px; bottom: 14px; width: 38px; height: 38px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: #fff;
  color: #111;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
  z-index: 3000;
}
.skip-link:focus,
.skip-link:active,
.skip-link:focus-visible {
  left: 12px;
  top: 12px;
  outline: 2px solid var(--primary);
}

  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-art { filter: none; }
}
