/*=========================================================
  MEMechanical
  Production Stylesheet
  File 2A
  Reset • Variables • Base Styles • Typography
=========================================================*/


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

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

html{
    scroll-behavior:smooth;
    scroll-padding-top:90px;
}

body{
    min-height:100vh;
}

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

picture{
    display:block;
}

ul{
    list-style:none;
}

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

button,
input,
textarea{
    font:inherit;
}


/*=========================================================
  DESIGN SYSTEM
=========================================================*/

:root{

    /* Brand */

    --primary:#39d353;
    --primary-dark:#25b63f;
    --primary-light:#6be67f;

    /* Background */

    --bg:#0d0d0d;
    --bg-alt:#151515;
    --bg-card:#1d1d1d;

    /* Text */

    --text:#ffffff;
    --text-muted:#bfbfbf;

    /* Borders */

    --border:#2e2e2e;

    /* Effects */

    --shadow:
        0 15px 40px rgba(0,0,0,.45);

    --radius:18px;

    --transition:
        .35s ease;

    /* Layout */

    --container:1200px;

    --section-padding:
        110px;

}


/*=========================================================
  BASE
=========================================================*/

body{

    background:var(--bg);

    color:var(--text);

    font-family:
        "Inter",
        sans-serif;

    font-size:16px;

    line-height:1.75;

    overflow-x:hidden;

    text-rendering:optimizeLegibility;

    -webkit-font-smoothing:antialiased;

}


.container{

    width:min(
        92%,
        var(--container)
    );

    margin-inline:auto;

}


.section{

    padding:
        var(--section-padding)
        0;

}


.dark{

    background:
        var(--bg-alt);

}


/*=========================================================
  TYPOGRAPHY
=========================================================*/

h1,
h2,
h3,
h4{

    font-family:
        "Montserrat",
        sans-serif;

    line-height:1.15;

    letter-spacing:-1px;

}


h1{

    font-size:
        clamp(
            3rem,
            8vw,
            5.4rem
        );

    font-weight:800;

}


h2{

    font-size:
        clamp(
            2rem,
            4vw,
            3rem
        );

    margin-bottom:22px;

}


h3{

    font-size:1.35rem;

    margin-bottom:12px;

}


p{

    color:
        var(--text-muted);

    margin-bottom:22px;

}


.section-heading{

    text-align:center;

    max-width:760px;

    margin-inline:auto;

    margin-bottom:70px;

}


.section-heading span{

    display:inline-block;

    color:
        var(--primary);

    text-transform:uppercase;

    letter-spacing:3px;

    font-weight:700;

    margin-bottom:18px;

    font-size:.82rem;

}


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

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    padding:
        15px 34px;

    border-radius:999px;

    cursor:pointer;

    transition:
        var(--transition);

    font-weight:700;

}


.btn-primary{

    background:
        var(--primary);

    color:#000;

    box-shadow:
        0 10px 35px
        rgba(57,211,83,.25);

}


.btn-primary:hover{

    transform:
        translateY(-4px);

    background:
        var(--primary-light);

}


/*=========================================================
  LINKS
=========================================================*/

a{

    transition:
        color
        var(--transition);

}

a:hover{

    color:
        var(--primary);

}


/*=========================================================
  CARDS
=========================================================*/

.about-card,
.service-card,
.feature-card,
.contact-card{

    background:
        var(--bg-card);

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    padding:34px;

    box-shadow:
        var(--shadow);

}


/*=========================================================
  UTILITIES
=========================================================*/

.text-center{

    text-align:center;

}

.mt-2{

    margin-top:2rem;

}

.mb-2{

    margin-bottom:2rem;

}

.hidden{

    display:none;

}


/*=========================================================
  SCROLLBAR
=========================================================*/

::-webkit-scrollbar{

    width:11px;

}

::-webkit-scrollbar-track{

    background:#111;

}

::-webkit-scrollbar-thumb{

    background:
        var(--primary);

    border-radius:999px;

}

::-webkit-scrollbar-thumb:hover{

    background:
        var(--primary-light);

}


/*=========================================================
  SELECTION
=========================================================*/

::selection{

    background:
        var(--primary);

    color:#000;

}

/*=========================================================
  MEMechanical
  Production Stylesheet
  File 2B
  Header • Navigation • Hero
=========================================================*/


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

.site-header{

    position:fixed;

    inset:0 0 auto 0;

    z-index:1000;

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    background:rgba(13,13,13,.78);

    border-bottom:1px solid rgba(255,255,255,.05);

    transition:var(--transition);

}

.site-header.scrolled{

    background:rgba(8,8,8,.94);

    box-shadow:0 12px 35px rgba(0,0,0,.35);

}

.site-header .container{

    display:flex;

    align-items:center;

    justify-content:space-between;

    min-height:82px;

}


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

.logo{

    display:flex;

    align-items:center;

    gap:14px;

    flex-shrink:0;

}

.logo img{

    width:175px;

    height:auto;

    transition:transform .35s ease;

}

.logo:hover img{

    transform:scale(1.04);

}


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

.main-nav ul{

    display:flex;

    align-items:center;

    gap:42px;

}

.main-nav a{

    position:relative;

    font-size:.95rem;

    font-weight:600;

    text-transform:uppercase;

    letter-spacing:1px;

    color:var(--text);

    transition:var(--transition);

}

.main-nav a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:var(--primary);

    transition:.3s;

}

.main-nav a:hover::after{

    width:100%;

}

.main-nav a:hover{

    color:var(--primary);

}


/*=========================================================
  CALL BUTTON
=========================================================*/

.call-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:14px 28px;

    border-radius:999px;

    background:var(--primary);

    color:#000;

    font-weight:700;

    box-shadow:0 10px 30px rgba(57,211,83,.28);

    transition:var(--transition);

}

.call-btn:hover{

    background:var(--primary-light);

    transform:translateY(-3px);

}


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

.mobile-menu{

    display:none;

    width:46px;

    height:46px;

    border:none;

    border-radius:12px;

    background:transparent;

    color:#fff;

    font-size:1.7rem;

    cursor:pointer;

}


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

.hero{

    position:relative;

    min-height:100vh;

    display:flex;

    align-items:center;

    overflow:hidden;

    background:
        url("../images/engine-rebuild.jpg")
        center center / cover
        no-repeat;

}

.hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:
        linear-gradient(
            rgba(0,0,0,.72),
            rgba(0,0,0,.82)
        );

}

.hero-overlay{

    position:relative;

    width:100%;

    z-index:2;

}

.hero-content{

    max-width:760px;

    padding-top:90px;

}

.hero-subtitle{

    display:inline-block;

    margin-bottom:22px;

    color:var(--primary);

    text-transform:uppercase;

    letter-spacing:4px;

    font-weight:700;

}

.hero h1{

    margin-bottom:8px;

}

.hero h2{

    color:var(--primary);

    margin-bottom:28px;

}

.hero p{

    max-width:620px;

    font-size:1.12rem;

    margin-bottom:38px;

}

.hero-buttons{

    display:flex;

    gap:18px;

    flex-wrap:wrap;

}


/*=========================================================
  HERO BUTTON OVERRIDE
=========================================================*/

.hero .btn{

    min-width:220px;

    min-height:58px;

}


/*=========================================================
  HERO SCROLL INDICATOR
=========================================================*/

.scroll-indicator{

    position:absolute;

    left:50%;

    bottom:36px;

    transform:translateX(-50%);

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:10px;

    color:rgba(255,255,255,.8);

    font-size:.8rem;

    letter-spacing:2px;

    text-transform:uppercase;

}

.scroll-indicator::after{

    content:"";

    width:2px;

    height:42px;

    background:var(--primary);

    animation:scrollPulse 2s infinite;

}

@keyframes scrollPulse{

    0%{

        opacity:.2;

        transform:translateY(0);

    }

    50%{

        opacity:1;

        transform:translateY(8px);

    }

    100%{

        opacity:.2;

        transform:translateY(0);

    }

}

/*=========================================================
  MEMechanical
  Production Stylesheet
  File 2C
  About • Why Choose • Services
=========================================================*/


/*=========================================================
  ABOUT
=========================================================*/

.about-grid{

    display:grid;

    grid-template-columns:
        1.3fr
        .9fr;

    gap:60px;

    align-items:center;

}

.about-grid p{

    font-size:1.05rem;

    max-width:720px;

}

.about-card{

    position:relative;

    overflow:hidden;

    transition:var(--transition);

}

.about-card::before{

    content:"";

    position:absolute;

    inset:0 auto 0 0;

    width:5px;

    background:var(--primary);

}

.about-card:hover{

    transform:translateY(-8px);

}

.about-card h3{

    margin-bottom:28px;

}

.about-card ul{

    display:grid;

    gap:16px;

}

.about-card li{

    display:flex;

    align-items:center;

    gap:12px;

    color:var(--text-muted);

}


/*=========================================================
  FEATURE GRID
=========================================================*/

.feature-grid{

    display:grid;

    grid-template-columns:
        repeat(
            4,
            1fr
        );

    gap:28px;

}

.feature-card{

    position:relative;

    overflow:hidden;

    transition:var(--transition);

    text-align:center;

}

.feature-card::before{

    content:"";

    position:absolute;

    inset:0;

    opacity:0;

    background:
        linear-gradient(
            135deg,
            rgba(57,211,83,.08),
            transparent
        );

    transition:.35s;

}

.feature-card:hover::before{

    opacity:1;

}

.feature-card:hover{

    transform:
        translateY(-10px);

    border-color:
        var(--primary);

}

.feature-card h3{

    margin-bottom:18px;

}

.feature-card p{

    margin-bottom:0;

}


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

.services-grid{

    display:grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap:30px;

}

.service-card{

    position:relative;

    overflow:hidden;

    transition:var(--transition);

    display:flex;

    flex-direction:column;

    justify-content:flex-start;

    min-height:240px;

}

.service-card::before{

    content:"";

    position:absolute;

    inset:0 auto 0 0;

    width:0;

    background:
        linear-gradient(
            180deg,
            var(--primary),
            transparent
        );

    opacity:.12;

    transition:.35s;

}

.service-card:hover::before{

    width:100%;

}

.service-card:hover{

    transform:

        translateY(-10px);

    border-color:

        var(--primary);

    box-shadow:

        0 18px 45px rgba(0,0,0,.45);

}

.service-card h3{

    color:

        var(--text);

    margin-bottom:18px;

    transition:.3s;

}

.service-card:hover h3{

    color:

        var(--primary);

}

.service-card p{

    flex-grow:1;

    margin-bottom:0;

}


/*=========================================================
  SERVICE ICON PLACEHOLDER
=========================================================*/

.service-card h3::before{

    content:"⚙";

    display:inline-block;

    margin-right:12px;

    color:

        var(--primary);

}


/*=========================================================
  SERVICE SECTION INTRO
=========================================================*/

#services .section-heading{

    margin-bottom:80px;

}

#services .section-heading p{

    max-width:760px;

    margin-inline:auto;

}


/*=========================================================
  HOVER ANIMATION
=========================================================*/

.service-card,
.feature-card,
.about-card{

    will-change:

        transform;

}


/*=========================================================
  DIVIDER
=========================================================*/

.section-divider{

    width:120px;

    height:4px;

    background:

        var(--primary);

    margin:

        30px auto 0;

    border-radius:999px;

}


/*=========================================================
  EMPHASIS
=========================================================*/

.highlight{

    color:

        var(--primary);

    font-weight:700;

}


/*=========================================================
  CARD TRANSITIONS
=========================================================*/

.about-card,
.feature-card,
.service-card{

    transition:

        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease,
        background .35s ease;

}

/*=========================================================
  MEMechanical
  Production Stylesheet
  File 2D
  Gallery • Areas • Contact • Footer
=========================================================*/


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

.gallery-grid{

    display:grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:28px;

}

.gallery-grid figure{

    position:relative;

    overflow:hidden;

    border-radius:var(--radius);

    background:var(--bg-card);

    cursor:pointer;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.gallery-grid figure:hover{

    transform:translateY(-8px);

    border-color:var(--primary);

}

.gallery-grid img{

    width:100%;

    aspect-ratio:16/10;

    object-fit:cover;

    transition:transform .5s ease;

}

.gallery-grid figure:hover img{

    transform:scale(1.08);

}

.gallery-grid figure::after{

    content:"Click to Enlarge";

    position:absolute;

    inset:auto 0 0 0;

    padding:14px;

    background:linear-gradient(
        transparent,
        rgba(0,0,0,.88)
    );

    color:#fff;

    text-align:center;

    font-size:.85rem;

    letter-spacing:1px;

    opacity:0;

    transition:.3s;

}

.gallery-grid figure:hover::after{

    opacity:1;

}


/*=========================================================
  AREAS COVERED
=========================================================*/

.areas-grid{

    display:flex;

    flex-wrap:wrap;

    justify-content:center;

    gap:16px;

    margin-top:45px;

}

.areas-grid span{

    padding:12px 22px;

    background:var(--bg-card);

    border:1px solid var(--border);

    border-radius:999px;

    transition:var(--transition);

    font-weight:600;

}

.areas-grid span:hover{

    background:var(--primary);

    color:#000;

    transform:translateY(-3px);

}


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

.contact-section{

    background:var(--bg-alt);

}

.contact-grid{

    display:grid;

    grid-template-columns:
        420px
        1fr;

    gap:50px;

    align-items:start;

}

.contact-card{

    height:100%;

}

.contact-card h3{

    margin-top:28px;

    margin-bottom:10px;

    color:var(--primary);

}

.contact-card h3:first-child{

    margin-top:0;

}

.contact-phone{

    display:inline-block;

    font-size:1.45rem;

    font-weight:700;

    margin-bottom:20px;

}

.contact-phone:hover{

    color:var(--primary-light);

}

.opening-hours{

    display:grid;

    gap:10px;

    color:var(--text-muted);

    margin-top:12px;

}

.opening-hours li{

    border-bottom:1px solid rgba(255,255,255,.06);

    padding-bottom:8px;

}


/*=========================================================
  MAP
=========================================================*/

.map-container{

    overflow:hidden;

    border-radius:var(--radius);

    border:1px solid var(--border);

    box-shadow:var(--shadow);

    min-height:480px;

}

.map-container iframe{

    width:100%;

    height:100%;

    min-height:480px;

    border:none;

}


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

.site-footer{

    background:#080808;

    border-top:1px solid rgba(255,255,255,.06);

    text-align:center;

    padding:70px 0 45px;

}

.site-footer img{

    width:170px;

    margin:0 auto 30px;

}

.site-footer p{

    max-width:700px;

    margin:0 auto 20px;

}

.site-footer strong{

    color:var(--primary);

    font-size:1.15rem;

}

.site-footer a{

    color:var(--primary);

}

.site-footer a:hover{

    color:var(--primary-light);

}


/*=========================================================
  SMALL FADE EFFECT
=========================================================*/

.fade-top{

    position:relative;

}

.fade-top::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    right:0;

    height:80px;

    background:linear-gradient(

        var(--bg),

        transparent

    );

    pointer-events:none;

}


/*=========================================================
  LIGHTBOX PLACEHOLDER
=========================================================*/

.lightbox{

    position:fixed;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.92);

    z-index:5000;

}

.lightbox.active{

    display:flex;

}

.lightbox img{

    max-width:92vw;

    max-height:90vh;

    border-radius:14px;

    box-shadow:0 30px 80px rgba(0,0,0,.55);

}

.lightbox-close{

    position:absolute;

    top:25px;

    right:35px;

    font-size:2.2rem;

    color:#fff;

    cursor:pointer;

    transition:.3s;

}

.lightbox-close:hover{

    color:var(--primary);

}

/*=========================================================
  MEMechanical
  Production Stylesheet
  File 2E
  Responsive Design
=========================================================*/


/*=========================================================
  LARGE DESKTOP
=========================================================*/

@media (min-width:1400px){

    :root{

        --container:1320px;

    }

}


/*=========================================================
  LAPTOPS
=========================================================*/

@media (max-width:1200px){

    .about-grid{

        grid-template-columns:1fr;

        gap:50px;

    }

    .feature-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .services-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .contact-grid{

        grid-template-columns:1fr;

    }

}


/*=========================================================
  TABLETS
=========================================================*/

@media (max-width:992px){

    :root{

        --section-padding:90px;

    }

    .site-header .container{

        min-height:74px;

    }

    .logo img{

        width:150px;

    }

    .main-nav{

        position:fixed;

        top:74px;

        right:-100%;

        width:300px;

        height:calc(100vh - 74px);

        background:var(--bg);

        border-left:1px solid var(--border);

        transition:right .35s ease;

        padding:40px 30px;

        z-index:999;

    }

    .main-nav.active{

        right:0;

    }

    .main-nav ul{

        flex-direction:column;

        align-items:flex-start;

        gap:28px;

    }

    .mobile-menu{

        display:flex;

        align-items:center;

        justify-content:center;

    }

    .call-btn{

        display:none;

    }

    .hero{

        text-align:center;

    }

    .hero-content{

        margin:0 auto;

    }

    .hero-buttons{

        justify-content:center;

    }

}


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

@media (max-width:768px){

    :root{

        --section-padding:75px;

    }

    h1{

        font-size:clamp(2.6rem,11vw,4rem);

    }

    h2{

        font-size:2rem;

    }

    .section-heading{

        margin-bottom:55px;

    }

    .services-grid{

        grid-template-columns:1fr;

    }

    .feature-grid{

        grid-template-columns:1fr;

    }

    .gallery-grid{

        grid-template-columns:1fr;

    }

    .areas-grid{

        justify-content:flex-start;

    }

    .about-card,
    .feature-card,
    .service-card,
    .contact-card{

        padding:28px;

    }

    .hero-buttons{

        flex-direction:column;

        align-items:center;

    }

    .hero .btn{

        width:100%;

        max-width:320px;

    }

    .map-container{

        min-height:340px;

    }

    .map-container iframe{

        min-height:340px;

    }

}


/*=========================================================
  SMALL PHONES
=========================================================*/

@media (max-width:576px){

    body{

        font-size:15px;

    }

    .container{

        width:94%;

    }

    .logo img{

        width:135px;

    }

    .hero{

        min-height:88vh;

    }

    .hero-subtitle{

        letter-spacing:2px;

        font-size:.75rem;

    }

    .hero p{

        font-size:1rem;

    }

    .section{

        padding:65px 0;

    }

    .contact-phone{

        font-size:1.2rem;

    }

    .site-footer{

        padding:55px 0 35px;

    }

}


/*=========================================================
  VERY SMALL DEVICES
=========================================================*/

@media (max-width:360px){

    h1{

        font-size:2.2rem;

    }

    h2{

        font-size:1.7rem;

    }

    .mobile-menu{

        width:42px;

        height:42px;

        font-size:1.4rem;

    }

}


/*=========================================================
  ACCESSIBILITY
=========================================================*/

@media (prefers-reduced-motion:reduce){

    *{

        animation:none !important;

        transition:none !important;

        scroll-behavior:auto !important;

    }

}


/*=========================================================
  PRINT
=========================================================*/

@media print{

    .site-header,
    .mobile-menu,
    .call-btn,
    .hero,
    .lightbox{

        display:none !important;

    }

    body{

        background:#fff;

        color:#000;

    }

    .section{

        padding:20px 0;

    }

}

.main-nav a.active{

    color:var(--primary);

}

.main-nav a.active::after{

    width:100%;

}

.lightbox{

    position:fixed;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.95);

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:5000;

}

.lightbox.active{

    opacity:1;

    visibility:visible;

}

.lightbox-image{

    max-width:92vw;

    max-height:82vh;

    border-radius:16px;

    box-shadow:0 30px 80px rgba(0,0,0,.6);

}

.lightbox-caption{

    position:absolute;

    bottom:30px;

    color:#fff;

    text-align:center;

    font-weight:600;

    letter-spacing:1px;

}

.lightbox button{

    position:absolute;

    background:none;

    border:none;

    color:#fff;

    cursor:pointer;

    transition:.3s;

}

.lightbox-close{

    top:25px;

    right:35px;

    font-size:3rem;

}

.lightbox-prev{

    left:30px;

    font-size:3rem;

}

.lightbox-next{

    right:30px;

    font-size:3rem;

}

.lightbox button:hover{

    color:var(--primary);

}

.email-link{

    color:var(--primary);

    font-weight:600;

}

.email-link:hover{

    color:var(--primary-light);

}

.status-open{

    color:#39d353;

    font-weight:700;

}

.status-closed{

    color:#ff6b6b;

    font-weight:700;

}

.status-appointment{

    color:#ffd166;

    font-weight:700;

}