/* Basic Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    text-align: center; /* For desktop, though it will be managed by flex/grid */
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-logo .desktop-logo {
    display: block; /* Show on desktop */
}

.nav-logo .mobile-logo {
    display: none; /* Hide on desktop */
}

.nav-logo .mobile-logo .dr-guard {
    font-size: 1.5rem; /* Dr. Guard bigger */
    font-weight: 700;
    color: #007bff;
}

.nav-logo .mobile-logo .waterproofing {
    font-size: 0.9rem; /* Waterproofing smaller */
    font-weight: 500;
    color: #555; /* Slightly muted color */
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0056b3;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.nav-cta.btn-outline {
    padding: 8px 20px;
}
.btn-outline {
    border: 2px solid #007bff;
    color: #007bff;
    background-color: transparent;
}
.btn-outline:hover {
    background-color: #007bff;
    color: #fff;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/images/hero-bg.png') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Section General Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #0056b3;
}
.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #555;
}

.services-section, .why-choose-us, .process-section, .cta-section {
    padding: 80px 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-icon {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: #fff;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-item {
    padding-left: 20px;
    border-left: 4px solid #007bff;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Process Section */
.process-section {
    background-color: #f0f8ff;
}
.process-timeline {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.process-step {
    text-align: center;
    max-width: 250px;
}

.process-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: #007bff;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 auto 20px;
}

.process-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* CTA Section */
.cta-section {
    background-color: #0056b3;
    color: #fff;
    text-align: center;
}
.cta-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
}
.cta-subtitle {
    font-size: 1.1rem;
    margin: 15px 0 30px;
    color: #f0f8ff;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-btn {
    width: auto; /* Auto width for text */
    min-width: 120px; /* Minimum width for the button */
    height: 50px; /* Adjusted height for text */
    padding: 0 15px; /* Padding for text */
    background-color: #007bff;
    color: white;
    border-radius: 25px; /* Half of height to make it pill-shaped */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
    font-size: 0.9rem; /* Font size for the text */
    font-weight: 600;
    white-space: nowrap;
}

.float-btn:hover {
    transform: scale(1.05);
}

.float-btn.whatsapp {
    background-color: #25D366;
}

.float-btn.call {
    background-color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* *** MOBILE HEADER STYLES *** */
    .navbar {
        display: grid;
        grid-template-columns: auto 1fr auto; /* Hamburger | Logo | Button */
        align-items: center;
        gap: 10px; /* Gap between grid items */
        padding: 0 15px; /* Add some padding to the navbar */
    }

    .hamburger {
        display: block;
        grid-column: 1 / 2;
        justify-self: start;
    }
    .nav-logo {
        grid-column: 2 / 3;
        justify-self: center;
        font-size: 1.3rem; /* Adjust font size for mobile logo */
        color: #007bff;
    }

    .nav-logo .desktop-logo {
        display: none; /* Hide desktop logo on mobile */
    }
    .nav-logo .mobile-logo {
        display: flex; /* Show mobile logo on mobile */
        flex-direction: column;
        align-items: center;
    }

    .nav-cta {
        display: block; /* Ensure the button is visible on mobile */
        grid-column: 3 / 4;
        justify-self: end;
        padding: 6px 12px;
        font-size: 0.8rem; /* Smaller button text for mobile */
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        height: calc(100vh - 70px); /* Full height of viewport minus header */
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 998; /* Below header, above other content */
        overflow-y: auto; /* Enable scrolling if menu is long */
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        margin: 1.5rem 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.2rem; /* Adjust for smaller screens */
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline {
        flex-direction: column;
        align-items: center;
    }

    /* Floating buttons on mobile */
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
    .float-btn {
        min-width: 100px; /* Smaller minimum width for mobile */
        height: 45px; /* Slightly smaller height */
        font-size: 0.8rem;
        border-radius: 22.5px;
    }
}