  /* ========================== GENERAL TYPOGRAPHY ========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
/* ----------------------------- GENERAL TEXT ----------------------------- */
body {
    font-family: Arial, sans-serif;
    color: #000000;
    overflow-x: hidden;
}
p {
    line-height: 1.25rem;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}
/* lists */
ul li {
    margin-left: 2rem;
    position: relative;
    margin-bottom: 0.5rem;
  }
/* HEADER TAGS */

  h1 {
    color:#000000;
    font-weight: bold;
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  h2 {
    color: #16428c;
    font-weight: bold;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 0.75rem;
  }
  
  h3 {
    color:#3dcad2;
    font-weight: bold;
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  /* ------------------------------ Branded Bolds ----------------------------- */
  .bold.blue {
    font-weight: bold;
    color: #16428c;
  }
  .bold-white {
    font-weight: bold;
    color: #ffffff;
  }
  .text-block {
  flex: 1 1 45%;
  min-width: 280px;
}

  /* Section: Inner Content */
.inner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    height: auto;
    min-height: 0 !important;
    width: 100%;
}
/* side-by-side */
.inner-content.horizontal {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1000px;
}
.inner-content .iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    object-fit: contain; /* Ensure iframe content scales properly */
}

    /* Section: Branded Subtitles */
.subtitle.blue {
    font-size: 1.25rem;
    font-weight: bold;
    color: #16428c;
    margin-bottom: 0.25rem;
    text-align: center;
  }

  .subtitle.teal {
    font-size: 1.25rem;
    font-weight: bold;
    color: #3dcad2;
    margin-bottom: 0.25rem;
    text-align: center;
  }

  .subtitle.orange{
    font-size: 1.25rem;
    font-weight: bold;
    color: #fa7802;
    margin-bottom: 0.25rem;
    text-align: center;
  }
  .subtitle.white{
    font-size: 1.25rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.25rem;
    text-align: center;
  }
  /* Subtitle Links */
  .subtitle.blue a {
  color: #3dcad2; /* Teal to contrast with the dark blue subtitle */
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.subtitle.blue a:hover {
  color: #fa7802; /* Orange hover for extra emphasis */
  text-shadow: 0 0 6px rgba(250, 120, 2, 0.5);
}




  /* ----------------------------- Link Styles ----------------------------- */
a {
  color: #16428c; /* brand blue */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
  color: #3dcad2; /* brand teal on hover */
  text-shadow: 0 0 4px rgba(61, 202, 210, 0.6);
  text-decoration: underline;
}
/* ------------------------------- MAP STYLES ------------------------------- */
.map-block {
  flex: 1 1 30%;
  min-width: 300px;
  max-width: 600px;
}

.map-block iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

   /* ========================== BANNER STYLES ========================== */
/* --------------------------- IMAGE BANNER STYLES -------------------------- */
.image-banner {
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.banner-staff-trucks {
  background-image: url('/images/staff/clean-home-power-washing-staff-background.jpg');
}

.banner-about {
  background-image: url('/images/about-banner.jpg');
}
.banner-content {
  max-width: 1000px;
  font-weight: bold;
  padding: 1rem;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.511); /* semi-white overlay */
  z-index: 1;
}

.image-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(255, 255, 255, 0.4); /* optional second overlay */
  z-index: 0;
}

/* ------------------------- Full-width color banner ------------------------ */
.blue-banner {
    width: 100% !important;
    margin: 0 !important;
    padding: 1rem 0 !important;
    background-color: #16428c !important;
    color: white !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    z-index: 1 !important;
    min-height: 0 !important;
}

.teal-banner {
    background-color: #3dcad2;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    width: 100%;
    margin: 0;
}

.blue-banner .inner-content,
.teal-banner .inner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    height: auto;
    min-height: 0 !important;
    width: 100%;
}
/* video/text side-by-side */
.inner-content.horizontal {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1000px;
}
/* ------------------------------ banner htags ------------------------------ */
.teal-banner h2 {
  color: #fe7202; 
  font-weight: bold;
  font-size: 1.75rem;
}
.teal-banner h3 {
  color: #fe7202; 
  font-weight: bold;
  font-size: 1.25rem;
}
/* ------------------------------ banner links ------------------------------ */
.teal-banner a {
  color: #fe7202; /* Teal to contrast with the dark blue subtitle */
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
/* ---------------------------- responsive video ---------------------------- */
/* Basic Responsive video container */
.video-responsive {
    width: 100%;
    max-width: 600px;
    position: relative;
    margin-bottom: 0.75rem;
    aspect-ratio: 16 / 9; /* Enforce 16:9 ratio */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    .video-responsive iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    object-fit: contain; /* Ensure iframe content scales properly */
}

.video-responsive iframe:hover{
    transform: scale(1.03);
    box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.3);
  }
        .center-inline {
  display: flex;
  justify-content: center;
}

/* Blue Banner Video */
.blue-banner .inner-content .video-responsive,
.teal-banner .inner-content .video-responsive {
    position: relative;
    width: 600px; 
    aspect-ratio: 16 / 9; /* Enforce 16:9 ratio */
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.blue-banner .inner-content .video-responsive iframe,
.teal-banner .inner-content .video-responsive iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    object-fit: contain; /* Ensure iframe content scales properly */
}

/* Banner iframe hover states */
  .blue-banner .inner-content .video-responsive iframe:hover,
  .teal-banner .inner-content .video-responsive iframe:hover{
    transform: scale(1.03);
    box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.3);
  }
/* ------------------------------- Video Left ------------------------------- */
.blue-banner .inner-content .video-left,
.teal-banner .inner-content .video-left{
    position: relative;
    width: 400px; /* Increased from 400px */
    aspect-ratio: 16 / 9; /* Enforce 16:9 ratio */
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.blue-banner .inner-content .video-left iframe,
.teal-banner .inner-content .video-left iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    object-fit: contain; /* Ensure iframe content scales properly */
}

/* Banner iframe hover states */
  .blue-banner .inner-content .video-left iframe:hover,
  .teal-banner .inner-content .video-left iframe:hover{
    transform: scale(1.03);
    box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.3);
  }


/* Inner container for text and image */

.blue-banner .inner-container,
.teal-banner .inner-container {
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* --------------------------- Text block styling --------------------------- */
.blue-banner .text-block,
.teal-banner .text-block {
  flex: 1 1 40%;
}
/* Text block RIGHT */
.blue-banner .text-block,
.teal-banner .text-block {
  flex: 1 1 40%;
}

/* Image styling */
.blue-banner img,
.teal-banner img {
  flex: 1 1 45%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
/* -------------------------------------------------------------------------- */
/*                              Half BOX STYLES                              */
/* -------------------------------------------------------------------------- */
/* Flex container for all half-boxes */
.flex-box-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}

/* Each half box */
.half-box {
  flex: 1 1 48%;
  border-radius: 1px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
 justify-content: center;
  align-items: center;
  gap: 1rem;
}

.half-box:hover {
  transform: translateY(-4px);
}

/* Color half boxes */
/* Blue box */
.blue-box {
  background-color: #16428c;
  padding: 1rem;
  color: white;
}
.blue-box h2 {
  color: #fe7202;
}
.blue-box h1,
.blue-box h3,
.blue-box h4,
.blue-box h5,
.blue-box h6 {
  color: #ffffff;
}
/* Teal box */
.teal-box {
  background-color: #3dcad2;
  padding: 1rem;
  color: #000;
}
/* Orange box */
.orange-box {
  background-color: #fe7202;
  padding: 1rem;
  color: white;
}

/* White box — no hover, no shadow */
.white-box {
  background-color: white;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: #000;
  box-shadow: none;
  pointer-events: auto; /* keeps interactivity */
}
.white-box:hover {
  transform: none;
  box-shadow: none;
}

/* Media wrapper */
.media-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 1rem;
  padding-right: 1rem;
  height: 100%;
  width: 100%;
  min-height: 300px; /* You can adjust this */
}

.media-wrapper iframe {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
}



  /* ========================== PHOTO STYLES ========================== */

  /* -------------------------------- Polaroid -------------------------------- */
  /* Section: Polaroid Basic Style */
  .polaroid {
    background-color: white;
    padding: 10px 10px 25px 10px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: inline-block;
    text-align: center;
    margin: 1rem;
    vertical-align: top;
    max-width: 600px; /* You can adjust this */
  }
  .polaroid p {
    font-family: 'Shadows Into Light', cursive;
    font-size: 1.5rem;
    margin-top: 0.5rem;
    color: #333;
  }
  
  .polaroid img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* Polaroid hover states */
   .polaroid:hover {
    transform: scale(1.03);
    box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.3);
  }
  /* Polaroid link states */
  a:hover .polaroid {
  box-shadow: 0 0 12px #fe7202; /* orange glow */
  transform: scale(1.05);
  transition: all 0.3s ease;
}
a:hover .polaroid .caption {
  text-decoration: underline;
}
  /* Section: Photo Card */
  .photo-card {
    background: white;
    padding: 8px;
    border: 1px solid #ddd;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin-bottom: .75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .photo-card:hover {
    transform: scale(1.03);
    box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.3);
  }
  
  .photo-card img {
    display: block;
    width: 100%;
    height: auto;
  }

  .photo-row {
    display: flex;
    gap: 1rem; /* spacing between photos */
    flex-wrap: wrap; /* wrap on small screens */
    justify-content: center; /* or flex-start, space-between, etc. */
  }
  
  
   /* Section: Paperclip */
  .paperclip {
    position: relative;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    margin: 1rem auto;
    display: inline-block;
  }
  
  .paperclip::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 10px;
    width: 20px;
    height: 20px;
    background: url('images/paperclip.png') no-repeat center;
    background-size: contain;
  }
  
/* Section: Scrapbook */
.scrapbook {
    position: relative;
    background: #fff;
    padding: 0.5rem;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
  }
  
  .scrapbook::before,
  .scrapbook::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background: url('images/tape-corner.png') no-repeat center;
    background-size: cover;
  }
  
  .scrapbook::before {
    top: -15px;
    left: -15px;
  }
  
  .scrapbook::after {
    bottom: -15px;
    right: -15px;
  }
  
  
  /* ========================== TOP NAVIGATION ========================== */
  /* Section: Top Navigation Menu */
  .top-menu {
    background: #16428c;
    padding: 0.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1001;
    height: 30px;
  }
  /* Section: Top Navigation Menu */
  .top-menu-right {
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    font-size: 0.9rem;
    line-height: 1;
    font-weight: bold;
  }
  
  .top-menu-right .phone-number {
    color: #fa7802;
    text-decoration: none;
  }
  
  .top-menu-right .phone-number:hover {
    text-decoration: underline;
  }
  

/* Section: Header and Navigation */
header {
    background: #fff;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 30px;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
  }
  
  .header-logo {
    margin-right: auto;
  }
  
  .header-logo img {
    height: 4rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: height 0.3s ease, width 0.3s ease;
    min-height: 80px;
  }
  
  header.scrolled .header-logo img {
    height: 3rem !important;
  }
  
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #16428c;
    position: absolute;
    left: 1rem;
  }
  
  nav {
    flex-grow: 1;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
  }
  
  nav ul li {
    margin-left: 1rem;
    position: relative;
  }
  
  nav ul li a {
    text-decoration: none;
    color: #16428c;
    font-weight: bold;
    padding: 0.5rem 1rem;
    transition: background 0.3s ease, color 0.3s ease;
    white-space: nowrap;
  }
  
  nav ul li a:hover {
    background: #fa7802;
    color: #fff;
    border-radius: 5px;
  }



/* Section: Dropdown Navigation */
.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #16428c;
    list-style: none;
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    width: fit-content;
    min-width: 200px;
    max-width: 300px;
    z-index: 1000;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #fff;
    font-weight: normal;
    font-size: 14px;
    white-space: nowrap;
}

.dropdown-menu li.bold a {
    font-weight: bold;
}

.dropdown-menu li.indented a {
    padding-left: 2rem;
}

.dropdown-menu li a:hover {
    background: #fa7802;
    border-radius: 0;
}


  
  /* Section: Hero Section with Slideshow */
  .hero {
    position: relative;
    height: 60vh;
    min-height: 320px;
    max-height: 500px;
    overflow: hidden;
    text-align: center;
    color: white;
  }
  
  .hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
  }
  
  .hero-slide.active {
    opacity: 1;
    z-index: 2;
  }
  
  .hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 0 1rem;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
  }
  
  .hero-banner {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #3dcad2;
    padding: 1rem;
  }
  
  .hero-banner p {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    color: white;
  }
  
  .hero-banner .free-estimate {
    color: #fa7802;
    text-decoration: none;
  }
  
  .hero-banner .free-estimate:hover {
    text-decoration: underline;
  }

/* ---------------------------- REVIW CARD STYLES --------------------------- */
/* Carousel Wrapper */
.review-carousel {
  position: relative;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.carousel-track-wrapper {
  overflow: hidden;
  padding: 1rem 0;
}

#google-reviews {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping */
  gap: 1rem; /* Space between cards */
  min-height: auto;
  transition: transform 0.5s ease; /* For transform animation */
  justify-content: flex-start; /* Align cards to start */
  margin: 0;
  max-width: none;
}

/* Review Card Styles */
.review-card {
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  max-width: 300px;
  width: 100%;
  text-align: center;
  min-height: 250px;
  overflow: visible;
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 300px;
  flex-shrink: 0;
  flex-grow: 0;
}

/* Review card hover states */
.review-card:hover {
  box-shadow: 0 0 12px #3dcad2;
  transform: translateY(-4px);
}

/* Review card expanded */
.review-card.expanded {
  height: auto;
}

.review-card.expanded .review-text {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.review-text {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.read-more {
  color: #16428c;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.85rem;
}

/* Review Top Row */
.review-top-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.0rem;
}

.reviewer-photo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.review-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.review-author {
  font-size: 0.95rem;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.review-date {
  font-size: 0.85rem;
  color: #777;
}

.review-rating {
  font-size: 1.7rem;
  color: #f5a623;
  margin: 0;
  line-height: 2.1rem;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #16428c;
  z-index: 1;
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}


/* -------------------------------------------------------------------------- */
/*                      content and Estimate form                             */
/* -------------------------------------------------------------------------- */
  .content-with-form {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: .25rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 .5rem;
    align-items: start;
  }
  .form-wrapper {
    position: relative;
  }
  /* ------------------------ Side Form Parts  ------------------------ */
  /* Text */
.content-with-form .main-text {
    flex: 1 1 55%;
    min-width: 280px;
    overflow: hidden; /* Added to handle floated elements */
}
 /* Side Estimate Form */  
  .content-with-form .estimate-form {
    flex: 1 1 45%;
    min-width: 300px;
    max-width: 400px;
    padding-top: .5rem;
    margin-top: 3rem; /* ⬅️ This adds space before the box */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
  }
/* ------------------------------- FORM BOTTOM ------------------------------ */
  /* Layout for form stacked under content */
.content-with-form.form-bottom {
  flex-direction: column;
}

.content-with-form.form-bottom .estimate-form {
  max-width: 80%;
  margin-top: 2rem;
}
/* Center the whole content-with-form block */
.content-with-form.form-bottom {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 1rem;
  display: block; /* important for vertical layout */
}

/* Specific styles for .form-bottom variant */
.content-with-form.form-bottom .main-text {
    display: block; /* Override flex if needed */
    max-width: 1000px; /* For readability */
    margin: 0 auto; /* Center horizontally */
    text-align: left; /* Or center if preferred */
}
/* Style the iframe directly */
.content-with-form.form-bottom .main-text iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    object-fit: contain; /* Ensure content scales */
    display: block; /* Remove any default inline spacing */
    margin: 0 !important; /* Eliminate margin */
    padding: 0 !important; /* Eliminate padding */
}
  /* iframe hover states */
.content-with-form.form-bottom .main-text iframe:hover {
    transform: scale(1.03);
    box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.3);
  }
  
  /* Section: Services Section with Tabs */
  .services-section {
    padding: 1.5rem;
    text-align: center;
  }
  
  .services-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .tab-button {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid #16428c;
    background: #fff;
    color: #16428c;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
  }
  
  .tab-button:hover {
    background: #16428c;
    color: #fff;
  }
  
  .tab-button.active {
    background: #3dcad2;
    color: #fff;
    border-color: #3dcad2;
  }
  
  .services-content {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .services-tab {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .services-tab.active {
    display: flex;
  }
  
  .service-box {
    width: 100%;
    max-width: 300px;
    border: 2px solid #3dcad2;
    border-radius: 10px;
    background: #fff;
    padding: 1rem;
    text-align: center;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
  }
  
  .service-box:hover {
    box-shadow: 0 0 15px #fa7802;
  }
  
  .service-box img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 0.5rem;
  }
  
  .service-box h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #16428c;
  }

  .service-box-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #16428c;
  }
  
  
  .service-box p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #333;
  }
  
  .service-box .learn-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: bold;
    color: #16428c;
    text-decoration: none;
    border: 1px solid #16428c;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
  }
  
  .service-box .learn-more:hover {
    background: #fa7802;
    color: #fff;
    border-color: #fa7802;
  }
  
  /* Section: CTA Button */
  .cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #fa7802;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  
  .cta-button:hover {
    background: #d96600;
    box-shadow: 0 0 10px #fa7802, 2px 2px 5px rgba(0, 0, 0, 0.2);
  }
  
  /* ---------------------VIDEO WRAPPER---------------------------------- */
/* Video wrapper for text wrapping and responsiveness */
.video-wrapper {
    float: right; /* Align to the right with text wrapping */
    width: 50%; /* Take 50% of the parent width */
    max-width: 600px; /* Cap the width at 600px */
    aspect-ratio: 16 / 9; /* Enforce 16:9 ratio */
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-left: 1rem; /* Space between video and text */
    margin-bottom: 1rem; /* Space below video */
}

/* Style the iframe directly */
.video-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    object-fit: contain; /* Ensure content scales */
    display: block; /* Remove any default inline spacing */
    margin: 0 !important; /* Eliminate margin */
    padding: 0 !important; /* Eliminate padding */
}
  /* Video-wrapper iframe hover states */
  .video-wrapper iframe:hover {
    transform: scale(1.03);
    box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.3);
  }




/* ==========================  FORMS & CTAs ========================== */
/* ---------------------------- ESTIMATE FORM V2 ---------------------------- */
/*  Estimate Section Wrapper  */
.estimate-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: rgba(0, 0, 0, 0.5); /* Optional: overlay effect */
  color: #ffffff;
}

.contact-card-container {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  background-color: rgba(255, 255, 255, 0.1);
  border: 3px solid #3dcad2;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
}

.contact-card img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
}

.contact-card strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.iframe-container {
  flex: 1 1 600px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  min-height: 1600px; /* Increased to fit the full form */
  position: relative;
}

.iframe-container iframe {
  width: 100%;
  height: 1600px; /* Explicitly match expected content height */
  border: none;
  display: block;
}


/* ------------------------- contact us left aligned ------------------------ */
.contact-highlight {
  background-image: url('images/banner-background.jpg'); /* swap to your background */
  background-size: cover;
  background-position: center;
  padding: 4rem 1rem;
  color: white;
  position: relative;
}

.contact-overlay {
  background: rgba(0, 0, 0, 0.5); /* dark overlay */
  padding: 2rem;
  border-radius: 10px;
}

.contact-info-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-box {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  width: 280px;
}

.contact-box h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-box p {
  font-size: 1rem;
}

.contact-box a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.contact-box a:hover {
  text-decoration: underline;
}

.contact-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

/* ---------------------------- ESTIMATE FORM V1 ---------------------------- */
/* Section: Estimate Forms */
.form-wrapper {
    position: relative;
    max-width: 100%;
  }

  .estimate-form-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
  }

/* ------------------------------- Career Form ------------------------------ */
.career-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.career-form .form-group {
  display: flex;
  flex-direction: column;
}

.career-form label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.career-form input,
.career-form select,
.career-form textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}
/* Career form button */
.career-form .form-submit {
  background-color: #16428c;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold; /* Make the text bold */
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: center; /* Center the button horizontally */
}

.career-form .form-submit:hover {
  background-color: #3dcad2;
}

/* Career form iframe - no style */
.career-form iframe:hover {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
  
/* -------------------------------------------------------------------------- */
/*                                   FOOTER                                   */
/* -------------------------------------------------------------------------- */
  footer {
    background: #27428d;
    color: #fff;
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.3);
  }
  
  .footer-top-row {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-column {
    padding: 0 1rem;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
  }
   
  .contact-us p,
  .hours p {
    font-size: 0.9rem;
    margin: 0.25rem 0;
  }
  
  .contact-us a {
    color: #fa7802;
    text-decoration: none;
  }
  
  .contact-us a:hover {
    text-decoration: underline;
  }
  
  .social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
  }
  
  .social-icons a {
    display: inline-block;
  }
  
  .social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: filter 0.3s ease;
  }
  
  .social-icon:hover,
  .social-icons a:hover .social-icon {
    filter: drop-shadow(0 0 8px #5dcbd1);
  }
  
  .footer-divider {
    border: 0;
    height: 1.5px;
    width: 50%;
    background: #5dcbd1;
    margin: 0 auto;
    margin-bottom: 0.5rem;
  }
  
  .footer-services {
    margin-bottom: 1.5rem;
  }

  .footer-service-groups {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .footer-service-group {
    margin: 0.5rem 0;
  }
  
  .footer-subheader {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.25rem;
  }
  
  .footer-service-group p,
  .footer-service-group a {
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
  }
  
  .footer-service-group a:hover {
    text-decoration: underline;
  }
  
  .footer-copyright {
    font-size: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
  }
  
  .footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
  }
  
  /* Section: Service Page Content */
  .service-page-content {
    display: flex;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1.5rem;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .service-details {
    flex: 1;
    min-width: 300px;
  }
  
  .service-details h1 {
    font-size: 2rem;
    color: #16428c;
    margin-bottom: 1.5rem;
  }
  
  .service-details p {
    margin-bottom: 1rem;
  }
  
  .service-details .video-wrapper {
    margin: 1.5rem 0;
  }
  
  /* Section: Chatbot */
  .chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1002;
  }
  
  .chatbot-toggle {
    background: #3dcad2;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
  }
  
  .chatbot-toggle:hover {
    background: #2a9ca3;
  }
  
  /* Section: Project Gallery */
  .project-gallery {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1.5rem;
  }
  
  .project-gallery h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #333;
  }
  
  .gallery-wrapper {
    position: relative;
    overflow: hidden;
  }
  
  .gallery-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .gallery-container::-webkit-scrollbar {
    display: none;
  }
  
  .gallery-item {
    flex: 0 0 calc(33.33% - 0.67rem);
    min-width: 0;
    box-sizing: border-box;
  }
  
  .gallery-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
  }
  
  .gallery-item a:hover {
    transform: scale(1.03);
  }
  
  .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
  }
  
  .gallery-item h3 {
    font-size: 1.2rem;
    margin: 0.5rem;
    color: #333;
  }
  
  .gallery-item p {
    font-size: 0.9rem;
    margin: 0 0.5rem 1rem;
    color: #666;
  }
  
  .gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #3dcad2;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
  }
  
  .gallery-arrow:hover {
    background: #2a9ca3;
  }
  
  .gallery-arrow-left {
    left: -20px;
  }
  
  .gallery-arrow-right {
    right: -20px;
  }
  

  
/* -------------------------------------------------------------------------- */
/*                                MOBILE STYLES                               */
/* -------------------------------------------------------------------------- */

/* ----------------------------- Mobile: Main Page Hero ----------------------------- */
@media (max-width: 1060px) {
    .hero {
        height: 500px; /* Consolidated: Overrides height: 50vh and min-height: 280px */
        /* Issue: Multiple height declarations (50vh, 280px, 500px) in original. Using 500px as it appears last. Clarify if 50vh or min-height is preferred. */
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-banner p {
        font-size: 1.2rem;
    }

    /* --------------------------- Mobile: Navigation & Header --------------------------- */
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
        top: 25px;
    }

    .header-logo {
        display: flex;
        align-items: center;
        margin: 0 auto;
        padding: 0.5rem 0;
        padding-left: 0.5rem;
        order: 1;
        z-index: 1001;
    }

    .header-logo img {
        height: 3.5rem;
    }

    header.scrolled .header-logo img {
        height: 2.5rem;
    }

    .menu-toggle {
        display: block;
        order: 0;
        align-self: flex-end;
        margin-right: 1rem;
        font-size: 2rem;
    }

    nav {
        width: 100%;
    }

    nav ul {
        display: none !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 70px !important;
        left: 0 !important;
        width: 100vw !important;
        background: #fff !important;
        padding: 1rem 0 !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
        text-align: center !important;
    }

    nav ul.show {
        display: flex !important;
    }

    nav ul li {
        margin: 0.5rem 0 !important;
        width: 100% !important;
        text-align: center !important;
        display: block !important;
    }

    nav ul li a {
        display: block !important;
        padding: 1rem !important;
        color: #16428c !important;
        margin: 0 auto !important;
    }

    .dropdown .dropdown-menu {
        display: none !important;
        position: static !important;
        width: 100% !important;
        background: #16428c !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        max-height: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        margin: 0 auto !important;
        /* Issue: Conflicts with earlier block setting display: block and padding-left: 1rem on .dropdown-menu. Using !important rules from later block. Clarify if hover-based display: block or .active-based max-height toggle is preferred. */
    }

    .dropdown.active .dropdown-menu {
        display: block !important;
        max-height: 500px !important;
        padding: 0.5rem 0 !important;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
        /* Issue: Conflicts with .dropdown.active .dropdown-menu display toggle. Hover-based display may not work well on mobile (no hover). Recommend using .active class consistently. */
    }

    .dropdown-menu {
        display: block;
        padding-left: 1rem;
        /* Issue: Overridden by .dropdown .dropdown-menu padding: 0 !important. Clarify if padding-left: 1rem is needed. */
    }

    .dropdown-menu li {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
    }

    .dropdown-menu li a {
        padding: 0.5rem 1rem !important;
        font-size: 0.95rem !important;
        display: block !important;
        margin: 0 auto !important;
        text-align: center !important;
        color: #fff !important;
        /* Issue: Conflicts with earlier padding-left: 2rem and color: #16428c. Using later values (padding: 0.5rem 1rem, color: #fff) due to !important. Clarify intended padding and color. */
    }

    .dropdown-menu li.indented a {
        padding: 0.5rem 1rem !important;
        /* Issue: Conflicts with earlier padding-left: 1.5rem. Using 0.5rem 1rem due to !important. Clarify if indented links need different padding. */
    }

    /* --------------------------- Mobile: Top Menu --------------------------- */
    .top-menu {
        padding: 0.5rem 0;
        justify-content: center;
        height: 25px;
    }

    .top-menu-right {
        font-size: 0.7rem;
        gap: 0.2rem;
    }

    /* ------------------------- Mobile: Branded Color Banners ------------------------ */
    .blue-banner,
    .teal-banner {
        padding: 0.5rem 0;
    }

    .blue-banner .inner-content,
    .teal-banner .inner-content {
        padding: 0.5rem;
    }
/* -------------------------- Mobile: Video Wrappers ------------------------- */
    .video-responsive {
        width: 100%;
        max-width: 600px;
    }
        .blue-banner .inner-content .video-responsive,
    .teal-banner .inner-content .video-responsive {
        width: 100%;
        max-width: 600px;
    }
    .video-wrapper {
        float: none;
        width: 100%;
        max-width: 600px;
        margin-left: 0;
        margin-bottom: 1rem;
    }

    /* --------------------------- Mobile: Half Boxes --------------------------- */
    .half-box {
        flex: 1 1 100%;
    }

    /* ------------------------ Mobile: Content with Form ----------------------- */
    .content-with-form {
        grid-template-columns: 1fr;
        flex-direction: column;
        /* Issue: Both grid-template-columns and flex-direction used. Recommend choosing one layout method (grid or flex) to avoid confusion. Using both as they don't conflict here. */
    }

    .form-wrapper {
        order: -1;
        margin-bottom: 2rem;
    }

    .estimate-form {
        order: 2;
        width: 100%;
        max-width: 100%;
        padding: 1rem;
    }

    .main-text {
        order: 1;
    }

    /* --------------------------- Mobile: Services Section --------------------------- */
    .services-section {
        padding: 1rem;
    }

    .services-tabs {
        gap: 0.5rem;
    }

    .tab-button {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .service-box {
        max-width: 100%;
    }

    /* --------------------------- Mobile: Estimate Forms --------------------------- */
    .estimate-form.vertical-right {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        max-height: none;
        margin: 1rem auto;
        border-radius: 5px;
        box-shadow: none;
    }

    /* --------------------------- Mobile: Footer --------------------------- */
    .footer-top-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-columns {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        width: 100%;
        max-width: none;
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-service-groups {
        flex-direction: column;
        gap: 1rem;
        font-size: 0.8rem;
        padding-top: 1.5rem;
    }

    .social-icons {
        gap: 0.75rem;
        justify-content: center;
    }

    .social-icon {
        width: 28px;
        height: 28px;
    }

    /* --------------------------- Mobile: Service Page Content and Chatbot --------------------------- */
    .service-page-content {
        padding: 1rem;
        margin: 1rem auto;
        flex-direction: column;
    }

    .service-details h1 {
        font-size: 1.5rem;
    }

    .service-details .video-wrapper {
        margin: 1rem 0;
    }

    .chatbot-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* --------------------------- Mobile: Project Gallery --------------------------- */
    .gallery-item {
        flex: 0 0 calc(50% - 0.5rem);
    }

    .gallery-arrow-left {
        left: 0;
    }

    .gallery-arrow-right {
        right: 0;
    }
}

/* ---------------------- Mobile: Review Card Carousel ---------------------- */
@media (max-width: 900px) {
    .review-card {
        flex: 0 0 300px;
    }
}

@media (max-width: 600px) {
    .review-card {
        flex: 0 0 280px;
    }

    .review-carousel {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 0 0 calc(100% - 0.5rem);
    }
}

@media (max-width: 768px) {
  .iframe-container {
    min-height: 1800px;
  }

  .iframe-container iframe {
    height: 1800px;
  }
}


/* --------------------------- Mobile: General Layout --------------------------- */
@media (min-width: 769px) {
    header {
        padding: 0.5rem 2rem;
        top: 30px;
    }

    .header-logo img {
        height: 5rem;
    }

    header.scrolled .header-logo img {
        height: 3.5rem;
    }

    .services-section {
        padding: 2rem;
    }

    .services-tab {
        gap: 2rem;
    }

    .service-box {
        width: calc(33.33% - 1.33rem);
    }

    .main-text {
        padding: 2rem;
    }

    .main-text h2 {
        font-size: 1.6rem;
    }

    .main-text h3 {
        font-size: 1.25rem;
    }

    .service-details h1 {
        font-size: 2.5rem;
    }
}

/* --------------------------- Desktop: Service Box --------------------------- */
@media (min-width: 1024px) {
    .service-box {
        width: calc(25% - 1.5rem);
    }
}