/* =====================================
   WHAT-A-RENTAL CAR SALES – CORE STYLES
   ===================================== */

/* ---------- Global ---------- */
:root{
  --brand-yellow:#F2D01C;
  --brand-dark:#111111;
  --text:#222;
  --muted:#666;
  --bg:#f7f7f7;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
  background:#000;
  overscroll-behavior-y:none;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

/* Layout helpers */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
}

.section{
  padding:60px 0;
}

.section h2{
  font-size:28px;
  margin:0 0 22px;
}

.small{
  font-size:12px;
  color:var(--muted);
}

/* Keep anti-spam fields available to browsers without showing them to users. */
.form-honeypot{
  position:absolute !important;
  left:-10000px !important;
  top:auto !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  white-space:nowrap !important;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;
  background:var(--brand-yellow);
  color:#000;
  padding:12px 18px;
  border-radius:12px;
  font-weight:700;
  text-decoration:none;
  border:none;
  cursor:pointer;
}

.btn:hover{
  filter:brightness(0.96);
}

.btn.outline{
  background:#fff;
  border:2px solid var(--brand-yellow);
}

.btn.small{
  padding:6px 14px;
  font-size:0.875rem;
  border-radius:6px;
}

/* ---------- Header & Navigation ---------- */

.header{
  position:static;               /* non-sticky for car sales */
  background:#fff;
  border-bottom:1px solid #eee;
  z-index:10;
}

.header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 20px;
  position:relative;             /* anchors dropdown nav */
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text);
}

.logo img{
  height:96px;
  width:auto;
  display:block;
}

.logo .brand{
  font-weight:800;
  letter-spacing:.5px;
}

.nav{
  display:flex;
  align-items:center;
}

.nav a{
  position:relative;
  display:inline-block;
  margin-left:18px;
  text-decoration:none;
  color:var(--text);
  font-size:0.95rem;
}

.nav a:not(.btn){
  border-bottom:2px solid transparent;
  padding-bottom:2px;
}

.nav a:not(.btn):hover{
  border-bottom-color:var(--brand-yellow);
}

.nav > a:not(.btn)::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:100%;
  height:3px;
  background:var(--brand-yellow);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .18s ease;
}

.nav > a:not(.btn):hover::after{
  transform:scaleX(1);
}

.nav a.btn{
  background:var(--brand-yellow);
  padding:10px 14px;
  border-radius:10px;
  color:#000;
  font-weight:700;
}

.nav a.active,
.nav a[aria-current="page"]{
  font-weight:700;
  border-bottom:2px solid var(--brand-yellow);
}

/* Mobile nav toggle */
.menu-toggle{
  display:none;
  font-size:26px;
  line-height:1;
  background:transparent;
  border:0;
  padding:8px;
  cursor:pointer;
}

/* Mobile nav behavior */
@media (max-width:900px){
  .logo img{
    height:64px;
  }

  .menu-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border:1px solid #eee;
    border-radius:10px;
    background:#fff;
  }

  .nav{
    position:absolute;
    top:64px;
    right:20px;
    display:none;
    flex-direction:column;
    gap:10px;
    background:#fff;
    border:1px solid #eee;
    border-radius:12px;
    padding:12px;
    min-width:220px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
    z-index:999;
  }

  .nav.open{
    display:flex;
  }

  .nav a{
    margin:0;
    padding:10px 8px;
    border-radius:8px;
  }

  .nav > a:not(.btn)::after{
    display:none;
  }

  .nav a.btn{
    width:100%;
    text-align:center;
  }
}

/* ---------- Sell Us Your Car Banner (top strip) ---------- */

.sell-banner{
  background:#000;
  color:#fff;
  padding:12px 0;
  text-align:center;
  font-size:1rem;
  letter-spacing:0.2px;
  border-bottom:2px solid var(--brand-yellow);
}

.sell-banner .container{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.sell-banner strong{
  font-weight:700;
  margin-right:6px;
}

/* ---------- Hero with Carousel ---------- */

.hero{
  position:relative;
  overflow:hidden;
  padding:70px 0 40px;
  background:linear-gradient(
    180deg,
    rgba(242,208,28,.15),
    rgba(0,0,0,.03)
  );
}

.hero .content{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  align-items:center;
}

.hero h1{
  font-size:44px;
  line-height:1.1;
  margin:0 0 12px;
}

.hero p{
  color:var(--muted);
  margin:0 0 24px;
}

.cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* Subtle US flag watermark */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:url("assets/img/us-flag.svg") center/cover no-repeat;
  opacity:0.08;
  filter:saturate(0.8) contrast(0.9);
  pointer-events:none;
}

/* Light fade for readability */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(
    60% 60% at 70% 40%,
    rgba(255,255,255,0.65),
    transparent 60%
  );
  pointer-events:none;
}

.hero .content{
  position:relative; /* content above overlays */
  z-index:1;
}

/* Hero carousel container */
.hero-carousel{
  position:relative;
  background:#000;
  border-radius:18px;
  overflow:hidden;
  min-height:260px;
}

/* Individual slides */
.hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .5s ease;
  text-decoration:none;
  color:inherit;
}

.hero-slide.active{
  opacity:1;
}

.hero-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Caption overlay */
.hero-slide-caption{
  position:absolute;
  left:16px;
  bottom:16px;
  background:rgba(0,0,0,0.6);
  color:#fff;
  padding:10px 14px;
  border-radius:12px;
  font-size:14px;
}

.hero-slide-caption .label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  opacity:.85;
}

.hero-slide-caption .title{
  font-weight:700;
  margin-top:2px;
}

.hero-slide-caption .meta{
  font-size:12px;
  opacity:.9;
}

/* Carousel arrows */
.hero-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:32px;
  height:32px;
  border-radius:50%;
  border:none;
  background:rgba(0,0,0,0.45);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.hero-nav.prev{ left:10px; }
.hero-nav.next{ right:10px; }

.hero-nav:hover{
  background:rgba(0,0,0,0.7);
}

/* Carousel dots */
.hero-dots{
  position:absolute;
  bottom:10px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:6px;
}

.hero-dots button{
  width:8px;
  height:8px;
  border-radius:50%;
  border:none;
  background:rgba(255,255,255,0.5);
  padding:0;
  cursor:pointer;
}

.hero-dots button.active{
  background:var(--brand-yellow);
}

/* Hero responsiveness */
@media (max-width:900px){
  .hero .content{
    grid-template-columns:1fr;
  }

  .hero h1{
    font-size:30px;
  }

  .hero p{
    font-size:15px;
  }

  .hero-carousel{
    margin-top:20px;
    min-height:220px;
  }

  .container{
    padding:0 16px;
  }
}

@media (max-width:600px){
  .logo img{
    height:56px;
  }
  .hero{
    padding:48px 0 28px;
  }
  .btn{
    padding:10px 14px;
    border-radius:10px;
  }
}

/* ---------- Cards & Grids (Featured + Inventory) ---------- */

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

@media (max-width:900px){
  .grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:600px){
  .grid{
    grid-template-columns:1fr;
  }
}

.card{
  background:#fff;
  border:1px solid #eee;
  border-radius:14px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.card img{
  width:100%;
  height:170px;
  object-fit:cover;
}

.card .body{
  padding:14px;
}

.card h3{
  margin:0 0 8px;
  font-size:18px;
}

.card ul{
  margin:0 0 10px 18px;
}

.card .muted{
  color:var(--muted);
  font-size:12px;
  margin-bottom:10px;
}

.card .actions{
  margin-top:auto;
  padding:14px;
}

.card .actions .btn{
  width:100%;
  text-align:center;
}

/* Entire card clickable (wrap in <a class="card-link">) */
.card-link{
  text-decoration:none;
  color:inherit;
  cursor:pointer;
  transition:transform .08s ease, box-shadow .08s ease;
}

.card-link:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

/* Simple inventory list helpers (if used) */
.inventory-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:18px;
}

.pill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #ddd;
  font-size:0.85rem;
  cursor:pointer;
  background:#fff;
}

.pill.active{
  background:var(--brand-yellow);
  border-color:var(--brand-yellow);
}

/* ---------- Vehicle Detail Layout ---------- */

.vehicle-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap:24px;
  align-items:flex-start;
}

.vehicle-media{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.vehicle-photo-main img{
  width:100%;
  border-radius:6px;
  border:1px solid #ddd;
  display:block;
}

/* Thumbnails */
.vehicle-thumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.thumb-btn{
  border:2px solid transparent;
  padding:0;
  border-radius:4px;
  cursor:pointer;
  background:transparent;
}

.thumb-btn img{
  display:block;
  width:70px;
  height:70px;
  object-fit:cover;
  border-radius:4px;
}

.thumb-btn.active{
  border-color:var(--brand-yellow);
}

/* Video */
.vehicle-video{
  margin-top:8px;
}

.vehicle-video h3{
  margin-bottom:6px;
}

.vehicle-video video,
.vehicle-video .video-wrapper iframe{
  width:100%;
  border-radius:6px;
  border:1px solid #ddd;
}

.video-wrapper{
  position:relative;
  padding-bottom:56.25%; /* 16:9 */
  height:0;
}

.video-wrapper iframe{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
}

/* Right column */
.vehicle-main h1{
  margin-bottom:4px;
}

.vehicle-price .price{
  font-size:1.6rem;
  font-weight:700;
  margin:8px 0 12px;
}

.vehicle-key-specs ul{
  list-style:none;
  padding:0;
}

.vehicle-key-specs li{
  margin-bottom:4px;
}

.vehicle-notes{
  margin-top:12px;
}

.vehicle-actions{
  margin:16px 0 8px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

@media (max-width:768px){
  .vehicle-layout{
    grid-template-columns:minmax(0,1fr);
  }
}

/* ---------- Sell Us Your Car Page ---------- */

.sell-intro{
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr);
  gap:32px;
  align-items:flex-start;
}

.sell-intro ul{
  margin:12px 0;
  padding-left:20px;
}

.sell-intro li{
  margin-bottom:4px;
}

.sell-card .body{
  padding:16px 20px;
}

/* Form styles */
.sell-form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.field-group{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.field-group label{
  font-size:.9rem;
  font-weight:600;
}

.field-group label span{
  color:#c0392b;
}

.field-group input,
.field-group select,
.field-group textarea{
  padding:8px 10px;
  border-radius:4px;
  border:1px solid #ccc;
  font:inherit;
}

.field-group textarea{
  resize:vertical;
}

.field-row{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}

.field-row .field-group{
  margin-bottom:0;
}

.sell-form hr{
  border:none;
  border-top:1px solid #eee;
  margin:8px 0 4px;
}

@media (max-width:768px){
  .sell-intro{
    grid-template-columns:minmax(0,1fr);
  }
  .field-row{
    grid-template-columns:minmax(0,1fr);
  }
}

/* ---------- Financing Page Hero ---------- */

.finance-hero{
  position:relative;
  width:100%;
  height:260px;
  background:url('assets/img/financing-hero.jpg') center center/cover no-repeat;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:40px;
}

.finance-hero-overlay{
  position:absolute;
  inset:0;
  background:rgba(255,255,255,0.65);
  backdrop-filter:blur(2px);
}

.finance-hero-content{
  position:relative;
  text-align:center;
  max-width:700px;
  z-index:2;
}

.finance-hero h1{
  margin:0;
  font-size:2.2rem;
  font-weight:700;
}

.finance-hero p{
  margin:10px 0 20px;
  font-size:1rem;
  color:#333;
}

.finance-hero-btn{
  background:var(--brand-yellow) !important;
  color:#000 !important;
  padding:10px 22px;
  font-size:1rem;
}

@media (max-width:768px){
  .finance-hero{
    height:220px;
  }
  .finance-hero h1{
    font-size:1.8rem;
  }
  .finance-hero p{
    font-size:.9rem;
  }
}

/* ---------- About Page Layout ---------- */

.about-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.4fr) minmax(0, 1fr);
  gap:24px;
  align-items:flex-start;
}

.about-grid{
  margin-top:16px;
}

.about-steps{
  margin-top:16px;
}

@media (max-width:768px){
  .about-layout{
    grid-template-columns:minmax(0,1fr);
  }
}

/* ================================
   CAR SALES FOOTER (match rental)
   ================================ */

/* Wrapper footer injected on the car sales pages */
footer#cs-footer,
.footer {
  background: #000;
  color: #fff;
  padding: 0;        /* <-- ensures yellow bar is at the very top */
  margin-top: 40px;  /* space above footer; change to 0 if you want it tighter */
  font-size: 0.95rem;
}

/* Thin yellow strip at top of footer */
.footer-top-bar {
  width: 100%;
  height: 4px;
  background: #F2D01C; /* What-A-Rental yellow */
}

/* Main footer row: text left, icons right */
.cs-footer-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Left line with dealer name, license, address, phone */
.cs-footer-line {
  line-height: 1.4;
}

/* Social icons row (right side on desktop) */
.footer .social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  opacity: 0.85;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer .social a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Links row under the main line */
.footer-links {
  width: 100%;
  text-align: left;
  margin: 4px 0;
  font-size: 0.9rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Small © line */
footer#cs-footer .small,
.footer .small {
  width: 100%;
  margin-top: 4px;
  opacity: 0.8;
  text-align: left;
}

/* Mobile stacking */
@media (max-width: 700px) {
  .cs-footer-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer .social {
    justify-content: flex-start;
  }

  .footer-links,
  footer#cs-footer .small {
    text-align: left;
  }
}
/* --- Vehicle Highlights block --- */
.vehicle-highlights {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.vehicle-highlights h2 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.vehicle-highlights ul {
  margin: 0;
  padding-left: 20px;
}

.vehicle-highlights li {
  margin-bottom: 4px;
}

/* --- Feature Details accordions --- */
.vehicle-features {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.vehicle-features h2 {
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.vehicle-features details {
  border-radius: 8px;
  border: 1px solid #eee;
  background: #fff;
  margin-bottom: 8px;
}

.vehicle-features summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 600;
}

.vehicle-features ul {
  margin: 0;
  padding: 0 0 10px 28px;
}

.vehicle-features li {
  margin-bottom: 4px;
}
/* Vehicle detail spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 8px;
}

.spec-table th {
  text-align: left;
  padding: 4px 8px;
  width: 40%;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.spec-table td {
  padding: 4px 8px;
  border-bottom: 1px solid #eee;
}
.vin-line {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}
/* --- Financing / Get-Approved form layout overrides --- */
.financing-form .field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns instead of 3 */
  gap: 12px;
}

.financing-form .field-group {
  min-width: 0; /* prevent inputs from blowing up the grid */
}

/* Stack to 1 column on smaller screens */
@media (max-width: 768px) {
  .financing-form .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* --- Get Approved page layout override --- */

/* Make the two main cards stack vertically */
.get-approved-grid,
.section .get-approved-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Removes the default grid behavior in this specific container */
.get-approved-grid > .card {
  width: 100%;
}
