/* This is the modified version  now 3.40 */

/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Make all images responsive by default */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: black;
  background-color: #888888;
  text-align: left;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
header {
  background-color: #ff6600;
  color: black;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  height: 50px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: black;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #99ccff;
}

/* Hero Section */
.hero {
  background-image: url("Pictures/IMG_1717.jpg");
  min-height: 500px; 
  /* background-attachment: fixed is added via media query for performance on mobile */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  color: black;
  text-align: left;
  padding: 0 1rem;
}

.hero-container {
  max-width: 700px;
  margin: 0 auto;
}

.hero-text-box {
  background-color: rgba(211, 211, 211, 0.85);
  padding: 2rem;
  border-radius: 8px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(255, 102, 0, 0.7);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(255, 102, 0, 0.6);
}

.btn-primary {
  background-color: #ff6600;
  color: black;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #e65c00;
}

/* Services Section */
.services {
  padding: 3rem 0;
  background-color: #cccccc;
  text-align: left;
  margin-bottom: 3rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding-left: 1rem;
  padding-right: 1rem;
}

.section-residential {
  background-color: #dddddd;
}

.section-commercial {
  background-color: #cce6ff;
}

.section-industrial {
  background-color: #b3d1ff;
}

/* About Section */
.about {
  padding: 3rem 0;
  background-color: #cce6ff;
  text-align: left;
}

.about-container p {
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
  font-size: 1.1rem;
  color: black;
}

.about-container img {
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact {
  padding: 3rem 0;
  background-color: #cccccc;
  text-align: left;
}

/* Gallery Section */
.row > .column {
  padding: 0 8px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Create four equal columns that floats next to eachother */
.column {
  float: left;
  width: 25%;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
}

/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

/* Hide the slides by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Caption text */
.caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
}

img.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.contact-container p {
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: black;
}

.contact-form {
  max-width: 500px;
  margin: 1.5rem auto 0 auto;
  text-align: left;
}

.contact-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
  color: black;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
}

.contact-form button {
  width: 100%;
  background-color: #ff6600;
  color: black;
  padding: 0.75rem;
  font-weight: 700;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #e65c00;
}

/* Footer */
footer {
  background-color: #ff6600;
  color: black;
  text-align: center;
  padding: 1rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* Responsive Styles */

/* For tablets and larger phones */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
  }

  nav ul li {
    margin-left: 0;
    margin-bottom: 0.5rem;
  }

  .hero {
    height: auto;
    padding: 2rem 1rem;
  }

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

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

  .services {
    padding: 2rem 1rem;
  }

  .column {
    width: 50%; /* 2 columns for thumbnails */
  }

  .contact-form {
    max-width: 100%;
    padding: 0 1rem;
  }

  .lightbox-content {
    width: 95%; /* Give a little space on the sides */
  }
}

/* For smaller phones */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

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

  .column {
    width: 100%; /* 1 column for thumbnails */
  }
}

/* For desktops where fixed background is not an issue */
@media (min-width: 769px) {
  .hero {
    background-attachment: fixed;
  }
}

/* Navigation Toggle */
.nav-toggle {
    display: none;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0.5em;
}

.hamburger {
    display: block;
    position: relative;
    width: 2em;
    height: 3px;
    background: black;
    transition: transform 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: black;
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 1001;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: #ff6600;
        position: absolute;
        top: 100%;
        left: 0;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }
}

.phone-link {
  text-decoration: none;
  color: #0000EE;
}

@media (max-width: 768px) {
  .phone-link {
    display: inline-block;
    background-color: #ff6600;
    color: black;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }

  .phone-link:hover {
    background-color: #e65c00;
  }
}
