:root {
    --dark-bg: #0A192F; /* Dark Navy Blue */
    --gold: #B8860B;    /* Darker, richer Gold */
    --text-white: #FFF;
    --text-gray: #CCC;
    --card-dark: #172a45;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(rgba(10, 25, 47, 0.92), rgba(10, 25, 47, 0.96)),
                url('Pictures/Background.jpg.webp') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-white);
}

.container {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Nav with Hamburger */
nav {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem 5%;
    align-items: center;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.blue-logo {
    height: 145px; /* Increased size by ~33% */
    width: auto;
    object-fit: contain;
    filter: brightness(1.2) contrast(1.1); /* Enhances logo visibility */
    mix-blend-mode: lighten; 
}

.text-logo {
    display: none; /* Hide text logo to let the enlarged image shine */
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--dark-bg) !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    margin: 4px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 240px 10% 120px;
}

.badge {
    display: inline-block;
    color: var(--gold);
    background-color: rgba(184, 134, 11, 0.1);
    border: 1px solid var(--gold);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.8rem;
    margin: 10px 0 25px;
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.1;
}

.hero p {
    color: var(--text-gray);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-btns .btn-outline {
    border: 1px solid var(--text-gray);
    padding: 12px 24px;
    border-radius: 8px;
    color: var(--text-white);
    text-decoration: none;
    margin-left: 15px;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Bold Colored Cards & Emojis */
.service-card.bold-card {
    filter: none;
    opacity: 1;
    background-image: none !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-white);
}

.emoji-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* Specific Bold Colors (matching base site style) */
.bg-navy { background-color: #172a45 !important; }
.bg-gold-dark { background-color: var(--gold) !important; color: var(--dark-bg) !important; }
.bg-blue { background-color: #1d3354 !important; }
.bg-slate { background-color: #233554 !important; }

.service-card.bold-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.service-card.bold-card p {
    font-size: 1rem;
    line-height: 1.5;
}

.bg-gold-dark h4, .bg-gold-dark p, .bg-gold-dark .card-icon {
    color: var(--dark-bg) !important;
}

/* Services / Contractor Squares */
.built-for-contractors, .contractor-features {
    padding: 4rem 5%;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.services-grid.home-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width: 1200px) {
    .services-grid.home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .services-grid.home-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    position: relative;
    transition: all 0.5s ease;
    filter: brightness(0.75) contrast(1.1); /* Clearer images by default */
}

.service-card:hover {
    filter: brightness(1.05) contrast(1.2);
    transform: scale(1.03);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 3px solid transparent;
    transition: border-color 0.5s ease;
    pointer-events: none;
}

.service-card:hover::after {
    border-color: var(--gold);
}

.card-overlay {
    background: rgba(10, 25, 47, 0.75);
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-white);
    text-align: center;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

/* Our Process Section - Solid Colors with Hover */
.our-process {
    background-color: #0d1d36;
    text-align: center;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-item {
    padding: 3rem 2rem;
    background: var(--card-dark);
    border-radius: 12px;
    position: relative;
    border-bottom: 4px solid var(--gold);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    z-index: 1;
}

.process-item:hover {
    transform: translateY(-10px);
    background: #1d3354;
    border-bottom-color: var(--text-white);
}

.process-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark-bg);
    background-color: var(--gold);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    position: absolute;
    top: 20px;
    right: 20px;
    transition: all 0.4s ease;
    z-index: 2;
}

.process-item:hover .process-number {
    background-color: var(--text-white);
    transform: rotate(360deg) scale(1.1);
}

.process-item h4 {
    margin-bottom: 1rem;
    color: var(--gold);
    font-size: 1.4rem;
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-around;
    padding: 80px 10%;
    background-color: var(--card-dark);
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item { text-align: center; }
.stat-item h2 { font-size: 3.5rem; margin: 0; color: var(--text-white); }
.stat-item p { color: var(--text-gray); font-size: 0.9rem; letter-spacing: 2px; }

.section-subtitle {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    text-align: center;
}

.testimonials h2 {
    margin-top: 0;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: rgba(23, 42, 69, 0.8);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--gold);
    transition: transform 0.3s ease;
    text-align: left;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.quote {
    font-style: italic;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    line-height: 1.8;
}

.testimonial-card h4 {
    color: var(--gold);
    font-size: 1rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--dark-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info p { margin-bottom: 2rem; color: var(--text-gray); }

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.info-item i {
    color: var(--gold);
    font-size: 1.2rem;
    width: 20px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--card-dark);
    padding: 2.5rem;
    border-radius: 12px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: #0d1d36;
    border: 1px solid #233554;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* CTA Banner */
.cta-banner {
    padding: 6rem 5%;
    text-align: center;
    background-color: var(--gold);
    color: var(--dark-bg);
}

.cta-banner h2 { color: var(--dark-bg); margin-bottom: 1rem; }
.btn-primary {
    background-color: var(--dark-bg);
    color: var(--text-white) !important;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 1.5rem;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #050c18;
    color: #aaa;
    padding: 5rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo-group {
    max-width: 350px;
}

.footer-logo-group p {
    font-size: 0.9rem;
    margin-top: 1.5rem;
    line-height: 1.8;
}

.footer-links h4, .footer-contact h4 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover { color: var(--gold); }

.footer-bottom {
    text-align: center;
    border-top: 1px solid #172a45;
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; }
}

@media screen and (max-width: 768px) {
    nav {
        padding: 0.1rem 5%;
    }
    
    .blue-logo {
        height: 75px; /* Reduced from 145px on mobile */
    }

    .menu-toggle { display: flex; }

    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        padding: 2rem;
        border-bottom: 2px solid var(--gold);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 1rem 0;
        font-size: 1.1rem;
        margin-left: 0;
    }

    .hero {
        padding: 140px 5% 80px; /* Adjusted top padding for smaller mobile logo */
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-btns .btn-outline {
        margin-left: 0;
        width: 100%;
        max-width: 280px;
    }

    .btn-gold {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .stats { 
        flex-direction: column; 
        align-items: center; 
        padding: 60px 5%;
    }

    .service-card.bold-card {
        padding: 2rem 1.5rem;
    }

    .contact-form form {
        padding: 1.5rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-logo-group {
        max-width: 100%;
    }
}

/* Our Mission */
.our-mission {
    background-color: var(--dark-bg);
    overflow: hidden;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-text h2 {
    margin-top: 0.5rem;
    line-height: 1.2;
}

.mission-text p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.mission-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.m-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.m-stat i {
    color: var(--gold);
}

/* FAQ Section */
.faq {
    background-color: #0d1d36;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: var(--card-dark);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.faq-item h4 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media screen and (max-width: 992px) {
    .mission-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .mission-stats {
        align-items: center;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
}