@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&family=Lexend:wght@700&family=Montserrat:wght@600;800&display=swap");

/* 1. BRAND COLOR PALETTE */
:root {
  --bg-dark: #05070a; /* Deeper black for luxury feel */
  --bg-card: rgba(22, 27, 34, 0.8); /* Glass effect base */
  --text-main: #c9d1d9;
  --text-bright: #ffffff;
  --accent-blue: #3a86ff;
  --accent-silver: #8b949e;
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* 2. GLOBAL & RESET */
body {
  font-family: "Inter", sans-serif;
  line-height: 1.8;
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

/* 3. NAVIGATION (Transparent to Solid) */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 10%;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

nav.scrolled {
  background: rgba(5, 7, 10, 0.95);
  padding: 0.8rem 10%;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58, 134, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.logo img {
  height: 50px; /* Scaled for nav bar consistency */
  width: auto;
  filter: drop-shadow(0 0 8px rgba(58, 134, 255, 0.3));
  transition: 0.3s;
}

.logo-text {
  font-family: "Lexend", sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-text .wheel {
  color: #ffffff;
  font-weight: 800;
}
.logo-text .wise {
  color: #ffffff;
  font-weight: 300;
  opacity: 0.8;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: 0.3s;
}

nav ul li a:hover {
  color: var(--accent-blue);
  text-shadow: 0 0 8px rgba(58, 134, 255, 0.6);
}

/* 4. HERO SECTION */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* Updated with a subtle blue tint overlay */
  background:
    linear-gradient(rgba(5, 7, 10, 0.7), rgba(5, 7, 10, 0.9)),
    url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 0 20px;
  margin-bottom: -1px; /* This seals the blue line gap */
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 15px;
  background: linear-gradient(to bottom, #ffffff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-silver);
}

.hero-btns {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 15px !important;
  width: 100% !important;
  margin: 30px auto 0 !important;
}

.cta-btn {
  min-width: 190px;
  background: linear-gradient(135deg, #3a86ff 0%, #004e92 100%);
  color: white;
  padding: 18px 30px;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(58, 134, 255, 0.3);
  text-decoration: none;
  display: inline-block;
}

/* .cta-btn {
    margin-top: auto; 
    width: 100%;
}  */

.cta-btn.secondary {
  background: transparent;
  border: 2px solid var(--accent-blue);
  box-shadow: none;
}

.cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(58, 134, 255, 0.5);
  background: #fff;
  color: var(--accent-blue);
}

/* 5. CONTENT SECTIONS */
.content-section {
  padding: 120px 10%;
  background: var(--bg-dark);
  text-align: center;
}

.section-container h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  color: #fff;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.section-container h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-blue);
  margin: 25px auto;
}

/* 6. CONTACT & CARDS (Glassmorphism) */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.contact-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  padding: 50px 30px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  transition: 0.4s ease;
}

.contact-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-10px);
  background: rgba(58, 134, 255, 0.05);
}

.contact-card .icon {
  font-size: 3rem;
  margin-bottom: 25px;
  display: block;
}

.contact-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  transition: 0.3s;
}

.contact-link:hover {
  color: #fff;
}

/* 7. FOOTER */
footer {
  background: #020305;
  padding: 100px 10% 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  /* 2.5fr creates the large gap on the left. 
       0.8fr and 0.8fr keep the last two columns close together */
  grid-template-columns: 2.5fr 0.8fr 0.8fr;

  /* Decrease the gap globally so Services and Support stay close */
  gap: 40px;

  padding: 60px 10%;
  align-items: start;
}

/* Optional: Ensure the WheelWise description doesn't stretch too far 
   into the empty space we just created */
.footer-info {
  max-width: 350px;
}

/* Add some padding to the Services column specifically to push 
   it away from the WheelWise text if needed */
.footer-links:first-of-type {
  padding-left: 50px;
}

.footer-info h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.footer-info p {
  color: var(--accent-silver);
  font-size: 0.95rem;
  line-height: 2;
}

.footer-links h4 {
  color: var(--accent-blue);
  margin-bottom: 25px;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.footer-links a {
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  display: block; /* Ensures the link takes up the full line */
  text-decoration: none;
  color: #ccc;
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: #3a86ff; /* WheelWise Blue */
  transform: translateX(5px); /* Subtle slide effect */
}

.footer-bottom {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.8rem;
  color: var(--accent-silver);
}

/* 8. UTILITY */
#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  border: 1px solid var(--accent-blue);
  background: var(--bg-dark);
  color: var(--accent-blue);
  padding: 15px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#backToTop:hover {
  background: var(--accent-blue);
  color: #fff;
}

/* --- PREMIUM CONTACT SECTION --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* Form is wider than info */
  gap: 50px;
  margin-top: 60px;
  text-align: left;
}

/* Glass Form Container */
.contact-form-container {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  box-sizing: border-box !important;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #fff;
  font-family: "Inter", sans-serif;
  outline: none;
  transition: 0.3s !important;
  display: block !important;
  margin: 0 !important;
}

.form-group textarea {
  resize: vertical !important;
  min-height: 120px !important;
}

.form-group select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 15px center !important;
  padding-right: 40px !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(58, 134, 255, 0.2);
}

/* Right Side Panel */
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* The Electric Blue edge highlight */
  border-left: 5px solid var(--accent-blue);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-item:hover {
  background: rgba(58, 134, 255, 0.08);
  transform: translateX(10px);
  border-color: var(--accent-blue);
  box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.3);
}

.info-icon {
  font-size: 2rem;
}

.info-text span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-silver);
}

.info-text a,
.info-text p {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin: 5px 0 0 0;
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

/* --- REVIEWS & RATING STYLES --- */
.reviews-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}

/* Star Rating Logic */
.star-rating-input {
  display: flex;
  flex-direction: row-reverse; /* Keeps 5 stars on the right visually */
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

.star {
  cursor: pointer;
  color: var(--accent-silver);
  transition: 0.2s;
}

.star:hover,
.star:hover ~ .star {
  color: var(--accent-blue);
}

/* File Upload Zone */
.file-upload-zone {
  width: 100%;
  box-sizing: border-box;
  border: 2px dashed rgba(58, 134, 255, 0.3);
  background: rgba(58, 134, 255, 0.03);
  border-radius: 15px;
  padding: 30px;
  margin: 20px 0 30px 0;
  text-align: center;
}

.file-upload-zone:hover {
  border-color: var(--accent-blue);
  background: rgba(58, 134, 255, 0.05);
}

.file-upload-zone .icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  /* Premium Silver to Blue Gradient */
  background: linear-gradient(to bottom, #ffffff 30%, #3a86ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Blue Shadow Glow */
  filter: drop-shadow(0 0 8px rgba(58, 134, 255, 0.5));
  transition: all 0.3s ease;
}

.file-upload-zone:hover .icon {
  filter: drop-shadow(0 0 15px rgba(58, 134, 255, 0.9));
  transform: scale(1.1);
}

#photoUpload {
  display: none;
}
.file-label {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.user-img {
  width: 45px;
  height: 45px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
}

.stars {
  color: var(--accent-blue);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.review-photos img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 15px;
}

.preview-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.preview-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.card-header h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.card-header p {
  font-size: 0.85rem;
  color: var(--accent-silver);
  margin-bottom: 25px;
}

/* Elegant Star Rating */
.star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  margin-bottom: 30px;
}

.star-rating-input input {
  display: none;
}

.star-rating-input label {
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: 0.3s;
}

/* Hover & Checked State (Electric Blue Glow) */
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
  color: var(--accent-blue);
  text-shadow: 0 0 15px rgba(58, 134, 255, 0.6);
}

/* Seamless Textarea */
#reviewText {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  color: #fff;
  font-family: "Inter", sans-serif;
  resize: none;
  margin-bottom: 20px;
  transition: 0.3s;
}

#reviewText:focus {
  border-color: rgba(58, 134, 255, 0.4);
  background: rgba(0, 0, 0, 0.4);
  outline: none;
}

/* Minimalist Upload Button */
.minimal-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--accent-blue);
  cursor: pointer;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(58, 134, 255, 0.1);
  transition: 0.3s;
}

.minimal-upload:hover {
  background: var(--accent-blue);
  color: #fff;
}

/* Submit Button Customization */
.submit-btn {
  width: 100%;
  max-width: 350px;
  padding: 20px;
  background: linear-gradient(135deg, #3a86ff, #004e92);
  border-radius: 50px; /* Pill shape looks more modern */
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 2px;
  box-shadow: 0 10px 30px rgba(58, 134, 255, 0.3);
}

.submit-btn:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(58, 134, 255, 0.3);
}

/* Icon Styling */
.info-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(58, 134, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-blue);
  border: 1px solid rgba(58, 134, 255, 0.2);
}

/* Typography Scale */
.info-text .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-silver);
  margin-bottom: 8px;
}

.info-text .value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  line-height: 1.2;
}

.info-text a.value:hover {
  color: var(--accent-blue);
  transition: 0.3s;
}

/* Mobile Tweak */
@media (max-width: 480px) {
  .info-item {
    padding: 20px;
  }
  .info-text .value {
    font-size: 1.1rem;
  }
}

html {
  scroll-behavior: smooth;
  /* Adjust this to your nav bar height so titles aren't hidden */
  scroll-padding-top: 80px;
}

section {
  position: relative;
  /* Ensures sections don't feel cramped */
  padding: 120px 10%;
  overflow: hidden;
}

/* 1. Define the 'Hidden' state */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 2. Define the 'Visible' state (triggered by JS) */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 3. Staggered delay for cards so they pop up one by one */
.reveal:nth-child(2) {
  transition-delay: 0.2s;
}
.reveal:nth-child(3) {
  transition-delay: 0.4s;
}

.hero {
  position: relative;
  margin-bottom: 50px;
}

/* Creates a subtle diagonal cut at the bottom of the hero */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: var(--bg-dark);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* Ensure the base state is ready for the transition */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  /* Increase duration slightly for a more 'luxury' feel */
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Ensures the element is hidden until the scroll hits */
  visibility: hidden;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* THE RIPPLE EFFECT: Staggering child elements */
/* If you have multiple .reveal elements in a row, they ripple */
.reveal:nth-child(1) {
  transition-delay: 0.1s;
}
.reveal:nth-child(2) {
  transition-delay: 0.3s;
}
.reveal:nth-child(3) {
  transition-delay: 0.5s;
}

/* Specifically for your Contact Info Cards ripple */
.info-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.reveal.active .info-item:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}
.reveal.active .info-item:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}
.reveal.active .info-item:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}
.reveal.active .info-item:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1s;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

/* Ensure the star labels are clickable and large */
.star-rating-input label {
  cursor: pointer;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.1);
  transition: color 0.2s;
}

/* Review image styling */
.review-photos img {
  width: 100%;
  height: 200px;
  object-fit: cover; /* Keeps images uniform */
  border-radius: 8px;
  margin-top: 15px;
}

/* User avatar (first letter of name) */
.user-img {
  width: 40px;
  height: 40px;
  background: var(--accent-blue, #007bff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 12px;
}

.review-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.review-img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.info-text a.value:hover {
  color: var(--accent-blue);
  text-decoration: underline;
  transition: 0.3s ease;
}

#toggleReviewsBtn {
  padding: 12px 25px;
  font-size: 0.9rem;
  margin-bottom: 40px;
}

/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

/* Modal Box */
.modal-content {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  border: 1px solid var(--glass-border);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.booking-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.booking-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-decoration: none;
  transition: 0.3s;
  border: 1px solid transparent;
}

.booking-card:hover {
  background: rgba(58, 134, 255, 0.1);
  border-color: var(--accent-blue);
  transform: scale(1.02);
}

.booking-card.highlight {
  background: linear-gradient(135deg, rgba(58, 134, 255, 0.2), transparent);
  border: 1px solid rgba(58, 134, 255, 0.4);
}

.booking-card .icon {
  font-size: 1.8rem;
}
.booking-card .text {
  text-align: left;
}
.booking-card strong {
  display: block;
  color: #fff;
  font-size: 1.1rem;
}
.booking-card span {
  color: var(--accent-silver);
  font-size: 0.8rem;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.fleet-card {
  background: #1a1f26;
  border-radius: 15px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.fleet-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.car-img-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #0d1117;
}

.car-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fleet-card:hover .car-img {
  transform: scale(1.1);
}

.car-info {
  padding: 1.5rem;
}

.car-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.car-info h3 {
  margin-bottom: 15px;
  color: #fff;
}

.category-tag {
  background: var(--accent-blue);
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.car-specs {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #aab0b8;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.car-specs span {
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 10px;
  border-radius: 8px;
}

.price {
  font-weight: bold;
  color: var(--accent-blue);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.price-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price strong {
  color: #fff;
  font-size: 1.2rem;
}

.fleet-card .cta-btn.small {
  width: 100%;
  padding: 12px;
}

/* Review Slider Container */
.reviews-wrapper {
  overflow: hidden; /* Hide cards outside the view */
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Slider Container */
/* Container - Added padding to prevent tail/shadow clipping */
/* Ensure all padding/borders are included in width calculations */
.reviews-slider-container,
.reviews-display,
.testimonial-card,
.quote-bubble {
  box-sizing: border-box;
}

.reviews-slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 40px 30px; /* Increased 30px on sides prevents 'H' from being cut off */
  box-sizing: border-box;
}

.reviews-display {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 40px; /* More space between cards helps visibility */
  transition: transform 0.6s ease;
  width: 100%;
}

.testimonial-card {
  /* On mobile, use 90% so a sliver of the next card is visible */
  flex: 0 0 90%;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Prevent word-splitting for names like "Hello" */
  word-wrap: normal;
  overflow: visible;
}

@media (min-width: 992px) {
  .reviews-display {
    justify-content: flex-start !important; /* Change from 'center' to 'flex-start' */
    gap: 40px !important;
    padding: 0 !important;
    width: auto !important;
  }

  .testimonial-card {
    /* 33.333% - (Gaps / total cards) ensures cards fit the container perfectly */
    flex: 0 0 calc(33.333% - 27px) !important;
    max-width: calc(33.333% - 27px) !important;
  }
}

@media (max-width: 991px) and (min-width: 769px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 20px) !important; /* 2-column fit for tablets */
    max-width: calc(50% - 20px) !important;
  }
}

@media (max-width: 768px) {
  .reviews-display {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important; /* Must match the 20px in JS */
    padding: 0 20px !important;
    justify-content: flex-start !important; /* Forces cards to line up for the slider */
  }

  .testimonial-card {
    /* 85% ensures the user sees the 'peek' of the next review */
    flex: 0 0 85% !important;
    max-width: 85% !important;
    margin: 0 !important;
    overflow: visible !important;
  }
}

/* Ensure names don't wrap prematurely */
.testimonial-card h4,
.reviewer-name {
  white-space: nowrap !important; /* Forces 'Hello' to stay together */
  display: block;
  margin: 10px 0;
  min-width: fit-content;
}

/* Ensure the bubble doesn't cut off its own shadow or tail */
.quote-bubble {
  background: #161b22;
  padding: 25px;
  border-radius: 15px;
  width: 100%;
  box-sizing: border-box; /* Crucial: includes padding in width calculation */
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  margin-bottom: 35px;
  border: 1px solid rgba(255, 255, 255, 0.08); /* Matches your premium theme */
}

/* The Triangle at the bottom - Updated to match the dark bubble */
.quote-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #161b22;
}

.quote-bubble p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

.user-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 2px solid var(--accent-blue, #007bff); /* Blue accent ring */
  background: #1a1f26; /* Fallback color */
}

.user-meta h4 {
  margin: 5px 0;
  color: #ffffff;
  font-weight: 600;
}

/* Dots Navigation */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

/* Update slider dots for visibility */
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2); /* Dimmer when inactive */
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: var(--accent-blue, #007bff);
  transform: scale(1.2);
}

.section-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 60px 0;
}

/* The Trip Photo inside the bubble */
.review-content-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* User Profile Circle - strictly for initials or avatar */
.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), #004e92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.review-content-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 15px;
}

/* Container for multiple images in a single review */
.review-photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}

/* Ensure images don't overflow the quote bubble */
.review-content-img {
  width: 100%;
  height: 120px; /* Fixed height for consistency in a gallery */
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure the bubble doesn't look awkward when empty */
.quote-bubble:empty {
  display: none;
}

/* Or, if you want it to still show the 'tail' but smaller */
.quote-bubble {
  min-height: auto;
}

/* --- CLEAN & CONSOLIDATED REVIEW FORM --- */
.submit-review-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 40px;
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  border: 1px solid rgba(58, 134, 255, 0.2);
  width: 95%;
  max-width: 700px; /* Slightly tighter for a premium feel */
  margin: 60px auto;
  box-sizing: border-box;
}

.submit-review-card h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(to right, #ffffff, #3a86ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.submit-review-card p {
  color: var(--accent-silver);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

/* --- STAR RATING --- */
.star-rating-container {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.star-rating-container i {
  font-size: 3rem;
  color: #1c2128; /* Dark base */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.star-rating-container i.active {
  color: #3a86ff;
  transform: scale(1.2);
  text-shadow: 0 0 20px rgba(58, 134, 255, 0.6);
}

/* --- INPUTS & TEXTAREA --- */
.submit-review-card .form-group {
  width: 100%;
}

/* Force inputs to be identical in width and centered */
.submit-review-card input,
.submit-review-card textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px;
  padding: 15px 20px !important;
  color: #fff;
  font-family: inherit;
  margin: 0 !important;
}

.submit-review-card input:focus,
.submit-review-card textarea:focus {
  border-color: #3a86ff !important;
  box-shadow: 0 0 15px rgba(58, 134, 255, 0.2);
  outline: none;
}

/* --- THE UPLOAD ZONE --- */
.upload-zone {
  width: 100%;
  max-width: 650px;
  box-sizing: border-box;
  border: 2px dashed rgba(58, 134, 255, 0.3);
  background: rgba(58, 134, 255, 0.03);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  text-align: center;
  cursor: pointer;
}

.upload-zone:hover {
  border-color: #3a86ff;
  background: rgba(58, 134, 255, 0.08);
}

.upload-zone span {
  display: block;
  font-weight: 700;
  color: #3a86ff;
  margin-top: 10px;
}

.submit-review-card .submit-btn {
  width: 100%;
  max-width: 320px;
  margin-top: 10px;
}

/* Fixes the Name & Star alignment */
.form-grid {
  display: flex;
  flex-direction: column; /* Stack them for better mobile/tablet alignment */
  align-items: center;
  width: 100%;
  gap: 20px;
  margin-bottom: 25px;
}

.review-modal-content {
  max-width: 600px !important;
  /* Use 92% and a 4% margin-auto to ensure it never touches the screen edges */
  width: 92% !important;
  margin: 0 auto !important;
  max-height: 85vh !important;
  overflow-y: auto !important;
  background: #0d1117 !important;
  border-radius: 20px !important;
  /* Padding inside the modal so images/text don't hit the box edges */
  padding: 25px !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.modal-overlay {
  padding: 20px !important;
  box-sizing: border-box !important;
}

.modal-images-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.full-review-image {
  width: 100% !important;
  max-height: 350px !important; /* Caps image height */
  object-fit: cover !important; /* Maintains aspect ratio without distortion */
  border-radius: 12px !important;
  margin-bottom: 15px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4) !important;
}

.full-review-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 20px;
  font-style: italic;
}

.full-review-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

#filePreview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 15px;
}

.file-label {
  transition: all 0.3s ease;
}

/* Optional: change color when files are attached */
input[type="file"]:not(:empty) + .file-label {
  border-color: #3a86ff;
  color: #3a86ff;
}

/* Lightbox Modal Styles */
.modal-overlay.lightbox {
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.modal-overlay.lightbox.active {
  opacity: 1;
}

.modal-content-image {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.lightbox.active .modal-content-image {
  transform: scale(1);
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.filter-container {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-container input,
.filter-container select {
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid #30363d;
  background: #161b22;
  color: white;
  font-size: 1rem;
  outline: none;
  min-width: 250px;
}

.filter-container input:focus {
  border-color: var(--accent-blue);
}

.fleet-page #main-nav {
  background: #0d1117 !important;
}

/* Fleet Grid Layout Fix */
.fleet-grid {
  display: grid;
  /* This creates 3 columns on desktop, 2 on tablets, and 1 on mobile */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 20px 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* Ensure cards don't exceed a reasonable width */
.fleet-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: #161b22;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

#carSearch {
  width: 100%;
  max-width: 500px; /* Prevents it from getting too wide on desktop */
  padding: 15px 25px;
  border-radius: 30px; /* Makes it look a bit more modern/sleek */
  border: 1px solid #30363d;
  background: #161b22;
  color: white;
  font-size: 1.1rem;
}

/* --- GROUPED FLEET STYLING --- */

/* 1. Section Header Styling */
.group-header {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 40px; /* Space from previous section */
  position: relative;
  display: inline-block;
  color: #ffffff;
}

/* Subtle glowing line under the group title */
.group-header::after {
  content: "";
  display: block;
  width: 50%;
  height: 3px;
  background: var(--accent-blue);
  margin-top: 10px;
  box-shadow: 0 0 10px rgba(58, 134, 255, 0.5);
}

/* 2. Container for the cards within a group */
.fleet-group-section {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Separator between groups */
}

.fleet-group-section:last-child {
  border-bottom: none;
}

/* 3. Handling the Grid layout inside groups */
.fleet-group-section .fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* 4. Responsive adjustments for headings */
@media (max-width: 768px) {
  .group-header {
    font-size: 1.4rem;
    text-align: center;
    width: 100%;
  }
  .group-header::after {
    margin: 10px auto;
    width: 40px;
  }
}

/* --- OVERRIDE FOR THE MAIN GRID CONTAINER --- */
/* This ensures the wrapper div 'fleetGrid' allows its children (sections) 
   to take full width rather than trying to fit them into columns. */
#fleetGrid {
  display: block !important;
  width: 100%;
}

/* --- SERVICES ROW LAYOUT --- */

/* This turns the container into a horizontal row */
.services-grid {
  display: grid;
  /* This creates a 3-column layout that adjusts automatically */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
}

/* Specific styling for the cards inside the Services section */
.services-grid .contact-card {
  flex: 1; /* Makes all 3 cards equal width */
  max-width: 380px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  transition: all 0.3s ease;
}

/* Make the icons smaller as requested */
.services-grid .contact-card .icon {
  font-size: 2.2rem;
  margin-bottom: 15px;
  display: block;
}

/* Title and text adjustments to fit the row */
.services-grid .contact-card h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 10px;
}

.services-grid .contact-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 25px;
  color: var(--text-main);
}

/* Pushes the button to the absolute bottom of the card */
.services-grid .cta-btn.small {
  margin-top: auto;
  padding: 12px 20px;
  font-size: 0.8rem;
  width: auto;
  min-width: 150px;
}

/* Hover effect to match your site's premium feel */
.services-grid .contact-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-10px);
  background: rgba(58, 134, 255, 0.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* MOBILE FIX: Stack them vertically only on small screens */
@media (max-width: 968px) {
  .services-grid {
    flex-wrap: wrap; /* Allows stacking on phones */
  }
  .services-grid .contact-card {
    flex: 0 0 100%; /* Full width on mobile */
    max-width: none;
  }
}

/* This targets the container inside each category group */
.category-grid-inner {
  display: grid;
  /* Forces 3 columns on large screens, drops to 1 on mobile */
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 20px 0;
  width: 100%;
}

/* Responsive adjustment for tablets/small laptops */
@media (max-width: 1024px) {
  .category-grid-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive adjustment for mobile phones */
@media (max-width: 768px) {
  .category-grid-inner {
    grid-template-columns: 1fr;
  }
}

/* Ensure the cards themselves don't grow too large */
.fleet-card {
  width: 100%;
  max-width: 100%; /* Allows them to fill the 1/3 grid space */
}

/* --- HOMEPAGE FLEET GRID - FINAL OPTIMIZED --- */

/* 1. Main Grid Container */
/* --- THE ULTIMATE GRID FIX --- */

#fleetGrid {
  display: block !important; /* Allows the category sections to stack vertically */
  width: 100% !important;
}

.home-fleet-grid {
  display: grid !important;
  /* Forces exactly 3 columns on desktop */
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 25px !important;
  width: 100% !important;
  margin: 30px 0 !important;
  padding: 0 !important;
}

/* Force the cards to behave inside the grid */
.home-fleet-grid .fleet-card {
  width: 100% !important;
  min-width: 0 !important; /* Prevents cards from pushing past grid boundaries */
  margin: 0 !important;
}

/* Responsive: 2 columns for tablets */
@media (max-width: 1100px) {
  .home-fleet-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Responsive: 1 column for mobile */
@media (max-width: 700px) {
  .home-fleet-grid {
    grid-template-columns: 1fr !important;
  }
}
/* --- LEGAL PAGES STYLING --- */

/* --- WheelWise Terms & Conditions: Wide Dark Theme --- */

.fleet-page {
  background-color: #0d1117;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
}

/* Container spacing to match the white screenshot format */
.legal-content {
  max-width: 1100px; /* Increased width to match the white version */
  margin: 0;
  text-align: left;
  padding: 60px;
}

.legal-content p {
  /* Set to 400 for standard or 300 for a thinner, more modern look */
  font-weight: 400;
  color: #e0e0e0;
  line-height: 1.8;
}

/* Remove the "box/card" look and use the white version's layout */
.legal-section {
  background: transparent; /* No background box */
  padding: 0;
  margin-bottom: 40px; /* Space between sections */
  border: none; /* No borders */
}

/* Section titles to match the blue style in your second screenshot */
.legal-section h3 {
  color: #3a86ff;
  margin-bottom: 15px;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal-section ul {
  list-style: none;
  padding: 0;
}

.legal-section ul li {
  /* This ensures the main descriptive text is not bold */
  font-weight: 400;
  color: #e0e0e0;
  margin-bottom: 15px;
  line-height: 1.7;
}

/* 2. Keep ONLY the specific labels bold */
.legal-section ul li strong {
  font-weight: 700; /* Keeps "Booking & Confirmation:" etc. bold */
  color: #ffffff;
}

/* Blue Divider Line under main heading to match your first screenshot */
h2 {
  border-left: 5px solid #3a86ff;
  padding-left: 10px;
  text-transform: uppercase;
  font-size: 2.5rem;
}
/* Find and remove border-left from this class if it exists */
.category-header-row {
  position: relative; /* Essential for positioning the line correctly */
  text-align: center; /* Centers the main text */
  margin-bottom: 40px; /* Space between title and subtitle */
}

/* This targets that decorative blue line */
.category-header-row::after {
  content: "";
  position: absolute;
  bottom: -35px; /* Adjusts the distance below the text */

  /* THE CENTERING MAGIC: */
  left: 50%;
  transform: translateX(-50%);

  /* Styling the line */
  width: 60px; /* Width of the line */
  height: 4px; /* Thickness of the line */
  background-color: #3a86ff; /* WheelWise Blue */
  border-radius: 2px;
}

/* --- CLEANED SERVICES GRID --- */
.services-grid {
  display: grid;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 0;
  /* Default: 1 column for mobile */
  grid-template-columns: 1fr;
}

/* Tablet View (2 Columns) */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop View (3 Columns) */
@media (min-width: 1024px) {
  .services-grid {
    /* This forces the 3-column layout you want */
    /* grid-template-columns: repeat(3, 1fr) !important; */
  }

  /* If you have 5 cards and want the last 2 centered in a 3-column grid: */
  .services-grid .service-card:nth-child(4) {
    grid-column: 1 / 2; /* Resets any previous spanning logic */
  }

  /* To center the bottom 2 cards specifically on desktop */
  .services-grid > .service-card:last-child:nth-child(5) {
    grid-column: span 1;
  }
}

/* --- CARD STRUCTURE FIX --- */
.service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  height: 100%; /* Keeps all cards in the same row equal height */
  box-sizing: border-box;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card p {
  flex-grow: 1; /* Pushes the button to the bottom if text is short */
  margin-bottom: 25px;
}

.service-card .icon {
  width: 80px;
  height: 80px;
  background: rgba(58, 134, 255, 0.1); /* Very faint blue tint */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px auto;
  border: 1px solid rgba(58, 134, 255, 0.2);
  transition: all 0.3s ease;
}

/* Responsive: Stack them on mobile */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr;
    display: flex; /* Using flex on mobile is safer for stacking */
    flex-direction: column;
  }
  .services-grid > .service-card {
    grid-column: span 1 !important;
    width: 100%;
  }
}

/* Base style for all cards (Glassmorphism) */
.service-card {
  background: rgba(
    255,
    255,
    255,
    0.05
  ); /* Very subtle semi-transparent background */
  border: 1px solid rgba(255, 255, 255, 0.08); /* Minimal border */
  border-radius: 12px;
  padding: 40px 25px;
  text-align: center;
  cursor: pointer;

  /* Animation settings */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Premium Hover State */
.service-card:hover {
  transform: translateY(-10px) scale(1.02); /* Smooth lift-and-zoom effect */
  background: rgba(255, 255, 255, 0.08); /* Brighter glass effect on hover */
  border-color: rgba(
    58,
    134,
    255,
    0.4
  ); /* Subtle WheelWise Blue glow on border */
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.4),
    /* Large drop shadow */ 0 0 15px rgba(58, 134, 255, 0.3); /* Subtle internal blue glow */
}

/* Ensure headings/text are centered within the card */
.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  font-size: 1.25rem;
}

.service-card p {
  font-size: 0.9rem;
  color: #e0e0e0; /* Unbolded body text */
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1; /* Pushes the button to the bottom */
}
.service-card,
.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* Ensures all cards in a row have the same height */
  position: relative;
  overflow: hidden; /* Clips any content that tries to leak out */
  box-sizing: border-box;
}

/* Premium Icon Styling */
.service-card .icon i {
  font-size: 2.5rem;
  color: #3a86ff; /* WheelWise Blue */
  background: linear-gradient(135deg, #ffffff 30%, #3a86ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(58, 134, 255, 0.3));
  margin-bottom: 10px;
  display: inline-block;
}

/* Hover effect for the icon specifically */
.service-card:hover .icon i {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px rgba(58, 134, 255, 0.6));
  transition: all 0.3s ease;
}

.service-card:hover .icon {
  background: rgba(58, 134, 255, 0.2);
  border-color: rgba(58, 134, 255, 0.5);
  box-shadow: 0 0 20px rgba(58, 134, 255, 0.2);
}

/* ==========================================================================
   WHEELWISE CONSOLIDATED RESPONSIVE LAYER - FINAL FIX
   ========================================================================== */

/* 1. HAMBURGER & NAV LOGIC */
.hamburger {
  display: none;
  font-size: 1.5rem !important; /* Reduced from 1.8rem */
  color: #3a86ff;
  cursor: pointer;
  z-index: 1001;
  transition: 0.3s;
}

#menu-toggle {
  display: none;
}

/* --- CORRECTED SERVICES STAGGERED LAYOUT (DESKTOP) --- */
@media (min-width: 1024px) {
  .services-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important; /* 6-col base for math */
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
  }

  .service-card {
    grid-column: span 2 !important; /* First row: 3 cards (2+2+2=6) */
  }

  /* Centering the bottom two cards by offsetting them */
  .service-card:nth-child(4) {
    grid-column: 2 / span 2 !important; /* Start at column 2 */
  }

  .service-card:nth-child(5) {
    grid-column: 4 / span 2 !important; /* Start at column 4 */
  }
}

@media (max-width: 968px) {
  nav {
    padding: 1rem 5% !important;
    justify-content: space-between !important; /* Separates logo and hamburger */
  }

  .hamburger {
    display: block !important;
  }

  /* Full Screen Mobile Overlay */
  #main-nav ul {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centers text horizontally */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 7, 10, 0.98); /* Deep dark glass */
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  #menu-toggle:checked ~ ul {
    display: flex !important;
  }

  #main-nav ul li {
    margin: 0.8rem 0 !important; /* Reduced vertical spacing */
  }

  #main-nav ul li a {
    font-size: 1.1rem !important; /* Reduced from 1.4rem for a cleaner look */
    letter-spacing: 2px !important;
  }

  /* Ensure Logo Text is Visible */
  .logo-text {
    display: inline-block !important;
    font-size: 1.1rem !important;
  }
  .logo img {
    height: 35px !important;
  }
}

/* 2. HERO & OVERFLOW FIXES */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem !important; /* Stops text clipping */
    line-height: 1.2 !important;
    padding: 0 10px !important;
  }

  .hero p {
    font-size: 0.9rem !important;
  }

  .hero-btns {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    width: 100% !important;
    margin: 30px auto 0 !important;
  }

  .cta-btn {
    width: 100% !important;
    max-width: 300px !important; /* Balanced button width */
    min-width: 0 !important;
    margin: 0 auto !important;
  }

  /* Grid Stacking */
  .services-grid,
  .home-fleet-grid,
  .contact-wrapper,
  .footer-grid {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: center;
  }

  .service-card {
    width: 100% !important;
  }

  /* Footer centering */
  .footer-links {
    padding: 0 !important;
    margin-bottom: 30px;
  }
}

/* 3. TINY SCREEN OPTIMIZATION */
@media (max-width: 480px) {
  .logo-text {
    font-size: 0.9rem !important;
  }
  .section-container h2 {
    font-size: 2rem !important;
  }
  .legal-content {
    padding: 30px 15px !important;
  }

  /* Prevent emails from breaking containers */
  .info-text .value {
    font-size: 1rem !important;
    word-break: break-all !important;
  }
}

/* ==========================================================================
   WHEELWISE REVIEWS & FOOTER MOBILE FIXES
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. Fix Review Card Clipping */
  .reviews-slider-container {
    padding: 40px 0 !important; /* Vertical room for bubbles */
    overflow: hidden !important;
    width: 100% !important;
    position: relative !important;
  }

  .reviews-display {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important; /* Must match the 20px in JS */
    padding: 0 20px !important;
    justify-content: flex-start !important; /* Forces cards to line up for the slider */
  }

  .testimonial-card {
    /* 85% ensures the user sees the 'peek' of the next review */
    flex: 0 0 85% !important;
    max-width: 85% !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .quote-bubble {
    width: 100% !important;
    min-height: 140px !important;
    padding: 20px !important;
    margin-bottom: 30px !important;
    word-wrap: break-word !important; /* Stops text leaking */
  }

  .user-avatar {
    flex-shrink: 0 !important; /* Keeps initials circular */
    margin-top: -10px !important;
  }

  /* Force names to wrap if too long instead of cutting off */
  .user-meta h4 {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }

  .section-container h2 {
    font-size: 2.2rem !important; /* Prevent title from taking up too much vertical space */
    text-align: center !important;
    border-left: none !important; /* Use the centered blue bar logic from desktop */
    padding-left: 0 !important;
  }

  /* 2. Fix Footer & Support Centering */
  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Horizontal center for all text */
    text-align: center !important;
    gap: 40px !important;
    padding: 40px 5% !important;
  }

  .footer-info,
  .footer-links {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .footer-links h4 {
    margin-bottom: 20px !important;
    font-size: 1rem !important;
  }

  .footer-links a {
    margin: 12px 0 !important; /* Better touch targets for mobile */
    font-size: 1rem !important;
  }

  /* 3. Navigation Centering */
  #main-nav ul {
    padding: 0 !important;
    text-align: center !important;
  }
}

/* Fix for very narrow phones */
@media (max-width: 400px) {
  .testimonial-card {
    flex: 0 0 92% !important;
    max-width: 92% !important;
  }

  .reviews-display {
    padding-left: 4% !important;
  }
}

/* ==========================================================================
   MOTO EDGE 30 / NARROW VIEWPORT HAMBURGER FIX
   ========================================================================== */

@media (max-width: 450px) {
  /* 1. Ensure the nav is a flex container with strict spacing */
  nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.8rem 15px !important; /* Tighten side margins */
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 2. Scale down the logo group to make room for the menu */
  .logo {
    gap: 8px !important;
    max-width: 70% !important; /* Cap the width so hamburger always has 30% */
  }

  .logo img {
    height: 25px !important; /* Reduced from 50px */
  }

  .logo-text {
    font-size: 0.9rem !important; /* Prevents long brand names from overflowing */
    white-space: nowrap !important;
  }

  /* 3. Explicitly force hamburger visibility and placement */
  .hamburger {
    font-size: 1.3rem !important; /* Even smaller for very narrow screens */
    padding: 2px !important;
  }

  /* 4. Fix Hero Heading font-size for Moto Edge 30 */
  .hero h1 {
    font-size: 1.8rem !important; /* Prevents word splitting */
    padding: 0 10px !important;
  }
}

/* ==========================================================================
   WHEELWISE CONTACT FORM MOBILE REALIGNMENT
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. Force the wrapper to stack and center its children */
  .contact-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Forces vertical centering */
    gap: 40px !important;
    width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }

  /* 2. Fix the Glass Form Container alignment */
  .contact-form-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 30px 20px !important; /* Slightly tighter padding for mobile */
    margin: 0 auto !important; /* Centers the box */
    flex: none !important; /* Disables desktop flex-grow */
    box-sizing: border-box !important;
  }

  /* 3. Ensure inputs fill the mobile container width */
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 4. Center the Submit Button within the form */
  .contact-form-container .cta-btn {
    display: block !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 20px auto 0 !important; /* Centers button horizontally */
  }

  /* 5. Fix Info Panel stacking */
  .contact-info-panel {
    width: 100% !important;
    align-items: center !important;
    gap: 20px !important;
  }

  .info-item {
    width: 100% !important;
    max-width: 360px !important; /* Prevents awkward stretching */
    margin: 0 auto !important;
    padding: 25px 20px !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important; /* Keeps icon/text relationship consistent */
  }
}

/* 1. ICON WRAPPER: Premium Glassmorphism */
.info-icon-wrapper {
  width: 65px;
  height: 65px;
  background: linear-gradient(
    135deg,
    rgba(58, 134, 255, 0.15),
    rgba(58, 134, 255, 0.05)
  );
  border: 1px solid rgba(58, 134, 255, 0.3);
  border-radius: 16px; /* Modern squircle shape */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  transition: all 0.4s ease;
}

/* 2. THE ACTUAL ICON: Gradient & Glow */
.info-icon-wrapper i {
  font-size: 1.8rem;
  background: linear-gradient(to bottom, #ffffff, #3a86ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 5px rgba(58, 134, 255, 0.5));
}

/* 3. HOVER EFFECT: Interactive Pulse */
.info-item:hover .info-icon-wrapper {
  transform: scale(1.1) rotate(-5deg);
  background: rgba(58, 134, 255, 0.25);
  border-color: #3a86ff;
  box-shadow: 0 0 20px rgba(58, 134, 255, 0.4);
}

.info-item:hover .info-icon-wrapper i {
  filter: drop-shadow(0 0 12px rgba(58, 134, 255, 0.8));
}

/* 4. TEXT REALIGNMENT FOR CLASSY LOOK */
.info-text .label {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.7rem;
  opacity: 0.6;
  margin-bottom: 4px;
}

.info-text .value {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  font-size: 1rem !important;
  word-break: break-all !important; /* Prevents email from leaking out of the card */
  display: block !important;
  max-width: 100% !important;
  line-height: 1.4 !important;
}

/* REFINED PREMIUM VEHICLE SPEC TAGS */
.car-specs {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 1.2rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Ultra-faint divider */
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 27, 34, 0.6); /* Deeper glass base */
  border: 1px solid rgba(58, 134, 255, 0.2); /* Subtle blue boundary */
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c9d1d9; /* Silver-grey text */
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ICON STYLING: Silver Metal Effect */
.spec-item i {
  font-size: 0.85rem;
  /* Premium Silver Gradient */
  background: linear-gradient(180deg, #ffffff 0%, #8b949e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

/* HOVER STATE: Electric Activation */
.fleet-card:hover .spec-item {
  background: rgba(58, 134, 255, 0.1);
  border-color: var(--accent-blue);
  color: #fff;
  box-shadow: 0 0 15px rgba(58, 134, 255, 0.15);
}

.fleet-card:hover .spec-item i {
  /* Switch to blue glow on hover */
  background: var(--accent-blue);
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 8px rgba(58, 134, 255, 0.8));
}

/* ==========================================================================
   WHEELWISE MOBILE FLEET OVERFLOW FIX
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. Prevent parent container from expanding beyond screen */
  .fleet-grid,
  #fullFleetGrid,
  #fleetGrid {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 15px !important; /* Safety gutter */
    box-sizing: border-box !important;
    overflow: hidden !important; /* Stops horizontal leaking */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* 2. Force cards to stay within their parent's bounds */
  .fleet-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 30px 0 !important; /* Vertical spacing between cards */
    box-sizing: border-box !important;
    position: relative !important;
  }

  /* 3. Re-align inner content to prevent internal overflow */
  .car-info {
    width: 100% !important;
    padding: 1.5rem 1rem !important;
    box-sizing: border-box !important;
  }

  /* 4. Fix vertical spec stack for all categories */
  .car-specs {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .spec-item {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* 5. Center and bound the Reserve button */
  .fleet-card .cta-btn {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 10px !important;
  }
}

/* Specific fix for iPhone SE and Moto Edge 30 Viewports */
@media (max-width: 400px) {
  .section-container {
    width: 100% !important;
    padding: 0 10px !important;
  }
  .info-item {
    padding: 20px 15px !important;
    gap: 15px !important;
  }
  .info-icon-wrapper {
    min-width: 50px !important;
    height: 50px !important;
  }
  .info-icon-wrapper i {
    font-size: 1.4rem !important;
  }
}
/* Ensure consistent logo spacing across all pages */
.logo {
  display: flex;
  align-items: center;
  gap: 15px; /* Standard spacing from your index.html */
  flex-shrink: 0;
}

/* Fix for links inside logo containers on sub-pages */
.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Consistent Nav Padding for sub-pages */
nav.scrolled {
  padding: 0.8rem 10% !important; /* Forces the 10% side margins */
  justify-content: space-between;
}

/* Mobile specific logo spacing */
@media (max-width: 968px) {
  nav {
    padding: 0.8rem 15px !important; /* Prevents logo hitting screen edge */
  }

  .logo {
    gap: 10px !important;
  }
}
