/*

Theme Name: ACR Architecure 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 ACR Architecture in October 2025 on behalf of Yoma Digital Ltd.
Version: 1.0.0
Text Domain: acrarchitectureyoma

*/

/* 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: 258px;
    height: 70px;
	object-fit: contain;
}

.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;
}

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

    .masthead__branding img {
        width: 93px;
        height: 44px;
    }

    .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;
    }
}

/* Hero */

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

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

.has-overlay {
	position: relative;
}

.overlay {
	width: 100%;
	height: 100%;
	background: #000;
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0.7
}

/* 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);
}

/* 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;
}

@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;
    }

}