/* ==========================================================================
   1. Setup & Design Variables
   ========================================================================== */
:root {
    --primary-color: #1e293b;   /* Slate Deep Corporate Dark */
    --accent-color: #d97706;    /* Premium Amber Wood tone */
    --text-main: #475569;       /* Soft, modern grey readable text */
    --bg-light: #f8fafc;        /* Soft crisp off-white for alternative rows */
    --container-max: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Common Section Layout Rules */
.section-title-wrap {
    text-align: center;
    margin-bottom: 60px;
}

.sub-title {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 5px;
}

.section-title-wrap h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 800;
}

/* ==========================================================================
   2. Header & Global Navigation Layout
   ========================================================================== */
.top-bar {
    background-color: var(--primary-color);
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid #334155;
}

.bar-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.main-nav {
    background: #ffffff;
    padding: 15px 0; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo & Branding Styles */
.logo-wrap {
    display: flex;
    align-items: center; 
    margin: 0;
    padding: 0;
    line-height: 1;      
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 25px; /* Perfect professional spacing gap */
    text-decoration: none;
    line-height: 1;
}

.nav-logo {
    height: 40px;        
    width: auto;         
    display: block;
    transition: transform 0.3s;
}

.logo-link:hover .nav-logo {
    transform: scale(1.02);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links .nav-btn {
    background: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
}

.nav-links .nav-btn:hover {
    background: #b45309;
    color: white;
}

/* ==========================================================================
   3. Asymmetric Split Hero Section
   ========================================================================== */
.valla-hero {
    background-color: var(--bg-light);
    overflow: hidden;
    padding: 80px 0;
}

.hero-split-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    flex-wrap: wrap;
}

.hero-text-side {
    flex: 1 1 500px;
    padding: 40px 5%;
}

.badge {
    display: inline-block;
    background: #fef3c7;
    color: var(--accent-color);
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.hero-text-side h1 {
    font-size: 3.2rem;
    color: var(--primary-color);
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-text-side p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: #64748b;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 14px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #0f172a;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Image Framework Wrap with Geometric Layers */
.hero-image-side {
    flex: 1 1 500px;
    position: relative;
    padding-right: 20px;
}

.hero-image-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.hero-image-side img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
}

/* Dark Film Layer Technique */
.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.15); 
    z-index: 3;
}

.image-accent-block {
    position: absolute;
    width: 30%;
    height: 70%;
    background: var(--accent-color);
    bottom: -20px;
    left: -20px;
    z-index: 1;
    border-radius: 8px;
}

/* ==========================================================================
   4. Feature Cards Section
   ========================================================================== */
.services-section {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ==========================================================================
   4b. About Us Section Styles
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.about-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.about-text-block {
    flex: 1 1 500px;
}

.about-text-block h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-lead {
    font-size: 1.15rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.about-text-block p {
    color: var(--text-main);
    margin-bottom: 25px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-feat-item {
    font-size: 0.95rem;
    color: var(--primary-color);
}

.about-feat-item strong {
    color: var(--accent-color);
}

.about-image-block {
    flex: 1 1 550px;
    position: relative;
}

.about-image-wrap {
    position: relative;
    max-width: 700px;
    width: 100%;       
    margin: 0 auto;
    z-index: 2;
}

.about-image-block img {
    width: 100%;
    height: auto;        
    max-height: 500px;   
    object-fit: contain; 
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08);
    display: block;
    position: relative;
    z-index: 3;
}

.about-image-brand {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: calc(100% - 32px);
    padding: 12px 16px;
    border-left: 4px solid var(--accent-color);
    background: var(--primary-color);
    color: #ffffff;
}

.about-image-brand strong {
    font-size: 1.1rem;
    line-height: 1.3;
}

.about-image-brand span {
    font-size: 0.9rem;
}

.about-accent-box {
    position: absolute;
    width: 40%;
    height: 50%;
    background-color: var(--accent-color);
        top: -20px;
    right: -20px;
    border-radius: 6px;
    z-index: 1;
    opacity: 0.15; 
}

/* ==========================================================================
   5. Visual Image Gallery Section
   ========================================================================== */
.gallery-section {
    background-color: var(--bg-light);
    padding: 100px 0;
}

.gallery-lead {
    max-width: 600px;
    margin: 10px auto 0 auto;
    color: #64748b;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    height: 350px; 
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(30, 41, 59, 0.9));
    color: #ffffff;
    padding: 25px;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: left;
    z-index: 4;
}

.gallery-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit; 
}

/* ==========================================================================
   6. Fluid Responsive System Breakpoints
   ========================================================================== */
@media(max-width: 992px) {
    .hero-text-side h1 { 
        font-size: 2.5rem; 
    }
    .hero-image-side img { 
        height: 400px; 
    }
}

@media(max-width: 768px) {
    .bar-flex { 
        flex-direction: column; 
        text-align: center; 
        gap: 5px; 
    }
    .nav-links { 
        display: none; 
    } 
    .logo-link {
        gap: 10px;
    }
    .nav-logo {
        height: 50px;
    }
    .logo {
        font-size: 1.35rem;
    }
    .hero-text-side { 
        text-align: center; 
        padding: 20px 0; 
    }
    .hero-actions { 
        justify-content: center; 
    }
    .hero-image-side { 
        padding-right: 0; 
        margin-top: 40px; 
    }
    .image-accent-block { 
        display: none; 
    } 
    .about-text-block { 
        text-align: center; 
    }
    .about-image-block { 
        margin-top: 30px; 
    }
    .footer-content { 
        flex-direction: column; 
        gap: 20px; 
    }
}

/* ==========================================================================
   7. Contact Form Section Styles (Instant Alignment Fix)
   ========================================================================== */
.contact-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
    width: 100%;
    display: block;
    clear: both;
}

.form-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 800;
}

.form-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 35px;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 22px;
    width: 100%;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--primary-color);
    background-color: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #b45309; 
}

/* ==========================================================================
   High-Capacity Subpage Masonry Gallery Showcase
   ========================================================================== */
.showcase-container {
    padding: 80px 0;
    background-color: #ffffff;
}

.showcase-title-wrap {
    text-align: center;
    margin-bottom: 50px;
}

.showcase-lead {
    max-width: 700px;
    margin: 15px auto 0 auto;
    color: #64748b;
    font-size: 1.05rem;
}

.showcase-masonry-grid {
    column-count: 3;
    column-gap: 20px;
}

.showcase-card {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 0 20px;
    break-inside: avoid;
    vertical-align: top;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: var(--bg-light);
}

.showcase-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.showcase-card:hover img {
    transform: scale(1.06); /* Clean, premium image lift pop */
}

/* Fluid Cinematic Mask Overlay Layer */
.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0) 70%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0; /* Hidden by default layout profiles */
    transition: opacity 0.4s ease;
    z-index: 5;
}

.showcase-card:hover .showcase-overlay {
    opacity: 1; /* Smoothly fades the layout mask wrapper in on cursor trace */
}

.showcase-tag {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.showcase-card:hover .showcase-tag {
    transform: translateY(0); /* Clean text slide animation pop */
}

/* Tablet & Mobile Layout Safety Overrides */
@media (max-width: 768px) {
    .showcase-masonry-grid {
        column-count: 2;
    }
    .showcase-overlay {
        opacity: 1; /* Permanently keep text tags open on mobile touchscreen displays */
        background: linear-gradient(to top, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0) 100%);
    }
    .showcase-tag {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .showcase-masonry-grid {
        column-count: 1;
    }
}


/* ==========================================================================
   Slater Fence Co. - Native Lightbox Zoom View Engine
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95); /* Deep slate-dark background tint */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Forces it over your sticky main navigation bar */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content-wrap {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content-wrap img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 3px solid #ffffff;
}

.lightbox-caption {
    color: #ffffff;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.lightbox-close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.lightbox-close-btn:hover {
    color: var(--accent-color);
}


/* ==========================================================================
   8. Slater Fence Co. - Clean Footer
   ========================================================================== */
.site-footer {
    background-color: #0f172a; 
    color: #ffffff;
    padding: 50px 20px 25px 20px;
    margin-top: 0; 
    border-top: 4px solid var(--accent-color); 
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-info, .footer-contact {
    flex: 1;
    min-width: 280px;
}

.site-footer h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.site-footer p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8; 
    margin: 8px 0;
}

.site-footer strong {
    color: var(--accent-color);
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    font-size: 0.85rem;
    color: #64748b;
}
 { padding-right: 0; margin-top: 40px; }


}

/* ==========================================================================
   Slater Fence Co. - Lightbox Directional Navigation Buttons (Fixed Side Alignment)
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999 !important; /* Guarantees it covers all underlying sticky nav elements */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content-wrap {
    position: relative !important; /* Critical anchor point: links the arrows to this inner bounding box */
    max-width: 85%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content-wrap img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 3px solid #ffffff;
}

.lightbox-caption {
    color: #ffffff;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

/* Close button placed safely above the top right corner of the active asset frame */
.lightbox-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10005 !important;
}

.lightbox-close-btn:hover {
    color: var(--accent-color);
}

/* Nav arrows positioned natively on the absolute vertical midpoints of the content sides */
.lightbox-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(30, 41, 59, 0.8) !important; /* Opaque slate backing for stark visual visibility */
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    font-size: 1.8rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    z-index: 10001 !important;
}

.lightbox-nav-btn:hover {
    background: var(--accent-color) !important; /* Highlights with your premium wood accent color */
    border-color: #ffffff !important;
    transform: translateY(-50%) scale(1.05) !important;
}

/* Pops the buttons outward beyond the left and right borders of the photo frame */
.lightbox-prev {
    left: -80px !important;
}

.lightbox-next {
    right: -80px !important;
}

/* Responsive adjustment: shifts arrows slightly inward so they fit on narrower mobile screen viewports */
@media (max-width: 992px) {
    .lightbox-prev { 
        left: 10px !important; 
    }
    .lightbox-next { 
        right: 10px !important; 
    }
    .lightbox-nav-btn { 
        background: rgba(30, 41, 59, 0.9) !important; 
        width: 45px !important;
        height: 45px !important;
        font-size: 1.3rem !important;
    }
    .lightbox-content-wrap {
        max-width: 95%;
    }
}

.lightbox-modal {
    padding: 0;
    overflow: hidden;
    background: #000000;
}

.lightbox-modal > .lightbox-full-image {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #000000;
}

.lightbox-modal .lightbox-close-btn {
    position: fixed;
    z-index: 2003;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.lightbox-modal .lightbox-nav-btn {
    position: fixed;
    z-index: 2003;
    top: 50%;
    width: 56px;
    height: 72px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
    transform: translateY(-50%);
}

.lightbox-modal .lightbox-prev {
    left: 12px;
}

.lightbox-modal .lightbox-next {
    right: 12px;
}

@media (max-width: 600px) {
    .lightbox-modal .lightbox-nav-btn {
        width: 44px;
        height: 56px;
    }

    .lightbox-modal .lightbox-prev {
        left: 6px;
    }

    .lightbox-modal .lightbox-next {
        right: 6px;
    }
}


