/* Reset default spacing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

/* Body styling */
body {
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  width: 100%;
}


/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background-color: #094848;
  position: sticky;
  top: 0;
  z-index: 1000;
  color: white;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


.navbar a:hover{
  color: #ccc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  margin-left: 16px;
  text-decoration: none;
}


.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.navbtn{
    background-color: #ffffff;
    color: #094848;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    font-weight: 700;
    border: none;
    margin-left: 20px;
    padding: 20px 20px;
    cursor: pointer;

    transition: background-color 0.3s ease, transform 0.3s ease;
}

.navbtn:hover {
    background-color: #e1e1e1;
    transform: translateY(-2px);
}

.btn{
  display: inline-block;
  margin-top: 20px;

  padding: 12px 24px;
  background-color: rgb(247, 154, 62);
  color: white;

  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;

  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background-color:rgb(255, 138, 22);
  transform: translateY(-2px);
}


.contact{
  display: none;
}

.navbar a {
  color: white;
  margin-left: 16px;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* MAIN CONTAINER */
.container {
  max-width: 1000px;
  margin: auto;
  padding: 19px;
  text-align: center;
}


/* HERO SECTION */
.hero {
  height: 100vh; 
  background: url("Gallery/IMG_0975.jpg") center/cover no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
  color: white;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 12px;

  max-width: 500px;
  text-align: center;

  backdrop-filter: blur(5px); /* glass effect */
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.services{
  padding: 60px 40px;
  background-color: #ffffff;
}

.services-title{
  text-align: left;
  margin-bottom: 30px;
  font-size: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;

  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: left;

  cursor: pointer;
}

.service-item img{
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-item h3 {
  padding: 15px 15px 5px;
  font-size: 1.2rem;
}

.service-item p {
   padding: 0 15px 20px;
  font-size: 0.95rem;
  color: #555;
}

.service-item:hover {
  transform: translateY(-5px);
  transition: transform 0.2s ease;
}

.service-areas {
  padding: 60px 40px;
  text-align: left;
}

.service-areas-list {
  list-style: none;
  padding: 0;
  margin: 30px auto 0;
  
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 60px;

  max-width: 700px;
  text-align: left;
}
.service-areas-title {
  text-align: left;
  margin-bottom: 30px;
  font-size: 2rem;
}

.areas-list ul{
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.areas-list li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.about{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 60px 40px;
  border-radius: 8px;
  background-color: #f5f5f5;
}

.about-title{
  text-align: left;
  margin-bottom: 30px;
  font-size: 2rem;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color:#031717;
}

.about-text p {
  text-align: justify;
  line-height: 1.8;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-image img {
  max-width: 100%;
  width: 400px;
  border-radius: 10px;
}
/* Full-width gallery section */
.gallery {
  width: 100%;
  padding: 60px 40px;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #ffffff;
}

/* Title aligned like services section */
.gallery-title {
  text-align: left;
  margin-bottom: 30px;
  font-size: 2rem;
}

.gallery-subtitle {
  text-align: left;
  margin-bottom: 40px;
  font-size: 1.2rem;
  color: #555;
}

/* Grid container for rows */
.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

/* Each row is a grid of 4 images */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;

  /* Slide-in animation */
  opacity: 0;
  transform: translateX(100px);
  transition: transform 0.8s ease, opacity 0.8s ease;

  min-height: 220px; /* to prevent layout shift when images load */
}

/* When row is visible */
.gallery-row.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Images */
.gallery-row img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.contact-section {
  padding: 60px 20px;
  text-align: left;
  border-radius: 8px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  background: #f5f5f5;
  flex-direction: column;
  border-radius: 8px;
  padding: 60px 40px 40px;
  gap: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.contact-form label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 10px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #555;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.form-title {
  text-align: left; /* top-left alignment */
  margin-bottom: 10px;
  font-size: 2rem;
  padding: 60px 0 30px; /* extra top padding for spacing from previous section */
}


.contact-form button {
  background-color: #094848;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
}

.contact-form button:hover {
  background-color: #063232;
}

.required {
  color: red;
  font-size: 0.9rem;
  margin-left: 4px;
  font-weight: bold;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contactpage {
  text-align: left;
  border-radius: 8px;
  background: #fafafa;
}
.form-subtitle {
  text-align: left;
  margin-bottom: 30px;
  font-size: 1.2rem;
  color: #555;
}
.contactpage p {
  margin-bottom: 30px;
  color: #555;
  max-width: 600px;
}

.hidden { display: none; }

.footer {
  background-color: #031717;
  color: white;
  padding: 40px 20px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h3 {
  margin-bottom: 10px;
}

.footer-section a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 5px;
}

.footer-section a:hover {
  text-decoration: underline;
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #444;
  padding-top: 10px;
  font-size: 0.9rem;
}

.services-page {
  padding: 80px 10%;
}

.services-page-hero {
  text-align: center;
  padding: 80px 20px 60px;
  background: url("Gallery/hero.jpg") center/cover no-repeat;
}

.services-page-hero-content {
  background: rgba(0, 0, 0, 0.6);
  display: inline-block;
  padding: 40px;
  border-radius: 12px;
  color: white;
}

.services-page-hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.services-page-hero p {
  font-size: 1.2rem;
  color: white;
}

.service-block {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 80px 10%;
  padding: 80px 40px;
}

.service-block.reverse {
  flex-direction: row-reverse;
  background-color: #f5f5f5;
  border-radius: 10px;
}

.service-block img {
  width: 45%;
  border-radius: 10px;
}

.service-text {
  width: 55%;
}

.service-text p {
  text-align: justify;
  line-height: 1.8;
}

.service-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background-color: rgb(247, 154, 62);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.service-btn:hover {
  background-color: rgb(255, 138, 22);
  transform: translateY(-2px);
}

#driveways,
#patios,
#sidewalks,
#overlay,
#stamped,
#spray {
  scroll-margin-top: 300px;
}

@media (max-width: 768px) {
  /* Stack navbar */
  .hamburger {
    display: block;
  }

  /* Hide nav links initially */
  #nav-links {
    position: fixed;
    top: 73px; /* directly below navbar */
    right: 0;
    overflow: visible;

    width: 75%;
    height: calc(100vh - 73px); /* full height minus navbar */
    background-color:#094848;
    display: flex;
    flex-direction: column;

    /* Start hidden off screen */
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;

    padding: 30px 20px;

    visibility: hidden;
    z-index: 999;

  }

   /* Show when active */
   #nav-links.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  #nav-links a {
    padding: 15px 10px;
    font-size: 1.2rem;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  #nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

    #nav-links.active ~ .hamburger {
    display: none;
  }

  .contact{
    display: inline-block;
  }

  .areas-list {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .areas-list ul {
    text-align: center;
  }

  .navbtn {
    display: none;
  }

  .navbar nav {
    margin-top: 10px;
  }

  /* Stack images */
  .gallery {
    grid-template-columns: 1fr;
  }

 
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 40px 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Makes image appear under title but above text */
  .about-text {
    display: flex;
    flex-direction: column;
  }

  .about-image {
    order: 2;
    margin: 20px 0;
  }

  .about-text h3,
  .about-text p {
    order: 3;
  }

  .about-title {
    text-align: center;
    margin-bottom: 20px;
  }

  .about-text p {
    text-align: left;
  }

  .about-image img {
    width: 100%;
    max-width: 350px;
  }


  .gallery-row {
    grid-template-columns: 1fr;
  }

  .service-block,
  .service-block.reverse {
    flex-direction: column;   /* stack vertically */
    text-align: center;       /* optional: center headings/text */
    gap: 20px;                /* smaller gap on mobile */
  }

  .service-block img {
    width: 100%;              /* full width image */
    max-width: 400px;         /* optional: limit size */
  }

  .service-text {
    width: 100%;
  }

  .service-btn {
    margin-top: 15px;         /* space above button */
  }

  #driveways,
  #patios,
  #sidewalks,
  #overlay,
  #stamped,
  #spray {
  scroll-margin-top: 120px;
}

}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-row {
    grid-template-columns: repeat(2, 1fr);
  }
}