/*

Theme Name: MM Roofing by Yoma
Theme URI: https://www.yoma.co.uk/
Author: Yoma
Author URI: https://www.yoma.co.uk/
Description: A bespoke WordPress theme built for MM Roofing in October 2025 on behalf of Yoma Digital Ltd.
Version: 1.0.0
Text Domain: mmroofingyoma

*/

/* Header */

.masthead {
    padding-inline: clamp(1.875rem, 1.1455rem + 3.1716vw, 4rem);
}

.masthead__main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.masthead__branding img {
    width: clamp(8.6875rem, 5.2547rem + 14.9254vw, 18.6875rem);
    height: auto;
}

.masthead__main .primary-nav__menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    width: 100%;
    gap: 0;
}

.masthead__main .primary-nav__menu a {
    text-decoration: none;
    font-size: 1.25rem;
    padding: 3.25rem clamp(0.5rem, -1.9615rem + 3.8462vw, 1.5rem);
    display: block;
    font-weight: 400;
}

.toggle-menu {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

.masthead__main .btn-group {
    margin: 0;
    flex-wrap: wrap;
    text-align: left;
}

.masthead__main .btn-group.mobile {
    display: none;
}

.masthead__main .btn-group a {
    text-wrap: nowrap;
}

.masthead__main .mob-whatsapp {
    width: 50px;
    height: 50px;
    background-color: var(--colour-blue-500);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    aspect-ratio: 1/1;
    display: none;
}

@media screen and (max-width: 1024px) {

    .masthead__branding img {
        width: 139px;
        height: 38px;
    }

    .masthead__main .btn-group {
        margin: 0;
        flex-wrap: wrap;
        text-align: left;
        display: none;
    }

    .masthead__main .btn-group.mobile {
        display: flex;
    }

    .toggle-menu {
        display: block;
    }

    .primary-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 2rem 1rem;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .primary-nav.active {
	    left: 0;
        background-color: #fff;
    }

    .primary-nav__menu {
        flex-direction: column;
        gap: 1rem;
    }

    .masthead__main .primary-nav__menu a {
        padding-block: 1.25rem;
        border-bottom: 1px solid var(--colour-grey-200)
    }

    .menuicon__bar {

        transition: transform 0.25s ease, opacity 0.25s ease;
        transform-origin: center;
    }
    
    .toggle-menu.active .menuicon__bar:nth-child(1) {
        transform: translateY(8px) translateX(-16px) rotate(45deg);
    }

    .toggle-menu.active .menuicon__bar:nth-child(2) {
        opacity: 0;
    }

    .toggle-menu.active .menuicon__bar:nth-child(3) {
        transform: translateY(-12px) translateX(-13px) rotate(-45deg)
    }

    .splash.active {
        display: block;
        position: fixed;
        background-color: #111;
        opacity: 0.7;
        inset: 0;
        z-index: 1;
    }
}

@media screen and (max-width: 425px) {

    .masthead {
        padding-inline: .625rem;
    }

    .masthead__main {
        gap: 10px;
    }

    .masthead__main .btn-group a {
        text-wrap: wrap;
    }

    .masthead__main .mob-whatsapp {
        display: flex;
    }

    .masthead__main .btn--whatsapp {
        display: none;
    }

    .masthead__main .btn--phone a {
        font-size: 9px;
        text-align: left;
        padding-inline: 10px;
    }
}

/* Hero */

.page-header {
    text-align: center;
    padding-block:  clamp(2.375rem, 0.0793rem + 9.9813vw, 9.0625rem);
    background-position: center center;
    background-size: cover;
}

.page-header h1 {
    max-width: 80rem;
    margin: 0 auto 18px;
    letter-spacing: 6px;
    color: var(--colour-white);
}

.page-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--colour-white);
    font-size: clamp(0.875rem, 0.6604rem + 0.9328vw, 1.5rem);
}

.page-header .btn {
    margin: clamp(1.125rem, 0.653rem + 2.0522vw, 2.5rem) auto 0;
}

/* Home Intro */

.home-intro {
    padding-block: clamp(2rem, 1.7425rem + 1.1194vw, 2.75rem) clamp(2.5rem, 1.7491rem + 3.2649vw, 4.6875rem);
    font-size: clamp(0.875rem, 0.6604rem + 0.9328vw, 1.5rem);
    line-height: clamp(1.125rem, 0.8675rem + 1.1194vw, 1.875rem);
}

/* Split Feature */

.split-feature {
    padding-block: clamp(2.5rem, 2.0065rem + 2.1455vw, 3.9375rem) clamp(4.0625rem, 3.6119rem + 1.959vw, 5.375rem);
}

.split-feature__wrapper {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    column-gap: clamp(2.0625rem, -1.2946rem + 6.994vw, 5rem);
    row-gap: 3.125rem;
    align-items: flex-start;
}

.split-feature__left {
    padding-top: clamp(0rem, -0.8582rem + 3.7313vw, 2.5rem);
}


@media screen and (max-width: 768px) {

    .split-feature__wrapper {
        grid-template-columns: 1fr 1fr;
    }

}


@media screen and (max-width: 425px) {

    .split-feature__wrapper {
        display: flex;
        flex-direction: column-reverse;
    }

}

/* Footer */

.site-footer__main {
    display: flex;
    justify-content: space-between;
    padding-block: 2.5rem;
}

.site-footer__main h4 {
    font-size: clamp(1.375rem, 1.3321rem + 0.1866vw, 1.5rem);
}

.site-footer__menus {
    display: flex;
    gap: clamp(7.125rem, 5.9235rem + 5.2239vw, 10.625rem);
    font-size: clamp(0.9375rem, 0.8731rem + 0.2799vw, 1.125rem);
}

.footer-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav__menu a {
    text-decoration: none;
    line-height: 36px; 
    font-weight: 400;
}

.site-footer__copyright {
    text-align: center;
    padding-block: 1.375rem;
    border-top: 1px solid var(--colour-grey-200);
    font-size: 13px;
    font-weight: 400;
}

@media screen and (max-width: 768px) {

    .site-footer__cta {
        max-width: 262px;
    }

    .site-footer__menus {
        display: flex;
        gap: 8.75rem;
        font-size: clamp(0.9375rem, 0.8731rem + 0.2799vw, 1.125rem);
    }
}

@media screen and (max-width: 425px) { 
    .site-footer__main {
        display: block;
    }
    
    .site-footer__cta {
        margin: auto;
        text-align: center;
    }

    .site-footer__cta .btn-group {
        justify-content: center;
        margin-bottom: 2rem;
    }

}