/* 
One Call Groundworks - Mobile First CSS
--------------------------------
*/

/* Reset and Base Styles 
------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "League Spartan", sans-serif;
  line-height: 1.6;
  color: #333;
  font-size: 16px; /* Base font size for better readability on mobile */
}

/* Header Styles
------------------------*/
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(77, 124, 15);
  color: white;
  padding: 0.5rem;
}

.top-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0;
}

.logo {
  max-height: 70px;
  max-width: 200px;
  margin-bottom: 0.5rem;
}

/* Hero Section
------------------------*/
.hero {
  height: 60vh; /* Full viewport height for mobile */
  min-height: 500px; /* Ensures content fits properly */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 1rem;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Reduced darkness for better text contrast */
  z-index: 1;
}

.hero-content {
  position: relative;
  margin-top: 0;
  z-index: 2;
  width: 100%;
  padding: 0 1rem;
}

h1,
h2,
h3 {
  color: white;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1rem;
}

.cta-button {
  background-color: rgba(244, 115, 33); /* Button background color */
  color: white;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #e67e22; /* Darker button color on hover */
  transform: scale(1.15);
}

/* Why Us Section */
.why-us {
  min-height: 500px; /* Ensures content fits properly */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 1rem;
}

.why-us-content {
  position: relative;
  r-index: 2;
  text-align: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* Reduced spacing for tighter layout */
}

.feature {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  border-radius: 8px;
  color: white;
}

/* Tablet & Desktop Screens */
@media (min-width: 768px) {
  .hero {
    height: 70vh; /* Slightly shorter for larger screens */
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content h2 {
    font-size: 1.8rem;
  }
  .hero-content h3 {
    font-size: 1.2rem;
  }

  .feature-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-content h2 {
    font-size: 2rem;
  }
  .hero-content h3 {
    font-size: 1.5rem;
  }

  .feature-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* Services Section
------------------------*/
.services {
  padding: 3rem 1rem;
  text-align: center;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #005f30;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: #005f30;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #005f30;
}

/* Why Us Section
------------------------*/
.why-us {
  background-color: black;
  color: white; /* White text color for contrast */
  min-height: 500px; /* Ensures content fits properly */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 1rem;
}

.why-us-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  width: 100%;
  text-align: left;
}

h2 {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.feature {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1); /* Light background to contrast with black */
  padding: 1rem 1.5rem;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.feature:hover {
  background: rgba(255, 255, 255, 0.2);
}

.icon {
  font-size: 2rem;
  margin-right: 1rem;
}

.feature strong {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.25rem;
}

.feature p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Map Section
------------------------*/
.review-section {
  background-color: white;
  color: #fff;
  padding: 3rem 1rem;
  text-align: center;
}

.rating-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ff9f00; /* Orange color for emphasis */
  margin-bottom: 1rem;
}

.review-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.review-title .fa-star {
  font-size: 2rem; /* Adjusted for better visibility */
  color: #ff9f00; /* Ensures the stars are orange */
}

.map-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.map-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* Aspect ratio for 16:9 */
  height: 0;
  width: 95%;
  max-width: 900px;
  min-width: 320px;
  overflow: hidden;
  border-radius: 12px; /* Rounded corners to match the design */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Subtle shadow for a cleaner look */
}

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

/* Footer Section
------------------------*/
.footer {
  background-color: rgba(77, 124, 15);
  color: white; /* White text */
  padding: 2rem 1rem;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-bottom {
  margin-top: 1rem;
}

.footer-bottom p {
  font-size: 1rem;
  opacity: 0.7;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon i {
  font-size: 2rem; /* Adjust size of Font Awesome icons */
  transition: transform 0.3s ease;
}

.social-icon:hover i {
  transform: scale(1.1); /* Slight hover effect */
}

.social-icon {
  display: inline-block;
  color: white; /* Ensure icons are white */
  text-decoration: none; /* Remove underline */
}

/* Tablet Styles (768px and up)
------------------------*/
@media (min-width: 768px) {
  .top-bar {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 0.5rem 1rem;
  }

  .logo {
    max-width: 250px;
    margin-bottom: 0;
  }

  .nav-toggle-label {
    display: none;
  }

  nav ul {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
  }

  nav li {
    width: auto;
    margin: 0 1rem;
  }

  .hero-content {
    max-width: 600px;
    padding: 2rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  button {
    width: auto;
    justify-self: center;
  }
}

/* Desktop Styles (1024px and up)
------------------------*/
@media (min-width: 1024px) {
  body {
    font-size: 17px;
  }

  .logo {
    max-width: 300px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Large Desktop Styles (1440px and up)
------------------------*/
@media (min-width: 1440px) {
  .hero-content {
    max-width: 800px;
  }

  .services-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}
