/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

h1 {
    font-family: 'Montserrat',sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

html {
    scroll-padding-top: 50px;
    scroll-behavior: smooth;
}




.text-center {
    text-align: center;
    width: 100%;
    padding-top: 80px;
}


/* --- Modernized Top Banner --- */
.main-header {
    background: linear-gradient(135deg, #002d5b 0%, #001a35 100%); /* Deep depth gradient */
    color: white;
    top: 0;
    z-index: 1100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid #00a8e8; /* Thin brand-colored accent line */
}

.banner-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Logo & Branding --- */
.logo-area h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.9rem;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.sub-logo {
    font-weight: 700;
    font-size: 0.7rem;
    display: block;
    color: #00a8e8; /* Brand Blue */
    text-transform: uppercase;
    letter-spacing: 2.5px; /* Modern high-end spacing */
    margin-top: 4px;
}

/* --- Professional Contact Chips --- */
















/* --- Mobile Responsiveness --- */
@media (max-width: 850px) {
    .banner-top {
        flex-direction: column;
        gap: 15px;
        padding: 1rem;
    }

}


/* Container for Logo + Text */
.logo-area {
    display: flex;
    align-items: center; /* Vertically centers logo with text */
    gap: 15px; /* Space between logo and text */
}

/* Logo Image Styling */
.header-logo {
    height: 70px; /* Adjust based on your logo's detail level */
    width: auto;  /* Maintains aspect ratio */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* Adds depth */
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: rotate(-5deg) scale(1.05); /* Subtle 'mechanical' interaction */
}

/* Responsive adjustment for small screens */
@media (max-width: 850px) {
    .logo-area {
        flex-direction: column; /* Stacks logo on top of text on mobile */
        text-align: center;
        gap: 8px;
    }

    .header-logo {
        height: 40px; /* Slightly smaller for mobile */
    }
}
.contact-info p {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
    font-size: 1rem;
    text-align: right;
}

.navbar {
    background: rgba(0, 61, 122, 0.9); /* Slightly transparent navy */
    backdrop-filter: blur(8px);       /* The "Modern Glass" effect */
    /* background-color: #003d7a; */
    position:sticky;
    top:0;
    width:100%;
    z-index:1000;
}

.navbar a {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}



.nav-tabs {
    display: flex;
    list-style: none;
    justify-content: center;
}

.nav-tabs li a {
    color: white;
    text-decoration: none;
    padding: 1rem 1.2rem;
    display: block;
    font-weight: bold;
    transition: background 0.3s;
}

.nav-tabs li a:hover {
    background-color: #00a8e8;
}
/*url('https://images.unsplash.com/photo-1567899378494-47b22a2ae96a?auto=format&fit=crop&q=80&w=1600')
 Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('banner.webp') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.cta-button {
    display: inline-block;
    background-color: #ff6600; /* Emergency Orange */
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-button:hover {
    transform: scale(1.03);
    background-color: #ff751a;
}
.cta-button:active {
    transform: scale(.98);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 50px 5%;
    padding-bottom: 80px;

}

.service-card {
    background: white;
    display: flex;
    flex-direction: column;

    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 5px solid #00a8e8;
    /* ESSENTIAL: This defines how smooth the animation is */
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Good practice: ensures the transition starts correctly */
    transform: scale(1);
}

.service-card:hover {
    /* Makes the card grow by 5% */
    transform: scale(1.02);

    /* Makes the shadow slightly darker and more spread out to look like it's lifting */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);

    /* Optional: Slightly brighten the blue top border */
    border-top-color: #00bfff;
}


.scaled-image {
    width: 100%;
    margin-top: auto;
}
/* Responsive for Mobile */
@media (max-width: 768px) {
    .banner-top {
        flex-direction: column;
        text-align: center;
    }
    .contact-info p {
        text-align: center;
        margin-top: 10px;
    }
    .nav-tabs {
        flex-wrap: wrap;
    }
    .nav-tabs li a {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    .services-grid {
        /* Drop the minmax to 100% so it fits any phone width */
        grid-template-columns: 1fr;
    }
}
/* JavaScript Animation Styles */
.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}



/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;

    /* Shape & Colors */
    border: none;
    background-color: #ff6600;
    color: white;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;

    /* The Smoothness Logic */
    opacity: 0;                /* Start invisible */
    visibility: hidden;        /* Start hidden from screen readers/clicks */
    pointer-events: none;      /* Can't click it while invisible */
    transition: all 0.4s ease; /* Smooth transition for everything */
    transform: translateY(20px); /* Optional: button slides up slightly as it fades in */
}

#backToTop.active {
    opacity: 1;                /* Fade in */
    visibility: visible;       /* Make it visible */
    pointer-events: auto;      /* Make it clickable */
    transform: translateY(0);/* Slide into final position */

}

#backToTop:hover {
    background-color: #ff751a;
    transform: scale(1.05);    /* Tiny grow effect on hover */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
/* Contact Section Styling */


.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 30px auto;
    align-items: center;
    text-align: center;

    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 250px;
    padding: 18px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 12px;
    color: white;
    /* transition: transform 0.2s ease, box-shadow 0.2s ease; */
    transition: all 0.4s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.action-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
}


.sms-btn {
    background-color: #25D366; /* Messaging Green */
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.email-btn {
    background-color: #007AFF; /* Digital Blue */
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.action-btn:active {
    transform: scale(0.97); /* Squeezes slightly when tapped */

}

.phone-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.phone-link:hover {
    color: #a0e9ff;          /* Darkens the blue when you hover over it */
}


.phone-link-2 {
    color: #333;
    text-decoration: none;
    padding-bottom: 80px;
    font-weight: bold;
    transition: color 0.3s ease;
    justify-content: center;
}

.phone-link-2:hover {
    color: #333;          /* Darkens the blue when you hover over it */
    transform: scale(1.05);
}

.email-link {
    color: white;          /* A nice blue color */
    text-decoration: none;   /* Removes the underline */
    font-weight: bold;
    transition: color 0.3s ease;  /* Makes the hover effect smooth */
}

.email-link:hover {
    color: #a0e9ff;          /* Darkens the blue when you hover over it */
}

.story-section {
    width: 80%;
    justify-self: center;
    padding-top: 80px;
    padding-bottom: 0px;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.6;
}





.parallax-break {
    background-color: rgba(0, 61, 122, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);

    /* 1. Set the height of the 'window' */
    height: 200px;

    /* 2. Link your image */
    background-image: url('ocean.webp' ) ;

    /* 3. THE MAGIC LINE: Keeps the image still while you scroll */
    background-attachment: fixed;

    /* 4. Ensure it fills the space perfectly */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    /* 5. Layout for the overlay text */
    display: flex;
    align-items: center;
    justify-content: center;
/*
    box-shadow:
        inset 0 60px 80px -40px rgba(244, 247, 246, 1),
        inset 0 -60px 80px -40px rgba(244, 247, 246, 1); */


    background-blend-mode: multiply;
    background-color: rgba(0, 45, 91, 0.2); /* Very light navy tint */



}


@media (max-width: 1024px) {
    .parallax-break {
        background-attachment: scroll; /* Switches back to normal scrolling for mobile */
        height: 150px;
    }
}


/* Subtle Blue Tint to unify the photo with your brand colors */
.parallax-break::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 45, 91, 0.3) 0%,
        transparent 50%,
        rgba(0, 45, 91, 0.3) 100%
    );
    pointer-events: none;
}



.form-step {
  display: none; /* Hide all steps by default */
  flex-direction: column;
  gap: 1.5rem;
  max-width: 400px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease-in-out;
}

.form-step.active {
  display: flex; /* Show only the active step */
}

.button-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

button {
  padding: 15px;
  background-color: #005f73;
  color: white;
  border: 1px solid #005161;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;

}

button:hover {
    transform: scale(1.03);
    background-color: #016c81;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: scale(.98);
}

.btn-first {
    background-color: #666666 !important;
    border-color: #444444 !important;
}

.btn-first:hover {
    background-color: #777777 !important;
}

input, select, textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


.progress-wrapper {
  max-width: 400px;
  width: 100%;
  margin: 0 auto 2rem auto;
  text-align: center;
}

#progressLabel {
  display: block;
  font-size: 0.85rem;
  font-weight: bold;
  color: #005f73;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.progress-container {
  width: 100%;
  height: 24px; /* Thicker for text visibility */
  background-color: #e9ecef;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0a9396 0%, #005f73 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

#percentText {
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  font-family: sans-serif;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.button-group {
  display: flex;
  gap: 10px;
}

.back-btn {
  background-color: #e9ecef !important;
  color: #495057 !important;
  border: 1px solid #ced4da;
  flex: 1;
}

.back-btn:hover {
    transform: scale(1.02);
    background-color: #0066ff;
    color: #0066ff;
    cursor: pointer;
}

button:not(.back-btn) {
  flex: 2; /* Makes the "Next" button larger/primary */
}


/* This is the container holding your form steps */
#estimateForm {
  /* background: white; */
  padding: 2rem;
  border-radius: 15px;
  padding-top: 0px;
  padding-bottom: 80px;
  /* box-shadow: 0 4px 20px rgba(0,0,0,0.08); */

  /* THE FIX: Set a consistent floor for the height */
  min-height: 800px !important;

  /* Ensure the content stays centered inside the fixed space */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  transition: min-height 0.3s ease; /* Smoothly adjust if needed */
}

.form-step {
  /* Ensure the step takes up the full width of the container */
  width: 100%;
}


.brand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two buttons per row */
    gap: 10px;
    margin-bottom: 20px;
}

.brand-btn {
    background-color: #f8f9fa;
    color: #333;
    border: 2px solid #dee2e6;
    transition: all 0.2s ease;
}

.brand-btn:hover {
    background-color: #f8f9fa;
}



/* This is triggered by the JavaScript */
.brand-btn.selected {
    background-color: #005f73;
    color: white;
    border-color: #0a9396;
    transform: scale(1.02); /* Slight pop effect */
}


/* Add this to your style.css */
.btn-skip {
    background-color: #666666 !important;
    border-color: #444444 !important;
        color: #ffffff !important;

}

.btn-skip:hover {
    background-color: #777777 !important;
}


/* Optional: add a specific style for the 'not-allowed' state */
button[style*="not-allowed"]:hover {
    transform: none !important;
    background-color: #666666 !important;
}

.final-disclaimer {
    background-color: #f8f9fa; /* Light grey background */
    border-left: 4px solid #002d5b; /* Navy blue accent to match your header */
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #555;
    text-align: left;
}

.final-disclaimer strong {
    color: #002d5b;
    display: block;
    margin-bottom: 5px;
}


/* Professional Input Styling */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

/* Focus state: Subtle glow instead of harsh outline */
input:focus, textarea:focus {
    outline: none;
    border-color: #005f73;
    box-shadow: 0 0 0 4px rgba(0, 95, 115, 0.1);
}

/* Invalid State: Only shows when the user has typed something wrong */
input:invalid:not(:placeholder-shown) {
    border-color: #ae2012;
}


/* The Primary Action Button */
.step-next-btn {
    background-color: #005f73; /* Your brand teal */
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.step-next-btn:hover:not(.btn-disabled) {
    background-color: #0a9396;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* The Professional 'Disabled' State */
.btn-disabled {
    background-color: #dee2e6 !important;
    color: #adb5bd !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* The 'Skip' State: Clean but secondary */
.btn-skip-mode {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: none !important;
}


/* style.css */
.hidden-field {
  display: none;
}


.expertise-section {
    padding: 60px 5%;
    padding-top: 0px;
    background-color: #f4f7f6; /* White background to contrast the page body */
    text-align: center;
}

.manufacturer-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 40px auto;
}

.brand-column ul {
    list-style: none;
    padding: 0;
}

.brand-column li {
    font-size: 1.2rem;
    font-weight: 500;
    color: #002d5b; /* Your Navy Brand Color */
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #005f73; /* Your Teal Brand Color */
}

.legal-disclaimer {
    margin-top: 30px;
    font-size: 0.85rem;
    color: #777;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

@media (max-width: 768px) {
    /* Stack the columns vertically */
    .brand-grid {
        flex-direction: column;
        align-items: center; /* Centers the columns */
        padding: 20px;
    }

    .brand-column {
        width: 100%; /* Take up full width */
        max-width: 300px; /* Keeps the list from stretching too wide */
        margin-bottom: 0;
    }

    .brand-column li {
        text-align: center; /* Centers the text of the brand */
        font-size: 1.1rem;   /* Slightly smaller for mobile screens */
        margin-bottom: 20px;
    }
}


.process-section {
    padding: 80px 5%;
    padding-bottom: 0px;
    background-color: #f4f7f6; /* Matching your off-white body */
    text-align: center;
}

.process-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    max-width: 1100px;
    margin: 50px auto;
}

.process-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    flex: 1;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid #00a8e8; /* Navy/Teal accent */
}

.process-card:hover {
    transform: translateY(-5px);
    border-top: 4px solid #00bfff;
}

.step-number {
    background-color: #002d5b; /* Navy */
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 20px;
    font-size: 1.2rem;
}

.process-card h3 {
    color: #002d5b;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.process-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .process-grid {
        flex-direction: column;
        align-items: center;
    }

    .process-card {
        width: 100%;
        max-width: 400px;
    }
}


/* Full screen overlay */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* The spinning icon */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0056b3; /* Match your brand blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    margin-top: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #333;
}