* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color: #333;
  line-height: 1.7;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  background: black;
  color: #fff;
  padding: 0.7rem 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 6px 12px orange(0, 0, 0, 0.1); /* subtle shadow */
}

header {
  background: black;
  color: #fff;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  text-decoration: none;
  color: white;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
}

.call-btn {
  background: orange;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

/* Header container layout */
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Logo */
.logo {
  font-size: 1.4rem;
  text-decoration: none;
  color: white;
  font-weight: bold;
}
.logo {
  font-size: 1.4rem;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo i {
  color: orange;
  font-size: 1.4rem;
}


/* Navigation menu */
nav ul.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav ul.menu li {
  position: relative;
}

nav ul.menu a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border: 2px solid white;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: inline-block;
  background-color: transparent;
}

/* Hover Effect */
nav ul.menu a:hover {
  background-color: white;
  color: orange;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}



/* Dropdown submenu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: black;
  display: none;
  min-width: 200px;
  z-index: 10;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.dropdown-menu li a {
  padding: 0.5rem 1rem;
  color: white;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a:hover {
  background: orange;
}

/* Contact buttons on right side */
.contact-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.call-btn,
.email-btn {
  background: orange;
  color: white;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.call-btn:hover,
.email-btn:hover {
  background: black;
}


/* Hero Section */
.hero {
  background: url('logo5.jpg') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  text-align:center;
  min-height: 300px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .btn {
  background: orange;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 1rem;
  display: inline-block;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero .btn:hover {
  background: black;
  transform: scale(1.05);
}

/* Callback Form */

.callback-form form {
  max-width: 100px; /* was 600px */
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.callback-form-box {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: relative;
  top: -40px; /* move it upward */
  z-index: 5;
}


.callback-form h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.callback-form p {
  text-align: center;
  margin-bottom: 2rem;
  color: #555;
}

.callback-form form {
  max-width: 400px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.callback-form input,
.callback-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.callback-form button {
  background-color: black;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.callback-form button:hover {
  background-color:orange;
}

#callbackResponse {
  text-align: center;
  margin-top: 1rem;
  color: green;
  font-weight: bold;
}
.two-column {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.callback-text {
  flex: 1;
  min-width: 100px;
}

.callback-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.callback-text p {
  margin-bottom: 1rem;
  color: #444;
}
.callback-form-box {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.callback-form-box h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: black;
}
.our-services {
  padding: 3rem 1rem;
  background-color: white;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  color: black;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3,3fr);
  margin-bottom: 2rem;
  gap: 2rem;
  justify-content: center;
}

.service-card {
  background: #fff;
  border: 1px solid black;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease-in-out;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  background-color: orange;
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-top: 1rem;
  color: black;
}

.service-card a {
  display: inline-block;
  margin-top: 0.5rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.reviews-section {
  padding: 3rem 1rem;
  text-align: center;
  color: white;
}
.review-cards {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.review-cards .card {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 1rem;
  color: white;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
#location {
  background: url('logo6.jpg') no-repeat center center;
  background-size: cover;
  padding: 3rem 1rem;
  color: black;
  position: relative;
  z-index: 1;
}

#location::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 100%;
  background: white(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: -1;
}

.location-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: auto;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 10px;
  margin-top: 1rem;
}

.carousel-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin: 2rem auto;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  animation: scroll-left 40s linear infinite;
}


@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}


.review-card {
  background: orange;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 280px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-align: left;
  margin-bottom: 1rem;
}


.review-text {
  font-style: italic;
  color: #333;
  margin-bottom: 1rem;
}

.review-author {
  font-weight: bold;
  color:black;
}

.location {
  background: #f5f5f5;
  padding: 3rem 1rem;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  color: black;
  margin-bottom: 1rem;
}

.map-container {
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .horizontal-services {
    flex-direction: column;
    align-items: center;
  }
}




/* Footer */
footer {
  background:black;
  color: #bbb;
  text-align: center;
  padding: 1rem 0;
}
.site-footer {
  background-color: #222;
  color: white;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  text-align: 1.2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.gas-safe-logo img {
  width: 80px;
  height: auto;
}
@media (min-width: 600px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
     width: 80%;
    max-width: 800px;
    margin: 0 auto;
  }
}

@keyframes siteBlink {
  0% { transform: scale(1); }
  50% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

.site-blink {
  animation: siteBlink 0.3s ease;
}
@media (max-width: 768px) {
  nav ul.menu {
    flex-direction: column;
    width: 100%;
    background: black;
    padding: 1rem 0;
  }

  nav ul.menu li {
    width: 100%;
    text-align: left;
    border-top: 1px solid #444;
  }

  nav ul.menu a {
    display: block;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0;
    font-size: 1rem;
  }

  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    background: #222;
    box-shadow: none;
    padding: 0;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .call-btn,
  .email-btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    white-space: nowrap;
  }


  /* Hero section */
  .hero {
    height: auto;
    padding: 3rem 1rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero .btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }

  /* Callback form layout */
  .two-column {
    flex-direction: column;
  }

  /* Services grid */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Review cards */
  .review-card {
    min-width: 90%;
  }

  /* Footer adjustments */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
