/* ---------------- Reset & Base ---------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---------------- Google Fonts ---------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

/* ---------------- Global Font Settings ---------------- */
body, html {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 400; /* regular weight for body */
    line-height: 1.6; /* maintain readability */
}


h1, h2, h3, h4, h5, h6{
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600; /* headers usually a bit bolder */
    margin-bottom: 1rem; /* keep spacing consistent */
}


.section-title {
    font-family: 'Montserrat', Arial, sans-serif; /* headings */
    font-weight: 600; /* default heading weight */
    color: #222; /* slightly darker than body for contrast */
}

/* ---------------- Header ---------------- */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
}

.site-header .logo img {
    height: 50px;
}



/* Main navigation */
.main-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between; /* links on left, icons on right */
  width: 100%;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav a {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: bold; /* medium weight for menus/buttons */
    text-decoration: none; /* keep links unstyled */
    color: #333; /* restore original color */
    transition: color 0.3s ease;
}


.main-nav a:hover {
    color: #b80000;
}

/* ---------------- Header CTA buttons (cloned from overlay) ---------------- */
#header-cta {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

#header-cta .header-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s ease, color 0.3s ease;
}

#header-cta .btn-primary {
    background: #b80000;
    color: #fff;
}

#header-cta .btn-primary:hover {
    background: #a00000;
}

#header-cta .btn-secondary {
    background: #fff;
    color: #000;
}

#header-cta .btn-secondary:hover {
    background: #ddd;
}

.header-btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.9rem;
    border-radius: 3px;
}
/* ---------------- Hamburger Toggle ---------------- */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1100;
    color: #b80000; /* brand red */
}

/* ---------------- Hero Slider ---------------- */
.hero {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-below h1{
    font-family: 'Montserrat', Arial, sans-serif; /* headings */
    font-weight: 600; /* default heading weight */
    color: #222; /* slightly darker than body for contrast */
}

.hero .swiper {
    height: 100%;
}

.swiper-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-below {
  text-align: center;
  margin: 20px 0;
}

.hero-below hr {
  width: 60%;
  margin: 0 auto 15px auto;
  border: 1px solid #ccc;
}

.hero-below .btn {
  margin-top: 10px;
}


/* ---------------- Overlay to choose Commercial/Residential ---------------- */
.overlay-text{
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 3rem;       /* large for desktop */
    color: #fff;           /* white text */
    text-align: center;
    line-height: 1.2;

    /* red glowing outline */
    text-shadow: 
        0 0 5px #b80000,
        0 0 15px #b80000,
        0 0 25px #b80000;
}
.choose-overlay {
    position: fixed;
    inset: 0; /* top:0; left:0; right:0; bottom:0 */
    background: url('images/MainCombined.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    color: #fff; /* ensure text is white */
    text-align: center;
    padding: 2rem;
    padding-top: calc(60px + 2rem); /* reserve header space + extra spacing */
    overflow: hidden; /* contain pseudo-element blur */
}

/* Blur / subtle floating effect */
.choose-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit; /* same image as overlay */
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(0.9); /* subtle blur and dim */
    z-index: 2000; /* behind content */
    animation: floatOverlayBg 6s ease-in-out infinite;
    transform: translateY(0); /* starting point */
}

/* Subtle floating keyframes */
@keyframes floatOverlayBg {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Container inside overlay for text + buttons */
.choose-container {
    position: relative;
    z-index: 2100; /* above blurred floating background */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* vertical spacing between h1, p, buttons */
}

.choose-overlay .overlay-logo img {
    max-width: 240px;   /* adjust as needed */
    height: auto;
    margin-bottom: 1rem;
}

/* Overlay headings */
.choose-container h1 {
    font-family: 'Montserrat', Arial, sans-serif; /* headings */
    font-weight: 700; /* default heading weight */
    color: #222; /* slightly darker than body for contrast */
}

.choose-container p {
    font-size: 1.2rem;
    margin-bottom: 0; /* remove extra margin since gap handles spacing */
}

/* CTA Buttons inside overlay */
.cta-buttons {
    display: flex;
    justify-content: center; /* centers buttons horizontally */
    gap: 1.5rem;
    flex-wrap: wrap; /* wrap on smaller screens */
}

.cta-buttons .btn {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

/* Optional: fade/float animation handled via JS clones */
.choose-overlay .overlay-btn {
    position: relative; /* ensures cloned button positions correctly */
    z-index: 2100; /* above overlay content when animating */
}


/* ---------------- General Button Styling ---------------- */
.btn {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600; /* matches original emphasis */
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600; /* matches original emphasis */
    background-color: #b80000;
    color: #fff;
    border: 2px solid #b80000;
}

.btn-primary:hover {
    background-color: #fff;
    color: #b80000;
}

.btn-secondary {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600; /* matches original emphasis */
    background-color: #fff;
    color: #b80000;
    border: 2px solid #b80000;
}

.btn-secondary:hover {
    background-color: #b80000;
    color: #fff;
}

.services {
  background: #b80000;
  padding: 4rem 2rem;
  color: #fff;
}

.services h1 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 3rem;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-tile {
  background: rgba(255,255,255,0.05);
  border: 2px solid #fff;
  border-radius: 12px;
  text-align: center;
  padding: 2rem 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
  flex: 0 1 180px;
}

.service-tile img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.service-tile h2 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
}

/* ---------------- Sections ---------------- */
section {
    padding: 4rem 2rem;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

section p {
    font-size: 1rem;
}

/* ---------------- Hidden Nav Links ---------------- */
.nav-commercial,
.nav-residential {
    display: list-item;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.nav-commercial:not(.hidden),
.nav-residential:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* ---------------- Swiper Hero Slider Controls (Brand Red + Pulsing Glow) ---------------- */

/* Navigation arrows: solid red chevrons with subtle background for visibility */
.swiper-button-next,
.swiper-button-prev {
    color: #b80000 !important; /* brand red chevron */
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.15); /* subtle semi-transparent circle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(184, 0, 0, 0.3); /* subtle shadow */
    animation: pulse-glow 2.5s infinite; /* pulsing glow */
}

/* Arrow chevrons inside */
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.5rem !important;
    color: #b80000 !important;
}

/* Hover effect: stronger glow + slight scale */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(184, 0, 0, 0.2);
    transform: scale(1.15);
    box-shadow: 0 0 15px 5px rgba(184, 0, 0, 0.6);
    animation: none; /* stop pulse on hover for clarity */
}

/* Pulsing glow animation keyframes */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 2px 6px rgba(184, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(184, 0, 0, 0.5);
    }
    100% {
        box-shadow: 0 2px 6px rgba(184, 0, 0, 0.3);
    }
}

/* Pagination bullets */
.swiper-pagination-bullet {
    background: rgba(184, 0, 0, 0.5) !important;
    opacity: 1 !important;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 3px rgba(184, 0, 0, 0.4);
}

.swiper-pagination-bullet:hover {
    box-shadow: 0 0 8px rgba(184, 0, 0, 0.7);
}

.swiper-pagination-bullet-active {
    background: #b80000 !important;
    box-shadow: 0 0 8px rgba(184, 0, 0, 0.7);
}



/* Social icons: top-right corner */
.social-icons {
  display: flex;
  gap: 0.75rem;
  align-items: right;
  opacity: 0; /* fade in via JS */
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1100;
}

.social-icons a {
  color: #b80000 !important;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.social-icons a:hover {
  color: #333;
}

/* Reveal animation */
/* .social-icons.visible {
  opacity: 1;
  transform: translateY(0);
} */


/* Revealed state */
.social-icons.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Contact Us button */
.floating-contact-btn {
    position: fixed;       /* stays in viewport */
    bottom: 20px;          /* distance from bottom */
    right: 20px;           /* distance from right */
    background-color: #b80000; /* brand red */
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;   /* pill shape */
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.6); /* white halo */
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 4000;         /* above everything else */
}

/* Hover effects */
.floating-contact-btn:hover {
    background-color: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}


    .floating-contact-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    
    }

/* Hide floating contact button when overlay/menu is active */
body.overlay-active .floating-contact-btn,
body.menu-open .floating-contact-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Start hidden by default on non-homepage pages */
body:not(.overlay-active) .social-icons {
    opacity: 0;
    transform: translateY(-10px);
}

   

/* Contact Form Styles */
.contact-form-section {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-form-section h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #333;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #222;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0073e6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,115,230,0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  display: inline-block;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: #B80000;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form .btn:hover {
  background: #B80000;
}

.form-success {
  padding: 0.75rem;
  background: #e6ffed;
  border: 1px solid #1db954;
  border-radius: 8px;
  color: #1a7a32;
  margin-bottom: 1.5rem;
}

.form-error {
  padding: 0.75rem;
  background: #ffe6e6;
  border: 1px solid #e63946;
  border-radius: 8px;
  color: #a11217;
  margin-bottom: 1.5rem;
}

.required {
  color: #e63946;
}

/* Captcha question fade */
#captcha-question {
  transition: opacity 0.3s ease;
}

/* Refresh button in brand red */
#refresh-captcha.btn-secondary {
  background-color: #B80000;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

#refresh-captcha.btn-secondary:hover {
  background-color: #a00000;
}

/* Spacer utility classes (reusable) */
.spacer-1 { height: 1rem; }
.spacer-2 { height: 2rem; }
.spacer-3 { height: 3rem; }
.spacer-4 { height: 4rem; }
.spacer-5 { height: 5rem; }

/* always visible on non-homepage pages */
body:not(.overlay-active) .social-icons {
    opacity: 1 !important;
    transform: translateY(0) !important;
    z-index: 1100 !important;
}

/* Scroll Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.5s ease; /* smooth fade */
  z-index: 10;
}

.scroll-down span {
  display: block;
  width: 30px;
  height: 30px;
  border-bottom: 3px solid #B80000; /* brand red */
  border-right: 3px solid #B80000;
  transform: rotate(45deg);
  margin: 0 auto;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: rotate(45deg) translateY(0);
  }
  40% {
    transform: rotate(45deg) translateY(10px);
  }
  60% {
    transform: rotate(45deg) translateY(5px);
  }
}

.scroll-down:hover span {
  opacity: 1;
}




/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
    .choose-container h1 { font-size: 2.5rem; }
    .choose-container p { font-size: 1.1rem; }
    .cta-buttons .btn { padding: 0.9rem 1.8rem; font-size: 1.1rem; }
}

@media (max-width: 768px) {
    /* ---------------- Header Container ---------------- */
    .site-header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-start;  /* align items left */
        padding: 0 1.5rem;
        min-height: 60px;
    }

    .site-header .logo img {
        height: 2rem; /* smaller for mobile */
    }

    /* ---------------- Hamburger Menu ---------------- */
    .menu-toggle {
        position: relative;
        font-size: 2rem;
        color: #b80000;
        background: transparent;
        border: none;
        margin-right: 0.75rem;
        z-index: 3000;
        display: block;
        order: 1;
        cursor: pointer;
    }

    /* Logo next to hamburger */
    .logo {
        position: relative;
        order: 2;
    }

    /* ---------------- Social Icons ---------------- */
    .social-icons {
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        gap: 0.75rem;
        opacity: 1;
        z-index: 1100;
        order: 3;
    }

    .social-icons a {
        font-family: 'Montserrat', Arial, sans-serif;
        font-weight: 500;
        font-size: 1.2rem;
        color: #b80000;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .social-icons a:hover {
        color: #333;
    }

    /* ---------------- Mobile Navigation ---------------- */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: #fff;
        transition: max-height 0.4s ease;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        z-index: 1500;
    }

    .main-nav.open {
        max-height: 500px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        list-style: none;
        padding: 0.5rem 1rem;
        margin: 0;
    }

    .main-nav li {
        padding: 0.5rem 0;
    }

    .main-nav a {
        display: block;
        font-family: 'Montserrat', Arial, sans-serif;
        font-weight: 500;
        color: #333;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .main-nav a:hover {
        color: #b80000;
    }
    .overlay-text {
        font-size: 2rem;   /* scale down for smaller screens */
        text-shadow: 
            0 0 4px #b80000,
            0 0 8px #b80000,
            0 0 16px #b80000;
    }

    /* ---------------- Floating Contact Button ---------------- */
    .floating-contact-btn {
        font-family: 'Montserrat', Arial, sans-serif;
        font-weight: 600;
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    /* ---------------- Services Section ---------------- */
    .service-tile {
        flex: 0 1 auto;
        width: 90%;        /* all tiles same width */
        max-width: 300px;  /* optional limit */
        box-sizing: border-box;
    }
    .service-tile img {
        width: 50px;
        height: 50px;
    }

    /* ---------------- Spacer Utilities ---------------- */
    .spacer-1 { height: 0.75rem; }
    .spacer-2 { height: 1.5rem; }
    .spacer-3 { height: 2.25rem; }
    .spacer-4 { height: 3rem; }
    .spacer-5 { height: 3.75rem; }
}





@media (max-width: 480px) {
    .choose-container h1 { font-size: 1.75rem; }
    .choose-container p { font-size: 0.95rem; }
    .cta-buttons .btn { font-size: 0.95rem; padding: 0.7rem 1.3rem; }

    /* ---------------- Services Section ---------------- */
      .services-grid {
        flex-direction: column;
        align-items: center;
    }
    .service-tile {
        flex: 0 1 80%;
        max-width: 250px;
    }
    .service-tile img {
        width: 40px;
        height: 40px;
    }
}
