* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #002f5f;
    background: linear-gradient(135deg, #002f5f 0%, #407cb9 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-image: url('/img/commercial-buildings.png');
    background-size: cover;
    background-position: center -750px;
    background-repeat: no-repeat;
    padding: 2rem 0;
    min-height: 200px;
    position: relative;
    border-bottom: 1px solid rgba(227, 234, 238, 0.3);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(0, 47, 95, 0.8) 0%, rgba(64, 124, 185, 0.7) 100%);
    z-index: 1;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.company-name h1 {
    font-family: 'Poppins', sans-serif;
    color: #e3eaee;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: #e3eaee;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: #407cb9;
    background: rgba(227, 234, 238, 0.1);
    backdrop-filter: blur(10px);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 3rem 0;
    color: #e3eaee;
}

.hero-content h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #e3eaee;
}

.subtitle {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 3rem;
    font-style: italic;
    opacity: 0.9;
    color: #e3eaee;
}

/* Services Grid - Force 4 columns */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Exactly 4 equal columns */
    gap: 1.5rem; /* Slightly smaller gap to fit better */
    margin-bottom: 3rem;
}

.service-column {
    background: rgba(227, 234, 238, 0.15);
    padding: 1.75rem; /* Slightly less padding */
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(227, 234, 238, 0.2);
    min-width: 0; /* Allows text to wrap if needed */
}

.service-column h3 {
    color: #e3eaee;
    font-size: 1rem; /* Slightly smaller title */
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #407cb9;
    font-weight: bold;
}

.service-column li {
    color: rgba(227, 234, 238, 0.9);
    margin-bottom: 0.4rem; /* Tighter spacing */
    padding-left: 1rem;
    position: relative;
    font-size: 0.95rem; /* Slightly smaller text */
}


/* Hero Image Styling */
.hero-image-wrapper {
    width: 100%;
    max-width: 800px; /* Adjust max-width as needed */
    margin: 2rem auto 3rem auto; /* Centers the image, adds space above/below */
    border-radius: 12px; /* Slightly rounded corners */
    overflow: hidden; /* Ensures image corners are also rounded */
    box-shadow: 0 10px 30px rgba(0, 47, 95, 0.3); /* Soft shadow */
    border: 1px solid rgba(227, 234, 238, 0.2);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block; /* Removes extra space below image */
    object-fit: cover; /* Ensures image fills the wrapper, may crop */
    object-position: center; /* Adjust if a specific part of image needs focus */
}
/* 
/* Optional: Add a subtle overlay to the image if it clashes with text */
/* */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 47, 95, 0.1) 0%, rgba(64, 124, 185, 0.2) 100%);
    z-index: 1;
}
.hero-image-wrapper {
    position: relative; /* Needed for ::before pseudo-element */
}
*/

/* Adjust spacing around services grid now that there's an image */
.services-grid {
    margin-top: 3rem; /* Add some space above the grid */
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .hero-image-wrapper {
        margin: 1.5rem auto 2rem auto; /* Adjust margin for smaller screens */
    }
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 2rem;
    }
    
    .service-column {
        padding: 2rem; /* More padding when fewer columns */
    }
    
    .service-column h3 {
        font-size: 1.1rem;
    }
    
    .service-column li {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(227, 234, 238, 0.2);
}

.cta-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #e3eaee;
}

.cta-button {
    background: #407cb9;
    color: #e3eaee;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #407cb9;
}

.cta-button:hover {
    background: #e3eaee;
    color: #002f5f;
    transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
    background: rgba(227, 234, 238, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    border-top: 1px solid rgba(227, 234, 238, 0.2);
    margin-top: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Left side wider for image + text */
    gap: 2rem;
    color: #e3eaee;
    align-items: center;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #407cb9;
    flex-shrink: 0; /* Prevents image from shrinking */
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e3eaee;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

/* Update Footer Contact Link Styles */
.contact-methods {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Aligns all children (phone, email, social) to the right */
    gap: 0.5rem; /* Add some small gap between contact items */
}

.contact-methods a {
    text-decoration: none;
    transition: color var(--transition-speed);
    /* Set a default for links here that might be overridden later */
    color: var(--clr-light-blue); /* Default for social, overridden for phone/email */
}

/* Explicitly target phone and email links to be white */
.contact-methods .phone a,
.contact-methods .email a {
    color: var(--clr-off-white); /* White text for phone and email */
    /* text-decoration: none; already set by .contact-methods a */
}

/* Hover for phone and email links */
.contact-methods .phone a:hover,
.contact-methods .email a:hover {
    color: var(--clr-light-blue); /* Blue on hover for phone and email */
    text-decoration: underline; /* Underline on hover for phone and email */
}
/* Then adjust the social-links to inherit or adapt */
.social-links {
    margin-top: 0.5rem; /* Adjust margin if needed */
    display: flex;
    gap: 1rem;
    /* Remove justify-content: flex-end; here if using align-items on parent */
    /* If you still want control: */
    align-self: flex-end; /* Ensures it aligns with the parent's alignment */
}


/* Ensure the phone number specific style is still applied */
.phone a {
    font-size: 1.4rem;
    font-weight: bold;
}

.email a {
    font-size: 1.1rem;
}
.phone {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff !important;
    margin-bottom: 0.5rem !important;
}

.email {
    font-size: 1.1rem;
    margin-bottom: 1rem !important;
    color: #e3eaee;
}

.license {
    color: #dcdcdc;
}

.license-number {
    color: #dcdcdc;
}

/* Responsive for contact section */
@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .profile-section {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-methods {
        text-align: center;
    }
}

.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    /* Option 1: Align to the right edge of its container (usually fixes it) */
    justify-content: flex-end; 
    /* Option 2: Remove display flex and let text-align on parent control it
    display: block; 
    text-align: right; 
    */
}

.social-links a {
    color: #ffffff;
    font-size: 2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #e3eaee;
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }
}
/* Popup Form Styles */
.popup-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 47, 95, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-container {
    background: linear-gradient(135deg, #002f5f 0%, #407cb9 100%);
    border: 2px solid rgba(227, 234, 238, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(227, 234, 238, 0.1);
    border: 1px solid rgba(227, 234, 238, 0.3);
    color: #e3eaee;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-popup:hover {
    background: rgba(227, 234, 238, 0.2);
    transform: rotate(90deg);
}

.popup-container h2 {
    color: #e3eaee;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.popup-subtitle {
    color: #dcdcdc;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup-form .form-group {
    width: 100%;
}

.popup-form input,
.popup-form select,
.popup-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(227, 234, 238, 0.3);
    border-radius: 8px;
    background: rgba(227, 234, 238, 0.1);
    color: #e3eaee;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.popup-form input:focus,
.popup-form select:focus,
.popup-form textarea:focus {
    outline: none;
    border-color: #407cb9;
    background: rgba(227, 234, 238, 0.15);
    box-shadow: 0 0 0 3px rgba(64, 124, 185, 0.2);
}

.popup-form input::placeholder,
.popup-form textarea::placeholder {
    color: rgba(227, 234, 238, 0.5);
}

.popup-form select {
    cursor: pointer;
    color: rgba(227, 234, 238, 0.7);
}

.popup-form select option {
    background: #002f5f;
    color: #e3eaee;
}

.popup-form textarea {
    resize: vertical;
    min-height: 100px;
}

.popup-form .submit-button {
    margin-top: 0.5rem;
}

/* Responsive Popup */
@media (max-width: 768px) {
    .popup-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .popup-container h2 {
        font-size: 1.5rem;
    }
}

/* Scrollbar styling for popup */
.popup-container::-webkit-scrollbar {
    width: 8px;
}

.popup-container::-webkit-scrollbar-track {
    background: rgba(227, 234, 238, 0.1);
    border-radius: 10px;
}

.popup-container::-webkit-scrollbar-thumb {
    background: rgba(64, 124, 185, 0.5);
    border-radius: 10px;
}

.popup-container::-webkit-scrollbar-thumb:hover {
    background: rgba(64, 124, 185, 0.7);
}