/*!
Theme Name: Moddershall Oaks
Theme URI: 
Author: SO Marketing
Author URI: https://www.somarketing.com/
Description: 
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: moddershall-oaks
Tags: custom-logo, custom-menu, featured-images, translation-ready, acf, flexible-content, starter
*/

/*
=============================================================================
Design Tokens
=============================================================================
*/

:root {

	/* Brand Colors (Figma "Colours" board) */
    --mo-color-primary:   #205856;   /* Dark green — secondary CTA (Gift Vouchers), focus states */
    --mo-color-secondary: #c8c1af;   /* "Current colour" taupe — header bar, "View …" buttons, dividers */
    --mo-color-accent:    #c3a25d;   /* Gold — accents only (Book Now CTA, icons) */
    --mo-color-sage:      #bccdcc;   /* Light green — tinted section backgrounds */

    /* Neutral */
    --mo-color-dark:   #322f2c;      /* Grey — all body text and headings, dark backgrounds */
    --mo-color-mid:    #6e7480;      /* Muted blue-grey — muted text, meta */
    --mo-color-subtle: #ecebe7;      /* Light stone — dropdown/menu panels, button hover */
    --mo-color-light:  #f5f3f1;      /* Cream — page background, reversed text */
    --mo-color-white:  #ffffff;

    /* Semantic aliases — wire once, change via brand colors above */
    --mo-color-text:       var(--mo-color-dark);
    --mo-color-background: var(--mo-color-light);
    --mo-color-heading:    var(--mo-color-dark);
    --mo-color-link:       var(--mo-color-dark);

    /* Typography */
    --mo-font-heading: 'Playfair Display', Georgia, serif;
    --mo-font-body:    'Encode Sans', Arial, sans-serif;
    --mo-font-script:  'Gellatio', 'Brush Script MT', cursive;  /* Script accent ("welcome to moddershall oaks") — licensed webfont still needed */

    /* Type scale — Figma base 72, ratio 1.333 */
    --mo-font-size-body:  1.125rem;   /* 18px / 27px */
    --mo-font-size-small: 0.9375rem;  /* 15px / 22.5px — form legal text */

	/* Container — 1920 artboard, 50px gutters */
    --mo-container-max: 113.75rem;     /* 1820px */
    --mo-layout-padding: 1.5625rem;    /* 25px — mobile gutter; bumped at 1200/1600 (see layout-padding) */


	/* Buttons */
    --mo-btn-padding-y:   0.6875rem;  /* 11px */
    --mo-btn-padding-x:   1.25rem;    /* 20px */
    --mo-btn-font-size:   1.125rem;   /* 18px */
    --mo-btn-font-weight: 400;

	/* Border Radius — design is square-cornered throughout */
    --mo-border-radius:    0;
    --mo-border-radius-sm: 0;


	/* Transition */
    --mo-transition: 0.3s ease;


    /*
	-----------------------------------------------------------------------
       Breakpoints (reference)
       CSS custom properties can't be used in @media queries.
       xs: 0  sm: 576  md: 768  lg: 992  xl: 1200  xxl: 1400
    -----------------------------------------------------------------------
	*/
}

/* Gutter steps — defined here (not in design-style.css) because this file loads
   last, so a :root override anywhere earlier would be overwritten by the base value above. */
@media only screen and (min-width: 1200px) {
	:root {
		--mo-layout-padding: 2rem;      /* 32px */
	}
}
@media only screen and (min-width: 1600px) {
	:root {
		--mo-layout-padding: 3.125rem;  /* 50px — Figma 1920 artboard */
	}
}

/*
=============================================================================
Client Project Styles
=============================================================================
Add all project-specific overrides and custom styles below.
*/


/*
================================================================================
Header Style Start
Figma: Desktop › Header component (1920 artboard) + Mobile › Component 4 (402)
================================================================================
*/

.skip-link:focus {
	position: fixed !important;
	top: 0.625rem;
	left: 0.625rem;
	z-index: 2000;
	width: auto !important;
	height: auto !important;
	padding: 0.625rem 1.25rem !important;
	margin: 0 !important;
	clip: auto !important;
	background: var(--mo-color-dark);
	color: var(--mo-color-light);
	text-decoration: none;
}

.site-header {
	position: sticky; /* Figma prototype: whole header stays pinned on scroll */
	top: 0;
	z-index: 1000;
	color: var(--mo-color-dark);
}

.admin-bar .site-header {
	top: 2rem; /* 32px WP admin bar */
}

.site-header a {
	color: inherit;
	text-decoration: none;
}

.site-header svg {
	display: block;
	flex-shrink: 0;
}

/* ── Top bar: phone · utility links · search (desktop only) ───────────────── */

.header-top {
	background-color: var(--mo-color-secondary);
}

.header-top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 3.125rem; /* 50px */
}

.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem; /* 10px */
	font-weight: 600;
}

.header-phone svg {
	width: 1.5625rem; /* 25px */
	height: auto;
}

.header-top-right {
	display: flex;
	align-items: center;
	gap: 3.5rem; /* 56px */
}

.header-utility-links {
	display: flex;
	align-items: center;
	gap: 3.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.header-utility-links a,
.mobile-utility-links a {
	display: inline-flex;
	align-items: center;
	gap: 0.6875rem; /* 11px */
}

.header-utility-icon,
.mobile-utility-icon {
	width: auto;
	height: 1.5625rem; /* 25px */
}

.header-utility-links a span,
.header-phone span {
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 0.0625rem no-repeat;
	transition: background-size var(--mo-transition);
}

.header-utility-links a:hover span,
.header-phone:hover span {
	background-size: 100% 0.0625rem;
}

.header-search {
	display: flex;
	align-items: flex-end;
	gap: 0.625rem; /* 10px */
	margin: 0;
}

/* Beats the global button[type="submit"] rule in moddershall-oaks-form.css */
.header-search .header-search-submit,
.header-search .header-search-submit:hover {
	display: flex;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.header-search-submit svg {
	width: 1.5625rem;
	height: auto;
}

.header-search-field {
	width: 14.25rem; /* 228px */
	height: 1.5625rem;
	padding: 0 0 0.125rem;
	border: 0;
	border-bottom: 0.0625rem solid var(--mo-color-dark);
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 1rem;
	-webkit-appearance: none;
	appearance: none;
}

.header-search-field::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

/* No focus ring on the header search fields (desktop + mobile) — the global
   :focus-visible outline always fires on text inputs, even on mouse click.
   The text caret shows the field is active. */
.header-search-field:focus,
.header-search-field:focus-visible,
.mobile-search-field:focus,
.mobile-search-field:focus-visible {
	outline: none;
	box-shadow: none;
}

/* ── Main bar: logo │ nav │ gift + Book Now ───────────────────────────────── */

.header-main {
	background-color: var(--mo-color-light);
	border-bottom: 0.0625rem solid var(--mo-color-secondary);
}

.header-main-inner {
	display: flex;
	align-items: stretch;
	min-height: 6.25rem; /* 100px */
}

.site-branding {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	padding-right: 3.125rem; /* 50px → divider */
	border-right: 0.0625rem solid var(--mo-color-secondary);
}

.site-logo-link {
	display: block;
	line-height: 0;
}

.site-branding .site-logo {
	display: block;
	width: 15.625rem; /* 250px */
	height: auto;
}

/* Text fallback when no logo is set */
.site-branding .site-name {
	font-family: var(--mo-font-heading);
	font-size: 1.75rem;
	line-height: 1.2;
}

/* Primary navigation — items spaced evenly between the two dividers */
.main-navigation {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
}

.main-menu {
	display: flex;
	align-items: stretch;
	justify-content: space-evenly;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-menu > li {
	position: relative;
	display: flex;
}

.main-menu > li > a {
	position: relative;
	display: flex;
	align-items: center;
	white-space: nowrap;
}

/* Hover underline — 1px taupe, 2px below the text (Figma Line 42–49) */
.main-menu > li > a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: calc(50% + 0.9375rem);
	height: 0.0625rem;
	background-color: var(--mo-color-secondary);
	opacity: 0;
	transition: opacity var(--mo-transition);
}

.main-menu > li:hover > a::after,
.main-menu > li:focus-within > a::after,
.main-menu > li.current-menu-item > a::after,
.main-menu > li.current-menu-ancestor > a::after {
	opacity: 1;
}

/* Dropdowns — shared by nav, gift and Book Now */
.main-menu .sub-menu,
.header-dropdown-menu {
	position: absolute;
	top: calc(100% + 0.0625rem); /* sits on the header's bottom border */
	z-index: 10;
	margin: 0;
	padding: 0;
	list-style: none;
	background-color: var(--mo-color-subtle);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--mo-transition), visibility var(--mo-transition);
}

.main-menu .sub-menu {
	left: -0.125rem;
	width: 15.625rem; /* 250px */
}

.main-menu > li:hover > .sub-menu,
.main-menu > li:focus-within > .sub-menu,
.header-dropdown:hover > .header-dropdown-menu,
.header-gift:focus-within > .header-dropdown-menu,
.header-book.is-open > .header-dropdown-menu {
	opacity: 1;
	visibility: visible;
}

.main-menu .sub-menu a,
.header-dropdown-menu a {
	display: block;
	padding: 0.40625rem 0.9375rem; /* 40px rows */
	transition: background-color var(--mo-transition);
}

.main-menu .sub-menu a:hover,
.main-menu .sub-menu a:focus-visible,
.main-menu .sub-menu .current-menu-item > a,
.header-dropdown-menu a:hover,
.header-dropdown-menu a:focus-visible {
	background-color: var(--mo-color-secondary);
}

/* Actions: gift voucher + Book Now */
.header-actions {
	display: flex;
	align-items: stretch;
	gap: 2rem; /* 32px */
	flex-shrink: 0;
	padding-left: 3.0625rem; /* 49px from divider */
	border-left: 0.0625rem solid var(--mo-color-secondary);
}

.header-dropdown {
	position: relative;
	display: flex;
	align-items: center;
}

.header-dropdown-menu {
	left: 50%;
	width: 13.125rem; /* 210px */
	text-align: center;
	transform: translateX(-50%);
}

.header-gift-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem; /* 52px */
	height: 3.25rem;
	border: 0.09375rem solid var(--mo-color-secondary);
	border-radius: 50%;
	transition: background-color var(--mo-transition);
}

.header-gift-toggle svg {
	width: 1.5625rem;
	height: auto;
}

.header-gift:hover .header-gift-toggle,
.header-gift:focus-within .header-gift-toggle {
	background-color: var(--mo-color-secondary);
}

/* Book Now only opens the dropdown — it keeps its hover state while open */
.header-book-btn {
	cursor: pointer;
}

.header-book:hover .header-book-btn,
.header-book.is-open .header-book-btn {
	background: transparent;
	border-color: var(--mo-color-accent);
}

.mobile-menu-toggle,
.mobile-navigation {
	display: none;
}

/* ── Desktop, narrower screens: tighten so all 8 items still fit ─────────── */

@media only screen and (min-width: 1200px) and (max-width: 1599px) {
	.main-menu > li > a {
		font-size: 1rem;
	}
	.site-branding {
		padding-right: 2rem;
	}
	.site-branding .site-logo {
		width: 12.5rem; /* 200px */
	}
	.header-actions {
		gap: 1.25rem;
		padding-left: 2rem;
	}
	.header-top-right,
	.header-utility-links {
		gap: 2.5rem;
	}
}

/* ── Mobile / tablet: floating card + dropdown panel ──────────────────────── */

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

	.header-top {
		display: none;
	}

	/* Floating card over the page (Figma: 25px inset) */
	.site-header {
		position: fixed;
		top: var(--mo-layout-padding);
		left: var(--mo-layout-padding);
		right: var(--mo-layout-padding);
	}

	.admin-bar .site-header {
		top: calc(var(--mo-layout-padding) + 2rem);
	}

	.header-main {
		overflow: hidden;
		background-color: rgba(255, 255, 255, 0.95);
		border: 0.0625rem solid var(--mo-color-secondary);
		border-radius: 0.3125rem 0.3125rem 0 0; /* Figma: top corners only */
		transition: border-radius 0.5s ease-in-out;
	}

	/* Open: the panel's last row carries the rounded bottom corners (Figma Rectangle 359) */
	.header-main:has(.mobile-navigation.is-active) {
		border-radius: 0.3125rem;
	}

	.header-main-inner.layout-padding {
		align-items: center;
		min-height: 3.625rem; /* 58px + borders = 60px */
		padding: 0 0.875rem 0 0.75rem;
	}

	.site-branding {
		padding-right: 0;
		border-right: 0;
		margin-right: auto;
	}

	/* The <picture> swaps in the mobile wordmark below 1200px (render_site_logo 'responsive') */
	.site-branding .site-logo {
		width: 10.375rem; /* 166px */
	}

	.main-navigation,
	.header-gift {
		display: none;
	}

	/* Book Now dropdown drops below the card. Its containing block is the
	   fixed .site-header, so .header-main's overflow:hidden doesn't clip it. */
	.header-main,
	.header-main-inner,
	.header-actions,
	.header-book {
		position: static;
	}

	.header-book:hover > .header-dropdown-menu {
		opacity: 0;
		visibility: hidden; /* touch: open on tap (.is-open) only */
	}

	.header-book .header-dropdown-menu,
	.header-book.is-open > .header-dropdown-menu {
		top: calc(100% + 0.625rem);
		left: 0;
		right: 0;
		width: auto;
		transform: none;
		border: 0.0625rem solid var(--mo-color-secondary);
		border-radius: 0.3125rem;
		overflow: hidden;
	}

	.header-book.is-open > .header-dropdown-menu {
		opacity: 1;
		visibility: visible;
	}

	.header-book .header-dropdown-menu li + li {
		border-top: 0.0625rem solid var(--mo-color-secondary);
	}

	.header-book .header-dropdown-menu a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 3.125rem; /* 50px rows, as the menu */
		font-size: 1rem;
	}

	.header-actions {
		align-items: center;
		gap: 0.9375rem; /* 15px */
		padding-left: 0.625rem;
		border-left: 0;
	}

	.header-book-btn.site-btn {
		padding: 0.125rem 0.4375rem;
		font-size: 1rem;
		line-height: 1.5;
		border-radius: 0.125rem;
	}

	/* Hamburger → close (Figma smart-animate 0.5s ease-in-out) */
	.mobile-menu-toggle {
		position: relative;
		display: block;
		width: 1.875rem; /* 30px */
		height: 1.875rem;
		padding: 0;
		border: 0;
		border-radius: 0.125rem;
		background-color: var(--mo-color-secondary);
		cursor: pointer;
	}

	.hamburger-line {
		position: absolute;
		left: 0.3125rem;
		width: 1.25rem; /* 20px */
		height: 0.0625rem;
		background-color: var(--mo-color-dark);
		transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
	}

	.hamburger-line:nth-child(1) { top: 0.5rem; }
	.hamburger-line:nth-child(2) { top: 0.9375rem; }
	.hamburger-line:nth-child(3) { top: 1.375rem; }

	.mobile-menu-toggle.is-open .hamburger-line:nth-child(1) {
		transform: translateY(0.4375rem) rotate(45deg);
	}
	.mobile-menu-toggle.is-open .hamburger-line:nth-child(2) {
		opacity: 0;
	}
	.mobile-menu-toggle.is-open .hamburger-line:nth-child(3) {
		transform: translateY(-0.4375rem) rotate(-45deg);
	}

	/* Panel — grid-rows 0fr → 1fr animates to its natural height */
	.mobile-navigation {
		display: grid;
		grid-template-rows: 0fr;
		transition: grid-template-rows 0.5s ease-in-out, visibility 0.5s;
		visibility: hidden;
	}

	.mobile-navigation.is-active {
		grid-template-rows: 1fr;
		visibility: visible;
	}

	.mobile-nav-inner {
		min-height: 0;
		max-height: calc(100dvh - 2 * var(--mo-layout-padding) - 3.75rem);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.admin-bar .mobile-nav-inner {
		max-height: calc(100dvh - 2 * var(--mo-layout-padding) - 3.75rem - 2rem);
	}

	.mobile-nav-tools {
		display: flex;
		flex-direction: column;
		gap: 0.9375rem; /* 15px */
		padding: 0.9375rem;
		background-color: var(--mo-color-subtle);
		border-top: 0.0625rem solid var(--mo-color-secondary);
		border-bottom: 0.0625rem solid var(--mo-color-secondary);
	}

	.mobile-search {
		position: relative;
		margin: 0;
	}

	.mobile-search svg {
		position: absolute;
		top: 50%;
		left: 0.9375rem;
		width: 1.25rem; /* 20px */
		height: auto;
		transform: translateY(-50%);
		pointer-events: none;
	}

	.mobile-search-field {
		width: 100%;
		height: 2.875rem; /* 46px */
		padding: 0 0.9375rem 0 3.125rem;
		border: 0;
		border-radius: 0;
		background-color: var(--mo-color-secondary);
		color: var(--mo-color-dark);
		font: inherit;
		font-size: 1.125rem;
		-webkit-appearance: none;
		appearance: none;
	}

	.mobile-search-field::placeholder {
		color: var(--mo-color-dark);
		opacity: 1;
	}

	.mobile-nav-buttons {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1.25rem; /* 20px */
	}

	.mobile-nav-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 2.875rem; /* 46px */
		padding: 0 0.5rem;
		font-size: 1rem;
		text-align: center;
	}

	.site-header .mobile-nav-btn--phone {
		background-color: var(--mo-color-dark);
		color: var(--mo-color-secondary);
		font-weight: 700;
	}

	.site-header .mobile-nav-btn--gift {
		background-color: var(--mo-color-primary);
		color: var(--mo-color-subtle);
	}

	/* Accordion menu */
	.mobile-menu,
	.mobile-menu .sub-menu,
	.mobile-utility-links {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.mobile-menu > li {
		display: grid;
		grid-template-columns: 1fr auto;
		background-color: var(--mo-color-light);
		border-bottom: 0.0625rem solid var(--mo-color-secondary);
	}

	.mobile-menu > li > a {
		display: flex;
		align-items: center;
		min-height: 3.0625rem; /* 50px row incl. border */
		padding: 0 0.875rem;
		font-size: 1.125rem;
	}

	.mobile-menu .sub-menu {
		grid-column: 1 / -1;
		display: none;
	}

	.mobile-menu .sub-menu li {
		background-color: var(--mo-color-subtle);
		border-top: 0.0625rem solid var(--mo-color-secondary);
	}

	.mobile-menu .sub-menu a {
		display: flex;
		align-items: center;
		min-height: 3.5625rem; /* 58px row incl. border */
		padding: 0 1.875rem; /* 30px */
		font-size: 1rem;
	}

	.mobile-menu .current-menu-item > a {
		text-decoration: underline;
		text-decoration-color: var(--mo-color-secondary);
		text-underline-offset: 0.25rem;
	}

	/* + / × toggle (Figma Group 682/683: 20px, 1px strokes) */
	.submenu-toggle {
		position: relative;
		width: 3.125rem;
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
	}

	.submenu-toggle::before,
	.submenu-toggle::after {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		width: 1.25rem;
		height: 0.0625rem;
		background-color: var(--mo-color-dark);
		transform: translate(-50%, -50%);
		transition: transform 0.3s ease-in-out;
	}

	.submenu-toggle::after {
		transform: translate(-50%, -50%) rotate(90deg);
	}

	.submenu-toggle[aria-expanded="true"]::before {
		transform: translate(-50%, -50%) rotate(45deg);
	}

	.submenu-toggle[aria-expanded="true"]::after {
		transform: translate(-50%, -50%) rotate(135deg);
	}

	/* Utility links at the foot of the panel */
	.mobile-utility-links li {
		background-color: var(--mo-color-subtle);
	}

	.mobile-utility-links li + li {
		border-top: 0.0625rem solid var(--mo-color-secondary);
	}

	.mobile-utility-links a {
		display: flex;
		min-height: 3.625rem; /* 58px */
		padding: 0 1.125rem; /* 18px */
		font-size: 1rem;
	}

	/* Content clears the floating card unless the page opens with a hero */
	#page {
		padding-top: calc(3.75rem + 2 * var(--mo-layout-padding));
	}

	body.has-hero-first #page {
		padding-top: 0;
	}
}

@media screen and (max-width: 782px) {
	.admin-bar .site-header {
		top: calc(var(--mo-layout-padding) + 2.875rem);
	}
	.admin-bar .mobile-nav-inner {
		max-height: calc(100dvh - 2 * var(--mo-layout-padding) - 3.75rem - 2.875rem);
	}
}

/*
================================================================================
Header Style End
================================================================================
*/


/*
================================================================================
Footer Style Start
Figma: Desktop › Footer component (1920) + Mobile homepage footer (402)
================================================================================
*/

.site-footer {
	color: var(--mo-color-dark);
}

.site-footer a {
	color: inherit;
	text-decoration: none;
}

.site-footer svg {
	display: block;
	flex-shrink: 0;
}

/* Content sits in a 1512px column (Figma columns start at x=204 on 1920) */
.footer-container {
	width: 100%;
	max-width: calc(94.5rem + 2 * var(--mo-layout-padding));
	margin: 0 auto;
	padding-left: var(--mo-layout-padding);
	padding-right: var(--mo-layout-padding);
}

/* ── Wordmark straddling the band: top ~58% on the page, rest on taupe ───── */

.footer-brand {
	background: linear-gradient(to bottom, transparent 58.4%, var(--mo-color-secondary) 58.4%);
	line-height: 0;
}

.footer-brand .footer-container {
	padding-left: var(--mo-layout-padding);
	padding-right: var(--mo-layout-padding);
}

.footer-logo-link {
	display: block;
	max-width: 75.3125rem; /* 1205px */
	margin: 0 auto;
}

.footer-logo {
	display: block;
	width: 100%;
	height: auto;
}

/* ── Main band: 4 equal columns ────────────────────────────────────────── */

.footer-main {
	padding: 3.125rem 0; /* 50px */
	background-color: var(--mo-color-secondary);
}

.footer-columns {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-column-title {
	margin-bottom: 2.1875rem; /* 35px */
	font-size: 1.875rem;      /* 30px — Figma uses 30 at every desktop width */
}

.footer-menu-list {
	display: flex;
	flex-direction: column;
	gap: 1.25rem; /* 20px */
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu-list a,
.footer-contact-list a {
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 0.0625rem no-repeat;
	transition: background-size var(--mo-transition);
}

.footer-menu-list a:hover,
.footer-menu-list .current-menu-item > a,
.footer-contact-list a:hover {
	background-size: 100% 0.0625rem;
}

/* Get in touch */
.footer-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5625rem; /* 25px */
	padding-top: 0.75rem; /* Figma: 12px lower than the menu links (padding — a margin would collapse into the title's) */
	margin-bottom: 1.5625rem;
}

.footer-buttons .site-btn {
	justify-content: center;
}

.site-footer .footer-buttons .btn-primary {
	color: var(--mo-color-dark);
}

.site-footer .footer-buttons .btn-secondary {
	color: var(--mo-color-light);
}

.site-footer .footer-buttons .btn-secondary:hover {
	color: var(--mo-color-dark);
}

.footer-buttons svg {
	width: 1.25rem; /* 20px */
	height: auto;
}

.footer-contact-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem; /* 24px */
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-contact-list li {
	display: grid;
	grid-template-columns: 1.5625rem 1fr; /* 25px icon column */
	column-gap: 0.9375rem;                 /* 15px → text at +40px */
	align-items: start;
}

.footer-contact-list svg {
	justify-self: center;
	width: auto;
	max-width: 1.5625rem;
	height: 1.5625rem;
}

.footer-contact-list li:nth-child(n+2) svg {
	margin-top: 0.0625rem;
}

.footer-contact-list address {
	font-style: normal;
}

.footer-social-list {
	display: flex;
	align-items: center;
	gap: 2.9375rem; /* 47px → icon centres 72px apart */
	margin: 2.5rem 0 0;
	padding: 0;
	list-style: none;
}

.footer-social-list a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.5625rem;
	height: 1.5625rem;
	transition: opacity var(--mo-transition);
}

.footer-social-list a:hover {
	opacity: 0.6;
}

.footer-social-list svg,
.footer-social-list img {
	width: auto;
	max-width: 1.5625rem;
	height: 1.5625rem;
}

/* ── Bottom bar: taupe at 50% over the cream page ─────────────────────── */

.footer-bottom {
	background-color: color-mix(in srgb, var(--mo-color-secondary) 50%, var(--mo-color-light));
}

.footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	min-height: 4.6875rem; /* 75px */
}

.footer-copyright-text p {
	margin: 0;
}

.footer-credit {
	display: inline-flex;
	align-items: center;
	gap: 1.75rem; /* 28px */
}

.footer-credit svg {
	width: 12.5rem; /* 200px */
	height: auto;
}

/* ── Tablet: 2 × 2 ─────────────────────────────────────────────────────── */

@media only screen and (max-width: 1199px) {
	.footer-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 3.125rem;
		column-gap: 1.25rem;
	}
}

/* ── Mobile (Figma 402) ───────────────────────────────────────────────── */

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

	.footer-main {
		padding: 3rem 0;
	}

	.footer-columns {
		row-gap: 3.125rem;
	}

	/* Get in touch leads on mobile; Site spans both columns */
	.footer-column--contact {
		grid-column: 1 / -1;
		order: -1;
	}

	.footer-column--site {
		grid-column: 1 / -1;
	}

	.footer-column--site .footer-menu-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 1.25rem;
	}

	.footer-column-title {
		margin-bottom: 0.9375rem;
		font-size: 1.4375rem; /* 23px */
	}

	.footer-menu-list {
		gap: 0.9375rem; /* 15px */
	}

	.footer-buttons {
		flex-direction: column;
		gap: 0.625rem; /* 10px */
		padding-top: 0;
		margin-bottom: 1.6875rem;
	}

	.footer-buttons .site-btn {
		width: 100%;
		font-size: 1rem;
	}

	.footer-contact-list li {
		grid-template-columns: 1.25rem 1fr;
	}

	.footer-contact-list svg {
		max-width: 1.25rem;
		height: 1.25rem;
	}

	.footer-social-list {
		justify-content: center;
		gap: 2.25rem; /* centres 61px apart */
		margin-top: 2.25rem;
	}

	.footer-bottom-inner {
		flex-direction: column;
		justify-content: center;
		gap: 1.5rem;
		padding-top: 1.5625rem;
		padding-bottom: 1.5625rem;
		text-align: center;
		font-size: 1.125rem;
	}

	.footer-copyright-text {
		max-width: 13.5rem; /* 216px — breaks after "Oaks." as in Figma (first line measures 209px) */
	}

	.footer-credit {
		flex-direction: column;
		gap: 0.625rem;
	}

	.footer-credit svg {
		width: 10.375rem; /* 166px */
	}
}

/*
================================================================================
Footer Style End
================================================================================
*/


/*
================================================================================
Hero Section Start — template-parts/sections/hero_section.php
Figma: Desktop › Homepage (visible 730px below the header) · Mobile › Homepage
================================================================================
*/

.hero-section {
	position: relative;
	z-index: 1; /* scroll line overlaps the next section */
	height: min(45.625rem, calc(100svh - var(--header-offset, 9.4375rem))); /* 730px, never taller than the screen */
	min-height: 34rem;
	color: var(--mo-color-light);
}

.hero-media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background-color: var(--mo-color-dark);
}

.hero-media picture,
.hero-image {
	display: block;
	width: 100%;
	height: 100%;
}

.hero-image {
	object-fit: cover;
}

/* Stacking inside the hero: media → overlay (1) → text + scroll prompt (2) → video controls (3) */

/* Overlay — Figma: black 40% (desktop) / 60% (mobile) */
.hero-media::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: rgba(0, 0, 0, 0.4);
	pointer-events: none;
}

/* Play/pause + mute sit above the overlay and the text, aligned to the page gutter */
.hero-media .video-autoplay-controls {
	z-index: 3;
	right: var(--mo-layout-padding);
	bottom: var(--mo-layout-padding);
}

/* Content block centred, lifted 60px so it clears the scroll prompt (Figma top: 133px) */
.hero-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding-bottom: 7.5rem; /* 120px */
	text-align: center;
}

.hero-icon {
	display: block;
	width: 5rem; /* 80px */
	margin-bottom: 1.5625rem; /* 25px */
	color: var(--mo-color-secondary);
}

.hero-icon svg {
	display: block;
	width: 100%;
	height: auto;
}

.hero-eyebrow {
	margin: 0 0 0.3125rem; /* 5px */
	color: var(--mo-color-secondary);
	font-size: 2.125rem; /* 34px */
	line-height: 1.2;
}

.hero-title {
	max-width: 74.625rem; /* 1194px */
	margin: 0;
	color: var(--mo-color-light);
}

/* Scroll prompt — label 119px above the hero's bottom edge; the line runs
   through a 166px window that overlaps the next section by 83px */
.hero-scroll {
	position: absolute;
	z-index: 2;
	top: calc(100% - 7.4375rem);
	left: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--mo-color-light);
	text-decoration: none;
	transform: translateX(-50%);
}

.hero-scroll-label {
	font-size: 1.125rem; /* 18px at every size (Figma) */
	white-space: nowrap;
}

.hero-scroll-line {
	position: relative;
	display: block;
	width: 0.125rem;          /* 2px */
	height: 10.375rem;        /* 166px window */
	margin-top: 0.5625rem;    /* 9px */
	overflow: hidden;
}

.hero-scroll-line::before {
	content: '';
	position: absolute;
	inset: 0;
	background-color: var(--mo-color-secondary);
	transform: translateY(-100%);
	animation: hero-scroll-line 1.6s ease-in-out infinite; /* Figma: 0.8s in, 0.8s out */
}

@keyframes hero-scroll-line {
	0%   { transform: translateY(-100%); }
	50%  { transform: translateY(0); }
	100% { transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
	.hero-scroll-line::before {
		animation: none;
		transform: none;
	}
}

/* The scroll prompt targets this; keeps the next section clear of the sticky header */
.hero-next-anchor {
	display: block;
	height: 0;
	scroll-margin-top: var(--header-offset, 0px);
}

/* ── Tablet: header floats over the hero ──────────────────────────────── */

@media only screen and (max-width: 1199px) {
	.hero-section {
		height: min(100svh, 50rem);
	}

	.hero-content {
		padding-top: calc(3.75rem + var(--mo-layout-padding)); /* clear the floating header card */
	}

	.hero-next-anchor {
		scroll-margin-top: calc(3.75rem + 2 * var(--mo-layout-padding));
	}
}

/* ── Mobile (Figma 402) ───────────────────────────────────────────────── */

@media only screen and (max-width: 767px) {
	.hero-section {
		height: 100svh;
		min-height: 37.5rem;
	}

	.hero-media::after {
		background-color: rgba(0, 0, 0, 0.6);
	}

	.hero-content {
		padding: 2.875rem 1.25rem 0; /* Figma: text block sits slightly below centre; 20px sides */
	}

	.hero-icon {
		display: none; /* not in the mobile design */
	}

	.hero-eyebrow {
		max-width: 15.5rem; /* 248px — "welcome to / moddershall oaks" on two lines */
		margin-bottom: 0;
		font-size: 1.75rem;  /* 28px */
		line-height: 1.5;    /* 42px */
	}

	.hero-title {
		max-width: 22.625rem; /* 362px — 4 lines, as in Figma */
	}

	/* Editor line breaks are for desktop; on phones the title wraps naturally
	   ("Luxury Spa & / Wedding / Venue in / Staffordshire") */
	.hero-title br {
		display: none;
	}
}

/*
================================================================================
Hero Section End
================================================================================
*/


/*
================================================================================
Link Cards Start — template-parts/sections/link_cards.php ("What we Offer")
Figma: Desktop › Homepage (compact: 6 × 283px at 1920) · Spa/Sleep Index (large: 4 × 436px)
       Mobile › Homepage (slider, 259px cards, 20px gap, arrows below)
Cards that don't fit one row become a Slick carousel (any width) — see --slides
================================================================================
*/

.link-cards {
	padding-top: 6.25rem; /* 100px */
}

/* Heading with a hairline underline running the width of the text */
/* The gap to the cards sits on the wrapper: the title is its only child, so the
   theme's `h2:last-child { margin-bottom: 0 }` would cancel it on the h2 */
.link-cards-head {
	margin-bottom: 3.125rem;     /* 50px to the cards */
}

.link-cards-title {
	width: fit-content;
	margin: 0;
	padding-bottom: 1.0625rem;   /* 17px to the line */
	border-bottom: 0.0625rem solid var(--mo-color-secondary);
}

/* One row of --slides columns. When there are more cards than columns,
   scripts.js (initStagePaddingCarousel, which reads --slides) turns the row into
   a Slick carousel showing --slides at a time; until then the extra cards sit
   hidden to the right, exactly where the carousel will have them (no layout
   shift). A row that fits simply stays a row. */
.link-cards-list {
	--slides: 6;
	display: flex;
	gap: 1.5625rem;          /* 25px — same as Slick's slide gap (slick-custom) */
	margin: 0;
	padding: 0;
	overflow: hidden;
	list-style: none;
}

.link-cards--large .link-cards-list {
	--slides: 4;
}

.link-cards-list > .link-card {
	flex: 0 0 calc((100% - (var(--slides) - 1) * 1.5625rem) / var(--slides));
	min-width: 0;
}

.link-cards-list.slick-initialized {
	display: block;          /* Slick's .slick-list must span the width */
}

/* Card */
.link-card {
	position: relative; /* containing block for the stretched link */
	display: flex;
	flex-direction: column;
}

.link-card-media {
	position: relative;
	aspect-ratio: 283 / 300;
	overflow: hidden;
	background-color: var(--mo-color-subtle);
}

.link-cards--large .link-card-media {
	aspect-ratio: 436 / 450;
}

.link-card-media picture,
.link-card-image {
	display: block;
	width: 100%;
	height: 100%;
}

.link-card-image {
	object-fit: cover;
}

/* Hover — Figma: gradient fades in over the image (black 60% → grey 60%), 0.5s */
.link-card-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 50%, rgba(201, 201, 201, 0.6) 100%);
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

.link-card:focus-within .link-card-media::after {
	opacity: 1;
}

/* Mouse only — on touch screens a tap/swipe counts as hover, so the overlay
   would fade in on every card dragged through the carousel */
@media (hover: hover) {
	.link-card:hover .link-card-media::after {
		opacity: 1;
	}
}

.link-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	margin-top: 1.25rem;               /* 20px image → line */
	padding-top: 1.25rem;              /* 20px line → title */
	border-top: 0.0625rem solid var(--mo-color-secondary);
}

.link-card-title {
	margin: 0 0 1.5625rem;             /* 25px to the button */
}

.link-cards--large .link-card-body {
	padding-top: 0.9375rem;            /* 15px */
}

.link-cards--large .link-card-title {
	margin-bottom: 0.875rem;           /* 14px to the description */
}

.link-card-description {
	margin: 0 0 1.25rem;               /* 20px to the button */
}

/* Button sits at the bottom so buttons line up across a row */
.link-card .link-card-btn {
	margin-top: auto;
}

.link-cards--compact .link-card .link-card-btn {
	align-self: stretch;               /* full width, text + arrow on the left */
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;           /* 37px (Figma compact card; btn-tertiary is 39px) */
}

/* Hovering anywhere on the card also gives the button its hover state
   (Figma button component: taupe → light stone #ecebe7) */
.link-card:focus-within .link-card-btn {
	background: var(--mo-color-subtle);
	border-color: var(--mo-color-secondary);
}

@media (hover: hover) {
	.link-card:hover .link-card-btn {
		background: var(--mo-color-subtle);
		border-color: var(--mo-color-secondary);
	}
}

/* Stretched link — the whole card is clickable; still one link / one tab stop */
.link-card-btn::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Prev / next — Slick's arrows; shown only while the carousel runs (and on
   mobile, where it always does), centred below it at every width */
.link-cards-nav {
	display: none;
	justify-content: center;
	gap: 4.125rem;                 /* 66px */
	margin-top: 1.875rem;          /* 30px */
}

.link-cards-list.slick-initialized + .link-cards-nav {
	display: flex;
}

.link-cards-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.125rem;               /* 50px */
	height: 3.125rem;
	padding: 0;
	border: 0.0625rem solid var(--mo-color-secondary);
	border-radius: 50%;
	background-color: var(--mo-color-light);
	color: var(--mo-color-dark);
	cursor: pointer;
	transition: background-color var(--mo-transition);
}

.link-cards-arrow:hover,
.link-cards-arrow:focus-visible {
	background-color: var(--mo-color-secondary);
}

.link-cards-arrow svg {
	width: 1.875rem;               /* 30px */
	height: auto;
}

.link-cards-arrow--prev svg {
	transform: scaleX(-1);
}

/* ── Narrower desktop / tablet: fewer per row so titles and buttons fit;
   the rest scroll in the carousel ── */

/* Compact: the longest button ("View Gym & Wellness") needs a ~250px card to
   stay on one line — 6 per row from 1800px (Figma 1920: 283px), 4 from 1200px,
   3 from 992px, 2 below */
@media only screen and (max-width: 1799px) {
	.link-cards--compact .link-cards-list {
		--slides: 4;
	}
}

@media only screen and (max-width: 1199px) {
	.link-cards--compact .link-cards-list {
		--slides: 3;
	}
}

@media only screen and (max-width: 991px) {
	.link-cards--compact .link-cards-list {
		--slides: 2;
	}
}

/* Large: 4 per row from 1400px, 3 from 1024px, 2 below */
@media only screen and (max-width: 1399px) {
	.link-cards--large .link-cards-list {
		--slides: 3;
	}
}

@media only screen and (max-width: 1023px) {
	.link-cards--large .link-cards-list {
		--slides: 2;
	}
}

/* ── Mobile: one card at a time, next one peeking in (stage padding) ─────
   The list carries .js-stage-padding: below 768px scripts.js adds
   .stagePaddingRight/.itemMargin, so the carousel gets the theme's stage
   padding. Spacing (25px gutter, 20px gap, 25% right stage padding) comes from
   moddershall-oaks-slick-custom.css. The section's side padding is removed
   (.layout-padding0) so the slider runs to the screen edge. */

@media only screen and (max-width: 767px) {
	.link-cards {
		padding-top: 6.75rem;          /* 108px (Figma mobile) */
	}

	.link-cards-head {
		margin-bottom: 2.1875rem;      /* 35px to the cards */
	}

	.link-cards-title {
		margin: 0 auto;                /* centred */
		padding-bottom: 0.625rem;      /* 10px to the line */
		text-align: center;
	}

	.link-cards--compact .link-cards-list,
	.link-cards--large .link-cards-list {
		--slides: 1;
	}

	/* Before Slick starts: lay the cards out exactly as the carousel will
	   (same slide width, gutter and gap as slick-custom's stagePaddingRight)
	   so there's no flash (no layout shift) */
	.link-cards-list:not(.slick-initialized) {
		gap: 1.25rem;                  /* 20px */
	}

	.link-cards-list:not(.slick-initialized) > .link-card {
		flex: 0 0 calc(75% - var(--mo-layout-padding)); /* = Slick's slide minus the 25% stage padding */
	}

	.link-cards-list:not(.slick-initialized) > .link-card:first-child {
		margin-left: var(--mo-layout-padding); /* 25px gutter */
	}

	.link-card-media,
	.link-cards--large .link-card-media {
		aspect-ratio: 259 / 275;
	}

	.link-card-body {
		margin-top: 0.9375rem;         /* 15px */
		padding-top: 0.9375rem;
	}

	.link-card-title {
		margin-bottom: 1.25rem;        /* 20px */
	}

	.link-cards--compact .link-card-title {
		font-size: 1.875rem;           /* Figma mobile keeps the 30px card title */
	}

	/* The carousel always runs on mobile — show the arrows from the start */
	.link-cards-nav {
		display: flex;
	}
}

/*
================================================================================
Link Cards End
================================================================================
*/


/*
================================================================================
Intro Text Start — template-parts/sections/intro_text.php
Figma: Desktop › Homepage ("Set in 72 acres…": 1820px panel, 100px padding,
       1511px text block, Playfair 54px centred) · Sleep Index (+ buttons, 50px below)
       Mobile › Homepage (352px panel, 50px / 25px padding, 23px text)
================================================================================
*/

.intro-text {
	padding-top: 6.25rem;            /* 100px */
}

.intro-text-panel {
	padding: 6.25rem 3.125rem;       /* 100px 50px */
	text-align: center;
}

.intro-text-body {
	max-width: 94.4375rem;           /* 1511px */
	margin: 0 auto;
	color: var(--mo-color-dark);
	font-family: var(--mo-font-heading);
	font-size: 3.375rem;             /* 54px */
	font-weight: 400;
	line-height: 1.2;
}

.intro-text-body p {
	margin: 0 0 0.5em;
}

.intro-text-body p:last-child {
	margin-bottom: 0;
}

/* Figma: the highlighted phrases ("spa treatments", "Lakeside Dining") are
   Playfair Italic in the gold accent */
.intro-text-body em,
.intro-text-body i {
	color: var(--mo-color-accent);
	font-style: italic;
}

/* Optional inline links keep the text colour, marked by a taupe underline */
.intro-text-body a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--mo-color-secondary);
	text-decoration-thickness: 0.0625rem;
	text-underline-offset: 0.15em;
	transition: text-decoration-color var(--mo-transition);
}

.intro-text-body a:hover,
.intro-text-body a:focus-visible {
	text-decoration-color: currentColor;
}

.intro-text-btns {
	justify-content: center;
	margin-top: 3.125rem;            /* 50px */
}

/* Steps down with the h2 scale until the mobile 23px */
@media only screen and (max-width: 1399px) {
	.intro-text-body {
		font-size: 3rem;             /* 48px */
	}
}

@media only screen and (max-width: 1199px) {
	.intro-text-panel {
		padding: 4.6875rem 2.5rem;   /* 75px 40px */
	}

	.intro-text-body {
		font-size: 2.5625rem;        /* 41px */
	}
}

@media only screen and (max-width: 991px) {
	.intro-text-body {
		font-size: 1.875rem;         /* 30px */
	}
}

@media only screen and (max-width: 767px) {
	.intro-text {
		padding-top: 3.125rem;       /* 50px */
	}

	.intro-text-panel {
		padding: 3.125rem 1.5625rem; /* 50px 25px */
	}

	.intro-text-body {
		font-size: 1.4375rem;        /* 23px */
	}

	.intro-text-btns {
		margin-top: 1.875rem;        /* 30px */
	}
}

/*
================================================================================
Intro Text End
================================================================================
*/


/*
================================================================================
Media Text Start — template-parts/sections/media_text.php
Figma: Desktop › Homepage ("overnight stays" … "wellness centre"): 1512px block =
       590×680 image + 744px content, image side alternating, 100px apart;
       oak leaf straddling the image's outer edge · Spa Index (on a stone panel)
       Mobile › Homepage (352×400 image first, centred title, arrows always on)
================================================================================
*/

.media-text {
	padding-top: 6.25rem;              /* 100px */
}

.media-text--panel .media-text-inner {
	padding: 6.25rem 3.125rem;         /* 100px 50px */
}

.media-text-grid {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	max-width: 94.5rem;                /* 1512px */
	margin: 0 auto;
}

.media-text--image-right .media-text-grid {
	flex-direction: row-reverse;       /* image comes first in the markup (mobile order) */
}

.media-text-media {
	position: relative;
	flex: 0 0 39.0212%;                /* 590 / 1512 */
}

.media-text-media picture {
	display: block;
}

.media-text-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 590 / 680;
	object-fit: cover;
}

/* Video: the same box; the renderer's is-cover fills it like object-fit */
.media-text-video-frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 590 / 680;
}

/* Decorative oak leaf, half over the image's outer edge, 50px down */
.media-text-leaf {
	position: absolute;
	top: 3.125rem;                     /* 50px */
	z-index: 1;
	width: 5rem;                       /* 80px */
	color: var(--mo-color-secondary);
	pointer-events: none;
}

.media-text-leaf svg {
	display: block;
	width: 100%;
	height: auto;
}

.media-text-leaf {
	/* 40px past the image edge (Figma 1920), but never closer than 10px to the
	   screen edge when the gutter narrows */
	--leaf-overhang: max(-2.5rem, calc(0.625rem - var(--mo-layout-padding)));
}

.media-text--image-right .media-text-leaf {
	right: var(--leaf-overhang);
}

.media-text--image-left .media-text-leaf {
	left: var(--leaf-overhang);
	transform: scaleX(-1);             /* Figma mirrors it on left-hand images */
}

.media-text-content {
	flex: 0 0 49.2063%;                /* 744 / 1512 */
}

/* Script title with a hairline the width of the text. The gap below sits on
   the wrapper (theme: h2:last-child has no bottom margin) */
.media-text-head {
	margin-bottom: 3.125rem;           /* 50px to the text */
}

.media-text-title {
	width: fit-content;
	margin: 0;
	padding-bottom: 1.25rem;           /* 20px to the line */
	border-bottom: 0.0625rem solid var(--mo-color-secondary);
}

/* ── Link list (Figma "Hover-button-reveal") ──────────────────────────── */

.media-text-links {
	margin: 5rem 0 0;                  /* 80px below the text */
	padding: 0;
	list-style: none;
	border-top: 0.0625rem solid var(--mo-color-secondary);
}

.media-text-head + .media-text-links {
	margin-top: 0;                     /* no text: the head's 50px is enough */
}

.media-text-links > li {
	border-bottom: 0.0625rem solid var(--mo-color-secondary);
}

.media-text-link {
	position: relative;
	z-index: 0;                        /* own stacking context for the fill */
	display: flex;
	align-items: center;
	min-height: 3.6875rem;             /* 59px + 1px line = 60px rows */
	padding: 0 1.5625rem;              /* 25px */
	color: var(--mo-color-dark);
	font-family: var(--mo-font-heading);
	font-size: 1.4375rem;              /* 23px */
	line-height: 1.2;
	text-decoration: none;
}

/* Taupe fill — wipes in from the left on hover (desktop, below) */
.media-text-link::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: var(--mo-color-secondary);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.4s ease;
}

.media-text-link-icon {
	flex: 0 0 auto;
	width: 1.5625rem;                  /* 25px */
	margin-right: 0.9375rem;           /* 15px */
	color: var(--mo-color-accent);
}

.media-text-link-icon svg,
.media-text-link-icon img,
.media-text-link-arrow svg {
	display: block;
	width: 100%;
	height: auto;
}

.media-text-link-arrow {
	flex: 0 0 auto;
	width: 1.875rem;                   /* 30px */
	margin-left: 1.5625rem;            /* 25px */
	transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover preview — 200×120, 50px in from the row's right end, centred on it */
.media-text-link-preview {
	display: none;
	position: absolute;
	top: 50%;
	right: 3.125rem;                   /* 50px */
	z-index: 1;
	width: 12.5rem;                    /* 200px */
	height: 7.5rem;                    /* 120px */
	opacity: 0;
	transform: translate(-1.5625rem, -50%); /* slides 25px right as it appears */
	transition: opacity 0.3s ease, transform 0.4s ease;
	pointer-events: none;
}

.media-text-link-preview picture,
.media-text-link-preview img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Desktop pointers: the arrow and preview wait for hover. Touch screens and
   phones keep the arrow visible (Figma mobile) and get no preview. */
@media (hover: hover) and (min-width: 768px) {
	.media-text-link-arrow {
		opacity: 0;
		transform: translateX(-0.9375rem); /* 15px */
	}

	.media-text-link-preview {
		display: block;
	}

	.media-text-link:hover::before,
	.media-text-link:focus-visible::before {
		transform: scaleX(1);
	}

	.media-text-link:hover .media-text-link-arrow,
	.media-text-link:focus-visible .media-text-link-arrow {
		opacity: 1;
		transform: none;
	}

	.media-text-link:hover .media-text-link-preview,
	.media-text-link:focus-visible .media-text-link-preview {
		opacity: 1;
		transform: translate(0, -50%);
	}
}

/* Keyboard users get the fill even on touch-first devices */
.media-text-link:focus-visible::before {
	transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
	.media-text-link::before,
	.media-text-link-arrow,
	.media-text-link-preview {
		transition: none;
	}
}

/* ── Mobile: image above, centred title, compact rows ───────────────── */

@media only screen and (max-width: 767px) {
	.media-text {
		padding-top: 3.125rem;         /* 50px */
	}

	.media-text--panel .media-text-inner {
		padding: 3.125rem 1.5625rem;   /* 50px 25px */
	}

	.media-text-grid,
	.media-text--image-right .media-text-grid {
		flex-direction: column;
		align-items: stretch;
	}

	.media-text-image,
	.media-text-video-frame {
		aspect-ratio: 352 / 400;
	}

	/* 48×60 leaf, half above the image, 10px in from its outer edge */
	.media-text-leaf {
		top: -1.875rem;                /* -30px */
		width: 3rem;                   /* 48px */
	}

	.media-text--image-right .media-text-leaf {
		right: 0.625rem;               /* 10px */
	}

	.media-text--image-left .media-text-leaf {
		left: 0.625rem;
	}

	.media-text-content {
		margin-top: 1.75rem;           /* 28px below the image */
	}

	.media-text-head {
		display: flex;
		justify-content: center;
		margin-bottom: 1.5625rem;      /* 25px */
	}

	.media-text-title {
		padding-bottom: 0.4375rem;     /* 42px line box + 7px = Figma 49px to the line */
		text-align: center;
	}

	.media-text-links {
		margin-top: 1.5625rem;         /* 25px */
	}

	.media-text-link {
		min-height: 3rem;              /* 48px + 1px line = 49px rows */
		padding: 0;
		font-size: 1.125rem;           /* 18px */
	}

	.media-text-link-icon {
		width: 1.25rem;                /* 20px */
		margin-right: 0.625rem;        /* 10px */
	}

	.media-text-link-arrow {
		width: 1.5625rem;              /* 25px */
		margin-left: 0.9375rem;        /* 15px */
	}
}

/*
================================================================================
Media Text End
================================================================================
*/


/*
================================================================================
Logo Grid Start — template-parts/sections/logo_grid.php ("Don't just take our word for it...")
Figma: Desktop › Homepage (1820px stone panel, 50px padding, 54px title,
       6 × 150×100 logos per row, 61px / 50px gaps)
       Mobile › Homepage (full-bleed panel, 40/50px padding, 90×60 logos 15px
       apart scrolling past edge to edge — Slick ticker, see scripts.js)
================================================================================
*/

.logo-grid {
	padding-top: 6.25rem;            /* 100px */
}

.logo-grid-panel {
	padding: 3.125rem 3.125rem;      /* 50px */
}

/* The gap sits on the wrapper (theme: h2:last-child has no bottom margin) */
.logo-grid-head {
	margin-bottom: 3.5625rem;        /* 57px to the logos */
	text-align: center;
}

.logo-grid-title {
	margin: 0;
}

/* Static grid: 6 per row, centred. --slides is high so the init never turns
   it into a carousel above mobile, however many logos there are. */
.logo-grid-list {
	--slides: 99;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 3.125rem 3.8125rem;         /* 50px rows, 61px columns */
	max-width: 75.3125rem;           /* 6 × 150 + 5 × 61 = 1205px */
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

/* Each logo carries the panel colour so the multiply blend still has
   something to blend with inside Slick's transformed track */
.logo-grid-item {
	flex: 0 0 9.375rem;              /* 150px */
	vertical-align: top;             /* Slick makes items inline-block — no baseline gap below */
	background-color: var(--mo-color-subtle);
}

.logo-grid-link {
	display: block;
}

.logo-grid-item picture,
.logo-grid-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: contain;
}

.logo-grid-image {
	mix-blend-mode: multiply;        /* Figma: white logo backgrounds drop out */
}

@media only screen and (max-width: 1199px) {
	.logo-grid-list {
		gap: 2.5rem 2.5rem;          /* 40px — keeps 6 a row down to ~1100px, then wraps */
	}
}

@media only screen and (max-width: 767px) {
	.logo-grid {
		padding-top: 3.125rem;       /* 50px */
	}

	/* Full bleed (.layout-padding0); the title keeps the 25px gutter */
	.logo-grid-panel {
		padding: 2.5rem 0 3.125rem;  /* 40px top, 50px bottom */
	}

	.logo-grid-head {
		margin-bottom: 2.0625rem;    /* 33px */
	}

	/* One row scrolling past (Slick ticker); 15px between logos */
	.logo-grid-list {
		--slides: 4;
		--slide-gap: 0.9375rem;      /* 15px */
		display: flex;
		flex-wrap: nowrap;
		gap: 0.9375rem;
		max-width: none;
		overflow: hidden;            /* before Slick starts: same row, no layout shift */
	}

	.logo-grid-list:not(.slick-initialized) > .logo-grid-item {
		flex: 0 0 calc(25% - 0.703125rem); /* 4 across, as Slick will show them */
	}
}

/*
================================================================================
Logo Grid End
================================================================================
*/


/*
================================================================================
Newsletter Sign Up Start — template-parts/sections/newsletter_signup.php
Figma: Desktop › Homepage (1820px image, 719px card inset 25px from its right,
       top and bottom, 50px card padding) · Mobile › Homepage (full-bleed tall
       image, card 300px down and 25px in, 25px card padding)
Field styles: moddershall-oaks-form.css (theme forms follow this design)
================================================================================
*/

.newsletter-signup {
	padding-top: 6.25rem;              /* 100px */
}

.newsletter-signup-inner {
	position: relative;
	display: flex;
	justify-content: flex-end;
	padding: 1.5625rem;                /* 25px around the card */
}

.newsletter-signup-media {
	position: absolute;
	inset: 0;
}

.newsletter-signup-media picture,
.newsletter-signup-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.newsletter-signup-card {
	position: relative;                /* above the image */
	width: 100%;
	max-width: 44.9375rem;             /* 719px */
	padding: 3.125rem;                 /* 50px */
	background-color: rgb(245 243 241 / 0.95); /* --mo-color-light at 95% (Figma) */
}

.newsletter-signup-title {
	margin: 0 0 0.875rem;              /* 14px to the text */
}

.newsletter-signup-text {
	margin: 0 0 1.9375rem;             /* 31px to the first field */
}

/* ── Form layout (field look comes from the theme form styles) ───────── */

.newsletter-signup-form .form-field {
	margin-bottom: 1.4375rem;          /* 23px between fields */
}

.newsletter-signup-form .form-consents {
	margin-top: 0.1875rem;             /* + 23px = 26px below the last line */
}

/* CF7 wraps each checkbox in list-item spans; stack them 5px apart */
.newsletter-signup-form .form-consents .wpcf7-list-item {
	display: block;
	margin: 0 0 0.3125rem;
}

.newsletter-signup-form .wpcf7-submit {
	margin-top: 2.6875rem;             /* + the last 5px = 48px (Figma) */
}

@media only screen and (max-width: 767px) {
	.newsletter-signup {
		padding-top: 3.125rem;         /* 50px */
	}

	/* Full bleed (.layout-padding0); the image shows 300px above the card */
	.newsletter-signup-inner {
		padding: 18.75rem 1.5625rem 1.5625rem; /* 300px 25px 25px */
	}

	.newsletter-signup-card {
		padding: 1.5625rem;            /* 25px */
	}

	.newsletter-signup-title {
		margin-bottom: 1rem;           /* 16px */
	}

	.newsletter-signup-text {
		margin-bottom: 1.5625rem;      /* 25px */
	}

	.newsletter-signup-form .wpcf7-submit {
		margin-top: 1.5625rem;
	}
}

/*
================================================================================
Newsletter Sign Up End
================================================================================
*/
