/* =========================================
   GLOBAL HEADER FIX 
   (Fixes the "slightly too big" scroll issue everywhere)
========================================= */
.sticky-header {
    box-sizing: border-box !important; /* Forces padding INSIDE the width */
    max-width: 100vw !important;       /* Ensures it never exceeds screen size */
    overflow-x: hidden !important;     /* Cuts off any accidental overhang */
}

/* Safety belt for the whole site */
html, body {
    overflow-x: hidden !important;
}

/* =========================================
2. NAVIGATION & MOBILE MENU
========================================= */
/* Change 1: Hover color for navigation buttons */
.wp-block-navigation .wp-block-navigation-item a:hover {
	color: #d1a054 !important;
/* Replace with your preferred highlight color */
	transition: color .3s ease;
/* Makes the color change smooth */
}

/* Change 2: Mobile menu background transparency (50%) */
.transparent-mobile-menu .wp-block-navigation__responsive-container.is-menu-open {
	background-color: rgba(255, 249, 242, 0.75) !important;
/* Optional: slight blur makes text more readable over 50% transparency */
}

/* Ensure the full-screen overlay also respects the transparency */
.wp-block-navigation__responsive-container-content {
	background-color: transparent !important;
}



/* =========================================
5. BODY OFFSET FOR FIXED HEADER
========================================= */
body {
	padding-top: 0;
}

@media (max-width: 600px) {
	body {
		padding-top: 0;
	}
}



/* =========================================
7. FULL-WIDTH BUTTONS ON MOBILE (QUERY LOOP)
========================================= */
@media (max-width: 600px) {
	/* Target the button container within query loops */
	.wp-block-query .wp-block-button {
		width: 100%;
		display: block;
	}
	
	/* Target the actual clickable button link */
	.wp-block-query .wp-block-button__link {
		width: 100% !important;
		box-sizing: border-box;
	/* Ensures padding doesn't push it off screen */
		text-align: center;
	/* Keeps text centered when stretched */
	}
}

/* =========================================
   9. HOME PAGE ONLY GAP REMOVER
   ========================================= */
/* This ensures the first block on the home page has NO margin at the top */
body.home .wp-site-blocks > *:first-child,
body.home .entry-content > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* =========================================
   9. HOME PAGE ONLY GAP REMOVER (NUCLEAR)
   ========================================= */
/* 1. Remove spacing from the main page containers */
body.home .wp-site-blocks, 
body.home .entry-content,
body.home main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 2. Force the first FEW blocks to have zero top margin */
/* We target both 1st and 2nd child because sometimes the 'fixed header' counts as #1 */
body.home .wp-site-blocks > *:first-child,
body.home .wp-site-blocks > *:nth-child(2),
body.home main > *:first-child,
body.home .entry-content > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 3. Specific fix for the Banner Group itself */
/* This finds the first "Full Width Group" (your banner) and forces it up */
body.home .wp-site-blocks > .wp-block-group.alignfull:first-of-type {
    margin-top: 0 !important;
}


@media (max-width: 782px) {
    /* 1. HIDE THE LOGO ONLY */
    .site-brand .wp-block-site-logo {
        display: none !important;
    }

    /* 2. Tighten the container padding */
    .sticky-header {
        padding-left: 10px !important; 
        padding-right: 10px !important;
    }

    /* 3. Ensure the text stays on the left */
    .site-header {
        justify-content: space-between !important;
    }

    .site-brand {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}