:root{
  --dark:#080b12;
  --ink:#101423;
  --muted:#697182;
  --gold:#d4af37;
  --green:#25d366;
  --soft:#f5f6f8;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--ink);
  background:#fff;
}

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

/* HEADER */
.top{
  position:sticky;
  top:0;
  z-index:10;
  background:#fff;
  border-bottom:1px solid #eee;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 24px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  font-weight:900;
}

.brand img{
  width:120px;
  height:120px;
  border-radius:50%;
  object-fit:cover;
}

.brand span{
  background:linear-gradient(135deg,#e8c75a,#b88b12);
  color:#101423;
  padding:12px 18px;
  border-radius:14px;
  font-size:24px;
  font-weight:900;
  line-height:1;
  display:inline-block;
  box-shadow:0 4px 12px rgba(212,175,55,.25);
}

.desktop{
  display:flex;
  gap:26px;
  align-items:center;
  font-weight:700;
}

.wa,
.gold{
  background:linear-gradient(135deg,#e8c75a,#b88b12);
  color:#0c0c0c!important;
  border-radius:14px;
  padding:13px 20px;
  font-weight:900;
}

.hamb{
  display:none;
  background:#101423;
  color:white;
  border:0;
  border-radius:12px;
  font-size:24px;
  padding:10px 14px;
}

/* MOBILE DRAWER */
.drawer{
  position:fixed;
  right:-100%;
  top:0;
  width:88%;
  max-width:390px;
  height:100vh;
  background:#fff;
  z-index:40;
  padding:28px 24px;
  padding-bottom:140px;
  transition:.28s;
  box-shadow:-20px 0 60px #0002;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}

.drawer.open{right:0}

.drawer-brand{
  text-align:center;
  margin-bottom:24px;
}

.drawer-logo{
  width:150px;
  height:150px;
  object-fit:cover;
  border-radius:50%;
  margin-bottom:12px;
  box-shadow:0 8px 24px rgba(212,175,55,.35);
}

.drawer-brand h3{
  font-size:1.35rem;
  margin:8px 0 4px;
  color:#101423;
  font-weight:900;
}

.drawer-brand p{
  margin:0;
  color:#697182;
  font-size:.95rem;
  line-height:1.4;
}

.drawer-trust,
.drawer-brand span{
  display:inline-block;
  margin-top:12px;
  color:#d4af37;
  font-weight:900;
  font-size:.85rem;
  letter-spacing:.5px;
}

.drawer a{
  display:block;
  font-size:1.45rem;
  font-weight:900;
  padding:17px 8px;
  border-bottom:1px solid rgba(212,175,55,.35);
}

.drawer-wa{
  background:#101423!important;
  color:#d4af37!important;
  border-radius:18px!important;
  text-align:center;
  margin-top:20px;
  border-bottom:0!important;
}

.drawer-contact{
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid rgba(212,175,55,.35);
}

.drawer-contact p{
  margin:10px 0;
  font-size:1rem;
  color:#101423;
  font-weight:700;
  line-height:1.45;
}

.close{
  float:right;
  border:0;
  background:#f0f1f4;
  border-radius:16px;
  font-size:34px;
  width:64px;
  height:64px;
}

.shade{
  display:none;
  position:fixed;
  inset:0;
  background:#0008;
  z-index:30;
}

.shade.show{display:block}

/* HERO */
.hero{
  min-height:460px;
  background:linear-gradient(90deg,#090d16e8,#090d16b0),url('assets/raptor-1.webp') center/cover;
  color:white;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:40px;
  align-items:flex-start;
  padding:55px 5vw 90px;
}

.eyebrow{
  text-transform:uppercase;
  letter-spacing:4px;
  color:var(--gold);
  font-weight:900;
}

.hero h1{
  font-size:clamp(42px,5vw,64px);
  line-height:1.05;
  margin:10px 0;
  max-width:780px;
}

.lead{
  font-size:22px;
  max-width:700px;
  color:#e8e8e8;
}

.btn{
  display:inline-block;
  border-radius:16px;
  padding:12px 20px;
  font-weight:900;
  margin:8px;
}

.light{
  background:white;
  color:#111;
}

.hero-card{display:none}

/* SEARCH */
.search{
  margin:-55px 5vw 30px;
  background:white;
  border-radius:24px;
  box-shadow:0 20px 70px #0002;
  padding:20px;
  position:relative;
}

.search h2{
  font-size:32px;
  margin:0 0 15px;
}

.filters{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1fr 1fr;
  gap:12px;
}

select,
#searchText{
  width:100%;
  height:44px;
  font-size:14px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #ddd;
  background:#f6f6f6;
}

/* SECTIONS */
.inventory,
.featured-section,
.about,
.reviews,
.map-section,
.contact{
  padding:45px 5vw;
}

.inventory h2,
.featured-section h2,
.about h2,
.reviews h2,
.map-section h2,
.contact h2{
  font-size:42px;
  margin:0 0 18px;
}

.section-lead{
  color:var(--muted);
  font-size:16px;
  max-width:520px;
  margin-bottom:28px;
}

/* CARDS */
.grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

.card{
  border:1px solid #eee;
  border-radius:24px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.main-photo,
.card img{
  width:100%;
  height:220px;
  object-fit:contain;
  object-position:center;
  display:block;
  background:#f5f6f8;
}

.card-body{
  padding:14px;
}

.card-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.tag{
  background:#f5efd9;
  color:#8a6810;
  border-radius:999px;
  padding:6px 12px;
  font-size:.8rem;
  font-weight:800;
}

.status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 12px;
  border-radius:999px;
  font-size:.8rem;
  font-weight:800;
  white-space:nowrap;
}

.status.available{
  background:#dcfce7;
  color:#166534;
}

.status.reserved{
  background:#fef3c7;
  color:#92400e;
}

.status.sold{
  background:#fee2e2;
  color:#991b1b;
}

.card h3{
  font-size:1.35rem;
  line-height:1.2;
  margin:0 0 8px;
}

.specs.compact{
  color:#6b7280;
  font-size:.9rem;
  font-weight:700;
  margin-bottom:12px;
  line-height:1.4;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.card-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.card-actions .btn{
  flex:1;
  text-align:center;
  font-size:.9rem;
  padding:11px;
}

.dark,
.details-btn{
  background:#101423;
  color:white!important;
  border:0;
  cursor:pointer;
  border-radius:14px;
  font-weight:800;
}

/* INVENTORY PHOTO FOCUS */
#cars .main-photo,
#cars .card img{
  height:280px;
  object-fit:contain;
}

#cars .card-body{
  padding:10px;
}

#cars .card h3{
  font-size:1.4rem;
  line-height:1.1;
  margin:0 0 6px;
}

#cars .specs.compact{
  font-size:.85rem;
  margin-bottom:8px;
}

#cars .details-btn,
#cars .card-actions .btn{
  padding:9px 14px;
  font-size:.85rem;
  border-radius:12px;
}

#cars .card-actions .status{
  padding:6px 12px;
  font-size:.75rem;
}

/* FEATURED CAROUSEL */
.vehicle-carousel{
  display:flex;
  align-items:center;
  gap:15px;
}

.carousel-track{
  display:flex;
  overflow-x:auto;
  gap:20px;
  scroll-behavior:smooth;
  scrollbar-width:none;
}

.carousel-track::-webkit-scrollbar{display:none}

.carousel-track .card{
  min-width:320px;
  flex:0 0 auto;
}

.carousel-btn{
  width:50px;
  height:50px;
  border:none;
  border-radius:50%;
  background:#101423;
  color:#fff;
  font-size:24px;
  cursor:pointer;
  flex:0 0 auto;
}

#featuredCars .card{
  border-radius:24px;
  border:1px solid #eee;
  box-shadow:0 14px 35px rgba(0,0,0,.10);
  overflow:hidden;
}

#featuredCars .main-photo,
#featuredCars .card img{
  height:300px;
  object-fit:cover;
  background:#f5f6f8;
}

#featuredCars .card-body{
  padding:16px;
}

#featuredCars .tag{
  background:#facc15;
  color:#111;
}

#featuredCars .card h3{
  font-size:1.25rem;
}

#featuredCars .specs.compact{
  font-size:.85rem;
}

/* DETAILS MODAL */
.modal{
  position:fixed;
  inset:0;
  background:#0009;
  z-index:60;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.modal.show{display:flex}
.no-scroll{overflow:hidden}

.modal-panel{
  background:white;
  border-radius:28px;
  max-width:1120px;
  width:100%;
  max-height:92vh;
  overflow:auto;
  position:relative;
  box-shadow:0 30px 80px #0008;
}

.modal-close{
  position:sticky;
  top:14px;
  float:right;
  margin:14px 14px 0 0;
  border:0;
  background:#f0f1f4;
  border-radius:16px;
  font-size:34px;
  width:58px;
  height:58px;
  z-index:2;
  cursor:pointer;
}

.details-layout{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:26px;
  padding:28px;
}

.detail-main{
  width:100%;
  height:500px;
  object-fit:cover;
  border-radius:24px;
  background:#eee;
}

.detail-gallery{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  margin-top:12px;
}

.detail-gallery img{
  width:100%;
  height:82px;
  object-fit:cover;
  border-radius:12px;
  cursor:pointer;
  border:2px solid transparent;
}

.detail-gallery img:hover{
  border-color:var(--gold);
}

.detail-info h2{
  font-size:38px;
  margin:12px 0;
}

.detail-specs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:20px 0;
}

.detail-specs p{
  background:#f5f6f8;
  border-radius:12px;
  padding:12px;
  margin:0;
}

.wide{
  text-align:center;
  width:100%;
  margin-top:12px;
}

/* FULL GALLERY */
.full-gallery-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.95);
  z-index:200;
  display:none;
  align-items:center;
  justify-content:center;
}

.full-gallery-modal.show{display:flex}

.full-gallery-image{
  max-width:92vw;
  max-height:86vh;
  object-fit:contain;
}

.full-gallery-close{
  position:absolute;
  top:18px;
  right:18px;
  width:48px;
  height:48px;
  border:0;
  border-radius:50%;
  background:white;
  color:#111;
  font-size:32px;
  cursor:pointer;
  z-index:3;
}

.full-gallery-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:54px;
  height:54px;
  border:0;
  border-radius:50%;
  background:white;
  color:#111;
  font-size:38px;
  font-weight:900;
  cursor:pointer;
  z-index:3;
}

.full-gallery-arrow.left{left:18px}
.full-gallery-arrow.right{right:18px}

.full-gallery-count{
  position:absolute;
  bottom:18px;
  left:50%;
  transform:translateX(-50%);
  background:#fff;
  color:#111;
  border-radius:999px;
  padding:8px 16px;
  font-weight:900;
}

/* ABOUT / REVIEWS / MAP */
.about{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  background:#0b0e16;
  color:white;
}

.about p{
  color:#d5d8df;
  font-size:18px;
}

.points{
  display:grid;
  gap:14px;
}

.points span{
  background:#ffffff12;
  padding:18px;
  border-radius:16px;
  font-weight:800;
}

.reviews{background:#fff}

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

.review-grid article{
  border:1px solid #eee;
  border-radius:24px;
  padding:24px;
  box-shadow:0 12px 34px #0000000d;
  background:#fff;
}

.stars{
  color:var(--gold);
  font-size:24px;
  letter-spacing:2px;
  margin-bottom:12px;
}

.map-section,
.contact{
  text-align:center;
  background:#fafafa;
}

.map-wrap{
  margin:24px auto;
  max-width:1100px;
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 18px 50px #0002;
  border:1px solid #eee;
}

.map-wrap iframe{
  width:100%;
  height:440px;
  border:0;
  display:block;
}

footer{
  text-align:center;
  padding:30px;
  background:#07090f;
  color:white;
}

footer img{
  width:90px;
  border-radius:50%;
}

/* FLOAT WHATSAPP */
.float-whatsapp{
  position:fixed;
  right:20px;
  bottom:20px;
  width:60px;
  height:60px;
  border-radius:50%;
  background:#25d366;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  box-shadow:0 10px 25px rgba(37,211,102,.4);
}

.float-whatsapp img{
  width:32px;
  height:32px;
}

/* MOBILE */
@media(max-width:900px){

  .desktop{display:none}
  .hamb{display:block}

  .top{
    padding:10px 4vw;
  }

  .brand img{
    width:72px;
    height:72px;
  }

  .brand span{
    font-size:18px;
    padding:10px 14px;
  }

  .hero{
    grid-template-columns:1fr;
    min-height:400px;
    padding:45px 5vw 75px;
  }

  .hero h1{
    font-size:42px;
    line-height:1.05;
    max-width:95%;
  }

  .hero .lead{
    font-size:18px;
  }

  .eyebrow{
    font-size:13px;
    letter-spacing:3px;
  }

  .search{
    width:auto;
    padding:18px;
    margin:-35px 4vw 25px;
    overflow:hidden;
  }

  .search h2{
    font-size:28px;
  }

  .filters{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  #searchText{
    grid-column:1 / -1;
  }

  select,
  #searchText{
    height:42px;
    font-size:13px;
  }

  .grid,
  .about{
    grid-template-columns:1fr;
  }

  .inventory,
  .featured-section,
  .about,
  .reviews,
  .map-section,
  .contact{
    padding:38px 4vw;
  }

  .inventory h2,
  .featured-section h2{
    font-size:34px;
  }

  #cars .card{
    max-width:520px;
    margin:0 auto;
  }

  #cars .main-photo,
  #cars .card img{
    height:280px;
  }

  .carousel-track .card,
  #featuredCars .card{
    flex:0 0 76vw;
    width:76vw;
    max-width:76vw;
  }

  #featuredCars .main-photo,
  #featuredCars .card img{
    height:230px;
  }

  .carousel-btn{
    width:34px;
    height:34px;
    font-size:22px;
  }

  .details-layout{
    grid-template-columns:1fr;
    padding:18px;
  }

  .detail-main{
    height:310px;
  }

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

  .review-grid{
    grid-template-columns:1fr;
  }

  .map-wrap iframe{
    height:360px;
  }

  .float-whatsapp{
    width:54px;
    height:54px;
    right:15px;
    bottom:15px;
  }

  .float-whatsapp img{
    width:28px;
    height:28px;
  }

  .full-gallery-arrow{
    width:42px;
    height:42px;
    font-size:30px;
  }
}
