/* Import Montserrat from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Brand Colors & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --navy: #104863;
    --orange: #E86724;
    --white: #ffffff;
    --light-grey: #f4f7f9;
    --text: #333333;
}

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* Apply Montserrat globally */
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    padding-top: 100px;
}

/* Ensure form elements inherit the font */
input, select, textarea, button {
    font-family: 'Montserrat', sans-serif;
}

/* ... keep the rest of your existing CSS below ... */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Navigation */
header {
    background: var(--white);
    border-bottom: 4px solid var(--navy);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#brand-logo {
    height: 60px;
    width: auto;
    display: block;
}

@media (min-width: 993px) {
    nav ul {
        display: flex;
    }
}

nav a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--orange);
}

/* Hero Banner */


.hero-section {
    margin-top: 0 !important;
    padding-top: 0;
}
.hero {
    background: linear-gradient(rgba(16, 72, 99, 0.75), rgba(16, 72, 99, 0.75)), 
                url('https://static.wixstatic.com/media/90d674_3507e6285ce2465aa097a89a13f7ab77~mv2.png');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: var(--white);
    margin-top: 0 !important;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

/* Pricing Cards - The "Tidy Squares" */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 60px 0;
    justify-content: center;
}

.card {
    flex: 1 1 300px;
    max-width: 360px;
    border: 1px solid #eee;
    padding: 50px 30px;
    border-radius: 15px;
    text-align: center;
    background: var(--white);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--orange);
    box-shadow: 0 15px 35px rgba(0,0,0,0.07);
}

/* Gallery Grid - Reduced "Crowding" */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px; /* Increased space between images */
    margin: 80px 0;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 15px;
    background: var(--white);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    border-color: var(--orange);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #f0f0f0;
}

.gallery-caption {
    padding: 20px;
    color: var(--navy);
    font-weight: 700;
    text-align: center;
    background: #fafafa; /* Subtle separation for the text */
}

/* Lightbox & Footer */
#lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(16, 72, 99, 0.95);
    justify-content: center; align-items: center;
}

#lightbox-img { max-width: 90%; max-height: 85%; border-radius: 5px; }
#lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 50px; cursor: pointer; }

footer { background: var(--navy); color: var(--white); padding: 50px 0; text-align: center; }

.btn-cta {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-cta:hover { background: transparent; color: var(--orange); border: 2px solid var(--orange); }

/* Mobile Optimization for Project View */
@media (max-width: 768px) {
    /* 1. Kill the massive gap above the logo/content */
    .container {
        margin-top: 20px !important; 
        padding: 0 20px;
    }

    /* 2. If your header is "fixed", use padding instead of margin on the body */
    body {
        padding-top: 70px; /* Adjust this to match your mobile header height */
    }

    /* 3. Shrink the Main Title size so it fits the screen width */
    .main-title {
        font-size: 2.2rem !important;
        line-height: 1.1;
        margin-top: 10px;
    }

    /* 4. Ensure the logo isn't pushing things down */
    header img {
        max-height: 50px; /* Keeps the logo compact on mobile */
    }
}