/* General Styles */
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: white;
    line-height: 1.6;
    margin-top: 80px;
}

.block {
    padding: 20px;
    text-align: center;
}

a, a:visited {
    color: #007BFF; /* Nice blue, easily visible */
    text-decoration: none;
    outline: none
}

a:hover {
    color: orange; /* Nice blue, easily visible */
    text-decoration: none;
    outline: none
}

h2 {
    font-size: 48px; /* Doubled from 24px */
    margin-bottom: 20px;
    color: black;
    text-align: center;
}

/* Top Block */
.top-block {
    height: 60px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #f5f5f5;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-block p {
    font-size: 14px;
    margin-bottom: 0;
}

.header-image {
    width: 150px;
    height: auto;
    margin-top: 15px;
}

/* Menu & Logo Specific Styles */
.menu a {
    color: black; /* Ensure text is white */
    text-decoration: none; /* Remove underline from links */
    outline: none; /* Remove outline when clicked */
    padding: 5px;
    font-weight: 600; /* Updated from 400 to 600 for bolder text */
}

.logo a {
    color: black; /* Ensure text is white */
    text-decoration: none; /* Remove underline from links */
    outline: none; /* Remove outline when clicked */
    padding: 5px;
    font-weight: 500;
}

/* Remove active/visited link styling */
.menu a:active, .menu a:visited, .logo a:active, .logo a:visited {
    color: black; /* Keep the text color white even when active or visited */
    text-decoration: none; /* Remove underline when clicked or visited */
    outline: none; /* Remove outline when clicked */
}

.fas.fa-phone {
    color: black; /* Change the color */
    font-size: .75em; /* Adjust the size */
    margin-right: 0px; /* Add some spacing between icon and number */
}

.menu a:hover, .phone-link:hover, .phone-link:hover .fas.fa-phone {
    color: orange; /* Ensure text is white */
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
}

.dropdown-content a {
    color: #45586D;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:visited, .dropdown-content a:active {
    color: #45586D;
}

/* Update hamburger lines color */
.hamburger .line {
    background-color: #45586D;
}

/* Phone link styling */
.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.phone-link .fas.fa-phone,
.phone-link {
    transition: color 0.3s ease;
}

/* Title Block */
.first-block {
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    background: linear-gradient(to right, #fff, #f8f9fa);
}

.first-block-container-one {
    flex: 1;
    max-width: 600px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #2d3436;
}

.highlight {
    color: #45586D;
    position: relative;
}

.highlight-two {
    color: orange;
    position: relative;
}

.modern-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: white;
    margin-bottom: 2rem;
}

.emphasis {
    color: orange;
    font-weight: 1000;
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button.primary {
    background: #45586D;
    color: white;
}

.cta-button.secondary {
    background: white;
    color: #45586D;
}

.cta-button.secondary i {
    color: #45586D;
}

.cta-button.primary:hover {
    background: white;
    color: #45586D;
}

.cta-button.secondary:hover {
    background: #45586D;
    color: white;
}

.cta-button.secondary:hover i {
    color: white;
}

.trust-indicators {
    display: flex;
    gap: 2rem;
    color: orange;
    font-size: 1.1rem;
}

.trust-indicators span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: bold;
}

.trust-indicators i {
    color: orange;
}

.first-block-container-two {
    flex: 1;
}

.first-block-container-two img {
    width: 90%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* All Mobile Styles (@media max-width: 600px) */
@media screen and (max-width: 600px) {
    /* Base mobile styles */
    body {
        margin-top: 60px;
    }

    h2 {
        font-size: 42px;
    }

    .top-block {
        height: 50px;
        padding: 5px 20px;
    }

    .header-image {
        width: 120px;
        margin-top: 0;
    }

    /* Mobile menu styles */
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #45586D;
        position: fixed;
        top: 60px;
        left: 0;
        text-align: center;
        padding: 20px 0;
        color: white;
        z-index: 999;
    }

    .menu.open {
        display: flex;
    }

    .menu i {
        color: white;
    }

    /* Ensure phone icon is also white */
    .menu .fas.fa-phone {
        color: white;
    }

    .menu a, .menu a:active, .menu a:visited {
        color: white;
        text-decoration: none;
        outline: none;
    }

    .menu a, .dropdown-trigger {
        padding-left: 30px;
        text-align: left;
        display: block;
    }

    /* Mobile hamburger styles */
    .hamburger {
        display: block;
        cursor: pointer;
        margin-left: auto;
        padding: 10px;
    }

    .hamburger .line {
        width: 30px;
        height: 4px;
        background-color: black;
        margin: 6px auto;
    }

    .hamburger:hover .line {
        background-color: #4a4a4a;
    }

    /* Mobile dropdown styles */
    .menu.open .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: transparent;
        display: none;
    }

    .menu.open .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-trigger {
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 15px 30px;
    }

    .dropdown-content a {
        text-align: left;
        color: white !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px 0;
        margin-left: 30px;
    }

    .dropdown-content a:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Mobile hover states */
    .dropdown-content a:hover,
    .dropdown-trigger:hover,
    .menu a:hover,
    .phone-link:hover,
    .phone-link:hover .fas.fa-phone {
        color: orange !important;
        background-color: transparent;
    }

    /* Mobile first block styles */
    .first-block {
        flex-direction: column;
        align-items: center;
    }

    .first-block-container-one {
        width: 100%;
        padding-right: 0;
        margin-bottom: 100px;
    }

    .first-block-container-one h1, h2 {
        margin-bottom: 3rem;
    }

    .first-block-container-two {
        width: 100%;
    }

    .content-item {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .footer-block h3 {
        margin-bottom: 0;
    }

    .social-icons.mobile-only {
        margin-top: 1rem;
        padding: 0.5rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .social-icons.mobile-only a {
        color: white;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .second-block-landing-page {
        max-width: 800px;
    }

    .second-block-landing-page h2 {
        font-size: 32px;
    }

    .second-block-landing-page .service-item {
        padding: 20px 20px;
    }

    .second-block-landing-page .service-item-container {
        max-width: 95%;
        justify-content: center;
    }

    .image-gallery-images {
        flex-direction: column; /* Stack images vertically on mobile */
        align-items: center; /* Center images */
    }

    .image-gallery img {
        width: 100%; /* Ensure images take full width on mobile */
        max-width: none; /* Remove the max-width limit */
        margin-bottom: 10px; /* Add spacing between images */
    }
}

/* Tablet/Medium Screen Styles (@media max-width: 1024px) */
@media (max-width: 1428px) {
    .first-block {
        flex-direction: column;
        padding: 2rem 1rem;
    }
    
    .menu {
        margin-left: auto;
    }

    h1 {
        font-size: 2.5rem;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-button {
        width: 45%;
        justify-content: center;
    }
}

/* Desktop Styles (@media min-width: 601px) */
@media (min-width: 1429px) {
    .block, .top-block, .second-block, .calendly-block, .footer-block {
        padding: 60px 120px;
    }

    .top-block {
        padding: 20px 120px;
    }

    .first-block-container-one {
        max-width: 40%;
    }

    .menu {
        margin-left: auto;
    }

    .service-item {
        flex: 1 1 30%;
    }
}

/* Services Block */
.second-block {
    padding: 40px;
}

.second-block h2 {
    font-size: 48px; /* Doubled from 24px */
    margin-bottom: 20px;
    color: black;
}

.service-item-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping of items */
    justify-content: space-between; /* Space between items */
}

.service-item {
    background-color: white;
    color: #45586D;
    border: 2px solid #45586D;
    padding: 20px;
    margin: 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
    flex: 1 1 1 100%;
}

/* Update the service item heading to maintain color transition */
.service-item h3 {
    margin: 0;
    font-size: 20px;
    transition: all 0.3s ease;
}

/* Ensure paragraph text also transitions smoothly */
.service-item p {
    transition: all 0.3s ease;
}

/* Modern Landing Page Services Section */
.second-block-landing-page {
    background-color: #ffffff;
    padding: 80px 40px;
}

.services-header {
    max-width: 800px;
    margin: 0 auto 60px;
}

.second-block-landing-page .services-subtitle {
    font-size: 20px;
    color: #636e72;
}

.second-block-landing-page .service-item-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 80%;
    margin: 0 auto;
    justify-items: center;
}

.second-block-landing-page .service-item {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.second-block-landing-page .service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    color: inherit;
}

.second-block-landing-page .service-icon {
    background: #45586D;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.second-block-landing-page .service-icon i {
    color: #ffffff;
    font-size: 24px;
}

.second-block-landing-page .service-item h3 {
    font-size: 24px;
    color: #2d3436;
    margin-bottom: 15px;
}

.second-block-landing-page .service-item p {
    color: #636e72;
    margin-bottom: 25px;
    line-height: 1.6;
}

.second-block-landing-page .service-cta {
    display: inline-flex;
    align-items: center;
    color: #45586D;
    text-decoration: none;
    font-weight: 600;
    gap: 8px;
    transition: color 0.3s ease;
}

.second-block-landing-page .service-cta:hover {
    color: orange;
}

.second-block-landing-page .service-cta i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.second-block-landing-page .service-cta:hover i {
    transform: translateX(5px);
}

/* Calendly Block */
.calendly-block {
    padding: 30px 10px; /* Unified padding */
}

.calendly-inline-widget {
    width: 100%;
    max-width: 100%;
    height: 700px;
    margin: 0 auto;
}

.calendly-block h2 {
    font-size: 48px; /* Doubled from 24px */
    margin-bottom: 20px;
    color: black;
}

/* Footer Block */
.footer-block {
    color: white;
    display: flex;
    justify-content: space-between; /* Ensures space between the two containers */
    padding: 20px;
    text-align: left;
    background-color: #45586D;
}

.footer-block a:hover {
    color: orange;
}

.footer-content {
    width: 60%; /* Left side */
    padding-right: 20px; /* Optional: add some space between text and image */
    text-align: left;
    font-size: 12px;
    flex-direction: column; /* Stack content vertically */
    align-items: flex-start; /* Align content to the left */
    text-align: left;
    padding: 10px 20px;
}

.p-footer {
    margin: 0;
}

.footer-block a, .footer-block a:active, .footer-block a:visited {
    color: white;
}

.footer-nav {
    width: 40%; /* Left side */
}

.footer-nav a:hover {
    color: #ffa500;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: left;
    margin: 1rem 0;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: orange;
}

.form-section {
    max-width: 640px; /* slightly wider for better desktop spacing */
    width: 100%;
    margin: 2rem auto 4rem auto;
    padding: 2rem 1.5rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.form-title {
    text-align: center;
    color: #222;
}

.cleaning-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cleaning-form .form-group {
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: auto;
    margin-right: auto;
}

.cleaning-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1.2rem;
    color: #444;
}

.cleaning-form input,
.cleaning-form select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.2rem;
    background-color: #f5f5f5;
    transition: border-color 0.3s, background-color 0.3s;
    box-sizing: border-box;
}

.cleaning-form input:focus,
.cleaning-form select:focus {
    border-color: #0056b3;
    background-color: #fff;
    outline: none;
}

.submit-button {
    width: 100%;
    max-width: 500px;
    padding: 1.2rem 0;
    background-color: #0056b3;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-top: 1rem;
}

.submit-button:hover {
    background-color: #004494;
}

.required {
    color: red;
    margin-left: 0.4rem;
}

/* Mobile First - Smaller Screens */
@media (max-width: 767px) {
    .form-section {
      padding: 60px 2.5rem 40px 2.5rem;
      margin-bottom: 3rem;
      max-width: 90%;
    }
  
    .form-title {
      margin-bottom: 2.5rem;
    }
  
    .cleaning-form label {
      font-size: 1.2rem;
    }
  
    .cleaning-form input,
    .cleaning-form select {
      font-size: 1.2rem;
      padding: 0.9rem 1.1rem;
    }
  
    .submit-button {
      font-size: 1.2rem;
      padding: 1rem 0;
    }
}
  
@media (min-width: 768px) and (max-width: 1139px) {
    .form-section {
      max-width: 720px;
      padding: 2rem 1.5rem;
    }
  
    .form-title {
      margin-bottom: 3rem;
    }
  
    .cleaning-form label {
      font-size: 1.2rem;
    }
  
    .cleaning-form input,
    .cleaning-form select {
      font-size: 1.2rem;
      padding: 1rem 1.2rem;
    }
  
    .submit-button {
      font-size: 1.2rem;
      padding: 1.2rem 0;
    }
}
  
/* Larger Screens */
@media (min-width: 1140px) {
    .form-section {
      max-width: 800px;
      padding: 2.5rem 2rem;
    }
  
    .form-title {
      margin-bottom: 3.5rem;
    }
  
    .cleaning-form label {
      font-size: 1.2rem;
    }
  
    .cleaning-form input,
    .cleaning-form select {
      font-size: 1.2rem;
      padding: 1.2rem 1.5rem;
    }
  
    .submit-button {
      font-size: 1.8rem;
      padding: 1.4rem 0;
    }
}
  
/* Modal Overlay */
.modal {
    display: none; /* Hidden by default, will be set to flex by JS */
    position: fixed;
    z-index: 1000;
    top: 0; /* Fix invalid top: 50 */
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}
  

/* Modal Content */
.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  text-align: center;
}

/* Close Button */
.close-button {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #0056b3;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.close-button:hover {
  background-color: #004494;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .modal-content {
    padding: 1.5rem;
  }

  .close-button {
    width: 100%;
  }
}

/* FAQ Page Styles */
.faq-container-background {
  background: white;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.faq-container {
  width: 100%;
  max-width: 855px; /* Adjust to desired width */
  background: white;
  padding: 20px;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-item button {
  color: black;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question, .faq-question:visited {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  font-weight: 600;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
  appearance: none; /* Removes default button styles */
  color: black;
}

.faq-question:hover, .faq-question.active {
  color: orange;
}

.faq-arrow, .faq-arrow:visited {
  font-size: 18px;
  transition: transform 0.3s ease;
  color: black;
}

.faq-answer, .faq-answer:visited {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease;
  padding: 0 18px;
  opacity: 0;
  color: #555;
  line-height: 1.5;
}

.faq-item.active .faq-answer {
  opacity: 1;
  padding: 12px 18px;
}

.faq-item.active .faq-arrow {
  transform: rotate(90deg);
}

/* Second Page (Hero Section & Gallery) Styles */
.second-page-block {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    height: 60vh;
    overflow: hidden;
    color: white;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

h1 {
    color: white;
    margin-top: 0rem;
}
  
.bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(45%);
    z-index: 0;
}
  
.text-overlay {
    position: relative;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
    background-color: rgba(50, 50, 50, 0.5);
    border-radius: 10px;
    padding: 1rem;
}

/* Image Gallery */
.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    padding: 2rem;
    background-color: white;
}

.image-gallery .imgg-header {
    max-width: 800px;
    margin: 0 auto 60px;
}

.image-gallery .imgg-subtitle {
    font-size: 20px;
    color: #636e72;
    text-align: center;
    margin-bottom: 5px;
}

.image-gallery-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.image-gallery img {
    width: 100%;
    max-width: 270px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* Responsive adjustments for Second Page */
@media (max-width: 1080px) {
    .second-page-block {
        height: auto;
        overflow: visible;
        padding: 2rem 1rem;
        flex-direction: column;
    }

    .text-overlay {
        padding: 1rem;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
        background-color: rgba(50, 50, 50, 0.6);
    }

    .text-overlay h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .text-overlay p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .cta-button {
        display: inline-block;
        margin-top: 1rem;
    }

    a {
        text-align: center;
    }

    .image-gallery-images {
        flex-direction: column;
        align-items: center;
    }

    .image-gallery img {
        width: 90%;
        max-width: none;
        margin-bottom: 10px;
    }
}

@media (min-width: 1140px) {
    .text-overlay {
        max-width: 1425px;
    }
}

/* Stacked Content (Services Sections) Styles */
.stacked-content {
    padding: 0 1rem;
    margin: 0 auto;
    text-align: left;
}

.stacked-content-header {
    max-width: 1000px;
    margin: 0 auto 0;
}

.stacked-content-subtitle {
    font-size: 20px;
    color: #636e72;
    text-align: center;
}

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-align: left;
    margin-top: 0px;
}

.section img {
    width: 100%;
    max-width: none;
    margin-bottom: 10px;
    margin-top: 20px;
    border-radius: 10px;
}

.section .content {
    margin-top: 20px;
}

.section h3 {
    font-size: 36px;
    color: #45586D;
    margin-bottom: 0px;
}

.section p {
    font-size: 20px;
    margin-bottom: 20px;
}

@media (min-width: 1140px) {
    .section {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        text-align: left;
        max-width: 1425px;
        margin: 0 auto;
        gap: 2rem;
    }

    .section img {
        flex: 1;
        max-width: none;
        width: 50%;
    }

    .section .content {
        flex: 1;
        padding: 0 20px;
    }

    .section:nth-child(even) {
        flex-direction: row-reverse;
    }

    .section h3 {
        font-size: 36px;
        color: #45586D;
        margin-bottom: 20px;
    }
}