/* ==========================================================================
   1. CORE VARIABLES & GLOBAL RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1b4d3e;     
    --secondary-color: #11161b;   
    --accent-color: #43a14f;      
    --bg-light: #f8fafc;          
    --text-dark: #0f172a;
    --text-light: #ffffff;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

h1, h2, h3, h4, .logo {
    font-family: 'Arial Black', sans-serif;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.grid {
    display: grid;
    gap: 30px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background-color: var(--accent-color);
    margin-top: 12px;
}

/* ==========================================================================
   2. HEADER & STICKY NAVIGATION (COMBINED LOGO + TEXT SHIFT)
   ========================================================================== */
header {
    background-color: var(--secondary-color);
    border-bottom: 2px solid #222c35;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px; /* Creates clean proportional breathing room between graphic and text */
    text-decoration: none;
}

.logo-graphic {
    height: 48px; /* Perfectly balanced height footprint for logo graphic */
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-text-stack {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-main {
    color: var(--text-light);
    font-size: 1.4rem;
}

.brand-sub {
    color: #64748b;
    font-size: 0.75rem;
    letter-spacing: 3px;
    margin-top: 3px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent-color);
}

nav a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 4px;
}

/* Responsive constraints to keep elements perfectly aligned on smaller screen boundaries */
@media screen and (max-width: 650px) {
    .logo-graphic {
        height: 38px;
    }
    .brand-main {
        font-size: 1.15rem;
    }
    .brand-sub {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }
}

/* ==========================================================================
   3. HERO REGION INTERACTIVE ANIMATION SEQUENCE
   ========================================================================== */
.hero {
    height: 75vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    background-color: #0b0f12;
}

.hero-slide-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: heroCrossFade 15s linear infinite;
    backface-visibility: hidden;
    will-change: opacity;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }

@keyframes heroCrossFade {
    0% { opacity: 0; transform: scale(1); }
    8% { opacity: 1; }
    33.33% { opacity: 1; }
    41.33% { opacity: 0; transform: scale(1.03); }
    100% { opacity: 0; }
}

.hero-overlay {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(17, 22, 27, 0.9) 30%, rgba(27, 77, 62, 0.3));
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    padding: 0 40px;
    color: var(--text-light);
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 35px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 35px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    transition: all 0.2s;
}

.btn-primary:hover, .btn-submit:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
    box-shadow: 0 0 15px rgba(67, 161, 79, 0.4);
    border-color: var(--accent-color);
}

/* ==========================================================================
   4. SERVICES
   ========================================================================== */
.services-section { background-color: var(--text-light); }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
    background: #ffffff;
    padding: 40px 30px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}
.card:hover { transform: translateY(-4px); border-left-color: var(--accent-color); }
.grid-icon { font-size: 2rem; margin-bottom: 20px; }
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }

/* ==========================================================================
   5. RECENT COMMISSIONS DYNAMIC SLIDER TRACK
   ========================================================================== */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.gallery-header .section-title { margin-bottom: 0; }
.carousel-nav { display: flex; gap: 12px; }

.carousel-arrow {
    background-color: var(--secondary-color);
    border: 1px solid #222c35;
    color: var(--text-light);
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}

.carousel-arrow:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: #171e24;
}

.carousel-viewport {
    width: 100%;
    overflow: hidden; 
    position: relative;
    padding: 10px 0;
}

.carousel-track {
    display: flex;
    gap: 30px; 
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
}

.gallery-card-container {
    background: #171e24;
    border: 1px solid #222c35;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    flex-direction: column;
}

.gallery-card-container:hover { border-bottom-color: var(--accent-color); }
.gallery-item { position: relative; overflow: hidden; height: 280px; background-color: var(--secondary-color); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s; }
.gallery-item:hover img { transform: scale(1.04); opacity: 1; }

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(17,22,27,1) 0%, rgba(17,22,27,0.8) 70%, rgba(17,22,27,0) 100%);
    color: var(--text-light);
    padding: 30px 20px 20px 20px;
}

.gallery-info h4 { font-size: 1.1rem; color: var(--text-light); margin-bottom: 4px; }
.gallery-info p { font-size: 0.85rem; color: #94a3b8; }

.popup-trigger-btn {
    width: 100%;
    background-color: #171e24;
    border: none;
    border-top: 1px solid #222c35;
    color: #94a3b8;
    padding: 15px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.popup-trigger-btn:hover { color: var(--accent-color); background-color: var(--secondary-color); }

@media screen and (max-width: 1024px) { .carousel-slide { flex: 0 0 calc(50% - 15px); } }
@media screen and (max-width: 650px) { .carousel-slide { flex: 0 0 100%; } }

/* ==========================================================================
   6. DETAILS MODAL SYSTEM & LIGHTBOX PHOTO EXPANSION
   ========================================================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(11, 15, 18, 0.85); backdrop-filter: blur(4px);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease; padding: 20px;
}

.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal-card {
    background-color: #171e24; border: 1px solid #222c35;
    border-top: 4px solid var(--accent-color); max-width: 700px;
    width: 100%; padding: 40px; position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh; overflow-y: auto;
}

.modal-overlay.is-open .modal-card { transform: scale(1); }

.modal-close-btn {
    position: absolute; top: 20px; right: 25px; background: transparent;
    border: none; color: #64748b; font-size: 1.2rem; cursor: pointer; transition: color 0.2s;
}
.modal-close-btn:hover { color: var(--accent-color); }
.modal-card h3 { color: var(--text-light); font-size: 1.6rem; }
.modal-divider { border: none; height: 1px; background-color: #222c35; margin: 20px 0; }

.modal-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; margin-bottom: 25px; }

.modal-gallery-grid img {
    width: 100%; height: 140px; object-fit: cover; border: 1px solid #222c35;
    border-radius: 2px; cursor: pointer; transition: transform 0.2s ease, border-color 0.2s;
}
.modal-gallery-grid img:hover { transform: scale(1.03); border-color: var(--accent-color); }

.modal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.modal-spec-group h5 { color: var(--accent-color); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.modal-spec-group ul { list-style: none; }
.modal-spec-group li { font-size: 0.9rem; color: #cbd5e1; padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.05); }
.modal-spec-group li strong { color: #64748b; display: inline-block; width: 105px; }
.modal-spec-group p { font-size: 0.9rem; color: #cbd5e1; line-height: 1.6; }
body.modal-lock { overflow: hidden; }
/* Lightbox Screen Backdrop styles */
.lightbox-screen {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background-color: rgba(11, 15, 18, 0.95); backdrop-filter: blur(8px);
z-index: 3000; display: flex; align-items: center; justify-content: center;
opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; padding: 40px;
}
.lightbox-screen.is-active { opacity: 1; visibility: visible; }
.lightbox-screen img { max-width: 90%; max-height: 85vh; object-fit: contain; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); border: 1px solid #222c35; transform: scale(0.97); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.lightbox-screen.is-active img { transform: scale(1); }
.lightbox-close-btn { position: absolute; top: 30px; right: 40px; background: transparent; border: none; color: #64748b; font-size: 2rem; cursor: pointer; transition: color 0.2s; }
.lightbox-close-btn:hover { color: var(--accent-color); }
/* ==========================================================================
7. INQUIRY FORM & GEO-MAP
========================================================================== */
.contact-section { background-color: var(--secondary-color); color: var(--text-light); padding: 80px 0; }
.contact-container {
display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 60px; max-width: 1200px; margin: 0 auto; padding: 0 20px; align-items: center;
}
.contact-info h2 { margin-bottom: 25px; }
.contact-info p { color: #94a3b8; margin-bottom: 20px; }
.contact-details { border-left: 2px solid var(--accent-color); padding-left: 20px; }
.contact-map-block { width: 100%; }
.map-wrapper.expanded-map {
margin-top: 0; width: 100%; height: 400px; position: relative; border: 1px solid #222c35; overflow: hidden;
}
.map-wrapper.expanded-map iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; transition: pointer-events 0.2s ease; }
.map-wrapper.expanded-map:hover iframe, .map-wrapper.expanded-map:active iframe { pointer-events: auto; }
@media screen and (max-width: 768px) { .map-wrapper.expanded-map { height: 300px; } }
/* ==========================================================================
8. FOOTER PROFILE
========================================================================== */
footer { background-color: #0b0f12; color: #475569; text-align: center; padding: 30px 20px; }
footer .container { display: flex; flex-direction: column; align-items: center; gap: 15px; padding: 0; }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { color: #64748b; text-decoration: none; font-size: 0.75rem; font-weight: bold; letter-spacing: 1px; transition: color 0.2s; }
.footer-socials a:hover { color: var(--accent-color); }
/* ==========================================================================
9. DEVICE MOBILE LAYOUT NAVIGATION OVERRIDES (REFIXED LINK ARRAYS)
========================================================================== */
#mobile-hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    
    /* 🐸 MASTER LAYER OVERRIDE: Floats button above hidden layers so click inputs connect */
    position: relative !important;
    z-index: 99999 !important; 
}


.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: all 0.25s ease-in-out;
}

@media screen and (max-width: 768px) {
    #mobile-hamburger-btn {
        display: flex !important; 
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        border-bottom: 2px solid var(--accent-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }

    #primary-nav-menu.mobile-active {
        max-height: 380px !important; 
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    nav a {
        display: block;
        padding: 16px 25px;
        border-bottom: 1px solid #171e24;
    }
    
    nav a.active { border-bottom: 1px solid #171e24; }

    #mobile-hamburger-btn.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--accent-color); }
    #mobile-hamburger-btn.is-active .bar:nth-child(2) { opacity: 0; }
    #mobile-hamburger-btn.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--accent-color); }
}

/* ==========================================================================
   11. CAROUSEL FOOTER BUTTON ALIGNMENT
   ========================================================================== */
.carousel-footer-cta {
    width: 100%;
    display: flex;
    justify-content: center; /* Centers button horizontally under your sliding tiles */
    margin-top: 45px;       /* Proportional whitespace separation underneath the slider track container */
}

.gallery-cta-button {
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 2px solid var(--accent-color); /* Premium coordinated #43a14f theme green tracking accent framework */
    transition: all 0.25s ease-in-out;
}
