/*
Theme Name: Golf Marketing
Theme URI: https://istdigital.com.au
Author: ist Digital
Author URI: https://istdigital.com.au
Description: Custom theme for Golf Marketing, a specialist division of ist Digital. Includes a one-click setup (Appearance > Golf Marketing setup) that creates every page, post, menu & image, with SEO titles, descriptions & schema.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: golf-marketing
*/

/* Fonts (self-hosted, SIL Open Font License) */
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 300; font-display: swap; src: url('assets/fonts/cormorant-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/cormorant-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/cormorant-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 300; font-display: swap; src: url('assets/fonts/cormorant-latin-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/cormorant-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url('assets/fonts/jost-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/jost-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/jost-latin-500-normal.woff2') format('woff2'); }

:root {
	--gm-cream: #F6F1E1;
	--gm-cream-2: #ECE4CC;
	--gm-card: #FBF8EE;
	--gm-ink: #1C2A14;
	--gm-body: #2E3A26;
	--gm-muted: #4A5640;
	--gm-forest: #2C4A1C;
	--gm-forest-deep: #1B2E12;
	--gm-heading: #24401A;
	--gm-sand: #D8BF8A;
	--gm-brass: #8A6A2E;
	--gm-brass-deep: #6F5420;
	--gm-line: #D9CFB2;
	--gm-card-line: #DDD3B6;
	--gm-nav-line: #E3DAC0;
	--gm-footer-text: #E6E3CF;
	--gm-serif: 'Cormorant', 'Didot', Georgia, serif;
	--gm-sans: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
}

/* Base */
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--gm-cream);
	color: var(--gm-ink);
	font-family: var(--gm-sans);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
a { color: var(--gm-forest); }
a:hover { color: var(--gm-forest-deep); }
img { display: block; max-width: 100%; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.gm-plus { transition: transform 0.2s ease; }
details[open] .gm-plus { transform: rotate(45deg); }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--gm-brass); outline-offset: 3px; border-radius: 6px; }
.gm-dark a:focus-visible,
.site-footer a:focus-visible,
.gm-cta-band a:focus-visible,
.gm-home-hero a:focus-visible { outline-color: var(--gm-sand); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: -9999px; top: 16px; z-index: 1000;
	padding: 12px 20px; border-radius: 999px;
	background: var(--gm-ink); color: var(--gm-cream);
	font-size: 15px; font-weight: 500; text-decoration: none;
}
.skip-link:focus { left: 16px; color: var(--gm-cream); }

.gm-site { position: relative; }
main:focus { outline: none; }

/* Header & navigation */
.site-header { padding: 20px 16px 8px; box-sizing: border-box; position: relative; z-index: 20; }
.gm-nav {
	margin: 0 auto; max-width: 1080px; box-sizing: border-box;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 8px 8px 8px 24px;
	background: var(--gm-card); border: 1px solid var(--gm-nav-line); border-radius: 999px;
}
.gm-front .site-header { position: absolute; top: 36px; left: 0; right: 0; padding: 0 32px; }
.gm-front .gm-nav { background: rgba(246, 241, 225, 0.95); border-color: transparent; }
.gm-brand {
	display: flex; align-items: baseline; gap: 7px; min-height: 44px; padding-top: 8px; box-sizing: border-box;
	font-family: var(--gm-serif); font-size: 24px; line-height: 1; color: var(--gm-ink);
	text-decoration: none; white-space: nowrap;
}
.gm-brand:hover { color: var(--gm-ink); }
.gm-brand-golf { font-style: italic; font-weight: 400; }
.gm-brand-mk { font-weight: 500; font-size: 18px; letter-spacing: 0.16em; text-transform: uppercase; }
.gm-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; font-size: 14px; letter-spacing: 0.02em; }
.gm-menu a { display: inline-block; padding: 12px 0; color: var(--gm-ink); text-decoration: none; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.gm-menu a:hover,
.gm-menu .current-menu-item > a,
.gm-menu .current_page_item > a,
.gm-menu .current-menu-ancestor > a,
.gm-menu .current_page_parent > a,
.gm-menu .current-page-ancestor > a { text-decoration: underline; }
.gm-nav-actions { display: flex; align-items: center; gap: 8px; }
.gm-button-dark,
.gm-nav-cta {
	display: flex; align-items: center; min-height: 44px; padding: 0 22px; box-sizing: border-box;
	border-radius: 999px; background: var(--gm-forest); color: var(--gm-cream);
	font-size: 14px; font-weight: 500; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
}
.gm-button-dark:hover,
.gm-nav-cta:hover { background: var(--gm-forest-deep); color: var(--gm-cream); }
.gm-menu-toggle {
	display: none; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border: 1px solid var(--gm-nav-line); border-radius: 999px;
	background: transparent; color: var(--gm-ink); cursor: pointer;
}
.gm-menu-toggle svg { display: block; }
.gm-menu-toggle[aria-expanded="true"] .gm-icon-open,
.gm-menu-toggle[aria-expanded="false"] .gm-icon-close { display: none; }
.gm-mobile-menu {
	max-width: 1080px; margin: 8px auto 0; box-sizing: border-box;
	padding: 8px 24px 20px; border-radius: 24px;
	background: var(--gm-card); border: 1px solid var(--gm-nav-line);
	box-shadow: 0 24px 48px -28px rgba(28, 42, 20, 0.45);
}
.gm-mobile-menu[hidden] { display: none; }
.gm-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.gm-mobile-menu li a {
	display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--gm-line);
	color: var(--gm-ink); font-size: 17px; text-decoration: none;
}
.gm-mobile-menu .gm-button-dark { margin-top: 18px; justify-content: center; min-height: 52px; font-size: 15px; }

@media (max-width: 920px) {
	.gm-navlinks { display: none !important; }
	.gm-menu-toggle { display: inline-flex; }
}
@media (max-width: 600px) {
	.gm-phone2 { display: none !important; }
	.gm-front .site-header { padding: 0 24px; }
}
@media (max-width: 480px) {
	.gm-nav { padding-left: 18px; }
	.gm-nav-cta { display: none; }
	.gm-brand { font-size: 22px; }
	.gm-brand-mk { font-size: 16px; }
}

/* Home hero: leave room for the overlaid header */
.gm-home-hero > div:not(.wp-block-group__inner-container),
.gm-home-hero > .wp-block-group__inner-container > div { padding-top: 84px; box-sizing: border-box; }

/* Page content (design pages are full-width HTML blocks) */
.gm-page-content > *:first-child { margin-top: 0; }
.entry-content-blocks { display: block; }

/* Default pages (legal & any new page written in the editor) */
.gm-page-default { max-width: 860px; margin: 0 auto; padding: 72px 24px 120px; box-sizing: border-box; }
.gm-page-default .gm-crumbs { margin-bottom: 20px; }
.gm-page-default .gm-page-title {
	margin: 0 0 32px; font-family: var(--gm-serif); font-weight: 300;
	font-size: clamp(44px, 5.4vw, 80px); line-height: 1; color: var(--gm-heading);
}

/* Breadcrumbs */
.gm-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; letter-spacing: 0.06em; color: var(--gm-brass-deep); }
.gm-crumbs a { color: var(--gm-brass-deep); }

/* Long-form text: posts & default pages */
.gm-prose {
	display: flex; flex-direction: column; gap: 24px;
	font-size: 18px; line-height: 1.8; color: var(--gm-body);
}
.gm-prose > * { margin: 0; }
.gm-prose h2 { margin: 24px 0 0; font-family: var(--gm-serif); font-weight: 400; font-size: 36px; line-height: 1.15; color: var(--gm-heading); }
.gm-prose h3 { margin: 12px 0 0; font-family: var(--gm-serif); font-weight: 400; font-size: 28px; line-height: 1.2; color: var(--gm-heading); }
.gm-prose h4 { margin: 8px 0 0; font-size: 18px; font-weight: 500; color: var(--gm-ink); }
.gm-prose ul,
.gm-prose ol { margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.gm-prose li > ul,
.gm-prose li > ol { margin-top: 10px; }
.gm-prose strong,
.gm-prose b { font-weight: 500; }
.gm-prose a { color: var(--gm-forest); text-underline-offset: 4px; }
.gm-prose blockquote { margin: 8px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--gm-sand); font-family: var(--gm-serif); font-style: italic; font-size: 26px; line-height: 1.4; color: var(--gm-heading); }
.gm-prose blockquote p { margin: 0; }
.gm-prose img { height: auto; border-radius: 18px; }
.gm-prose figure { margin: 8px 0; }
.gm-prose figcaption { margin-top: 10px; font-size: 14px; color: var(--gm-muted); }
.gm-prose hr { width: 100%; border: 0; border-top: 1px solid var(--gm-line); }
.gm-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.gm-prose th,
.gm-prose td { padding: 10px 12px; border-bottom: 1px solid var(--gm-line); text-align: left; vertical-align: top; }
.gm-prose .gm-short-version {
	display: flex; flex-direction: column; gap: 14px;
	padding: 28px 30px; border-radius: 22px; background: var(--gm-cream-2);
}
.gm-prose .gm-short-version > * { margin: 0; }
.gm-prose .gm-short-version ul { padding-left: 20px; gap: 8px; font-size: 17px; line-height: 1.6; }
.gm-eyebrow { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gm-brass-deep); }

/* Single post */
.gm-article-header { padding: 64px 0 0; }
.gm-article-header-inner { max-width: 860px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 22px; }
.gm-article-title { margin: 0; font-family: var(--gm-serif); font-weight: 300; font-size: clamp(40px, 4.8vw, 68px); line-height: 1.04; color: var(--gm-heading); text-wrap: balance; }
.gm-standfirst { margin: 0; font-size: 21px; line-height: 1.6; font-weight: 300; color: var(--gm-muted); }
.gm-byline { margin: 0; font-size: 15px; color: var(--gm-muted); }
.gm-article-image { max-width: 1240px; margin: 48px auto 0; padding: 0 24px; box-sizing: border-box; }
.gm-article-image-frame { position: relative; aspect-ratio: 21 / 9; border-radius: 28px; overflow: hidden; background: var(--gm-forest); }
.gm-article-image-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
@media (max-width: 600px) { .gm-article-image-frame { aspect-ratio: 4 / 3; border-radius: 22px; } }
.gm-article-body { max-width: 720px; margin: 0 auto; padding: 64px 24px 0; box-sizing: border-box; }
.gm-author-box { display: flex; gap: 20px; align-items: center; margin-top: 56px; padding: 24px 0; border-top: 1px solid var(--gm-line); border-bottom: 1px solid var(--gm-line); }
.gm-author-photo { flex: none; width: 64px; height: 64px; border-radius: 999px; overflow: hidden; background: var(--gm-cream-2); box-sizing: border-box; }
.gm-author-initials { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-family: var(--gm-serif); font-size: 24px; letter-spacing: 0.04em; color: var(--gm-heading); }
.gm-author-photo img { width: 100%; height: 100%; object-fit: cover; }
.gm-author-name { display: block; font-size: 16px; font-weight: 500; }
.gm-author-bio { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; font-weight: 300; color: var(--gm-muted); }
.gm-related { padding: 96px 0 120px; }
.gm-related-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.gm-related h2 { margin: 0 0 32px; font-family: var(--gm-serif); font-weight: 300; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; text-transform: uppercase; color: var(--gm-heading); }
.gm-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 28px; }
.gm-related-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 22px; border: 1px solid var(--gm-card-line); background: var(--gm-card); color: var(--gm-ink); text-decoration: none; }
.gm-related-card:hover { color: var(--gm-ink); border-color: var(--gm-sand); }
.gm-related-cat { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gm-brass-deep); }
.gm-related-title { font-family: var(--gm-serif); font-size: 28px; line-height: 1.15; }

/* Insights listing */
.gm-listing-head { padding: 72px 0 0; }
.gm-listing-head-grid { max-width: 1240px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 24px 72px; align-items: end; }
.gm-listing-head-title { display: flex; flex-direction: column; gap: 20px; }
.gm-listing-title { margin: 0; font-family: var(--gm-serif); font-weight: 300; font-size: clamp(52px, 7vw, 104px); line-height: 0.95; color: var(--gm-heading); }
.gm-listing-intro { margin: 0; font-size: 18px; line-height: 1.7; font-weight: 300; color: var(--gm-muted); }
.gm-topics-wrap { max-width: 1240px; margin: 40px auto 0; padding: 0 24px; box-sizing: border-box; }
.gm-topics { list-style: none; margin: 0; padding: 0 0 28px; display: flex; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--gm-line); }
.gm-topics a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; box-sizing: border-box; border-radius: 999px; border: 1px solid #C9BD9B; color: var(--gm-ink); font-size: 14px; text-decoration: none; }
.gm-topics a:hover { border-color: var(--gm-forest); }
.gm-topics a[aria-current="page"] { background: var(--gm-forest); border-color: var(--gm-forest); color: var(--gm-cream); }
.gm-featured { padding: 48px 0 0; }
.gm-featured-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.gm-featured-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); border-radius: 28px; overflow: hidden; background: var(--gm-forest); color: var(--gm-cream); }
.gm-featured-media { position: relative; min-height: 420px; background: var(--gm-forest-deep); }
.gm-featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.gm-featured-body { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.gm-featured-kicker { margin: 0; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gm-sand); }
.gm-featured-title { margin: 0; font-family: var(--gm-serif); font-weight: 300; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; text-wrap: balance; }
.gm-featured-title a { color: var(--gm-cream); text-decoration: none; }
.gm-featured-title a:hover { color: var(--gm-cream); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.gm-featured-excerpt { margin: 0; font-size: 17px; line-height: 1.65; font-weight: 300; color: #DCD9C4; }
.gm-featured-meta { margin: 0; font-size: 14px; color: #DCD9C4; }
.gm-button-light { align-self: flex-start; display: flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: 999px; background: var(--gm-cream); color: var(--gm-ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.gm-button-light:hover { background: #FFFFFF; color: var(--gm-ink); }
.gm-grid-section { padding: 32px 0 120px; }
.gm-post-grid { max-width: 1240px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 32px; }
.gm-card { display: flex; flex-direction: column; gap: 16px; }
.gm-card-media { display: block; position: relative; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: var(--gm-forest); }
.gm-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: transform 0.4s ease; }
.gm-card-media:hover img { transform: scale(1.03); }
.gm-card-cat { margin: 8px 0 0; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gm-brass-deep); }
.gm-card-title { margin: 0; font-family: var(--gm-serif); font-weight: 400; font-size: 34px; line-height: 1.1; }
.gm-card-title a { color: var(--gm-ink); text-decoration: none; }
.gm-card-title a:hover { color: var(--gm-forest); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.gm-card-excerpt { margin: 0; font-size: 16px; line-height: 1.6; font-weight: 300; color: var(--gm-muted); }
.gm-card-meta { margin: 0; font-size: 14px; color: var(--gm-muted); }
.gm-pagination { max-width: 1240px; margin: 56px auto 0; padding: 0 24px; box-sizing: border-box; }
.gm-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; box-sizing: border-box; border-radius: 999px; border: 1px solid #C9BD9B; color: var(--gm-ink); text-decoration: none; font-size: 15px; }
.gm-pagination .page-numbers.current { background: var(--gm-forest); border-color: var(--gm-forest); color: var(--gm-cream); }
.gm-empty { max-width: 1240px; margin: 0 auto; padding: 48px 24px 120px; box-sizing: border-box; font-size: 18px; color: var(--gm-muted); }

/* CTA band */
.gm-cta-band { color: var(--gm-cream); padding: 0 16px 16px; box-sizing: border-box; }
.gm-cta-inner { position: relative; overflow: hidden; border-radius: 40px; background: var(--gm-forest); min-height: 540px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 104px 24px; box-sizing: border-box; }
.gm-cta-inner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 40%; opacity: 0.32; }
.gm-cta-shade { position: absolute; inset: 0; background: rgba(16, 30, 10, 0.3); }
.gm-cta-content { position: relative; z-index: 1; max-width: 780px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.gm-cta-kicker { margin: 0; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gm-sand); }
.gm-cta-title { margin: 0; font-family: var(--gm-serif); font-weight: 300; font-size: clamp(42px, 6vw, 84px); line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; text-wrap: balance; }
.gm-cta-text { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.6; font-weight: 300; color: var(--gm-footer-text); }
.gm-cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 8px; }
.gm-cta-actions .gm-button-light { align-self: auto; min-height: 52px; padding: 0 32px; letter-spacing: 0.02em; }
.gm-cta-phone { display: flex; align-items: center; min-height: 44px; color: var(--gm-cream); font-size: 15px; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.gm-cta-phone:hover { color: #FFFFFF; }

/* Footer */
.site-footer { background: var(--gm-forest-deep); color: var(--gm-footer-text); padding: 88px 0 32px; }
.gm-footer-inner { max-width: 1360px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.gm-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 48px 40px; }
.gm-footer-brand { display: flex; flex-direction: column; gap: 18px; }
.gm-footer-logo { margin: 0; display: flex; align-items: baseline; gap: 8px; font-family: var(--gm-serif); font-size: 32px; line-height: 1; color: var(--gm-cream); }
.gm-footer-logo .gm-brand-mk { font-size: 23px; }
.gm-footer-about { margin: 0; max-width: 260px; font-size: 15px; line-height: 1.6; font-weight: 300; }
.gm-footer-parent { display: flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--gm-sand); text-underline-offset: 5px; }
.gm-footer-parent:hover { color: var(--gm-cream); }
.gm-footer-col { display: flex; flex-direction: column; gap: 2px; }
.gm-footer-heading { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gm-sand); }
.gm-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.gm-footer-col a { display: inline-block; padding: 8px 0; font-size: 15px; font-weight: 300; color: var(--gm-footer-text); text-decoration: none; }
.gm-footer-col a:hover { color: var(--gm-cream); text-decoration: underline; text-underline-offset: 5px; }
.gm-footer-contact { display: flex; flex-direction: column; gap: 14px; }
.gm-footer-contact .gm-footer-heading { margin-bottom: 2px; }
.gm-footer-contact address { font-style: normal; font-size: 15px; line-height: 1.6; font-weight: 300; }
.gm-footer-contact a { font-size: 15px; color: var(--gm-cream); text-underline-offset: 5px; }
.gm-footer-contact span { font-size: 15px; font-weight: 300; }
.gm-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 72px; padding-top: 24px; border-top: 1px solid rgba(230, 227, 207, 0.2); font-size: 13px; font-weight: 300; }
.gm-footer-legal { display: flex; gap: 24px; }
.gm-footer-legal a { color: var(--gm-footer-text); }

/* Enquiry form */
.gm-form {
	display: flex; flex-direction: column; gap: 22px;
	padding: clamp(28px, 4vw, 48px); border-radius: 28px;
	background: var(--gm-card); border: 1px solid var(--gm-card-line);
	box-shadow: 0 30px 60px -40px rgba(28, 42, 20, 0.4);
	scroll-margin-top: 24px;
}
.gm-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; }
.gm-field { display: flex; flex-direction: column; gap: 8px; }
.gm-field label,
.gm-form legend { font-size: 14px; font-weight: 500; color: var(--gm-ink); }
.gm-field input,
.gm-field select,
.gm-field textarea {
	min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid #C9BD9B;
	background: #FFFFFF; font: inherit; font-size: 16px; color: var(--gm-ink); box-sizing: border-box; width: 100%;
}
.gm-field textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
.gm-form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; }
.gm-form legend { padding: 0; margin-bottom: 12px; }
.gm-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px 16px; }
.gm-checks label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 300; }
.gm-checks input { width: 20px; height: 20px; margin: 0; accent-color: var(--gm-forest); }
.gm-form-submit {
	align-self: flex-start; min-height: 52px; padding: 0 34px; border: 0; border-radius: 999px;
	background: var(--gm-forest); color: var(--gm-cream); font: inherit; font-size: 15px; font-weight: 500; letter-spacing: 0.02em; cursor: pointer;
}
.gm-form-submit:hover { background: var(--gm-forest-deep); }
.gm-form-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--gm-muted); }
.gm-form-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.gm-notice { margin: 0; padding: 16px 20px; border-radius: 14px; font-size: 16px; line-height: 1.5; }
.gm-notice-ok { background: #DCE8D2; color: var(--gm-forest-deep); border: 1px solid #B7CDA6; }
.gm-notice-error { background: #F6DCD2; color: #6B1F0E; border: 1px solid #E3B4A3; }

/* Enquiry form card (Fluent Forms, styled like the design) */
.gm-form-card {
	padding: clamp(28px, 4vw, 48px); border-radius: 28px; box-sizing: border-box;
	background: var(--gm-card); border: 1px solid var(--gm-card-line);
	box-shadow: 0 30px 60px -40px rgba(28, 42, 20, 0.4);
	scroll-margin-top: 24px;
}
.gm-form-card .fluentform { font-family: var(--gm-sans); color: var(--gm-ink); }
.gm-form-card .fluentform fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.gm-form-card .fluentform .ff-el-group { margin-bottom: 22px; }
.gm-form-card .fluentform .ff-t-container { gap: 18px; }
.gm-form-card .fluentform .ff-t-container .ff-t-cell { padding-left: 0; padding-right: 0; }
.gm-form-card .fluentform .ff-el-input--label { margin-bottom: 8px; }
.gm-form-card .fluentform .ff-el-input--label label { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--gm-ink); }
.gm-form-card .fluentform .ff-el-input--label.asterisk-right label::after { color: #8A2A12; }
.gm-form-card .fluentform .ff-el-form-control {
	min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid #C9BD9B; box-shadow: none;
	background-color: #FFFFFF; font: inherit; font-size: 16px; line-height: 1.4; color: var(--gm-ink);
}
.gm-form-card .fluentform select.ff-el-form-control { padding-right: 36px; }
.gm-form-card .fluentform textarea.ff-el-form-control { min-height: 132px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.gm-form-card .fluentform .ff-el-form-control:focus { border-color: var(--gm-forest); outline: 2px solid var(--gm-brass); outline-offset: 3px; }
.gm-form-card .fluentform .ff-el-form-check { margin-bottom: 0; }
.gm-form-card .fluentform .ff-el-form-check-label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 300; color: var(--gm-ink); cursor: pointer; }
.gm-form-card .fluentform .ff-el-form-check-input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--gm-forest); }
.gm-form-card .fluentform .ff_list_2col .ff-el-input--content { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 0 16px; }
.gm-form-card .fluentform .ff_list_2col .ff-el-input--content > .ff-el-form-check { width: auto !important; float: none; padding: 0; }
.gm-form-card .fluentform .ff-custom_html { margin-bottom: 18px; }
.gm-form-card .fluentform .ff-btn-submit {
	min-height: 52px; padding: 0 34px; border: 0; border-radius: 999px; box-shadow: none; opacity: 1;
	background-color: var(--gm-forest) !important; color: var(--gm-cream) !important;
	font: inherit; font-size: 15px; font-weight: 500; letter-spacing: 0.02em; cursor: pointer;
}
.gm-form-card .fluentform .ff-btn-submit:hover,
.gm-form-card .fluentform .ff-btn-submit:focus-visible { background-color: var(--gm-forest-deep) !important; opacity: 1; }
.gm-form-card .fluentform .ff-el-is-error .ff-el-form-control { border-color: #B0452A; }
.gm-form-card .fluentform .error,
.gm-form-card .fluentform .text-danger { margin-top: 6px; font-size: 13px; color: #8A2A12; }
.gm-form-card .ff-message-success {
	margin: 0; padding: 16px 20px; border-radius: 14px; border: 1px solid #B7CDA6; box-shadow: none;
	background: #DCE8D2; color: var(--gm-forest-deep); font-size: 16px; line-height: 1.5;
}
.gm-form-card .ff-message-success p { margin: 0; }
.gm-form-card .ff-errors-in-stack { margin-top: 12px; color: #8A2A12; font-size: 14px; }

/* 404 */
.gm-404 { max-width: 860px; margin: 0 auto; padding: 96px 24px 140px; box-sizing: border-box; display: flex; flex-direction: column; gap: 24px; }
.gm-404 h1 { margin: 0; font-family: var(--gm-serif); font-weight: 300; font-size: clamp(48px, 6vw, 92px); line-height: 0.98; color: var(--gm-heading); }
.gm-404 p { margin: 0; font-size: 18px; line-height: 1.7; font-weight: 300; color: var(--gm-muted); }
.gm-404 ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.gm-404 li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #C9BD9B; color: var(--gm-ink); text-decoration: none; font-size: 15px; }

/* WordPress alignment helpers for editor content */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 14px; color: var(--gm-muted); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
