/*================================================
    PITBULL METALWERKS
    MAIN STYLESHEET
================================================*/


/*================================================
    RESET
================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Roboto',sans-serif;
    background:#1b1b1b;
    color:#f5f5f5;
    line-height:1.6;
}

img{
    display:block;
    max-width:100%;
    height:auto;
}

a{
    color:inherit;
    text-decoration:none;
}

ul{
    list-style:none;
}


/*================================================
    LAYOUT
================================================*/

.container{
    width:90%;
    max-width:1280px;
    margin:0 auto;
}


/*================================================
    HEADER
================================================*/

.header{
    background:#111;
    position:sticky;
    top:0;
    z-index:1000;
    border-bottom:1px solid #333;
}

.nav-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px 0;
}


/*================================================
    LOGO
================================================*/

.logo img{
    width:220px;
    max-width:100%;
}


/*================================================
    NAVIGATION
================================================*/

.navigation ul{
    display:flex;
    gap:30px;
}

.navigation a{
    font-family:'Oswald',sans-serif;
    font-size:1rem;
    text-transform:uppercase;
    transition:.3s;
}

.navigation a:hover{
    color:#d32f2f;
}

.navigation a.active{
    color:#d32f2f;
}


/*================================================
    NAV CONTACT
================================================*/

.nav-contact{
    display:flex;
    align-items:center;
    gap:20px;
    font-size:.9rem;
}

.nav-contact a{
    transition:.3s;
}

.nav-contact a:hover{
    color:#d32f2f;
}


/*================================================
    MOBILE MENU BUTTON
================================================*/

.menu-toggle{
    display:none;
    background:none;
    border:none;
    color:#fff;
    font-size:2rem;
    cursor:pointer;
}


/*================================================
    HERO
================================================*/

.hero{
    min-height:82vh;
    display:flex;
    align-items:center;
    width:100%;
    background:#222;
}

.hero-overlay{
    width:100%;
}

.hero-content{
    max-width:700px;
}

.hero h1{
    font-family:'Oswald',sans-serif;
    font-size:3.5rem;
    line-height:1.1;
    margin-bottom:20px;
}

.company-name{
    font-family:'Oswald',sans-serif;
    font-size:2rem;
    font-weight:500;
    color:#d8d8d8;
    margin-bottom:10px;
}

.hero-tagline{
    font-size:1.1rem;
    text-transform:uppercase;
    letter-spacing:1px;
    color:#cfcfcf;
    margin-bottom:25px;
}

.hero p{
    font-size:1.2rem;
    margin-bottom:35px;
    color:#d7d7d7;
}


/*================================================
    BUTTONS
================================================*/

.btn{
    display:inline-block;
    padding:14px 32px;
    border-radius:5px;
    font-weight:bold;
    transition:.3s;
}

.btn-primary{
    background:#d32f2f;
    color:#fff;
}

.btn-primary:hover{
    background:#b71c1c;
}

.btn-secondary{
    border:2px solid #fff;
    margin-left:15px;
}

.btn-secondary:hover{
    background:#fff;
    color:#111;
}


/*================================================
    GENERAL SECTIONS
================================================*/

section{
    padding:80px 0;
}

section h2{
    font-family:'Oswald',sans-serif;
    font-size:2.4rem;
    margin-bottom:40px;
}


/*================================================
    SERVICES
================================================*/

.service-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.service-card{
    background:#262626;
    padding:30px;
    border:1px solid #333;
    border-radius:8px;
    transition:.25s;
}

.service-card:hover{
    transform:translateY(-6px);
    border-color:#555;
}

.service-card h3{
    font-family:'Oswald',sans-serif;
    margin-bottom:15px;
}


/*================================================
    WHY US
================================================*/

.why-us li{
    margin-bottom:12px;
}


/*================================================
    CTA
================================================*/

.cta{
    text-align:center;
}

.cta p{
    max-width:800px;
    margin:0 auto 30px;
}


/*================================================
    CONTACT
================================================*/

.contact{
    background:#202020;
}

.contact p{
    margin-bottom:10px;
}

.contact a:hover{
    color:#d32f2f;
}


/*================================================
    FOOTER
================================================*/

.footer{
    background:#111;
    text-align:center;
    padding:30px 0;
    border-top:1px solid #333;
}


/*================================================
    PROJECTS PAGE
================================================*/

.projects-section{
    background:#1b1b1b;
}

.block-main-title{
    font-family:'Oswald',sans-serif;
    font-size:3rem;
    text-align:center;
    margin-bottom:15px;
}

.block-sub-title{
    max-width:850px;
    margin:0 auto 45px;
    text-align:center;
    color:#cfcfcf;
    font-size:1.1rem;
}


/*================================================
    PROJECT THUMBNAILS
================================================*/

.fluid-gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    max-width:900px;
    margin:0 auto;
}

.gallery-item-card{
    position:relative;
    overflow:hidden;
    cursor:pointer;
    background:#222;
    border:1px solid #383838;
    border-radius:5px;
}

.gallery-img{
    display:block;
    width:100%;
    aspect-ratio:1 / 1;
    object-fit:cover;
    transition:transform .3s ease;
}

.gallery-item-card:hover .gallery-img{
    transform:scale(1.04);
}

.gallery-hover-overlay{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    padding:10px;
    background:rgba(0,0,0,.72);
    text-align:center;
}

.view-project-txt{
    font-size:.85rem;
    font-weight:700;
    color:#fff;
}


/*================================================
    GALLERY MODAL

    HIDDEN BY DEFAULT

    JavaScript adds:
    .gallery-open

    ONLY THEN does this appear.
================================================*/

.gallery-modal{
    display:none;
}


/*================================================
    GALLERY OPEN STATE

    Full-screen overlay OVER the page.
================================================*/

.gallery-modal.gallery-open{
    position:fixed;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    z-index:99999;

    display:flex;

    align-items:center;
    justify-content:center;

    background:rgba(0,0,0,.96);
}


/*================================================
    GALLERY VIEWER
================================================*/

.gallery-viewer{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    width:auto;
    max-width:30vw;
}


/*================================================
    GALLERY PHOTO

    Intentionally kept relatively small.
================================================*/

.gallery-viewer img{
    display:block;

    width:auto;
    max-width:45vw;

    height:auto;
    max-height:75vh;

    object-fit:contain;
}


/*================================================
    GALLERY COUNTER
================================================*/

.gallery-counter{
    margin-top:10px;

    color:#d8d8d8;

    font-size:.9rem;

    text-align:center;
}


/*================================================
    GALLERY CONTROLS
================================================*/

.gallery-close,
.gallery-prev,
.gallery-next{
    position:fixed;

    background:none;
    border:none;

    color:#fff;

    cursor:pointer;

    z-index:100000;
}

.gallery-close{
    top:18px;
    right:25px;

    font-size:2.5rem;
    line-height:1;
}

.gallery-prev{
    left:25px;
    top:50%;

    transform:translateY(-50%);

    font-size:3.5rem;
    line-height:1;
}

.gallery-next{
    right:25px;
    top:50%;

    transform:translateY(-50%);

    font-size:3.5rem;
    line-height:1;
}

.gallery-close:hover,
.gallery-prev:hover,
.gallery-next:hover{
    color:#cfcfcf;
}


/*================================================
    PREVENT PAGE SCROLL WHILE GALLERY IS OPEN
================================================*/

body.gallery-active{
    overflow:hidden;
}


/*================================================
    RESPONSIVE
================================================*/

@media (max-width:900px){

    .navigation{
        display:none;
    }

    .menu-toggle{
        display:block;
    }

    .nav-contact{
        display:none;
    }

    .hero{
        text-align:center;
    }

    .hero h1{
        font-size:2.5rem;
    }

    .hero-content{
        max-width:700px;
        margin:0 auto;
    }

    .btn{
        display:block;
        margin:15px auto;
        width:220px;
    }

    .btn-secondary{
        margin-left:auto;
        margin-right:auto;
    }

/*---------- hamburger function ----------*/
    
.navigation.mobile-open{
    display:block;
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#111;
    border-top:1px solid #333;
}

.navigation.mobile-open ul{
    display:flex;
    flex-direction:column;
    gap:0;
}

.navigation.mobile-open li{
    border-bottom:1px solid #333;
}

.navigation.mobile-open a{
    display:block;
    padding:15px 20px;
}


    /*---------- PROJECT THUMBNAILS ----------*/

    .fluid-gallery-grid{
        max-width:480px;
        gap:15px;
    }


    /*---------- GALLERY ----------*/

    .gallery-viewer{
        max-width:50vw;
    }

    .gallery-viewer img{
        max-width:50vw;
        max-height:60vh;
    }

}


/*================================================
    MOBILE
================================================*/

@media (max-width:600px){

    .container{
        width:92%;
    }

    .nav-container{
        padding:15px 0;
    }

    .logo img{
        width:180px;
    }

    .hero{
        min-height:75vh;
    }

    .hero h1{
        font-size:2.2rem;
    }

    .hero-tagline{
        font-size:.95rem;
    }

    .hero p{
        font-size:1rem;
    }


    /*---------- PROJECT THUMBNAILS ----------*/

    .fluid-gallery-grid{
        max-width:360px;
        gap:12px;
    }

    .gallery-hover-overlay{
        display:none;
    }


    /*---------- GALLERY ----------*/

    .gallery-viewer{
        max-width:70vw;
    }

    .gallery-viewer img{
        max-width:70vw;
        max-height:65vh;
    }

    .gallery-prev{
        left:5px;
        font-size:2.8rem;
    }

    .gallery-next{
        right:5px;
        font-size:2.8rem;
    }

    .gallery-close{
        top:12px;
        right:15px;
        font-size:2.3rem;
    }

}