/*
  HEADINGS: Montserrat for a sharper style
  Larger heading sizes site-wide
*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans&display=swap');

:root {
  --color-dark-bg: #121212;
  --color-header: #1a1a1a;
  --color-accent: #b50000;
  --color-text: #e0e0e0;
  --color-subtle: #cccccc;
  --color-card: #242424;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --max-width: 1400px;
  --transition-speed: 0.3s;
  --border-radius: 6px;
  --box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* RESET & GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--color-dark-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 1.1em;
}

a {
  text-decoration: none;
  color: inherit;
}

html {
  scroll-behavior: smooth;
}

/* HEADER & NAV */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 15px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-header);
  box-shadow: 0 2px 10px rgba(0,0,0,0.6);
  z-index: 999;S
}

.logo img {
  height: 70px;
  margin-right: 10px;
  box-shadow: none;
}

nav {
  display: flex;
  align-items: center;
  position: relative;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1000;
}
.hamburger div {
  width: 25px;
  height: 3px;
  background-color: var(--color-subtle);
  margin: 5px;
  transition: all var(--transition-speed) ease;
}
.hamburger.active div:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active div:nth-child(2) {
  opacity: 0;
}
.hamburger.active div:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  transition: transform var(--transition-speed) ease;
}
.nav-links a {
  color: var(--color-subtle);
  margin: 0 20px;
  font-weight: 500;
  font-size: 1.1em;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-accent);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

/* DROPDOWN */
.dropdown {
  position: relative;
}
.dropdown button {
  background: none;
  border: none;
  color: var(--color-subtle);
  font-size: 1.1em;
  cursor: pointer;
  padding: 0;
  font-weight: 500;
}
.dropdown button::after {
  content: ' ▼';
  font-size: 0.8em;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: var(--color-header);
  flex-direction: column;
  min-width: 160px;
  padding: 8px 0;
  border: 1px solid #333;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.8);
  z-index: 1000;
}
.dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: var(--color-subtle);
  font-size: 0.95em;
  transition: background 0.3s ease, color 0.3s ease;
}
.dropdown-content a:hover {
  background: #333;
  color: var(--color-text);
}

/* MOBILE NAVIGATION */
@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    background: var(--color-header);
    transform: translateX(100%);
    transition: transform var(--transition-speed) ease;
    z-index: 998;
  }
  .nav-links.open {
    transform: translateX(0%);
  }
  .nav-links a {
    margin: 20px 0;
    font-size: 1.2em;
  }
  .dropdown button::after {
    content: ' ▶';
  }
  .dropdown-content {
    position: static;
    background: var(--color-header);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    min-width: 100%;
  }
  .dropdown-content a {
    padding: 14px 0;
  }
  .hamburger {
    display: flex;
  }
}

/* HEADER CTA */
.header-cta {
  background: linear-gradient(45deg, var(--color-accent), #d00000);
  color: var(--color-text);
  padding: 10px 25px;
  border-radius: 20px;
  font-weight: 600;
  margin-top: 10px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.header-cta:hover {
  background: #900;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* MAIN WRAPPER */
main {
  width: 90%;
  max-width: var(--max-width);
  margin: 80px auto 0 auto; /* Reduced top margin for a tighter layout */
}

/* PAGE HEADER */
.page-header {
  padding: 50px 20px 30px 20px; /* Reduced top padding to tighten overall spacing */
  text-align: center;
}
.page-header-content {
  padding: 20px;
}
.page-header-content h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}
.page-header-content p {
  margin-bottom: 20px;
}
/* Adjusting the call-to-action button within page headers */
.page-header .header-cta {
  margin-top: 30px;
  margin-bottom: 0;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px 20px;
  background: var(--color-header);
  color: #aaa;
  font-size: 0.9em;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer a {
  color: var(--color-accent);
  margin: 0 10px;
}
footer a:hover {
  color: var(--color-text);
}
footer .social-icons {
  margin-top: 20px;
}
footer .social-icons a {
  margin: 0 10px;
  display: inline-block;
}
footer .social-icons img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}
footer .social-icons a:hover img {
  transform: scale(1.2);
}
.footer-business-info {
  margin-bottom: 20px;
  text-align: center;
}
.footer-business-info p {
  margin: 5px 0;
}

/* HERO SECTION */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 500px;
  margin-bottom: 40px;
  background: var(--color-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  margin-top: 30px;
}

.hero-left, .hero-right {
  flex: 1;
  min-width: 300px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-left img {
  width: 550px;
  max-width: 100%;
  height: auto;
  box-shadow: none;
}

.hero-right h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 25px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.hero-right p {
  color: var(--color-subtle);
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 450px;
  margin-bottom: 25px;
}

/* WAVE SECTIONS */
.wave-section, .wave-section-dark {
  padding: 60px 20px;
  margin-bottom: 60px;
  position: relative;
}
.wave-section::after, .wave-section-dark::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--color-accent);
  margin: 30px auto 0;
}
.wave-section-dark {
  background: #1a1a1a;
}
.wave-section {
  background: var(--color-card);
}
.wave-section .inner,
.wave-section-dark .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.wave-image, .wave-text {
  flex: 1;
  min-width: 280px;
}
.wave-text h2 {
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-size: 2.4rem;
}
.wave-text p {
  margin-bottom: 15px;
}
.wave-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* AMENITIES SECTION */
.amenities-section {
  padding: 80px 20px;
  margin-bottom: 60px;
  position: relative;
}
.amenities-section::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--color-accent);
  margin: 30px auto 0;
}
.amenities-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}
.amenities-text, .amenities-image {
  flex: 1;
  min-width: 300px;
}
.amenities-text h2 {
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-size: 2.4rem;
}
.amenities-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.amenities-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}
.amenities-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

/* Amenity cards (if used) */
.amenity-card {
  background: var(--color-card);
  border: 1px solid #444;
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.amenity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.7);
}
.amenity-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
}

/* SERVICES SECTION */
.section {
  padding: 60px 20px;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}
.section::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--color-accent);
  margin: 30px auto 0;
}
.section h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  margin-bottom: 20px;
}
.section p {
  color: var(--color-subtle);
  font-size: 1em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 20px;
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 40px;
  margin-top: 40px;
}
.service-card {
  background: var(--color-card);
  border: 1px solid #444;
  border-radius: var(--border-radius);
  padding: 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
  color: var(--color-subtle);
}
.service-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.7);
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}
.service-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-text);
}
.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* SCROLL-TO-TOP BUTTON */
#scrollToTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: var(--color-accent);
  color: var(--color-text);
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  font-size: 1.2rem;
  z-index: 1000;
}
#scrollToTop:hover {
  background: #900;
}

/* CONTACT PAGE STYLES */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 0;
}
.contact-form, .contact-info {
  flex: 1;
  min-width: 300px;
  background: var(--color-card);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin: 20px 0;
}
.contact-form form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  text-align: left;
}
.contact-form form input,
.contact-form form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #444;
  border-radius: var(--border-radius);
  background: var(--color-dark-bg);
  color: var(--color-text);
}
.contact-form form button {
  padding: 10px 20px;
  background: var(--color-accent);
  color: var(--color-text);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1em;
}
.contact-form form button:hover {
  background: #900;
}
.contact-info h3 {
  margin-top: 0;
  text-align: left;
}
.contact-info p {
  text-align: left;
  margin-bottom: 10px;
}

/* Team Portraits in Meet Our Team section */
.team-portrait {
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
  margin: 0 auto 15px;
}

/* Additional Info Section Styles */
.info-section {
  padding: 60px 20px;
  background: #111;
  color: #e0e0e0;
}
.info-section.alt-bg {
  background: #1a1a1a;
}
.info-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.overview-list, .expect-steps {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.overview-list li,
.expect-steps li {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

/* TESTIMONIAL SECTION */
.testimonial-section {
  background: #222;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.testimonial-section blockquote {
  font-style: italic;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}
.testimonial-section cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-weight: bold;
}

/* LOCAL AREA / SEO FOOTER TEXT */
.local-seo-section {
  padding: 40px 20px;
  background: #151515;
  text-align: center;
  font-size: 1rem;
  color: #ccc;
  max-width: 800px;
  margin: 0 auto;
}

/* Highlight Text */
.highlight {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 4px;
}

/* Mid-Page CTA */
.mid-cta {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.mid-cta h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.mid-cta p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.cta-button {
  display: inline-block;
  margin: 10px;
  padding: 14px 26px;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255,0,0,0.3);
}

/* Fleet Maintenance Section CTA */
.wave-cta {
  display: inline-block;
  padding: 12px 26px;
  background: var(--color-accent);
  color: var(--color-text);
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 20px;
}
.wave-cta:hover {
  background: #900;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Spacing & Centering Helpers */
.hero-spacer {
  height: 40px;
}

.centered-grid {
  justify-items: center;
}

/* General Auto Repair Section */
.auto-repair-section {
  padding: 60px 20px;
  margin-bottom: 60px;
  background: var(--color-card);
}
.auto-repair-section .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.auto-repair-text, .auto-repair-image {
  flex: 1;
  min-width: 280px;
}
.auto-repair-text h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  margin-bottom: 20px;
}
.auto-repair-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
}
.auto-cta {
  display: inline-block;
  padding: 12px 26px;
  background: var(--color-accent);
  color: var(--color-text);
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.auto-cta:hover {
  background: #900;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.auto-repair-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Responsive Adjustments for Mobile Devices */
@media (max-width: 768px) {
  /* Adjusting hero section layout and typography for mobile */
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  
  .hero-left,
  .hero-right {
    width: 100%;
    padding: 10px;
  }
  
  .hero-right h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }
  
  /* Ensure the hero image scales appropriately */
  .hero-left img {
    width: 280px;
    margin: 0 auto;
  }
  
  /* Adjusting service card layout for mobile */
  .service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px; /* Adjust spacing as needed */
  }
  
  .service-card h3 {
    order: 1;
    width: 100%;
    text-align: center;
  }
  
  .service-card img {
    order: 2;
    width: 90%;
    height: auto;
    margin: 15px 0;
    display: block;
  }
  
  .service-card p {
    order: 3;
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .service-section {
    flex-direction: column !important;
  }
}

/* Utility class to hide elements */
.hide {
  display: none;
}

/* Placeholder styling for the Team section */
.placeholder-card {
  background: var(--color-card);
  color: var(--color-text);
  padding: 40px;
  border-radius: var(--border-radius);
  max-width: 800px;
  margin: 40px auto 0 auto;
  box-shadow: var(--box-shadow);
  text-align: center;
}

.placeholder-card h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.placeholder-card p {
  font-size: 1.1rem;
  line-height: 1.6;
}
