:root {
    --primary: #002d5b;      /* A deep, modern Navy (kept as a deep background) */
    --logo-blue: #0084C8;   /* THE LOGO BLUE (Extracted from image_0.png) */
    --accent: #f37021;       /* Secondary Construction Orange (kept for main CTA) */
    --light: #f4f7f6;
    --dark: #333;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; color: var(--dark); line-height: 1.6; scroll-behavior: smooth; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--light); }
.text-center { text-align: center; }

/* Navigation */
header { background: var(--white); padding: 15px 0; border-bottom: 3px solid var(--logo-blue); position: sticky; top: 0; z-index: 1000; }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 60px; } /* Increased height for better visibility */
.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-left: 25px; }
.nav-links a { text-decoration: none; color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--logo-blue); }

/* Main CALL-TO-ACTION in Nav - Keeps the Orange */
.btn-cta { background: var(--accent); color: white !important; padding: 10px 20px; border-radius: 4px; border: none; font-weight: bold; cursor: pointer; }
.btn-cta:hover { background: #d65c19; }

/* Primary Button Style - uses LOGO BLUE */
.btn-primary { background: var(--logo-blue); color: var(--white); padding: 12px 30px; text-decoration: none; border-radius: 4px; border: none; cursor: pointer; display: inline-block; font-weight: bold; text-transform: uppercase; font-size: 0.9rem; transition: 0.3s; }
.btn-primary:hover { background: #006eb3; transform: translateY(-2px); }

/* Hero */
/* Update this section in your style.css */
.hero { 
    height: 70vh; 
    /* Replace 'hero-bg.jpg' with your actual filename */
    background: url('hero-bg.jpg') center/cover no-repeat; 
    position: relative; 
    display: flex; 
    align-items: center; 
    color: var(--white); 
}
/* Translucent dark blue for hero contrast */
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,45,91,0.7); }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-family: 'Oswald', sans-serif; font-size: 4rem; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 1px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

/* Grid Layouts */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.rounded-img { width: 100%; border-radius: 8px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.about-text h2 { border-left: 5px solid var(--logo-blue); padding-left: 15px; margin-bottom: 15px; color: var(--primary); }

/* Service Cards */
.card { background: var(--white); padding: 25px; border-radius: 8px; text-align: center; transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.card img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; margin-bottom: 15px; }
.card h3 { color: var(--primary); }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

/* Form Styles */
.contact-wrapper { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; }
.contact-form { background: var(--light); padding: 40px; border-radius: 8px; border: 1px solid #ddd; }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
label { display: block; margin-bottom: 6px; font-weight: bold; font-size: 0.9rem; color: var(--primary); }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 1rem; }
input:focus, select:focus, textarea:focus { border-color: var(--logo-blue); outline: none; box-shadow: 0 0 5px rgba(0,132,200,0.3); }

/* Submit button uses LOGO BLUE */
.btn-submit { background: var(--logo-blue); color: white; border: none; padding: 15px 30px; cursor: pointer; width: 100%; font-weight: bold; text-transform: uppercase; margin-top: 10px; border-radius: 4px; transition: 0.3s; }
.btn-submit:hover { background: #006eb3; }

/* Subpage Header */
.page-header { background: var(--primary); color: white; padding: 70px 0; text-align: center; }
.page-header h1 { font-family: 'Oswald', sans-serif; font-size: 3.5rem; text-transform: uppercase; margin-bottom: 10px; }
.page-header p { font-size: 1.1rem; opacity: 0.8; }

/* Service Detail Layout */
.service-detail { display: flex; align-items: center; gap: 50px; margin-bottom: 70px; }
.service-detail.reverse { flex-direction: row-reverse; }
.service-text { flex: 1; }
.service-text h2 { color: var(--primary); margin-bottom: 15px; border-left: 5px solid var(--logo-blue); padding-left: 15px; }
.service-img { flex: 1; }
.service-img img { width: 100%; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 8px; height: 280px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-desc { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0,132,200,0.9); color: white; padding: 20px; transform: translateY(100%); transition: 0.3s; }
.gallery-item:hover .gallery-desc { transform: translateY(0); }
.gallery-item:hover img { transform: scale(1.1); }

/* Footer CTA */
.cta-footer { background: var(--light); padding: 70px 0; text-align: center; border-top: 1px solid #ddd; }
.cta-footer h2 { margin-bottom: 25px; color: var(--primary); }

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .nav-links li { margin-left: 15px; }
    .nav-links a { font-size: 0.8rem; }
}
@media (max-width: 768px) {
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; gap: 30px; }
    .service-detail, .service-detail.reverse { flex-direction: column; text-align: center; }
    .nav-links { display: none; } /* Simplified for mobile */
}

footer { background: var(--primary); color: white; padding: 40px 0; margin-top: 50px; }

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 45, 91, 0.8); /* Navy overlay */
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Modal Box */
.modal-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-top: 5px solid var(--logo-blue);
}

.modal-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-family: 'Oswald', sans-serif;
}

/* Show class for JS */
.modal-overlay.show {
    display: flex;
    opacity: 1;
}