/*
Theme Name: Cosgrove Leisure Parks
Theme URI: https://cosgroveestates.com/
Author: IT Support World Limited
Author URI: https://itsupportworld.co.uk/
Description: Custom theme for Cosgrove Leisure Parks: holiday homes, lodges and park homes in Kent and Suffolk. No page builder, self-hosted fonts, one small script.
Version: 1.1.4
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cosgrove
*/

/* ---------- Fonts (SIL Open Font Licence, self-hosted) ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-v21-latin-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-v21-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-v21-latin-500italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree-v9-latin-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree-v9-latin-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree-v9-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
	--ink: #10302c;        /* text, footer */
	--sea: #1d4842;        /* deep bands */
	--sea-2: #285a52;
	--marsh: #36695b;      /* links on light */
	--muted: #4a625d;      /* secondary text, 5.8:1 on mist */
	--mist: #eef3f1;       /* page */
	--mist-2: #e1eae6;     /* tinted sections */
	--surface: #fbfcfb;    /* cards, form fields */
	--sand: #d8b676;       /* the one accent */
	--sand-soft: #f1e5c8;
	--line: rgba(16, 48, 44, .16);
	--on-dark: #f3f6f4;
	--on-dark-muted: #c5d3ce;
	--error: #9b2c2c;

	--serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--radius: 6px;          /* images and panels */
	--pill: 999px;          /* buttons only */
	--wrap: 1240px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--section: clamp(4rem, 9vw, 7.5rem);
	--shadow: 0 18px 40px -24px rgba(16, 48, 44, .45);
	--ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
	margin: 0;
	background: var(--mist);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--marsh); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; color: inherit; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.7rem); line-height: 1.15; }
h4 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.site-footer :focus-visible, .homes-band :focus-visible, .hero :focus-visible, .cta-band :focus-visible, .cookie-note :focus-visible, .park-hero :focus-visible { outline-color: var(--sand); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: var(--on-dark); padding: .75rem 1.25rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }
.site-main:focus { outline: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.is-placeholder { background: #fff3d6; color: #6b4300; outline: 1px dashed #a86a00; padding: 0 .3em; border-radius: 2px; font-size: .92em; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 48px; padding: .7rem 1.5rem;
	border-radius: var(--pill); border: 2px solid transparent;
	font: 600 1rem/1.2 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary, .wpcf7-submit { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.btn--primary:hover, .wpcf7-submit:hover { background: #e6c88d; border-color: #e6c88d; color: var(--ink); }
.btn--ghost-light { color: var(--on-dark); border-color: rgba(243, 246, 244, .7); background: transparent; }
.btn--ghost-light:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn--outline { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--on-dark); }
.btn--small { min-height: 40px; padding: .45rem 1.1rem; font-size: .95rem; }
.btn--block { width: 100%; }
.link-arrow { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--sand); padding-bottom: 2px; }
.link-arrow::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-left: .45em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-.1em) rotate(45deg); transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--marsh); }
.link-arrow:hover::after { transform: translate(.2em, -.1em) rotate(45deg); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(238, 243, 241, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; }
.wordmark:hover { color: var(--ink); }
.wordmark__mark { width: 38px; height: 38px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2; }
.wordmark__mark circle { fill: var(--sand); stroke: none; }
.wordmark__text { display: flex; flex-direction: column; line-height: 1; }
.wordmark__name { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; letter-spacing: .01em; }
.wordmark__sub { font-size: .8rem; font-weight: 500; letter-spacing: .08em; color: var(--muted); margin-top: .2rem; }

.nav-toggle { display: none; align-items: center; gap: .6rem; min-height: 44px; padding: .4rem .9rem; border: 1.5px solid var(--ink); border-radius: var(--pill); background: transparent; color: var(--ink); font: 600 .95rem var(--sans); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav .menu { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.site-nav .menu a:hover, .site-nav .menu .current-menu-item > a, .site-nav .menu .current_page_item > a, .site-nav .menu .current-menu-ancestor > a { border-bottom-color: var(--sand); }
.site-nav .sub-menu { display: none; }

@media (max-width: 1079px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--gutter) 1.75rem; background: var(--mist); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100dvh - 72px); overflow-y: auto; }
	.nav-open .site-nav { display: flex; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
	.site-nav .sub-menu { display: block; list-style: none; padding-left: 1rem; margin: 0; }
}
@media (max-width: 420px) {
	.wordmark__name { font-size: 1.45rem; }
	.wordmark__mark { width: 32px; height: 32px; }
	.nav-toggle__label { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); min-height: min(84vh, 760px); background: var(--sea); color: var(--on-dark); }
.hero__text { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 6vw, 5rem) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.hero__title { font-size: clamp(2.6rem, 4.6vw, 4.4rem); max-width: 12ch; line-height: 1.04; margin-bottom: .45em; }
.hero__lede { font-size: clamp(1.1rem, 1.4vw, 1.25rem); color: var(--on-dark-muted); max-width: 34ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 0; }
.hero__text::after { content: ""; position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); right: -5rem; bottom: clamp(1.75rem, 4vw, 3rem); height: 2px; background: var(--sand); z-index: 2; }
.hero__media { position: relative; overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
	.hero__media img { animation: hero-settle 1.6s var(--ease) both; }
	.hero__title, .hero__lede, .hero__actions { animation: hero-rise .9s var(--ease) both; }
	.hero__lede { animation-delay: .12s; }
	.hero__actions { animation-delay: .24s; }
	.hero__text::after { animation: hero-line 1.4s .3s var(--ease) both; transform-origin: left; }
}
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hero-line { from { transform: scaleX(0); } to { transform: none; } }
@media (max-width: 899px) {
	.hero { grid-template-columns: 1fr; min-height: 0; }
	.hero__media { order: -1; aspect-ratio: 4 / 3; }
	.hero__text { padding: 2.5rem var(--gutter) 3.5rem; }
	.hero__text::after { right: var(--gutter); bottom: 1.5rem; }
	.hero__title { font-size: clamp(2.3rem, 9vw, 3rem); max-width: none; }
}

/* ---------- Home: intro ---------- */
.intro { padding-block: var(--section) 0; }
.intro__body { max-width: 46rem; margin-left: clamp(0rem, 8vw, 7rem); }
@media (max-width: 899px) { .intro__body { margin-left: 0; } }
.intro__body p:first-child { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.3; font-weight: 500; color: var(--ink); }

/* ---------- Home: parks ---------- */
.parks { padding-block: var(--section); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.parks__grid { display: grid; gap: 1rem; }
@media (min-width: 900px) {
	.parks__grid--4 { grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: 300px 300px; }
	.parks__grid--4 > :nth-child(1) { grid-row: 1 / 3; }
	.parks__grid--4 > :nth-child(2) { grid-column: 2 / 4; }
	.parks__grid--3 { grid-template-columns: 1.3fr 1fr; grid-template-rows: 300px 300px; }
	.parks__grid--3 > :nth-child(1) { grid-row: 1 / 3; }
	.parks__grid--2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 460px; }
	.parks__grid--1 { grid-auto-rows: 520px; }
}
@media (max-width: 899px) { .parks__grid { grid-auto-rows: 320px; } }
.park-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sea); }
.park-card__link { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; color: var(--on-dark); text-decoration: none; }
.park-card__media { position: absolute; inset: 0; }
.park-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.park-card__link::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10, 32, 29, .92) 0%, rgba(10, 32, 29, .55) 38%, rgba(10, 32, 29, 0) 70%); }
.park-card__body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: .2rem; padding: 1.4rem 1.5rem; }
.park-card__place { font-size: .95rem; color: var(--sand); font-weight: 500; }
.park-card__title { font-size: clamp(1.7rem, 2.3vw, 2.1rem); margin: 0; }
.park-card__kind { font-size: .98rem; color: var(--on-dark-muted); }
.park-card__summary { margin-top: .6rem; max-width: 36ch; color: var(--on-dark); }
.park-card--feature .park-card__title { font-size: clamp(2rem, 3vw, 2.7rem); }
@media (max-width: 899px) { .park-card__summary { display: none; } }
.park-card__link:hover img { transform: scale(1.04); }
.park-card__link:hover .park-card__title { text-decoration: underline; text-decoration-color: var(--sand); text-decoration-thickness: 2px; text-underline-offset: .15em; }
.park-card__link:focus-visible { outline-offset: -6px; }
.parks__more { margin: 1.75rem 0 0; }

/* ---------- Home: homes band ---------- */
.homes-band { background: var(--sea); color: var(--on-dark); padding-block: var(--section); }
.homes-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.homes-band__intro p { color: var(--on-dark-muted); max-width: 40ch; }
.homes-band__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.homes-band__empty { border-top: 2px solid var(--sand); padding-top: 1.75rem; }
.homes-band__empty-title { font-family: var(--serif); font-size: clamp(1.8rem, 2.6vw, 2.3rem); line-height: 1.15; font-weight: 600; color: var(--on-dark); }
.homes-band__empty p { color: var(--on-dark-muted); max-width: 44ch; }
.homes-band__phone, .homes-band__empty .is-placeholder { font-size: 1.35rem; font-weight: 600; color: var(--sand); text-decoration: none; }
.homes-band__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (max-width: 899px) { .homes-band__inner { grid-template-columns: 1fr; } }

/* ---------- Home: why ---------- */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; padding-block: var(--section); }
.why__media { margin: 0; }
.why__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.25rem; margin: 2rem 0 2.25rem; }
.why__list > div { border-top: 2px solid var(--sand); padding-top: .9rem; }
.why__list > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.why__list dt { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.15; margin-bottom: .35rem; }
.why__list dd { margin: 0; color: var(--muted); }
@media (max-width: 899px) {
	.why { grid-template-columns: 1fr; }
	.why__media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 599px) { .why__list { grid-template-columns: 1fr; } }

/* ---------- Home: ways to buy ---------- */
.buying { background: var(--mist-2); padding-block: var(--section); }
.buying__grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 1rem; margin-top: 2rem; }
.buying__item { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; min-height: 220px; padding: 1.75rem; border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--ease); }
.buying__item:hover { color: var(--ink); border-color: var(--ink); }
.buying__item--sand { background: var(--sand-soft); }
.buying__item--photo { grid-row: 1 / 3; min-height: 460px; overflow: hidden; color: var(--on-dark); border: 0; }
.buying__item--photo:hover { color: var(--on-dark); }
.buying__item--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.buying__item--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10, 32, 29, .9), rgba(10, 32, 29, .1) 65%); }
.buying__text { position: relative; z-index: 2; display: flex; flex-direction: column; gap: .4rem; max-width: 36ch; }
.buying__title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 2.4vw, 2.2rem); line-height: 1.1; }
.buying__item span:not(.buying__title):not(.buying__text) { color: inherit; }
@media (max-width: 899px) {
	.buying__grid { grid-template-columns: 1fr; }
	.buying__item { min-height: 0; }
	.buying__item--photo { grid-row: auto; min-height: 340px; }
}

/* ---------- News ---------- */
.news { padding-block: var(--section); }
.news__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.post-card__link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.post-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.post-card__body { display: flex; flex-direction: column; gap: .35rem; padding-top: 1rem; }
.post-card__date { font-size: .95rem; color: var(--muted); }
.post-card__title { font-size: 1.75rem; margin: 0; }
.post-card__excerpt { color: var(--muted); }
.post-card__link:hover .post-card__title { text-decoration: underline; text-decoration-color: var(--sand); text-decoration-thickness: 2px; text-underline-offset: .15em; }
@media (min-width: 900px) {
	.news__list > .post-card:only-child .post-card__link { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
	.news__list > .post-card:only-child { grid-column: 1 / -1; }
	.news__list > .post-card:only-child .post-card__title { font-size: clamp(2rem, 3vw, 2.6rem); }
}

/* ---------- Closing CTA band ---------- */
.cta-band { position: relative; overflow: hidden; color: var(--on-dark); background: var(--ink); }
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(10, 32, 29, .92) 0%, rgba(10, 32, 29, .7) 45%, rgba(10, 32, 29, .2) 100%); }
.cta-band__inner { position: relative; z-index: 2; padding-block: clamp(4.5rem, 10vw, 8rem); }
.cta-band h2 { max-width: 16ch; }
.cta-band p { max-width: 44ch; color: var(--on-dark-muted); font-size: 1.15rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.cta-band__phone { color: var(--on-dark); }
.cta-band__phone a { color: var(--sand); font-weight: 600; font-size: 1.2rem; text-decoration: none; }

/* ---------- Page head ---------- */
.page-head { padding-top: clamp(3rem, 7vw, 5.5rem); }
.page-head__inner { padding-bottom: clamp(2rem, 4vw, 3rem); }
.page-head__kicker { font-size: 1rem; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; }
.page-head__kicker a { color: var(--marsh); font-weight: 600; }
.page-head__title { max-width: 20ch; }
.page-head__lede { max-width: 52ch; font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--muted); }
.page-head__media { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.page-head__media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 699px) { .page-head__media img { aspect-ratio: 4 / 3; } }
.page-body { padding-block: clamp(2.5rem, 5vw, 4rem) var(--section); }
.page-body--after { padding-top: 0; }

/* ---------- Prose ---------- */
.prose { max-width: 42rem; }
.prose > * + * { margin-top: 0; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.9rem, 2.8vw, 2.4rem); }
.prose h3 { margin-top: 1.8em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose li { margin-bottom: .45em; }
.prose ol { padding-left: 1.4em; }
.prose ol li::marker { font-family: var(--serif); font-weight: 600; font-size: 1.2em; color: var(--marsh); }
.prose ul li::marker { color: var(--marsh); }
.prose blockquote { margin: 2rem 0; padding: .25rem 0 .25rem 1.5rem; border-left: 3px solid var(--sand); font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; }
.prose .wp-block-buttons, .prose .actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-block: 1.75rem; }
.prose .wp-block-image img, .prose figure img { border-radius: var(--radius); }
.prose figure { margin: 2rem 0; }
.prose figcaption { font-size: .95rem; color: var(--muted); margin-top: .5rem; }
.standfirst, .prose .standfirst { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.3; font-weight: 500; color: var(--ink); }
.small-print { font-size: .95rem; color: var(--muted); }
.note-panel { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sand); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.note-panel > :last-child { margin-bottom: 0; }

.group-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1.5rem 0 0; }
.prose .group-list li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.group-list strong { display: block; font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.group-list span { display: block; color: var(--muted); font-size: .98rem; }

.park-addresses { display: grid; gap: 1rem; margin: 1rem 0 0; }
.park-addresses dt { font-weight: 600; }
.park-addresses dd { margin: 0; color: var(--muted); }

.credits { font-size: .95rem; padding-left: 1.1em; }
.link-list { list-style: none; padding: 0; display: grid; gap: .75rem; font-size: 1.2rem; }

/* ---------- Park page ---------- */
.park-hero { position: relative; min-height: clamp(380px, 62vh, 620px); display: flex; align-items: flex-end; color: var(--on-dark); background: var(--sea); }
.park-hero__media { position: absolute; inset: 0; }
.park-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.park-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10, 32, 29, .88) 0%, rgba(10, 32, 29, .35) 45%, rgba(10, 32, 29, 0) 75%); }
.park-hero__inner { position: relative; z-index: 2; padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.park-hero__crumb { margin-bottom: .75rem; }
.park-hero__crumb a { color: var(--on-dark); font-weight: 600; text-decoration-color: var(--sand); }
.park-hero__title { font-size: clamp(2.7rem, 6vw, 5rem); margin-bottom: .2em; max-width: 16ch; }
.park-hero__place { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--sand); margin: 0; }

.park-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3rem, 6vw, 5rem); align-items: start; }
.park-facts { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.park-facts__title { font-size: 1.6rem; margin-bottom: 1rem; }
.park-facts dl { margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.park-facts dt { font-size: .9rem; font-weight: 600; color: var(--muted); }
.park-facts dd { margin: 0; }
.park-facts__map { margin: 1rem 0 0; font-size: .98rem; }
.park-facts__price { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; margin-bottom: 1rem; }
@media (max-width: 899px) {
	.park-layout { grid-template-columns: 1fr; }
	.park-facts { position: static; }
}

.park-onsite { background: var(--mist-2); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.onsite-list { list-style: none; padding: 0; margin: 1.75rem 0 0; columns: 3 15rem; column-gap: 2.5rem; }
.onsite-list li { break-inside: avoid; position: relative; padding: .55rem 0 .55rem 1.6rem; }
.onsite-list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .7rem; height: 2px; background: var(--sea); }

.park-nearby { padding-block: clamp(3.5rem, 7vw, 5.5rem) 0; }
.nearby-list { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.5rem 2.5rem; }
.nearby-list li { border-top: 1px solid var(--line); padding-top: .9rem; }
.nearby-list__name { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; line-height: 1.2; }
.nearby-list__note { display: block; color: var(--muted); margin-top: .2rem; }

.park-homes { padding-block: clamp(3.5rem, 7vw, 5.5rem) var(--section); }
.empty-state { background: var(--surface); border: 1px dashed rgba(16, 48, 44, .35); border-radius: var(--radius); padding: 1.75rem; max-width: 46rem; }
.empty-state--wide { max-width: none; display: grid; gap: .25rem; }
.empty-state__title { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; line-height: 1.15; }
.empty-state__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin: .75rem 0 0; }
.empty-state__phone { font-weight: 600; font-size: 1.2rem; }
.empty-state > :last-child { margin-bottom: 0; }

/* ---------- Parks overview ---------- */
.park-rows { display: grid; gap: clamp(2.5rem, 5vw, 4rem); padding-block: 1rem var(--section); }
.park-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.park-row:nth-child(even) .park-row__media { order: 2; }
.park-row__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.park-row__place { color: var(--marsh); font-weight: 600; margin-bottom: .4rem; }
.park-row__title { font-size: clamp(2rem, 3.2vw, 2.8rem); }
.park-row__title a { color: var(--ink); text-decoration: none; }
.park-row__title a:hover { text-decoration: underline; text-decoration-color: var(--sand); }
.park-row__facts { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.25rem; margin: 1.25rem 0 1.5rem; }
.park-row__facts > div { display: contents; }
.park-row__facts dt { font-weight: 600; color: var(--muted); }
.park-row__facts dd { margin: 0; }
@media (max-width: 799px) {
	.park-row { grid-template-columns: 1fr; }
	.park-row:nth-child(even) .park-row__media { order: 0; }
}

/* ---------- Homes for sale ---------- */
.homes-list { padding-bottom: var(--section); }
.homes-list__park + .homes-list__park { margin-top: 3.5rem; }
.homes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.home-card__link { display: block; color: var(--ink); text-decoration: none; }
.home-card__media { position: relative; display: block; }
.home-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.home-card__status { position: absolute; left: .75rem; top: .75rem; background: var(--ink); color: var(--on-dark); font-size: .9rem; font-weight: 600; padding: .25rem .7rem; border-radius: var(--pill); }
.home-card__title { font-size: 1.6rem; margin: .9rem 0 .3rem; }
.home-card__facts { list-style: none; padding: 0; margin: 0 0 .4rem; display: flex; flex-wrap: wrap; gap: .2rem 1rem; color: var(--muted); font-size: .98rem; }
.home-card__price { font-weight: 600; font-size: 1.15rem; margin: 0; }
.home-card--dark .home-card__link { color: var(--on-dark); }
.home-card--dark .home-card__facts { color: var(--on-dark-muted); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); padding-bottom: var(--section); align-items: start; }
.contact-layout__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.contact-layout__form h2 { font-size: 2rem; margin-bottom: .25rem; }
.contact-layout__hint { color: var(--muted); font-size: .98rem; }
.contact-card { border-top: 2px solid var(--sand); padding-top: 1.25rem; margin-bottom: 2.5rem; }
.contact-card h2 { font-size: 1.9rem; }
.contact-card dl { display: grid; gap: 1rem; margin: 0; }
.contact-card dt { font-size: .9rem; font-weight: 600; color: var(--muted); }
.contact-card dd { margin: 0; font-size: 1.1rem; }
@media (max-width: 899px) { .contact-layout { grid-template-columns: 1fr; } }

/* Contact Form 7 */
.enquiry-form { display: grid; gap: 1.15rem; }
.enquiry-form .field { display: grid; gap: .4rem; }
.enquiry-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 599px) { .enquiry-form .field-row { grid-template-columns: 1fr; } }
.enquiry-form label, .enquiry-form .label { font-weight: 600; font-size: 1rem; }
.enquiry-form .wpcf7-form-control-wrap { display: block; }
.enquiry-form input[type="text"], .enquiry-form input[type="email"], .enquiry-form input[type="tel"], .enquiry-form input[type="date"], .enquiry-form select, .enquiry-form textarea {
	width: 100%; min-height: 50px; padding: .7rem .9rem; font: inherit; font-size: 1.05rem; color: var(--ink);
	background: #fff; border: 1.5px solid rgba(16, 48, 44, .55); border-radius: 4px; appearance: none;
}
.enquiry-form select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.enquiry-form textarea { min-height: 150px; resize: vertical; }
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus { outline: 3px solid var(--sand); outline-offset: 1px; border-color: var(--ink); }
.enquiry-form .help { font-size: .92rem; color: var(--muted); }
.enquiry-form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.enquiry-form .wpcf7-acceptance label { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; }
.enquiry-form input[type="checkbox"] { width: 22px; height: 22px; margin-top: .2rem; accent-color: var(--sea); flex: none; }
.enquiry-form .wpcf7-not-valid-tip { color: var(--error); font-size: .95rem; margin-top: .35rem; display: block; }
.enquiry-form .wpcf7-not-valid { border-color: var(--error); }
.wpcf7-submit { min-height: 52px; padding: .8rem 2rem; border-radius: var(--pill); font: 600 1.05rem var(--sans); cursor: pointer; border: 2px solid var(--sand); }
.wpcf7-spinner { display: none; }
.wpcf7 .hidden-fields-container { border: 0; padding: 0; margin: 0; display: none; }
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.wpcf7 form .wpcf7-response-output:empty, .wpcf7 form.init .wpcf7-response-output { display: none; }
.enquiry-form fieldset { border: 0; padding: 0; margin: 0; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .9rem 1.1rem; border: 2px solid var(--line); border-radius: 4px; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: var(--error); color: var(--error); }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--sea); }
.wpcf7-form.submitting .wpcf7-submit { opacity: .7; }
.notice { background: var(--sand-soft); padding: 1rem 1.25rem; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-top: clamp(3.5rem, 7vw, 5.5rem); font-size: 1rem; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--sand); }
.site-footer .btn--primary, .site-footer .btn--primary:hover { color: var(--ink); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer__name { font-family: var(--serif); font-weight: 600; font-size: 2rem; line-height: 1.1; color: var(--on-dark); margin-bottom: .6rem; }
.site-footer__brand p { max-width: 30ch; }
.site-footer__heading { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--sand); letter-spacing: .02em; margin-bottom: 1rem; }
.site-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer .is-placeholder { background: rgba(255, 243, 214, .12); color: #f6dfa8; outline-color: #c99a3c; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; border-top: 1px solid rgba(243, 246, 244, .16); padding-block: 1.5rem 2rem; font-size: .95rem; }
.site-footer__base p { margin: 0; }
.legal-menu { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; }
@media (max-width: 899px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 499px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Cookie notice ---------- */
.cookie-note { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 440px; display: grid; gap: .75rem; padding: 1.15rem 1.25rem; background: var(--ink); color: var(--on-dark); border-radius: var(--radius); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); font-size: .95rem; }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; }
.cookie-note a { color: var(--sand); }
.cookie-note .btn { justify-self: start; background: var(--sand); color: var(--ink); }

/* ---------- Pagination ---------- */
.pagination .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 3rem; }
.pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 .8rem; border: 1px solid var(--line); border-radius: var(--pill); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--on-dark); }
.news-index { padding-bottom: var(--section); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .cta-band, .cookie-note, .nav-toggle { display: none !important; }
	body { background: #fff; }
}

/* ---------- Editor blocks (added for the office handover) ---------- */
/* Buttons block: same look as the theme buttons. "Fill" = sand, "Outline" = ink outline. */
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .3rem; margin: 0 0 1em; }
.prose > .wp-block-buttons:last-child:has(> .wp-block-button:only-child) { margin-bottom: 0; }
.prose .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.prose .wp-block-button { margin: 0; }
:root .wp-block-button .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 48px; padding: .7rem 1.5rem;
	border-radius: var(--pill); border: 2px solid var(--sand);
	background: var(--sand); color: var(--ink);
	font: 600 1rem/1.2 var(--sans); text-decoration: none; white-space: nowrap; box-shadow: none;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
:root .wp-block-button .wp-block-button__link:hover { background: #e6c88d; border-color: #e6c88d; color: var(--ink); }
:root .wp-block-button .wp-block-button__link:active { transform: translateY(1px); }
:root .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--ink); padding: .7rem 1.5rem; }
:root .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ink); color: var(--on-dark); }
.has-sea-background-color .wp-block-button.is-style-outline .wp-block-button__link, .has-ink-background-color .wp-block-button.is-style-outline .wp-block-button__link { color: var(--on-dark); border-color: rgba(243, 246, 244, .7); }

/* Brand colours and sizes chosen in the editor. */
.has-sea-color { color: var(--sea) !important; }
.has-ink-color { color: var(--ink) !important; }
.has-sand-color { color: var(--sand) !important; }
.has-mist-color { color: var(--mist) !important; }
.has-sea-background-color { background-color: var(--sea) !important; }
.has-ink-background-color { background-color: var(--ink) !important; }
.has-sand-background-color { background-color: var(--sand) !important; }
.has-mist-background-color { background-color: var(--mist) !important; }
.has-sea-background-color, .has-ink-background-color { color: var(--on-dark); }
.has-sea-background-color a, .has-ink-background-color a { color: var(--sand); }
.prose .has-background { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); margin-block: 2rem; }
.prose .has-background > :last-child { margin-bottom: 0; }
.has-small-font-size { font-size: .95rem !important; }
.has-large-font-size { font-size: 1.35rem !important; }
.has-x-large-font-size { font-size: clamp(1.5rem, 2.2vw, 1.9rem) !important; line-height: 1.3; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* Images, galleries, columns and "text and photo" inside page text. */
.prose .wp-block-image { margin: 2rem 0; }
.prose .wp-block-image img { height: auto; }
.prose .wp-block-gallery { margin: 2rem 0; gap: .75rem; }
.prose .wp-block-gallery img { border-radius: var(--radius); }
.prose .wp-block-columns { gap: clamp(1.5rem, 4vw, 2.5rem); margin: 2rem 0; }
.prose .wp-block-column > :last-child { margin-bottom: 0; }
.prose .wp-block-media-text { margin: 2rem 0; gap: 0; }
.prose .wp-block-media-text__media img { border-radius: var(--radius); }
.prose .wp-block-media-text .wp-block-media-text__content { padding: 0 0 0 clamp(1.25rem, 4vw, 2.5rem); }
.prose .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content { padding: 0 clamp(1.25rem, 4vw, 2.5rem) 0 0; }
@media (max-width: 600px) { .prose .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content { padding: 1.25rem 0 0; } }
.prose .wp-block-separator { border: 0; border-top: 2px solid var(--sand); margin: 2.5rem 0; width: 6rem; }
.prose .wp-block-separator.is-style-wide { width: auto; border-top-color: var(--line); }
.prose .wp-block-table { margin: 2rem 0; overflow-x: auto; }
.prose .wp-block-table table { width: 100%; border-collapse: collapse; }
.prose .wp-block-table td, .prose .wp-block-table th { border-bottom: 1px solid var(--line); padding: .6rem .5rem; text-align: left; }
.prose .wp-block-quote { margin: 2rem 0; padding: .25rem 0 .25rem 1.5rem; border-left: 3px solid var(--sand); font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; }
.prose .wp-block-embed { margin: 2rem 0; }
.prose .wp-block-group.note-panel { margin: 2rem 0; }

/* Extra photos of a home for sale. */
.home-photos { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.prose .home-photos li { margin: 0; }
.home-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
