/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Intel', sans-serif;
    
}

html, body {
    overflow-x: hidden;
    width: 100%;
    
  }

/*font imports*/
@font-face {
    font-family: 'Intel';
    src: url('../fonts/Intel-Regular.woff2') format('woff2'),
        url('../fonts/Intel-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Intel';
    src: url('../fonts/Intel-Italic.woff2') format('woff2'),
        url('../fonts/Intel-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

/* General Styles */
body {
    background-color: #1e328b; /* Navy Blue */
    color: whitesmoke;
    text-align: center;
    text-shadow: 1px 1px 1px black;
    
}

/* Navigation Bar */
/* 1) Center the logo in the banner and ensure the header is above images */
header {
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 1em 2em;
    background: whitesmoke;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9999;
    text-shadow: none;
}



.splash-screen {
  background-color: #1e328b !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  overflow: hidden;
  filter: brightness(1.1);
  /*transition: opacity 5s ease;*/
}

.splash-loader-wrapper {
  width: 225px;
  /*max-width: 100vw;*/
  height: 225px;
  /*max-height: 100vw;*/
  background: none;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;

}

.bannerlogo img{
  height: 100px;
  vertical-align: middle;
  margin: auto;
  align-items: center;
}

.logo {
  width: 70px; height: 70px;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
  opacity: 0;
}
/* slide variant */
.logo.slide.animate {
  animation-name: slide-in;
  animation-timing-function: cubic-bezier(.7,-.2,.3,1.4);
  animation-delay: 0s;
  opacity: 1;
}

/* bounce variant */
.logo.bounce.animate {
  animation-name: bounce;
  animation-timing-function: ease-in-out;
  animation-delay: 0.2s;
  opacity: 1;
}

/* Keyframes for horizontal slide-in */
@keyframes slide-in {
  0% { transform: translateX(0px) translateY(0px); opacity: 1; }
  33% { transform: translateX(-100px) translateY(100px); opacity: 1;}
  67% { transform: translateX(100px)  translateY(-100px);opacity: 1; }
  90% { transform: translateX(-10px)     translateY(10px);opacity: 1; }
}

/* Keyframes for vertical bounce */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  20%      { transform: translateY(-18px); }
  40%      { transform: translateY(0); }
  60%      { transform: translateY(-9px); }
  80%      { transform: translateY(0); }
}

/* Logo image inside splash-loader-wrapper */
.splash-loader-wrapper .logo {
  width: 20em;
  height: 20em;
  opacity: 0;
  /* Both animations, paused by default */
  animation:
    slide-in 0.9s cubic-bezier(.7,-0.2,.3,1.4) 0s 1 paused,
    bounce   0.8s cubic-bezier(.5,0,.5,1) 0.9s 1 paused;
  animation-fill-mode: forwards;
  display: block;
  margin: 0 auto;
}

/* When ready, play the animation */
.splash-loader-wrapper .logo.animate {
  animation-play-state: running, running;
  opacity: 1;
}

/* Responsive: shrink logo on small screens */
@media (max-width: 600px) {
  .splash-loader-wrapper .logo {
    width: 60px;
    height: 60px;
  }
}

.splash-loader-wrapper.visible {
  opacity: 1;
}

.splash-screen.hidden {
  opacity: 0;
  pointer-events: none;
  /*transition: opacity 1s ease;*/
}

/* fade-out transition for the overlay */
.splash-screen.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}



/* Optional CSS fallback spinner if SVG fails */
.css-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}


@media (max-width: 768px) {
    .splash-screen {
        background-color: #1e328b !important;
    }

    .splash-video {
        background-color: #1e328b !important;
        display: block;
        opacity: 1;
        filter: brightness(100%) contrast(100%);
        object-fit: cover;
    }
}

.logo img {
    height: 75px;
    vertical-align: middle;
}



@media (max-width: 768px) {
    .cleaning-services {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        
    }

    .contact-section {
        max-width: 100% !important;
        width: auto;
        margin: 0;
        overflow: hidden;
    }

    .service {
        max-width: 100% !important;
        width: auto;
        margin: 0;
    }

    .service img {
        width: 100%;
        height: auto;
    }

    .selling-points {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .point {
        max-width: 100% !important;
        width: 100%;
        margin: 0;
    }
}

/* Slideshow styles */
.slideshow {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 10px;
}

.slide.active {
    opacity: 1;
    position: relative;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 1em;
}

nav ul li a {
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    color: black;
    font-size: 1.5rem;
    font-weight: 500;
    transition: color 0.5s ease font-weight 0.5s ease;
}

nav ul li a:hover {
    color: black;
    font-weight: 700;

}

/* Hero Section */
.hero {
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hero h1 {
    font-size: 2.5rem;
    max-width: 700px;
}

.hero p {
    font-size: 1.2rem;
    margin: 15px 0;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: #2c2c2c;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #31363e;
}

/* Let's Clean Section */
.lets-clean {
    background: #31363e;
    color: whitesmoke;
    text-align: center;
}

.lets-clean h2 {
    padding: 0.5em 0.5em 0.5em;
    text-align: left;
    font-size: 1.75rem;
}

.lets-clean h3 {
    padding: 0.2em 0 0.75em;
    text-align: center;
}

.cleaning-services {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.service {
    max-width: 33%;
    flex: 1;
    margin: 0 1em;
}

.service p{

    margin: 1em 0 1em;
}

.service h3{    
    font-size: 1.5rem;
    font-weight: 800;
}



.image-container {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 100%;
    border-radius: 10px;
    opacity: 0;
    
    transition: opacity 0.3s ease;
}

.image-container:hover .hover-image {
    opacity: 1;

}


/* Selling Points Section */
.selling-points {
    background: whitesmoke;
    color: #2c2c2c;
    padding: 2em auto 2em;
    text-align: center;
}

.selling-points {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.point {
    flex: 1;
    max-width: 30%;
    text-align: center;
}

.point img {
    max-width: 100%;
    border-radius: 10px;
}

/* Footer */
footer {
    background: #2c2c2c;
    padding: 15px 0 0;
    margin-top: 0px;
    font-size: 11px;
}

footer a {
    color: #fff;
    text-decoration: underline;
    font-size: 11px;
}

footer a:hover {
    color: #ddd;
}

/* Contact Section */
.contact-section {
    background-color: #1e328b;
    margin: 1em;
    overflow: hidden;
}

.contact-section h1 {
    
  margin: 0.5em auto;
  font-size: 3rem;
}
.contact-section p {
    font-family: 'montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 1em 0 1em 0;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    
    justify-content: center;
    align-items: flex-start;
    
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    gap: 1em;
    margin-bottom:1em;
}



.contact-image {
    flex: 0 0 41.5%;
    text-align: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 0px;
    margin: 0 auto 0 auto;
    gap: 1em;

}


.contact-image img {
    max-width: 100%;
    border-radius: 10px;
}

.contact-image h1 {
    font-size: 2.5rem;
    max-width: 100%;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.5em;

}

.contact-image p {
    font-size: 1.2rem;
    margin: 0 auto;
    width: 100%;  
    max-width: 100%;
    text-align: center;
    
}



.contact-form-wrapper { 
    flex: 1;
    max-width: 55%;
}
@media (max-width: 768px) {
    .contact-form-wrapper {
        max-width: 100%;
        width: 100%;
    }
}

.contact-form-wrapper p {
    font-size: 1em;
    margin:0em auto 1em;
}

.contact-form {
    position: sticky;
    flex: 1;
    max-width: 100%;
    height: auto;
    background: #2c2c2c;
    color: whitesmoke;
    border-radius: .5em;
    
    padding:  1em;
    text-align: left;
    top:0;
    
}

.contact-form h2 {
    margin-bottom:0.5em;
    font-size: 1.8rem;
    font-family: 'Intel', sans-serif;
    
}

.contact-form p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-family: 'Intel', sans-serif;
    font-weight: 500;
    text-align: left;
}


.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 5px;
    font-weight: 600;
}


.contact-form input,
.contact-form textarea {
     /* Full width minus left/right margin */
  margin: 0 0 1em 0;     /* 1em left/right, 1em bottom */
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;    /* Ensures width includes padding and border */
  border: 7px solid #555;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0071bc;
}

.contact-form textarea {
    min-height: 80px;
    resize: vertical;
}

.contact-form .cta-button {
    background: #0071bc;
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form .cta-button:hover {
    background: #005fa3;
}

/* Style the select dropdown to match input boxes */
.contact-form select {
    margin-bottom: 15px;
    padding: 10px;
    border: 7px solid #555;
    border-radius: 5px;
    font-size: 1rem;
    color: #555;
    background-color: #fff;
    appearance: none; /* Removes default dropdown arrow for consistent styling */
}

.contact-form select:focus {
    outline: none;
    border-color: #0071bc;
}

.contact-form .response-message {
    margin: 1.75em auto auto auto;
    font-size: 8px;
    color: white;
    text-align: center;
}




/* === Booking Section Styles === */
.booking-widget {
    background-color: #2c2c2c;
    padding: 2em 1em;
    color: white;
    text-align: center;
    border-radius: 10px;
    max-width: 900px;
    margin: 2em auto;
  }
  
  .booking-widget h2 {
    margin-bottom: 1em;
    font-size: 2rem;
  }
  
  /* Calendar Grid */

.schedule-appointment {
    display: flex;
    justify-content: center;
    align-items: left;
    max-width: 100%;
    width: 100%;
    flex: 1;
    flex-direction: column;
    background-color: #2c2c2c;
    
    padding:10px;
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: hidden;
  }

.schedule-appointment h2 {
    font-size: 1.5rem;
    margin: auto;
    text-align: center;
    color: white;
    font-family: 'Intel', sans-serif;
    text-shadow: #111;
}  

@media (max-width: 768px){
.reviews, 
.schedule-appointment{
max-width:100%;
width: 100%;

}
}

  .calendar-grid {
    
    width: 100%;
    max-width: 100vw;
    display: grid;
    grid-template-columns: repeat(7, minmax(0,1fr));
    gap: clamp(0.25em, 1vw, 0.5em);
    background-color: #2c2c2c;
    border-radius:1em;
    font-size: unset;
    

  }
  
  .calendar-grid .day-label {
    font-weight: bold;
    text-transform: uppercase;
    font-size: clamp(0.6rem, 1.2vw, 1rem);
    margin: 1em auto;
    white-space: nowrap;
    min-width: 0;
  }
  
  .calendar-grid .day {
    padding: clamp(0.25em, 0.8vw, 0.5em);
    border-radius: 0.5em;
    background: #31363e;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: clamp(0.75rem, 1.5vw, 1.1rem);
    min-width: 0;
  }
  
  .calendar-grid .day:hover {
    background: #0071bc;
  }
  
  .calendar-grid .day.disabled {
    background: #444;
    color: #888;
    pointer-events: none;
  }
  
  /* Available Slots */
  .slot-list {
    display: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px;
    margin-bottom: 1.5em;


  }

  .slot-list-am {
    display: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px;
    margin-bottom: 1.5em;
    background-color: #5a86ad;
    border-radius: 7px;
    padding: 0.125em 0.25em;

  }
  
  .slot-list-pm {
    display: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px;
    margin-bottom: 1.5em;

    background-color: #5a86ad;
    border-radius: 7px;
    padding: 0.125em 0.25em;
  }

  .slot.occupied {
    background-color: #ccc; /* Gray background for booked slots */
    color: #666; /* Dimmed text color */
    pointer-events: none; /* Disable interactions */
    cursor: not-allowed; /* Show a "not allowed" cursor */
  }

  .slot.booked {
    background-color: #2c2c2c; /* Red background for booked slots */
    color: #f5f5f5; /* White text for contrast */
    pointer-events: none; /* Disable interactions */
    cursor: not-allowed; /* Show a "not allowed" cursor */
  }
  
  .slot {
    padding: 0px;
    background: #f5f5f5;
    border-radius: 0px;
    cursor: pointer;
    transition: background color 0.5s ease;
    color: black;
    text-shadow: none;
    font-weight: 13px;
    margin: 3px 0;
    border-radius: 3px;;
  }
  
  .slot:hover {
    background: #005fa3;
    color: #f5f5f5;
  }
  
  /* Selected Slot */
  .slot.selected {
    background: #ffffff;
    color: #2c2c2c;
    font-weight: bold;
  }
  
  /* Booking Form */



  .booking-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1em auto;
    
  }


  .booking-form input,
  .booking-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1em;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
  }
  
  .booking-form input:focus,
  .booking-form textarea:focus {

    outline: 2px solid #0071bc;
  }
  
  .booking-form button {
    background: #0071bc;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .booking-form button:hover {
    background: #005fa3;
  }
  
  .booking-confirmation {
    margin-top: 1em;
    font-size: 1.1rem;
    color: #7fffad;
  }
  
  /* Mobile */
  @media (max-width: 768px) {
    .calendar-grid {
      grid-template-columns: repeat(7, 1fr);
    }

  }

/* Overlay Containers for Timeslots and Booking Form */
.overlay-container {
  display: none; /* Hidden by default */
  align-items: center;
  width: auto;
  height: auto;
  background: #2c2c2c;
  padding: 0em;
  border-radius: 10px;
}

.slots-header {
display: flex;  
align-items: center;
gap:1em;
margin: 0.5em auto;
justify-content: center;

}

.outerTextContainer{
background-color: whitesmoke;
border: 0.25em solid whitesmoke;
border-radius: 0.125em;
width: 100%;

}
.textContainer{
  background-color: #2c2c2c;
  background-clip: padding-box;
  border: 0.5em solid #2c2c2c; 
  border-radius: 0.25em;
  
  
  padding:0.5em;
  
}



/* Ensure the calendar container is positioned relative for overlays */
#calendar-container {
  position: relative;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: auto;
    margin: auto;
    
  }

.month-nav{
    background-color: #2c2c2c;
    padding: 0.5em;
    border-radius:15px;
    color: white;
    font-family: Intel;
    text-shadow: #111;
}  

.month-label {
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 7px;
    padding: 7px;
    margin: 0.25em auto;
    vertical-align: middle;
}



/* Back Button Styling */
.back-button {

    background-color: #2c2c2c;
    padding: 0.5em;
    border-radius:15px;
    color: white;
    font-family: Intel;
    text-shadow: #111;
}


/*.back-button:hover {
  background: whitesmoke;
}
*/


/*Responsive Styles*/
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    .contact-image {
        flex-direction: column;
        flex: 0 0 auto;
        width: 100%;
        align-items: center;
        margin-bottom: 0px;
    }
    .contact-form {
        max-width: 100%;
        margin: 0 ;
    }

    .contact-form h2{
        font-size: 1.75rem;
        text-align: center;
        font-weight: 700;
    }
    .contact-form p{
        font-size: 1rem;
        text-align: center;
        font-weight: 500;
    }

}

/* === Reviews Component === */
.reviews {
    padding: 1em 1em;
    text-align: center;
    background: #2c2c2c;
    border-radius: 7px;
    width: 100%;
    flex:1;
    margin: 0em auto 0em auto;
  }
  
  .reviews-heading {
    font-size: 2em;
    font-weight: bold;
    margin: 0.25em auto;
    color: white;
    
  }
  
  /* Container that masks slides */
  .review-box {
    position: relative;
    height: 80%; /* fits approx 2 paragraphs of content */
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: #ffad23;
    border-radius: 7px;
    min-height: 245px;
    
  }
  
  /* Each review slide */
  .review-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em;
    box-sizing: border-box;
    margin: auto;
  }
  
  /* Actual review content box */
  .review-content {
    width: 100%;
    max-width: 50em;
    height: 100%;
    max-height: 100%;
    background-color: #2c2c2c;
    border-radius: 0.75em;
    box-shadow: 0 0.4em 1.2em rgba(0, 0, 0, 0.1);
    padding: 1.5em 1em; /* More vertical padding for balance */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Vertically center content */
    text-align: center;
    box-sizing: border-box;
  }

  .review-content p {
    margin: 0.5em 0;
  }

  .review-content .flex mb-1{
    margin:auto;
  }



  /* Avatar initials */
  .review-content .avatar {
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background: #cce4ff;
    color: #005fa3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1em;
    margin-right: 1em;
  }
  
  /* Navigation controls */
  .review-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
  }
  
  .nav-btn {
    background: #0071bc;
    color: #fff;
    padding: 0.8em;
    border-radius: 50%;
    border: none;
    font-size: 1em;
    transition: background 0.3s ease, transform 0.2s ease;
  }
  
  .nav-btn:hover {
    background: #005fa3;
    transform: scale(1.1);
  }
  
  .nav-btn:disabled {
    background: #b0cce4;
    cursor: not-allowed;
  }
  
  .review-dots button {
    width: 0.75em;
    height: 0.75em;
    border-radius: 50%;
    border: none;
    background: #ccc;
    transition: background 0.3s ease;
  }
  
  .review-dots button.active {
    background: #0071bc;
  }

  .social-links img{
    width: 2em;
    height: 2em;
    margin: 0.5em;
    transition: transform 0.3s ease;

  }