﻿/* Global Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #3B82F6;
}

/* Fixed Navigation */
.fixed-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 200px;
    margin-right: 10px;
}

.company-name {
    font-size: 2em;
    color: #1E3A8A;
    font-weight: bold;
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.menu a {
    color: #1E3A8A;
    font-weight: 500;
}

.menu a:hover {
    color: #3B82F6;
}

.quote-btn {
    background: #3B82F6;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
}

.quote-btn:hover {
    background: #1E3A8A;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

body {
  padding-top: 215px; /* equal to or slightly larger than your header height */
}

/* Hero Banner */
.hero {
    background: url('../images/hero-bg.jpg') no-repeat center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.5); /* Blue overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3em;
    margin: 0;
}

.hero p {
    font-size: 1.5em;
}

.cta-btn {
    background: #3B82F6;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    margin-top: 20px;
    display: inline-block;
}

.cta-btn:hover {
    background: #1E3A8A;
}

/* Sections */
.about-preview, .services-overview, .contact-cta, .page-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.service-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.read-more {
    color: #3B82F6;
    font-weight: bold;
}

/* Forms */
form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

label {
    display: block;
    margin: 10px 0 5px;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.success-msg {
    margin-top: 20px;
    padding: 10px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

/* Footer */
footer {
    background: #1E3A8A;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

footer a {
    color: #3B82F6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Smaller, cleaner header height for mobile */
    :root {
        --mobile-header-height: 140px;
    }


    /* Scale down logo for mobile */
    .logo-img {
        height: 80px; /* from 200px to fit comfortably */
        margin-bottom: 5px;
    }

    /* Adjust company name for better fit */
    .company-name {
        font-size: 1.4em;
    }

    /* Make sure nav links fit on smaller screens */
    .menu ul {
        flex-direction: column;
        gap: 8px;
        padding: 0;
        margin: 10px 0 0 0;
        text-align: center;
    }

    .menu a {
        font-size: 0.95em;
        display: inline-block;
        padding: 6px 10px;
    }

    /* Reduce padding so header doesn’t push content down too far */
    body {
        padding-top: var(--mobile-header-height);
    }

    /* Ensure header’s visible area matches height variable */
    .fixed-nav {
        min-height: var(--mobile-header-height);
        padding: 6px 0;
    }

    /* Make hero section text smaller for mobile */
    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1.1em;
    }

    /* Service cards stack vertically */
    .service-cards {
        flex-direction: column;
    }

    /* Contact button full width */
    .quote-btn {
        width: 100%;
        text-align: center;
        font-size: 0.95em;
        padding: 8px 0;
    }
}

    /* If hero or main sections had their own top margin/padding, reduce it on mobile
       so you don't get double spacing (optional, uncomment if needed) */
    /* .hero { margin-top: 0; } */
	
	
}

/* Success Message Style */
.success-msg {
    display: none;
    background-color: #e6ffed;
    border: 1px solid #3da35a;
    color: #276738;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1em;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(61, 163, 90, 0.3);
    opacity: 0;
    transition: opacity 0.8s ease, background-color 1.5s ease;
}

/* Fade-in animation */
.success-msg.show {
    display: block;
    opacity: 1;
}

/* Highlight flash effect */
.success-msg.flash {
    background-color: #a8f0c1;
}

