/*
Theme Name: East End Stair
Theme URI: https://yourdomain.com
Author: East End Stair
Description: Custom theme for East End Stair
Version: 3.1
*/


/* =====================================================
   1. BASE TYPOGRAPHY
===================================================== */
body {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

img {
    display: block;
    max-width: 100%;
}


/* =====================================================
   2. GLOBAL ANIMATIONS
===================================================== */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
    will-change: transform, opacity;
}

.fade-in-left { transform: translateX(-30px); }
.fade-in-right { transform: translateX(30px); }

.visible {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}


/* =====================================================
   3. DEPTH SYSTEM
===================================================== */
.box-soft {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.box-soft:hover {
    box-shadow: 0 25px 60px rgba(0,0,0,0.14);
    transform: translateY(-4px);
}


/* =====================================================
   4. NAVIGATION
===================================================== */
.menu,
.menu > ul {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu a {
    color: #1a1a1a;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

/* underline */
.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: #8c7b6c;
    transition: width 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
}


/* =====================================================
   5. GALLERY
===================================================== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: transparent;

    min-height: 180px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

@media (min-width: 768px) {
    .gallery-item {
        min-height: 220px;
    }
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.16);
}

/* image */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
    transform: scale(1.06);
}


/* =====================================================
   5A. GALLERY OVERLAY
===================================================== */
.gallery-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transition: opacity 0.25s ease;

    background: transparent;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-size: 10px;
    letter-spacing: 2px;

    border: 1px solid rgba(255,255,255,0.85);
    padding: 8px 14px;

    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(2px);

    transition: all 0.25s ease;
}

.gallery-overlay span:hover {
    background: white;
    color: black;
}


/* =====================================================
   6. PROJECT PAGE
===================================================== */
.project-gallery img {
    transition: transform 0.4s ease, filter 0.3s ease;
}

.project-gallery img:hover {
    transform: scale(1.03);
    filter: brightness(0.96);
}


/* =====================================================
   7. LIGHTBOX
===================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.94);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    text-align: center;
    max-width: 90%;
}

.lightbox-img {
    max-width: 85%;
    max-height: 75vh;

    margin: 0 auto;

    transform: scale(0.96);
    transition: transform 0.35s ease;

    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

/* controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: rgba(255,255,255,0.75);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: white;
    transform: scale(1.08);
}

.lightbox-close {
    top: 30px;
    right: 40px;
}

.lightbox-prev {
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}


/* =====================================================
   8. STATS
===================================================== */
.stat-number {
    font-variant-numeric: tabular-nums;
    display: inline-block;
    min-width: 3ch;
}

/* =========================================
   ABOUT IMAGE MARQUEE (PREMIUM)
========================================= */
.about-marquee {
    overflow: hidden;
    position: relative;
}

.about-track {
    display: flex;
    gap: 24px;
    width: max-content;

    animation: marqueeMove 45s linear infinite;
}

.about-track img {
    width: 420px;
    height: 280px;
    object-fit: cover;

    border-radius: 4px;

    transition: transform 0.4s ease;
}

/* subtle hover */
.about-track img:hover {
    transform: scale(1.05);
}

/* seamless motion */
@keyframes marqueeMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   CONTACT FORM (CLEAN STYLE)
========================================= */
.wpcf7 input,
.wpcf7 textarea {
    width: 100%;
    border: 1px solid #e5e5e5;
    padding: 12px;
    font-size: 14px;
    margin-bottom: 14px;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #8c7b6c;
}

.wpcf7 input[type="submit"] {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
    background: #8c7b6c;
}

/* =========================================
   MOBILE GLOBAL FIXES
========================================= */
@media (max-width: 768px) {

    section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    h1 {
        font-size: 32px !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 26px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    p {
        font-size: 15px !important;
    }

}

@media (max-width: 768px) {
    .gallery-item {
        min-height: 140px;
    }
}

@media (max-width: 768px) {

    .lightbox-img {
        max-width: 92%;
        max-height: 65vh;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.6rem;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
    }

}

@media (max-width: 768px) {

    .about-track img {
        width: 240px;
        height: 170px;
    }

}

@media (max-width: 768px) {

    .wpcf7 input,
    .wpcf7 textarea {
        font-size: 16px;
    }

}