/* Slater Fence Co. - Native Lightbox Full Viewport Engine */

: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;
}

.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;
}

.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-wrap {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 25px;
    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;
}

.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;
}

.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;
}

.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;
}

.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;
}

.service-area-section {
    padding: 72px 0;
    background: var(--bg-light);
}

.service-area-intro {
    max-width: 720px;
    margin: 12px auto 0;
    color: #64748b;
}

.service-area-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 32px;
}

.service-area-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin: 0;
    list-style: none;
}

.service-area-list li {
    padding: 8px 0 8px 12px;
    border-left: 3px solid var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
}

.service-area-map #service-area-map {
    display: block;
    width: 100%;
    height: 280px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    z-index: 0;
}

.service-area-map p {
    margin-top: 8px;
    text-align: right;
    font-size: 0.85rem;
}

.service-area-map-note::before {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 7px;
    border: 2px solid #b45309;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.14);
    content: "";
}

.service-area-map a {
    color: var(--primary-color);
}

.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-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;
}

.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;
}

@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;
    }
    .service-area-section {
        padding: 56px 0;
    }
    .service-area-map #service-area-map {
        height: 260px;
    }
    .service-area-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .service-area-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .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;
    }
}

.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;
}

.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);
}

.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;
    transition: opacity 0.4s ease;
    z-index: 5;
}

.showcase-card:hover .showcase-overlay {
    opacity: 1;
}

.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);
}

@media (max-width: 768px) {
    .showcase-masonry-grid {
        column-count: 2;
    }
    .showcase-overlay {
        opacity: 1;
        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;
    }
}


html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: cover;
}


.lightbox-modal.active + .main-nav {
    visibility: visible !important;
    z-index: 2100 !important;
}


.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(15, 23, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-content-wrap img {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.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);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 41, 59, 0.8);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
}

.lightbox-nav-btn:hover {
    background: var(--accent-color);
    border-color: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

@media (max-width: 992px) {
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    .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;
    }
}

.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;
}

.lightbox-modal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content-wrap {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content-wrap img {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    border: none;
    border-radius: 0;
    box-shadow: none;
}