
/*on desktop*/
body {
      margin: 0;
      font-family: Roboto, sans-serif;
      background: url('../images/cast-iron-guttering-downpipe-ascott-under-wychwood.png') no-repeat center center fixed;
      background-size: cover;
      font-weight: bold;
    }

   img {
    max-width: 100%;
    height: auto;
    display: block;
    }

    /* Sticky header */
    header {
      position: sticky;
      top: 0;
      background: Black;
      display: flex;
      flex-direction: column;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      z-index: 1000;
    }
      


       .mobile-footer {
          display: none;                /* hide on desktop */
          position: fixed;              /* fixed to bottom */
          bottom: 0;
          left: 0;
          width: 100%;
          background: black;          
          color: white;
          text-align: center;
          padding: 15px 0;
          font-size: 1.2em;
          font-weight: bold;
          z-index: 1000;                /* stay above other content */
          box-shadow: 0 -2px 5px rgba(0,0,0,0.3);

       }

     h1, h2 {
       text-align: center;
       }

     a {
        color: #6B6B6B;
  	text-decoration: none;
  	transition: color 0.2s ease, opacity 0.2s ease;
  	font-weight: 600;
  	padding-bottom: 1px;
      }
     
     a:hover {
       color: #333;
      }

 /* Social icons */
.socials {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
  margin-right: 20px;
}

.socials img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}


/* Top bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  gap: 20px;
  position: relative;
  flex-wrap: wrap;
}


    .menu-toggle {
       display: none;             /* hidden on desktop */
       position: absolute;        /* top-right corner */
       top: 15px;
       right: 20px;
      font-size: 2em;
      background: Black;
      border: none;
      color: white;
      cursor: pointer;
     padding: 5px 10px;
     border-radius: 5px;
     transition: background 0.2s;
   }

   /* Grey background when active/clicked */
   .menu-toggle.active {
     background: #999;
     color: white;
     }
    .menu-toggle:hover {
      background: #777;
      }



   .logo img {
   max-height: 140px;
   width: auto;
   height: auto;
   }
   @media (max-width: 768px) {
  .logo img {
    max-height: 100px;
  }
}

/* Contact button */
.contact-btn {
  padding: 16px 32px;
  background: #06854E;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.2em;
  white-space: nowrap;
}


    .call-btn {
      padding: 16px 32px;
      background: #06854E;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-weight: bold;
      font-size: 1.5em;
      display: flex;
      text-align: center;
    }
    .contact-btn:hover {
      background: #045431;
    }

    .call-btn:hover {
      background: #045431;
    }

    /* Navigation bar */
    .desktop-nav {
      display: flex;
      justify-content: center;
      background: #9D9EA0;
      border-top: 1px solid #ddd;
      border-bottom: 1px solid #ddd;
    }

    .desktop-nav a {
      padding: 12px 20px;
      text-decoration: none;
      color: #333;
      font-weight: bold;

    }

    nav a:hover {
      background: #ddd;
    }
    .content-box {
        background: rgba(255, 255, 255, 0.7);
        border-radius: 16px;
        height: 100%;         /* fill section height */
        width: 90%;          /* fill section width */
        max-width: 1000px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        padding: 40px;
        box-sizing: border-box;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);  
    }
    
   .menu-toggle {
     display: none;
     font-size: 2em;
     background: none;
     border: none;
     color: white;
     cursor: pointer;
    }

    /* Mobile nav hidden by default */
     .mobile-nav {
     display: none;
     flex-direction: column;
     background: #9D9EA0;   /* grey background */
     width: 100%;
     padding: 10px 0;
     }

   .mobile-nav a {
     padding: 12px 20px;
     text-decoration: none;
     color: #333;
     font-weight: bold;
     border-top: 1px solid #ccc;
     text-align: center;
    }

     .content-row {
       display: flex;
       gap: 40px;              /* space between boxes */
       justify-content: center;
       flex-wrap: wrap;        /* makes them stack on mobile */
   }
   
	section {
  	min-height: 90vh;
 	 padding: 50px 20px;
      display: flex;
	 justify-content: center;
 	 align-items: flex-start; /* IMPORTANT */
	}

   form {
     display: flex;
     flex-direction: column;
     gap: 12px;
    }

   input, textarea {
     padding: 10px;
     border-radius: 8px;
     border: 1px solid #ccc;
     font-size: 1em;
   }

     button {
      padding: 12px;
      font-size: 1.1em;
      border: none;
      border-radius: 8px;
      background: #0073e6;
      color: white;
      cursor: pointer;
   }

     button:hover {
      background: #005bb5;
   }
     .name-row {
       display: flex;
       gap: 15px;
   }

    .name-row div {
      flex: 1; /* both inputs share the row evenly */
   }

    textarea {
      resize: vertical; /* let users expand it if needed */
      width: 100%;
      padding: 10px;
      border-radius: 8px;
      border: 1px solid #ccc;
      font-size: 1em;
    }

    html {
     scroll-padding-top: 240px; /* adjust to your header’s height */
    }
    .contactbox {
        width: 50%;
        max-width: 400px;
        background: rgba(255, 255, 255, 0.95);
        padding: 30px;
        border-radius: 16px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        box-sizing: border-box; /* ensure padding doesn’t break width */
     }

     .contactbox form {
       display: flex;
       flex-direction: column;
       gap: 15px;
    }

     .name-row {
       display: flex;
       gap: 15px;
    }

    .name-row input {
      flex: 1;
    }

   .contactbox input,
   .contactbox textarea {
     width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1em;
    box-sizing: border-box; /* important to prevent overflow */
   }

   .contactbox button {
     padding: 12px;
     font-size: 1.1em;
     border: none;
     border-radius: 8px;
     background: #0073e6;
     color: white;
     cursor: pointer;
     transition: background 0.2s ease;
   }

   .contactbox button:hover {
    background: #005bb5;
   }
  
       .lightbox {
      display: none;
      position: fixed;
      z-index: 9999;
      padding-top: 60px;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.9);
    }

      /* Image inside lightbox */
    .lightbox-content {
      margin: auto;
      display: block;
      max-width: 90%;
      max-height: 90%;
      border-radius: 12px;
    }

     /* Close button */
    .close {
      position: absolute;
      top: 20px;
      right: 40px;
      color: white;
      font-size: 40px;
      cursor: pointer;
     }

     .clickable-img {
       cursor: pointer;
       transition: transform 0.2s; /* smooth little effect */
     }

    .clickable-img:hover {
      transform: scale(1.02);  /* optional: tiny zoom on hover */
      cursor: pointer;         /* shows the hand cursor */
     }
    
    .about-content {
      display: flex;
      align-items: center;       /* vertically aligns text with image */
      gap: 20px;                 /* space between text and image */
      flex-wrap: wrap;           /* stacks on smaller screens */
     }

    .about-text {
      flex: 1;                   /* takes up remaining space */
     }

    .about-image img {
      max-width: 250px;          /* controls image size */
      border: 3px solid #ccc;    /* subtle border */
      border-radius: 12px;       /* rounded corners */
      object-fit: cover;
      display: block;
    }
    

    .home-text {
      flex: 1;                   /* takes up remaining space */
     }


    .home-images {
      float: right;         /* puts images on the left */
      margin: 0 0 20px 20px; /* spacing around images (right + bottom) */
      
   }

    .home-images img {
      display: block;       /* makes stacking cleaner */
      margin-bottom: 10px;  /* gap between stacked images */
      border-radius: 8px;   /* optional rounded corners */
      max-width: 250px;
   }

/* =========================
   FLOATING CONTENT IMAGES
========================= */

.float-img {
  width: 300px;
  max-width: 40%;
  border-radius: 12px;
  margin: 10px 20px 20px 0;
  object-fit: cover;
}

.float-img.left {
  float: left;
}

.float-img.right {
  float: right;
  margin: 10px 0 20px 20px;
}

/* Mobile fix */
@media (max-width: 768px) {
  .float-img {
    float: none;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
  }
}

/* =========================
   LIGHTBOX ARROWS
========================= */

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  background: rgba(0,0,0,0.3);
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 8px;
  user-select: none;
  z-index: 10000;
}

.lb-nav:hover {
  background: rgba(0,0,0,0.6);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* =========================
   AREAS COVERED CARDS
========================= */

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.area-card {
  display: block;
  background: rgba(255, 255, 255, 0.9);
  padding: 25px;
  border-radius: 12px;
  text-decoration: none;
  color: #222;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.area-card h3 {
  margin: 0 0 8px 0;
  font-size: 1.2em;
}

.area-card p {
  margin: 0;
  font-size: 0.95em;
  opacity: 0.8;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  background: white;
}

/* =========================
   PROJECT GRID
========================= */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* =========================
   PROJECT CARD
========================= */

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.75) 0%,
      rgba(0,0,0,0.15) 60%,
      rgba(0,0,0,0.05) 100%
    );

  z-index: 1;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* =========================
   PROJECT INFO
========================= */

.project-info {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 25px;
  box-sizing: border-box;
}

.project-info h2 {
  color: white;
  margin: 0 0 10px 0;
  font-size: 1.5em;
  line-height: 1.3;
  text-align: left;
}

.project-info p {
  color: rgba(255,255,255,0.9);
  margin: 0;
  font-size: 0.95em;
  line-height: 1.5;
  font-weight: normal;
}

/* =========================
   MOBILE PROJECT FIXES
========================= */

@media (max-width: 768px) {

  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card {
    min-height: 260px;
  }

  .project-info h2 {
    font-size: 1.3em;
  }

}

/* =========================
   SERVICES GRID
========================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* =========================
   SERVICE CARD
========================= */

.service-card {
  display: block;
  background: rgba(255, 255, 255, 0.92);
  padding: 28px;
  border-radius: 14px;
  text-decoration: none;
  color: #222;

  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);

  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Green accent line */

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  height: 4px;
  width: 100%;

  background: #06854E;
  opacity: 0.9;
}

/* Hover effect */

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.15);
  background: #fff;
}

/* Title */

.service-card h3 {
  margin: 10px 0 8px;
  font-size: 1.2em;
  color: #222;
}

/* Description */

.service-card p {
  margin: 0;
  font-size: 0.95em;
  opacity: 0.75;
  line-height: 1.4;
  color: #222;
}

/* =========================
   MOBILE SERVICES
========================= */

@media (max-width: 768px) {

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 22px;
  }

}
   /*on phone*/

    @media (max-width: 768px) {
      .contactbox {
        width: 100%;         /* nearly full width on small screens */
        padding: 20px;      /* slightly smaller padding */
     }
     
    .content-box {
     width: 100%;
      }
     
       .desktop-nav {
       display: none;
         }

      .name-row {
    flex-direction: column;  /* stack first and last name */
    gap: 10px;               /* smaller gap */
      }

    .about-content {
      flex-direction: column;
      align-items: center;
      text-align: center;
     }

   .about-image img {
      max-width: 80%;  /* smaller on mobile */
       }


     
       /* Hide desktop socials on small screens */
       .socials {
         display: none;
         }

        /* Mobile socials inside hamburger menu */
        .mobile-socials img {
           height: 50px;
          width: 50px;
         }
        .menu-toggle {
         display: block;
         margin-top: 10px;
         }
         .contact-btn {
         display: none;
         }
         .logo {
         max-height: 100px;
         }
         
        html {
          scroll-padding-top: 100px; /* adjust to your header’s height */
          }
        .mobile-footer {
         display: flex;
         justify-content: center; /* center horizontally */
         align-items: center; 
          }
         .mobile-footer a{
         text-decoration: none;
          }
         .mobile-footer a:hover {
          color: white;
          }
   }
