
/* --- Brave Group Core Design System (construct.css) --- */
:root {
  --png-red: #d11c1c;
  --png-black: #000000;
  --png-yellow: #fcd50b;
  --gold-color: #ffd700;
  --gold-hover: #e0b400;
  --dark-red: #8b0000;
  --primary-color: var(--png-black);
  --secondary-color: var(--png-yellow);
  --accent-color: var(--png-red);
  --text-color: #333;
  --light-text-color: #ffffff;
  --background-color: #ffffff;
  --card-background: #f9f9f9;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
  --menu-btn-bg: #2c2c2c;
  --menu-btn-hover: #3a3a3a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
  font-size: 1rem; /* Keep original body font size */
}

body.mobile-menu-open {
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--secondary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
}

p {
  font-weight: 400;
  font-size: 1em;
  line-height: 1.7;
}

.section-padding {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 0.625rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 0.25rem;
  background-color: var(--secondary-color);
}

.section-description {
  text-align: center;
  max-width: 43.75rem;
  margin: 0 auto 3.125rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.text-center {
  text-align: center;
}

/* --- Header and Nav --- */
.main-header {
  background-color: var(--background-color);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 1.25rem;
  gap: 1.25rem;
  position: relative;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.9375rem;
}

.header-logo {
  height: 3.125rem;
}

/* Navigation Menu Buttons */
.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
}

.main-nav a {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--light-text-color);
  padding: 0.75rem 1.375rem;
  position: relative;
  text-align: center;
  transition: all var(--transition-speed);
  background-color: var(--menu-btn-bg);
  border-radius: 1.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2), 0 0 0.9375rem rgba(255, 255, 255, 0.1) inset;
  white-space: nowrap;
  min-width: max-content;
}

.main-nav a:hover {
  color: var(--light-text-color);
  background-color: var(--menu-btn-hover);
  transform: translateY(-0.125rem);
  box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.25), 0 0 1.25rem rgba(255, 255, 255, 0.15) inset;
}

.main-nav a::after {
  display: none;
}

.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--menu-btn-bg);
  list-style: none;
  min-width: 13.75rem;
  box-shadow: 0 0.25rem 0.9375rem var(--shadow-color);
  border-radius: 0.625rem;
  padding: 0.625rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.625rem);
  transition: opacity var(--transition-speed), transform var(--transition-speed);
  z-index: 1002;
  display: none;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block;
}

.dropdown-menu.active,
.dropdown-menu.visible {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  padding: 0.625rem 1.125rem;
  text-align: left;
  display: flex;
  min-width: unset;
  border-radius: 0;
  box-shadow: none;
  justify-content: flex-start;
  font-size: 0.9rem;
  white-space: normal;
}

.dropdown-menu a:hover {
  background-color: var(--menu-btn-hover);
  transform: translateX(0.3125rem);
}

.has-dropdown .fa-chevron-down {
  margin-left: 0.375rem;
  font-size: 0.7rem;
  transition: transform var(--transition-speed);
}

.has-dropdown:hover .fa-chevron-down {
  transform: rotate(180deg);
}

/* Hamburger Menu Button - UPDATED WITH 3 BARS */
.hamburger-button {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1003;
}

.hamburger-button .double-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--menu-btn-bg);
  border-radius: 0.375rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hamburger-button .double-border::before {
  content: '';
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  right: 0.125rem;
  bottom: 0.125rem;
  border: 1px solid var(--menu-btn-bg);
  border-radius: 0.25rem;
  pointer-events: none;
}

.hamburger-button .hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.hamburger-button .hamburger-menu span {
  display: block;
  height: 0.1875rem;
  width: 1.25rem;
  background-color: var(--menu-btn-bg);
  margin: 0.125rem 0;
  transition: all 0.3s ease;
  border-radius: 0.125rem;
}

.hamburger-button.active .hamburger-menu span:nth-child(1) {
  transform: translateY(0.4375rem) rotate(45deg);
}

.hamburger-button.active .hamburger-menu span:nth-child(2) {
  opacity: 0;
}

.hamburger-button.active .hamburger-menu span:nth-child(3) {
  transform: translateY(-0.4375rem) rotate(-45deg);
}

/* Close Mobile Menu Button */
.close-mobile-menu {
  display: none;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--png-red);
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 0;
}

.close-mobile-menu .double-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--light-text-color);
  border-radius: 0.375rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.close-mobile-menu .double-border::before {
  content: '';
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  right: 0.125rem;
  bottom: 0.125rem;
  border: 1px solid var(--light-text-color);
  border-radius: 0.25rem;
  pointer-events: none;
}

.close-mobile-menu i {
  color: var(--light-text-color);
  font-size: 1.4rem;
  font-weight: bold;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text-color);
  background-position: center;
  background-size: cover;
  text-align: center;
  overflow: hidden;
  height: 28.125rem;
}

.hero-constructors {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('BCBG.jpg') no-repeat center center/cover;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 87.5rem;
  width: 95%;
  margin: 0 auto;
  padding: 1.25rem 0;
}

.hero-text {
  padding-right: 0;
  z-index: 10;
  text-align: center;
}

.hero-tagline {
  font-family: 'Raleway', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.9375rem;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--gold-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

.hero-intro {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 1.5625rem;
  color: #eee;
  text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
}

/* --- Vehicle Showcase --- */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  gap: 1.875rem;
  margin-top: 3.125rem;
}

.vehicle-card {
  background-color: var(--card-background);
  border-radius: 0.625rem;
  box-shadow: 0 0.3125rem 0.9375rem var(--shadow-color);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
  height: 25rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--light-text-color);
}

.vehicle-card:hover {
  transform: translateY(-0.3125rem);
  box-shadow: 0 0.5rem 0.9375rem rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.vehicle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
  z-index: 0;
  transition: background 0.3s ease;
}

.vehicle-card.dropdown-active::before {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5));
}

.vehicle-card h3,
.vehicle-card .item-specs {
  position: relative;
  z-index: 1;
  text-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
}

.vehicle-card h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.3125rem;
}

.vehicle-card .item-specs {
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 0.625rem;
}

.card-content {
  padding: 1.25rem;
  position: relative;
  z-index: 1;
  background: none;
  min-height: auto;
}

/* --- Card Buttons Container - NEW: For side-by-side button layout --- */
.card-buttons {
  display: flex;
  gap: 0.625rem;
  margin-top: 0.9375rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- In-card Details Dropdown --- */
.details-dropdown {           
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--light-text-color);
  padding: 0.625rem;
  border-radius: 0.625rem;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.vehicle-card.dropdown-active .details-dropdown {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.details-dropdown .close-dropdown-btn {
  position: absolute;
  top: 0.3125rem;
  right: 0.3125rem;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  line-height: 1em;
  z-index: 11;
  transition: color 0.2s ease;
}

.details-dropdown .close-dropdown-btn:hover {
  color: var(--secondary-color);
}

.details-dropdown .dropdown-content {
  margin-top: 0;
}

.details-dropdown .dropdown-content h3 {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 0.4rem;
}

.details-dropdown .dropdown-content ul {
  list-style: disc;
  margin-left: 1.5rem;
  padding-left: 0;
}

.details-dropdown .dropdown-content li {
  font-size: 0.9rem;
  line-height: 1.5em;
  margin-bottom: 0.2rem;
  color: #eeeeee;
}

.details-dropdown .dropdown-content .decorative-text {
  font-style: italic;
  color: #cccccc;
  margin-top: 0.6rem;
  font-size: 0.8rem;
}

/* Hide original card content when dropdown is active */
.vehicle-card.dropdown-active .card-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

/* --- Gradient Button Styles --- */
.hero-button,
.body-link-button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(90deg, var(--png-black), var(--png-red));
  color: var(--light-text-color);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 0.3125rem;
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.2);
  transition: background-image 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.hero-button:hover,
.body-link-button:hover {
  background: linear-gradient(-90deg, var(--png-black), var(--png-red));
  transform: translateY(-0.1875rem);
  box-shadow: 0 0.375rem 0.9375rem rgba(0, 0, 0, 0.3);
}

.vehicle-btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--light-text-color);
  border-radius: 0.3125rem;
  transition: background-color 0.3s, transform 0.3s;
  background-image: linear-gradient(to right, #4a4a4a, #1f1f1f);
  border: none;
  cursor: pointer;
  flex: 1;
  min-width: 7.5rem;
  text-align: center;
}

.vehicle-btn:hover {
  background-image: linear-gradient(to left, #4a4a4a, #1f1f1f);
  color: var(--light-text-color);
  transform: translateY(-0.1875rem);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
  gap: 1.875rem;
  margin-top: 3.125rem;
}

.service-item {
  background-color: var(--card-background);
  border-radius: 0.625rem;
  box-shadow: 0 0.3125rem 0.9375rem var(--shadow-color);
  padding: 1.875rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-0.3125rem);
  box-shadow: 0 0.5rem 0.9375rem rgba(0, 0, 0, 0.2);
}

.service-item .card-icon {
  font-size: 2.5rem;
  color: var(--gold-color);
  margin-bottom: 0.9375rem;
}

.service-item h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.625rem;
  color: var(--primary-color);
}

.service-item p {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* --- Footer --- */
#footer-contact {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 3.75rem 0 1.25rem;
  font-size: 0.9rem; /* Base footer font size */
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.4rem; /* Desktop footer heading size */
  color: var(--secondary-color);
  margin-bottom: 1.25rem;
}

.footer-section p {
  margin-bottom: 0.9375rem;
  color: #eee; /* Consistent with reference file */
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.625rem;
}

.footer-section a {
  color: #ccc; /* Consistent with reference file */
  transition: color var(--transition-speed);
}

.footer-section a:hover {
  color: var(--light-text-color);
}

.social-icons {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.9375rem;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-text-color);
  border-radius: 50%;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.social-icons a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-0.1875rem);
}

.footer-bottom {
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0.3125rem 0;
  font-weight: 300; /* Consistent with reference file */
}

.developer-credit a {
  color: #ccc; /* Consistent with reference file */
}

/* --- Animations --- */
.animate-in {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
  /* Adjust base font size for mobile */
  html {
    font-size: 14px;
  }
  
  /* Global Adjustments for spacing */
  .container {
    padding: 0 1.25rem;
  }

  /* Refined Font Sizing for mobile */
  body {
    font-size: 1rem; /* Keep original body font size */
  }
  
  .section-padding {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 0.9375rem;
    line-height: 1.3;
  }

  .section-description {
    margin-bottom: 1.5625rem;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 100%;
    padding: 0 0.9375rem;
  }

  .hero-tagline {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-intro {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .hero-button,
  .body-link-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Header and Nav */
  .hero-section {
    height: auto;
    padding: 3.75rem 0;
    min-height: 300px;
  }

  .main-header {
    padding: 0.625rem 0;
  }

  .header-inner {
    padding: 0 1.25rem;
  }

  /* Mobile Navigation */
  .main-nav {
    position: fixed;
    top: 0;
    right: -18.75rem;
    width: 17.5rem;
    height: 100vh;
    background-color: var(--menu-btn-bg);
    padding: 5rem 1.25rem 1.25rem;
    box-shadow: -0.3125rem 0 0.9375rem var(--shadow-color);
    transition: right var(--transition-speed) ease-in-out;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    left: auto;
    transform: none;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    width: 100%;
  }
  
  .main-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .main-nav a {
    padding: 0.75rem 0.9375rem;
    display: block;
    width: 100%;
    min-width: unset;
    text-align: left;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    justify-content: flex-start;
    white-space: normal;
    line-height: 1.4;
  }
  
  .hamburger-button {
    display: flex;
  }
  
  .close-mobile-menu {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.1);
    margin-top: 0.3125rem;
  }

  .dropdown-menu li a {
    padding-left: 1.875rem;
    font-size: 0.9rem;
  }

  .has-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  /* Vehicle Cards Mobile Optimizations */
  .vehicle-card {
    padding: 1.5625rem 1.25rem;
    margin: 0 0.625rem;
    height: 21.875rem;
  }
  
  .vehicle-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }
  
  .vehicle-card .item-specs {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }

  /* Card Buttons Mobile Layout - UPDATED FOR SINGLE ROW */
  .card-buttons {
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-direction: row; /* Force horizontal layout */
    justify-content: center;
    flex-wrap: nowrap; /* Prevent wrapping to new line */
  }

  .vehicle-btn {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    min-width: 6.25rem;
    flex: 1; /* Allow buttons to share available space equally */
    max-width: 48%; /* Ensure both fit in one row with some gap */
  }

  /* Single button adjustment - make it narrower like desktop */
  .card-buttons .vehicle-btn:only-child {
    max-width: 60%; /* Single button takes less width */
    min-width: 10rem; /* But still has a reasonable minimum width */
  }

  /* Services Grid Mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-item {
    padding: 1.5625rem 1.25rem;
    margin: 0 0.625rem;
  }

  .service-item h3 {
    font-size: 1.1rem;
  }

  .service-item p {
    font-size: 0.9rem;
  }

  /* UPDATED MOBILE FOOTER STYLES */
  #footer-contact {
    padding: 2.5rem 0 1.25rem;
    font-size: 0.9rem; /* Consistent base footer font size */
  }

  .footer-content {
    gap: 1.875rem;
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 1.875rem;
  }

  .footer-section h3 {
    font-size: 1.3rem; /* Matches reference file mobile size */
    margin-bottom: 0.9375rem;
  }

  .footer-section p,
  .footer-section ul li,
  .footer-bottom p {
    font-size: 0.95rem; /* Consistent with reference file */
  }

  .social-icons {
    justify-content: center;
    gap: 0.75rem;
  }

  .social-icons a {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.1rem;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  html {
    font-size: 13px; /* Consistent base reduction with reference file */
  }
  
  .hero-tagline {
    font-size: 1.8rem;
  }
  
  .hero-intro {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .vehicle-card {
    margin: 0 0.3125rem;
    padding: 1.25rem 0.9375rem;
    height: 20rem;
  }

  /* Keep buttons in single row on very small screens */
  .card-buttons {
    flex-direction: row; /* Force horizontal layout */
    gap: 0.375rem; /* Reduce gap for very small screens */
    flex-wrap: nowrap; /* Prevent wrapping */
  }

  .vehicle-btn {
    min-width: auto; /* Remove minimum width constraint */
    padding: 0.75rem 0.875rem; /* Slightly smaller padding */
    font-size: 0.8rem; /* Smaller font for very small screens */
    flex: 1; /* Equal distribution */
    max-width: 48%; /* Ensure both fit */
  }

  /* Single button adjustment for very small screens */
  .card-buttons .vehicle-btn:only-child {
    max-width: 50%; /* Single button takes less width */
    min-width: 8rem; /* But still has a reasonable minimum width */
  }

  .service-item {
    margin: 0 0.3125rem;
    padding: 1.25rem 0.9375rem;
  }

  /* SMALL SCREEN FOOTER STYLES */
  #footer-contact {
    padding: 2rem 0 1rem;
    font-size: 0.9rem; /* Consistent base footer font size */
  }

  .footer-content {
    gap: 1.5rem;
  }

  .footer-section h3 {
    font-size: 1.2rem; /* Smaller heading for very small screens */
  }

  .footer-section p,
  .footer-section ul li,
  .footer-bottom p {
    font-size: 0.9rem; /* Smaller text for very small screens */
  }
}

@media (min-width: 993px) {
  /* Reset base font size for desktop */
  html {
    font-size: 16px;
  }
  
  /* Hamburger and Close button styling */
  .hamburger-button, .close-mobile-menu {
    display: none !important;
  }

  /* Vehicle Grid for Desktop */
  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Keep buttons side-by-side on desktop */
  .card-buttons {
    flex-direction: row;
    gap: 0.625rem;
  }

  /* Reset single button width for desktop */
  .card-buttons .vehicle-btn:only-child {
    max-width: none; /* Remove mobile constraint */
    min-width: 7.5rem; /* Reset to original */
  }

  /* Reset footer font sizes for desktop */
  #footer-contact {
    font-size: 0.9rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
    text-align: left;
  }
  
  .social-icons {
    justify-content: flex-start;
  }
}