:root {
  --primary-color--: #0f8b42;
  --secondary-color--: #ffffff;
  --font-family--: "Poppins", sans-serif;
  --font-family-alt--: "Hind", sans-serif;
}

body {
  font-family: var(--font-family--);
  font-weight: 400;
  font-style: normal;
}

.navbar {
  background-color: var(--secondary-color--);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  font-size: 12px;
}

.navbar img {
  width: 80px;
  height: 55px;
}

.green-nav-link {
  color: var(--primary-color--) !important;
  font-weight: bold;
}

.hero-container {
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)),
    url("../images/background.png");
  background-size: cover;
  background-position: center;
  align-items: center;
  height: 600px;
  color: var(--secondary-color--);
  text-align: center;
  padding: 50px 20px;
}

.hero-container h1 {
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 20px;
  margin-top: 70px;
}

.hero-container hr {
  border: none;
  border-top: 2px solid white;
  width: 50%;
  margin: 20px auto;
}

.electrical,
.security {
  color: var(--secondary-color--);
  font-size: 24px;
  font-weight: lighter;
}

.hero-container img {
  width: 55px;
  height: 55px;
}

.hero-container a:hover {
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.hero-button {
  background-color: var(--secondary-color--);
  color: var(--primary-color--);
  border: 2px solid white;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
}

.about-container {
  padding: 50px 20px;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/images/electricians.jpg");
  background-size: cover;
  background-position: center;
  height: 550px;
  color: var(--secondary-color--);
  text-align: center;
  padding: 50px 20px;
}

.contact-container {
  padding: 50px 20px;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url("/images/gold-coast.jpg");
  background-size: cover;
  background-position: center;
  height: 550px;
  color: var(--secondary-color--);
  text-align: center;
  padding: 50px 20px;
}

.location-container {
  padding: 50px 20px;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url("/images/locations.jpg");
  background-size: cover;
  background-position: center;
  height: 550px;
  color: var(--secondary-color--);
  text-align: center;
  padding: 50px 20px;
}

.security-hero-container {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/images/pexels-jakubzerdzicki-28117882.jpg");
  background-size: cover;
  background-position: center;
  align-items: center;
  height: 550px;
  color: var(--secondary-color--);
  text-align: center;
  padding: 50px 20px;
}

.electrical-hero-container {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/images/ce-0003.jpeg");
  background-size: cover;
  background-position: center;
  align-items: center;
  height: 550px;
  color: var(--secondary-color--);
  text-align: center;
  padding: 50px 20px;
}

.hero-content {
  background-color: var(--secondary-color--);
  margin-top: 0%;
  padding: 20px;
  text-align: center;
}

.hero-content img {
  border-radius: 10px;
  width: 300px;
  height: 200px;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}

.hero-content h3 {
  background-color: var(--primary-color--);
  color: var(--secondary-color--);
  text-align: center;
  padding: 10px;
  font-size: 40px;
  margin-top: 20px;
  border-radius: 30px 0;
}

.hero-content a {
  font-size: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-style: italic;
  color: #333;
  font-family: var(--font-family-alt--);
  font-weight: 400;
}

.hero-content p {
  font-size: 16px;
  text-align: center;
  margin-top: 20px;
  color: #333;
  font-family: var(--font-family-alt--);
  font-weight: 400;
}

.hero-content a.btn-electrical {
  background-color: var(--primary-color--);
  color: var(--secondary-color--);
  padding: 6px 12px;
  font-size: 16px;
  border-radius: 5px;
  text-decoration: none;
  font-style: normal;
  font-weight: bold;
  display: inline-block;
  transition: 0.3s;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-electrical:hover {
  background-color: var(--secondary-color--);
  color: var(--primary-color--);
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.separator-wrapper {
  position: relative;
  width: 100%;
  padding-top: 20px;
  padding-bottom: 0;
}

.green-separator {
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  bottom: -10px;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}

.green-separator .layer {
  position: absolute;
  width: 100%;
  height: 100%;
}

.layer1 {
  background: #008b3a;
  clip-path: polygon(0 20%, 100% 0, 100% 40%, 0 60%);
}

.layer2 {
  background: #4caf50;
  clip-path: polygon(0 40%, 100% 20%, 100% 60%, 0 80%);
}

.layer3 {
  background: #a5d6a7;
  clip-path: polygon(0 60%, 100% 40%, 100% 80%, 0 100%);
}

.index-container {
  padding: 50px;
  text-align: center;
}

.index-container h4 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

.index-container.btn-success {
  background-color: var(--primary-color--);
  color: var(--secondary-color--);
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: 0.3s;
  display: inline-block;
}

.submit-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: var(--primary-color--);
  color: var(--secondary-color--);
  border-radius: 30px 0;
  padding: 30px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.full-width {
  width: 100%;
}

.submit-form input,
.submit-form textarea {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  font-family: var(--font-family-alt--);
  font-size: 14px;
  color: #333;
}

.submit-form textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-form .btn-form {
  align-self: center;
  background-color: var(--secondary-color--);
  color: var(--primary-color--);
  font-weight: bold;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  transition: 0.3s;
}

.submit-form .btn-form:hover {
  background-color: #fff;
  color: var(--primary-color--);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.payment-plan {
  background-color: var(--primary-color--);
  color: var(--secondary-color--);
  text-align: center;
  padding: 40px 20px;
}

.payment-plan img {
  width: 300px;
  height: 300px;
}

.about-cards {
  background-color: var(--primary-color--);
  padding: 100px 0 0 0;
  color: var(--secondary-color--);
  text-align: center;
}

.about-cards .card-body {
  padding: 20px;
  text-align: left;
}

.lightning-overlay {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: auto;
  z-index: 10;
}

#reviews .card {
  border-radius: 15px;
  background: white;
  transition: transform 0.2s, box-shadow 0.2s;
}

#reviews .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#reviews .card-title {
  font-weight: 600;
  color: #2c3e50;
}

#reviews .card-text {
  font-size: 0.95rem;
  color: #555;
}

.footer-locations li {
  list-style-type: none;
  font-size: 12px;
  text-align: left;
}

#reviews i.fa-star {
  margin-right: 2px;
}

.footer-button {
  background-color: var(--primary-color--);
  color: var(--secondary-color--);
  border: none;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
}

.footer-licenses {
  text-align: left;
}

.footer-links a {
  color: black;
  margin: 0 10px;
  text-decoration: none;
}

.fa-brands {
  color: black;
  font-size: 20px;
}

.footer-coded {
  display: flex;
  justify-content: center;
  padding: 10px;
  width: 300px;
  font-size: 14px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .navbar img {
    height: 40px;
    width: 50px;
  }

  .hero-container h1 {
    font-size: 28px;
  }

  .hero-container {
    height: 600px;
    padding: 30px 10px;
  }

  .hero-content h3 {
    font-size: 20px;
  }

  .hero-content img {
    display: none;
  }

  .hero-content .row {
    flex-direction: column;
  }

  .hero-content .row p {
    display: none;
  }

  .submit-form {
    padding: 20px;
    font-size: 16px;
    margin-top: 20px;
  }

  .form-row {
    flex-direction: column;
  }

  .review-container {
    display: none;
  }

  .payment-plan h4,
  h5 {
    display: none;
  }

  .payment-plan h3 {
    font-size: 20px;
  }

  .payment-plan btn {
    margin-top: 5px;
  }

  .payment-plan img {
    width: 300px;
    height: 200px;
  }

  .lightning-overlay {
    display: none;
  }

  .locations {
    display: none;
  }

  footer {
    text-align: center;
  }

  footer img {
    width: 150px;
  }

  .footer-links {
    display: none;
  }
}
