/* Palette Variables */
:root {
    --flag-blue: #1B2D54;       /* Primary - Deep Navy */
    --logo-fire: #FF9E1B;       /* Secondary - Vibrant CTA Orange */
    --military-slate: #4A5568;  /* Accent - Cool Grey */
    --water-blue: #4DA6FF;      /* Highlight - Sky Blue Icons */
    --white: #FFFFFF;
    --light-grey: #F7FAFC;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', sans-serif; line-height: 1.6; color: #333; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.container { max-width: 1100px; margin: auto; padding: 0 20px; }

/* Header */
header { background: var(--flag-blue); color: var(--white); padding: 15px 0; position: sticky; top: 0; z-index: 1000; border-bottom: 3px solid var(--logo-fire); }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 60px; } /* Adjust based on your logo shape */
nav a { color: var(--white); text-decoration: none; margin-left: 20px; font-weight: 600; }
.phone-link { color: var(--water-blue) !important; font-size: 1.1rem; }

/* Buttons */
.cta-button { background: var(--logo-fire); color: var(--flag-blue); padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: transform 0.2s; }
.cta-button:hover { transform: scale(1.05); background: #e88e15; }

/* Hero Section */
.hero { 
    background: linear-gradient(rgba(27, 45, 84, 0.8), rgba(27, 45, 84, 0.8)), url('city_camo.png'); 
    background-size: 350px;
    background-repeat: repeat;
    height: 80vh; display: flex; align-items: center; text-align: center; color: var(--white);
}
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; color: var(--white); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }
.hero p { font-size: 1.4rem; margin-bottom: 2rem; max-width: 800px; margin-inline: auto; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); }
.cta-button-large { background: var(--logo-fire); color: var(--flag-blue); padding: 18px 35px; font-size: 1.2rem; text-decoration: none; font-weight: 800; border-radius: 5px; margin-right: 15px; display: inline-block; }
.cta-button-secondary { border: 2px solid var(--white); color: var(--white); padding: 16px 35px; font-size: 1.2rem; text-decoration: none; border-radius: 5px; display: inline-block; }

/* Reveal Phone Hover Styles */
.reveal-phone {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    vertical-align: middle;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.reveal-phone:hover {
    transform: scale(1.05);
}
.reveal-phone .btn-text,
.reveal-phone .btn-phone {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.reveal-phone .btn-phone {
    position: absolute;
    transform: translateY(150%);
    opacity: 0;
    white-space: nowrap;
}
.reveal-phone:hover .btn-text,
.reveal-phone:focus-within .btn-text,
.reveal-phone:active .btn-text {
    transform: translateY(-150%);
    opacity: 0;
}
.reveal-phone:hover .btn-phone,
.reveal-phone:focus-within .btn-phone,
.reveal-phone:active .btn-phone {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-btns .reveal-phone {
        display: flex !important;
        margin: 10px 0;
    }
}

/* Services */
.services { padding: 80px 0; background: var(--light-grey); }
.section-title { text-align: center; margin-bottom: 50px; color: var(--flag-blue); font-size: 2.5rem; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { 
    background: var(--white); 
    padding: 40px; 
    text-align: center; 
    border-radius: 10px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    border-top: 5px solid var(--water-blue); 
    position: relative; 
    overflow: hidden; 
}
.card-hover-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(27, 45, 84, 0.95), rgba(27, 45, 84, 0.95)), url('city_camo.png');
    background-size: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transform: translateY(101%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 10;
}
.service-card:hover .card-hover-menu,
.service-card:focus-within .card-hover-menu {
    transform: translateY(0);
    opacity: 1;
}
.card-hover-menu h4 {
    color: var(--logo-fire);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid var(--logo-fire);
    padding-bottom: 5px;
    text-shadow: none;
}
.card-hover-menu ul {
    list-style: none;
    width: 100%;
    padding: 0;
}
.card-hover-menu ul li {
    margin: 12px 0;
}
.card-hover-menu ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.25s ease;
    text-shadow: none;
}
.card-hover-menu ul li a:hover {
    background: var(--logo-fire);
    color: var(--flag-blue);
    border-color: var(--logo-fire);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 158, 27, 0.3);
}
.card-hover-menu.compact {
    padding: 15px 12px;
}
.card-hover-menu.compact h4 {
    margin-bottom: 12px;
    font-size: 1.15rem;
    padding-bottom: 3px;
}
.card-hover-menu.compact ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}
.card-hover-menu.compact ul li {
    margin: 0;
}
.card-hover-menu.compact ul li.full-width {
    grid-column: span 2;
}
.card-hover-menu.compact ul li a {
    font-size: 0.78rem;
    padding: 8px 6px;
    line-height: 1.2;
}
.icon { font-size: 3rem; margin-bottom: 15px; }

/* Veteran Highlight */
.veteran-highlight { 
    background: linear-gradient(rgba(74, 85, 104, 0.8), rgba(74, 85, 104, 0.8)), url('city_camo.png'); 
    background-size: 350px;
    background-repeat: repeat;
    color: var(--white); 
    padding: 80px 0; 
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.split-view { display: flex; gap: 50px; align-items: center; flex-wrap: wrap; }
.text-content { flex: 1; min-width: 300px; }
.image-placeholder { flex: 1; min-width: 300px; border: 8px solid var(--flag-blue); }
.image-placeholder img { width: 100%; display: block; }
.benefit-list { list-style: none; margin-top: 20px; }
.benefit-list li::before { content: "✓"; color: var(--logo-fire); margin-right: 10px; font-weight: bold; }

/* Form */
.contact-section { padding: 80px 0; background: var(--flag-blue); color: var(--white); }
.form-container { max-width: 600px; margin: auto; background: var(--white); padding: 40px; border-radius: 10px; color: #333; }
form input, form select { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem; }
.cta-button-full { width: 100%; background: var(--logo-fire); color: var(--flag-blue); border: none; padding: 15px; font-size: 1.2rem; font-weight: bold; cursor: pointer; border-radius: 5px; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-btns a { display: block; margin: 10px 0; }
    header .cta-button { display: none; } /* Hide small button on mobile to save space */
}

/* Gallery Styles */
.gallery-section {
    padding: 80px 0;
    background: var(--light-grey);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}
.gallery-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(0,0,0,0.05);
}
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(27, 45, 84, 0.15);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    z-index: 2500; /* High z-index to overlay header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 45, 84, 0.96); /* Flag blue base overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-img-container {
    position: relative;
    max-width: 85%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.lightbox-img-container img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border: 4px solid var(--white);
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.active .lightbox-img-container img {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}
.lightbox-close:hover {
    color: var(--logo-fire);
    transform: scale(1.1);
}
.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(27, 45, 84, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 28px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}
.lightbox-btn:hover {
    background: var(--logo-fire);
    color: var(--flag-blue);
    border-color: var(--logo-fire);
    transform: translateY(-50%) scale(1.1);
}
.lightbox-prev {
    left: 45px;
}
.lightbox-next {
    right: 45px;
}
.lightbox-counter {
    color: var(--white);
    margin-top: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    background: rgba(27, 45, 84, 0.8);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Lightbox Mobile Overrides */
@media (max-width: 768px) {
    .lightbox-prev {
        left: 15px;
    }
    .lightbox-next {
        right: 15px;
    }
    .lightbox-close {
        top: 20px;
        right: 25px;
        font-size: 35px;
    }
    .lightbox-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    .lightbox-img-container {
        max-width: 90%;
    }
    .lightbox-img-container img {
        max-height: 60vh;
    }
}