/* ==========================================================================
   G.O.D Australia — main stylesheet
   Turquoise watercolour wash + one of three pastel palettes.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset, variable weight) ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-garamond-normal.woff2) format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-garamond-italic.woff2) format("woff2"); font-weight: 500 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Mulish"; src: url(../fonts/mulish-normal.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Mulish"; src: url(../fonts/mulish-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
	/* Turquoise base (shared by every palette) */
	--teal-900: #173f40;
	--teal-800: #1f5052;
	--teal-700: #2a6766;
	--teal-600: #3d8584;
	--teal-300: #9fd1cf;
	--teal-200: #c4e4e0;
	--teal-100: #e3f2ef;
	--cream: #fbf8ec;
	--paper: #fffdf7;

	/* Palette: Lotus (default) */
	--accent: #eaa2b5;
	--accent-soft: #f9e1e7;
	--accent-2: #f2c879;
	--accent-2-soft: #fcefd0;
	--ink: #3b2235;
	--ink-soft: #6a5466;
	--cta: #a8486a;
	--cta-hover: #8e3858;
	--rule: var(--accent);

	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sans: Mulish, system-ui, -apple-system, "Segoe UI", sans-serif;

	--content: 760px;
	--wide: 1180px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 18px;
	--radius-lg: 28px;
	--petal: 0 64px 0 64px;
	--shadow: 0 1px 2px rgb(30 60 60 / 6%), 0 8px 28px -10px rgb(30 60 60 / 18%);
	--shadow-lg: 0 2px 4px rgb(30 60 60 / 6%), 0 22px 50px -18px rgb(30 60 60 / 28%);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

[data-palette="peacock"] {
	--accent: #b9a7e0;
	--accent-soft: #ece6f8;
	--accent-2: #95d5b6;
	--accent-2-soft: #dff3e8;
	--ink: #17383d;
	--ink-soft: #4b676b;
	--cta: #5b4a8e;
	--cta-hover: #483a74;
}

[data-palette="sandalwood"] {
	--accent: #f1b08b;
	--accent-soft: #fce4d6;
	--accent-2: #f1d67e;
	--accent-2-soft: #fbf0c9;
	--ink: #3f2519;
	--ink-soft: #6d5347;
	--cta: #a54a2a;
	--cta-hover: #883a1f;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.75 var(--sans);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--cta); }
:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }
hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--teal-300), transparent); margin: 3rem 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 1000; background: #fff; padding: .6em 1em; border-radius: 8px; box-shadow: var(--shadow); }

.container { width: 100%; max-width: calc(var(--wide) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(var(--content) + var(--gutter) * 2); }

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .78em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
	font: 700 .95rem/1.2 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn--primary, .wp-block-button__link { background: var(--cta); color: #fff; box-shadow: 0 6px 18px -8px var(--cta); }
.btn--primary:hover, .wp-block-button__link:hover { background: var(--cta-hover); color: #fff; transform: translateY(-1px); }
.btn--ghost, .is-style-ghost .wp-block-button__link { background: rgb(255 255 255 / 55%); color: var(--ink); border-color: color-mix(in srgb, var(--ink) 25%, transparent); box-shadow: none; }
.btn--ghost:hover, .is-style-ghost .wp-block-button__link:hover { background: #fff; color: var(--cta); border-color: var(--cta); }
.btn .icon { width: 1.1em; height: 1.1em; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.wp-block-buttons.is-content-justification-center { justify-content: center; }

.eyebrow { font: 700 .78rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-700); margin-bottom: .9rem; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	border-bottom: 1px solid color-mix(in srgb, var(--teal-300) 45%, transparent);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: color-mix(in srgb, var(--paper) 82%, transparent);
	backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header .container { max-width: 1440px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand__logo { width: 52px; height: 52px; object-fit: contain; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font: 600 1.12rem/1.05 var(--serif); max-width: 11.5em; }
.brand__sub { font: 700 .7rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--teal-700); margin-top: 2px; }

.site-nav { display: flex; align-items: center; flex: none; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.site-nav .menu > li { position: relative; margin: 0; }
.site-nav a { display: block; padding: .5rem .6rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.site-nav .menu > li > a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a, .site-nav .current_page_parent > a { background: color-mix(in srgb, var(--accent-soft) 85%, transparent); color: var(--ink); }
.site-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: .38em; height: .38em; margin-left: .45em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-.2em) rotate(45deg); opacity: .6; }
.site-nav .sub-menu { list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s var(--ease), visibility .18s; }
.site-nav .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.site-nav .sub-menu li { margin: 0; }
.site-nav .sub-menu a { border-radius: 10px; font-weight: 500; }
.site-nav .sub-menu a:hover { background: var(--teal-100); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .site-nav__cta { display: inline-flex; margin-left: .6rem; padding: .6em 1.15em; color: #fff; white-space: nowrap; flex: none; }
.site-nav .site-nav__cta:hover { color: #fff; background: var(--cta-hover); }
.submenu-toggle { display: none; }

.nav-toggle { display: none; align-items: center; gap: .4rem; background: #fff; border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); border-radius: 999px; padding: .5rem .9rem; font: 700 .85rem var(--sans); color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

@media (max-width: 1279px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: 76px 0 0 0; z-index: 49; overflow-y: auto;
		background: var(--paper) url(../img/soft-wash.webp) center/cover;
		padding: 1.25rem var(--gutter) 3rem;
		display: none;
	}
	.admin-bar .site-nav { top: 122px; }
	.nav-open .site-nav { display: block; }
	.site-nav { align-items: stretch; }
	.nav-open { overflow: hidden; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu > li { border-bottom: 1px solid color-mix(in srgb, var(--teal-300) 50%, transparent); display: flex; flex-wrap: wrap; }
	.site-nav .menu > li > a { flex: 1; font-size: 1.15rem; font-family: var(--serif); font-weight: 600; padding: .9rem .25rem; border-radius: 0; background: none !important; }
	.site-nav .menu-item-has-children > a::after { display: none; }
	.submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; background: none; border: 0; cursor: pointer; color: var(--ink); }
	.submenu-toggle::before { content: ""; width: .5em; height: .5em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
	.submenu-toggle[aria-expanded="true"]::before { transform: translateY(.2em) rotate(-135deg); }
	.site-nav .sub-menu { position: static; flex-basis: 100%; box-shadow: none; background: transparent; opacity: 1; visibility: visible; transform: none; padding: 0 0 .75rem .75rem; display: none; min-width: 0; }
	.site-nav .sub-menu.is-open { display: block; }
	.site-nav li:hover > .sub-menu { display: none; }
	.site-nav li:hover > .sub-menu.is-open { display: block; }
	.site-nav .site-nav__cta { display: flex; margin: 1.5rem 0 0; width: 100%; padding: .9em 1.2em; font-size: 1rem; }
}
@media (max-width: 480px) {
	.brand__name { font-size: 1rem; }
	.brand__logo { width: 44px; height: 44px; }
	.nav-toggle__label { display: none; }
}

/* ---------- Texture helpers ---------- */
.grain::after, .page-hero::after, .hero::after, .is-style-tint::after, .section--tint::after, .site-footer::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: url(../img/grain.webp); mix-blend-mode: soft-light; opacity: .55;
}

/* Watercolour blobs: alpha masks coloured with the palette accents. */
.blob { position: absolute; pointer-events: none; z-index: 0; width: var(--size, 420px); aspect-ratio: 1; background: var(--blob, var(--accent)); opacity: var(--blob-o, .55);
	-webkit-mask: url(../img/blob-1.webp) center/contain no-repeat; mask: url(../img/blob-1.webp) center/contain no-repeat; }
.blob--b { -webkit-mask-image: url(../img/blob-2.webp); mask-image: url(../img/blob-2.webp); --blob: var(--accent-2); }
.blob--c { -webkit-mask-image: url(../img/blob-3.webp); mask-image: url(../img/blob-3.webp); }

/* Ragged watercolour edge at the bottom of a section, revealing the page colour below. */
.edge { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(36px, 5vw, 70px); background: var(--edge, var(--paper)); z-index: 2; pointer-events: none;
	-webkit-mask: url(../img/edge.webp) center bottom/100% 100% no-repeat; mask: url(../img/edge.webp) center bottom/100% 100% no-repeat; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--teal-100) url(../img/soft-wash.webp) center/cover; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); }
.page-hero .blob--a { --size: clamp(240px, 32vw, 440px); right: -6%; top: -30%; --blob-o: .45; }
.page-hero .blob--b { --size: clamp(160px, 20vw, 280px); right: 18%; bottom: -18%; --blob-o: .5; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title { margin: 0; max-width: 18ch; }
.page-hero__lead { max-width: 60ch; margin: 1rem 0 0; font-size: 1.15rem; color: var(--ink-soft); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1.25rem; font-size: .85rem; color: var(--ink-soft); }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .5; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cta); text-decoration: underline; }

/* ---------- Page body / entry content ---------- */
.page-body { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.entry-content > * { max-width: var(--content); margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.entry-content > .alignwide { max-width: var(--wide); }
.entry-content > .alignfull { max-width: none; padding-inline: 0; box-sizing: border-box; }
.entry-content--flush > * { max-width: none; padding-inline: 0; margin-inline: 0; box-sizing: border-box; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2.2em; }
.entry-content h3 { margin-top: 1.8em; }
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }
.entry-content ul li::marker { color: var(--accent); }
.entry-content ol li::marker { color: var(--teal-600); font-weight: 700; }
.entry-content blockquote, .wp-block-quote { margin: 2rem auto; padding: 1.25rem 1.5rem 1.25rem 1.75rem; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; font: italic 500 1.35rem/1.5 var(--serif); }
.wp-block-quote cite { display: block; margin-top: .5rem; font: 600 .85rem var(--sans); font-style: normal; color: var(--ink-soft); }
.wp-block-image { margin: 2rem auto; }
.wp-block-image img { border-radius: var(--radius); }
.wp-block-image figcaption, .wp-element-caption { font-size: .88rem; color: var(--ink-soft); text-align: center; margin-top: .6rem; }
.wp-block-image.aligncenter img, .wp-block-image .aligncenter img { margin-inline: auto; }
.is-style-petal img, .feature-image img { border-radius: var(--petal) !important; }
.is-style-arch img { border-radius: 999px 999px var(--radius) var(--radius) !important; }
.feature-image { margin: 0 0 2rem; }
.feature-image img { width: 100%; max-height: 520px; object-fit: cover; }
.wp-block-table { margin: 2rem auto; overflow-x: auto; }
.wp-block-table table, .entry-content table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .95rem; }
.entry-content th, .entry-content td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--teal-100); vertical-align: top; }
.entry-content thead th, .entry-content tr:first-child th { background: var(--teal-100); font-weight: 700; }
.entry-content tr:last-child td { border-bottom: 0; }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); margin: 2rem auto; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-columns.are-vertically-aligned-center, .wp-block-column.is-vertically-aligned-center { align-items: center; align-self: center; }
@media (max-width: 781px) { .wp-block-columns { flex-direction: column; } .wp-block-column { flex-basis: 100% !important; } }
.wp-block-separator { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--teal-300), transparent); margin: 3rem auto; }
.wp-block-embed { margin: 2rem auto; }
.wp-block-embed iframe { width: 100%; border: 0; border-radius: var(--radius); }
.has-text-align-center { text-align: center; }
.has-small-font-size { font-size: .9rem; }
.has-large-font-size { font-size: 1.3rem; }
.has-x-large-font-size { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.has-accent-soft-background-color { background: var(--accent-soft); }
.has-teal-soft-background-color { background: var(--teal-100); }
.has-accent-2-soft-background-color { background: var(--accent-2-soft); }
.has-cream-background-color { background: var(--cream); }
.has-white-background-color { background: #fff; }
.has-ink-color { color: var(--ink); }
.has-teal-color { color: var(--teal-600); }
.has-accent-color { color: var(--accent); }
.has-background { padding: 1.5rem 1.75rem; border-radius: var(--radius); }
.lead, .is-style-lead { font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- Sections (used by Group blocks on the home page and templates) ---------- */
.section, .entry-content > .wp-block-group.section { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0; isolation: isolate; overflow: clip; }
.section > .wp-block-group__inner-container, .section > *:not(.edge):not(.blob) { position: relative; z-index: 1; }
.entry-content > .section > * { max-width: calc(var(--wide) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.entry-content > .section > p:not(.has-text-align-center), .entry-content > .section > .wp-block-buttons:not(.is-content-justification-center), .entry-content > .section > ul.wp-block-list {
	max-width: min(68ch, calc(100% - var(--gutter) * 2)); padding-inline: 0; box-sizing: border-box;
	margin-left: max(var(--gutter), calc((100% - var(--wide)) / 2)); margin-right: auto; }
.entry-content > .section > .narrow, .entry-content > .section > p.has-text-align-center { max-width: calc(var(--content) + var(--gutter) * 2); }
.entry-content > .section > h2.wp-block-heading:not(.has-text-align-center)::before { left: var(--gutter); }
.section--tint, .is-style-tint { position: relative; background: var(--accent-soft); isolation: isolate; }
.section--wash, .is-style-wash { position: relative; background: var(--teal-100) url(../img/soft-wash.webp) center/cover; isolation: isolate; }
.is-style-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow); }
.section-title, .entry-content .section-title, .section > h2.wp-block-heading { position: relative; padding-top: 1.1rem; margin-bottom: 1.4rem; }
.section-title::before, .section > h2.wp-block-heading::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.section > h2.has-text-align-center::before, .section-title.has-text-align-center::before { left: 50%; transform: translateX(-50%); }
.section__intro { max-width: 62ch; color: var(--ink-soft); font-size: 1.1rem; }
.section > .has-text-align-center.section__intro, .section > p.has-text-align-center { margin-inline: auto; }

/* ---------- Home hero ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	background: var(--teal-200) url(../img/hero-wash.webp) center top/cover;
	padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(5rem, 10vw, 8rem) !important;
}
.hero .blob--a { --size: clamp(280px, 36vw, 560px); left: -10%; bottom: -25%; --blob-o: .35; }
.hero .blob--b { --size: clamp(220px, 26vw, 400px); right: -4%; top: -12%; --blob-o: .38; }
.hero .blob--c { --size: clamp(160px, 18vw, 260px); right: 30%; bottom: 4%; --blob: var(--accent); --blob-o: .25; }
.entry-content > .hero > .wp-block-columns, .hero .wp-block-columns { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); align-items: center; position: relative; z-index: 1; }
.hero h1, .hero .wp-block-heading { font-size: clamp(2.4rem, 5.6vw, 4.3rem); font-style: italic; font-weight: 500; line-height: 1.06; margin: 0 0 1.2rem; max-width: 14ch; }
.hero .hero__attribution { font: 600 1rem/1.5 var(--sans); color: var(--ink-soft); margin-bottom: 1.8rem; }
.hero .hero__attribution::before { content: ""; display: inline-block; vertical-align: middle; width: 36px; height: 2px; background: var(--accent); margin-right: .7rem; }
.hero .wp-block-image { margin: 0; position: relative; }
.hero .wp-block-image img { width: 100%; max-width: 440px; margin-inline: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); border: 8px solid rgb(255 255 255 / 55%); }
.hero .eyebrow { color: var(--teal-800); }
@media (max-width: 781px) { .hero .wp-block-image img { max-width: 320px; } .hero { text-align: left; } }

.frost { background: rgb(255 255 255 / 60%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgb(255 255 255 / 70%); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); margin-block: 0; }
.cards--centres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1040px) { .cards--centres { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 540px) { .cards--centres { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--teal-100) url(../img/soft-wash.webp) center/cover; position: relative; }
.card__media--empty::after { content: ""; position: absolute; inset: 18%; background: var(--accent); opacity: .5; -webkit-mask: url(../img/blob-2.webp) center/contain no-repeat; mask: url(../img/blob-2.webp) center/contain no-repeat; }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__img { transform: scale(1.04); }
.card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__meta { font: 700 .74rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); margin: 0 0 .5rem; }
.card__title { font-size: 1.45rem; margin: 0 0 .5rem; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__text { color: var(--ink-soft); font-size: .96rem; margin: 0 0 1rem; }
.card__cta { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--cta); }
.card__cta .arrow { display: inline-block; transition: transform .2s; }
.card:hover .card__cta .arrow { transform: translateX(4px); }
.card--petal { border-radius: var(--petal); }
.card--petal:nth-child(even) { border-radius: 64px 0 64px 0; }

/* Key activity tiles (static blocks on the home page) */
.activities { gap: clamp(1.25rem, 3vw, 2rem) !important; }
.activities .wp-block-column { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 0 0 1.5rem; box-shadow: var(--shadow); overflow: hidden; text-align: center; transition: transform .3s var(--ease); }
.activities .wp-block-column:hover { transform: translateY(-4px); }
.activities .wp-block-image { margin: 0 0 1.25rem; }
.activities .wp-block-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 0; }
.activities h3 { margin: 0 1.25rem .5rem; }
.activities p { margin: 0 1.5rem 1rem; color: var(--ink-soft); font-size: .96rem; }
.activities .wp-block-buttons { justify-content: center; margin: .5rem 0 0; }

/* ---------- Events ---------- */
.events { list-style: none; margin-block: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.event { --event-colour: var(--teal-600); display: flex; gap: 1rem; align-items: flex-start; margin: 0; background: #fff; border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); border-left: 4px solid var(--event-colour); }
.event__date { flex: none; width: 58px; text-align: center; background: color-mix(in srgb, var(--event-colour) 14%, white); border-radius: 12px; padding: .45rem 0 .5rem; line-height: 1; }
.event__day { display: block; font: 600 1.7rem/1 var(--serif); color: var(--ink); }
.event__month { display: block; font: 800 .68rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: .2rem; }
.event__body { min-width: 0; }
.event__title { font: 700 1rem/1.35 var(--sans); margin: .1rem 0 .25rem; }
.event__title a { color: inherit; text-decoration: none; }
.event__title a:hover { color: var(--cta); text-decoration: underline; }
.event__meta { font-size: .86rem; color: var(--ink-soft); margin: 0 0 .4rem; overflow-wrap: anywhere; }
.event__tag { display: inline-block; font: 700 .72rem/1.2 var(--sans); padding: .3em .7em; border-radius: 999px; background: color-mix(in srgb, var(--event-colour) 16%, white); color: var(--ink); text-decoration: none; position: relative; z-index: 2; }
.event__tag:hover { background: color-mix(in srgb, var(--event-colour) 30%, white); color: var(--ink); }
.events-empty { color: var(--ink-soft); font-style: italic; }

/* ---------- People ---------- */
.people { list-style: none; padding: 0; margin-block: 1.5rem 3rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 2rem 1.5rem; text-align: center; }
.entry-content > .people, .entry-content > .cards, .entry-content > .events, .entry-content > .service-group, .entry-content > .locations, .entry-content > .god-form { max-width: var(--wide); }
.entry-content > .locations { max-width: var(--content); }
.entry-content > .god-form { box-sizing: border-box; width: calc(100% - var(--gutter) * 2); max-width: var(--content); }
.person { margin: 0; }
.person__photo { position: relative; width: 150px; aspect-ratio: 1; margin: 0 auto 1rem; isolation: isolate; }
.person__photo::before { content: ""; position: absolute; inset: -12%; z-index: -1; background: var(--accent); opacity: .45; -webkit-mask: url(../img/blob-3.webp) center/contain no-repeat; mask: url(../img/blob-3.webp) center/contain no-repeat; }
.person:nth-child(3n+2) .person__photo::before { background: var(--accent-2); -webkit-mask-image: url(../img/blob-1.webp); mask-image: url(../img/blob-1.webp); }
.person:nth-child(3n) .person__photo::before { background: var(--teal-300); -webkit-mask-image: url(../img/blob-2.webp); mask-image: url(../img/blob-2.webp); }
.person__img, .person__photo--empty span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: var(--shadow); }
.person__photo--empty span { display: grid; place-items: center; background: var(--teal-100); font: 600 3rem var(--serif); color: var(--teal-700); }
.person__name { font: 600 1.3rem/1.2 var(--serif); margin: 0 0 .2rem; }
.person__role { font-size: .88rem; color: var(--ink-soft); margin: 0; }

/* ---------- Split layout (centre / program pages) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split__aside { position: sticky; top: 100px; display: grid; gap: 1.25rem; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .split__aside { position: static; } }
.aside-card { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); overflow: hidden; isolation: isolate; }
.aside-card::before { content: ""; position: absolute; width: 220px; aspect-ratio: 1; right: -70px; top: -80px; z-index: -1; background: var(--accent); opacity: .3; -webkit-mask: url(../img/blob-2.webp) center/contain no-repeat; mask: url(../img/blob-2.webp) center/contain no-repeat; }
.aside-card__title { font-size: 1.5rem; margin-bottom: 1rem; }
.aside-card__actions { display: grid; gap: .6rem; margin-top: 1.25rem; }
.details { margin: 0; display: grid; gap: .9rem; }
.details div { display: grid; gap: .1rem; }
.details dt { font: 800 .7rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-700); }
.details dd { margin: 0; font-size: .97rem; overflow-wrap: anywhere; }

/* ---------- Click-to-load embeds ---------- */
.facade { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--teal-100) url(../img/soft-wash.webp) center/cover; box-shadow: var(--shadow); }
.facade iframe { display: block; width: 100%; border: 0; }
.facade--map { display: grid; justify-items: center; text-align: center; gap: .5rem; padding: 1.75rem 1.25rem; min-height: 230px; align-content: center; }
.facade--map.is-loaded { padding: 0; min-height: 0; }
.facade--map.is-loaded iframe { height: 320px; }
.facade__icon { width: 34px; height: 34px; color: var(--cta); }
.facade__text { margin: 0; font-size: .95rem; color: var(--ink-soft); max-width: 30ch; }
.facade__link { font-size: .82rem; }
.facade--video { aspect-ratio: 16/9; background: var(--teal-900); margin: 0 0 2rem; }
.facade--video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.facade--video iframe { position: absolute; inset: 0; height: 100%; }
.facade__play { position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 92%); color: var(--cta); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .2s var(--ease); }
.facade__play .icon { width: 30px; height: 30px; margin-left: 4px; }
.facade__play:hover { transform: scale(1.08); }

/* ---------- Flyers ---------- */
.flyer-group { margin-bottom: 3rem; }
.entry-content > .flyer-group { max-width: var(--wide); }
.flyers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1.5rem; }
.flyer { margin: 0; }
.flyer a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; transition: transform .3s var(--ease), box-shadow .3s; }
.flyer a:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: var(--shadow-lg); }
.flyer img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.flyer figcaption { font-size: .9rem; font-weight: 600; margin-top: .7rem; line-height: 1.4; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgb(20 40 40 / 80%); backdrop-filter: blur(4px); }
.lightbox img { max-height: 88vh; width: auto; margin: auto; border-radius: 12px; }
.lightbox__close { position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); color: var(--ink); }

/* ---------- Newsletters ---------- */
.newsletters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 1.75rem 1.5rem; margin-block: 0 3rem; }
.entry-content > .newsletters { max-width: var(--wide); }
.newsletter { text-decoration: none; color: var(--ink); display: grid; gap: .7rem; }
.newsletter__cover { display: block; aspect-ratio: 3/4; border-radius: 6px 16px 16px 6px; overflow: hidden; background: #fff; box-shadow: var(--shadow), inset 4px 0 0 rgb(0 0 0 / 5%); transition: transform .3s var(--ease), box-shadow .3s; }
.newsletter__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.newsletter__cover--empty { display: grid; place-items: center; background: var(--teal-100) url(../img/soft-wash.webp) center/cover; font: 600 1.4rem var(--serif); padding: 1rem; text-align: center; }
.newsletter:hover .newsletter__cover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.newsletter__title { font-weight: 700; font-size: .95rem; }
.pdf-viewer { width: 100%; height: min(85vh, 1100px); border-radius: var(--radius); box-shadow: var(--shadow); margin: 1rem 0 3rem; background: #fff; }
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: var(--accent-soft); border-radius: var(--radius-lg); padding: 1.5rem 2rem; }
.cta-inline p { margin: 0; font: 600 1.4rem var(--serif); }
.notice-soft { background: var(--accent-2-soft); border-radius: var(--radius); padding: 1rem 1.25rem; }

/* ---------- Donations ---------- */
.funds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.5rem; margin-block: 2rem; }
.entry-content > .funds { max-width: var(--wide); }
.fund { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 1.75rem 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.fund::before { content: ""; position: absolute; width: 180px; aspect-ratio: 1; right: -60px; bottom: -70px; z-index: -1; background: var(--accent-2); opacity: .4; -webkit-mask: url(../img/blob-1.webp) center/contain no-repeat; mask: url(../img/blob-1.webp) center/contain no-repeat; }
.fund__centre { font: 800 .72rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-700); margin-bottom: .5rem; }
.fund__name { font-size: 1.6rem; }
.fund__text { color: var(--ink-soft); font-size: .96rem; }
.fund .btn { margin-top: auto; align-self: flex-start; }
.donate-intro { font-size: 1.15rem; }
.donate-note { font-size: .9rem; color: var(--ink-soft); }
.donate-band { text-align: center; }
.donate-band h2::before { left: 50% !important; transform: translateX(-50%); }

/* ---------- Locations accordion ---------- */
.locations { display: grid; gap: .9rem; margin: 1.5rem auto 3rem; }
.location { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.location summary { cursor: pointer; list-style: none; padding: 1.1rem 1.4rem; font: 600 1.35rem var(--serif); display: flex; justify-content: space-between; align-items: center; }
.location summary::-webkit-details-marker { display: none; }
.location summary::after { content: "+"; font: 400 1.6rem var(--sans); color: var(--cta); transition: transform .2s; }
.location[open] summary::after { transform: rotate(45deg); }
.location__body { padding: 0 1.4rem 1.3rem; }
.location__body .details { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 1rem; }

/* ---------- Forms ---------- */
.god-form { display: grid; gap: 1rem; background: #fff; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-lg); box-shadow: var(--shadow); margin: 1.5rem auto; }
.god-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.god-form label { display: block; font-weight: 700; font-size: .88rem; }
.god-form label > :is(input, select, textarea) { display: block; margin-top: .35rem; }
.god-form input, .god-form select, .god-form textarea { width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid color-mix(in srgb, var(--teal-300) 70%, white); border-radius: 12px; padding: .7rem .9rem; transition: border-color .2s, box-shadow .2s; }
.god-form input:focus, .god-form select:focus, .god-form textarea:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal-300) 40%, transparent); }
.god-form button { justify-self: start; }
.god-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.god-notice { padding: .9rem 1.1rem; border-radius: 12px; margin: 0; font-weight: 600; }
.god-notice--ok { background: #e2f4ea; color: #1e5a3a; }
.god-notice--error { background: #fde7e7; color: #8a2424; }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; background: var(--teal-900); color: #d9ebe8; padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; font-size: .95rem; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; width: 520px; aspect-ratio: 1; right: -160px; top: -200px; z-index: -1; background: var(--teal-600); opacity: .35; -webkit-mask: url(../img/blob-2.webp) center/contain no-repeat; mask: url(../img/blob-2.webp) center/contain no-repeat; }
.site-footer::after { opacity: .3; z-index: -1; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent-2); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand__sub { color: var(--teal-300); }
.site-footer .brand__logo { background: rgb(255 255 255 / 92%); border-radius: 50%; padding: 4px; }
.site-footer__about p { max-width: 42ch; color: #bcd8d4; }
.site-footer__title { font: 800 .75rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-300); margin: .5rem 0 1rem; }
.site-footer__links, .site-footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer__links li, .site-footer__contact li { margin: 0; }
.site-footer__contact li { display: flex; gap: .6rem; align-items: center; overflow-wrap: anywhere; }
.site-footer__contact .icon { flex: none; color: var(--teal-300); }
.socials { display: flex; gap: .6rem; margin-top: 1.25rem; align-items: center; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 10%); }
.socials a:hover { background: rgb(255 255 255 / 20%); }
.socials .socials__text { width: auto; padding: 0 1rem; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.mantra { margin-top: 1.5rem; }
.mantra__label { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: #fff !important; margin-bottom: .5rem; }
.mantra audio { width: 100%; max-width: 340px; height: 40px; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 12%); font-size: .85rem; color: #9fc2bd; }
.site-footer__base p { margin: 0; }

/* ---------- Pagination ---------- */
.pagination .nav-links { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 .9rem; border-radius: 999px; background: #fff; box-shadow: var(--shadow); text-decoration: none; font-weight: 700; color: var(--ink); }
.pagination .current { background: var(--cta); color: #fff; }

.back-link { margin-top: 2.5rem; font-weight: 700; }

/* ---------- Palette switcher (demo only) ---------- */
.palette-switcher { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: .45rem; background: #fff; padding: .45rem .6rem; border-radius: 999px; box-shadow: var(--shadow-lg); color: var(--ink-soft); }
.palette-switcher__btn { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; cursor: pointer; box-shadow: 0 0 0 1px rgb(0 0 0 / 12%); padding: 0; }
.palette-switcher__btn--lotus { background: linear-gradient(135deg, #eaa2b5 50%, #f2c879 50%); }
.palette-switcher__btn--peacock { background: linear-gradient(135deg, #b9a7e0 50%, #95d5b6 50%); }
.palette-switcher__btn--sandalwood { background: linear-gradient(135deg, #f1b08b 50%, #f1d67e 50%); }
.palette-switcher__btn.is-active { box-shadow: 0 0 0 2px var(--ink); }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Print ---------- */
@media print { .site-header, .site-footer, .palette-switcher, .edge, .blob { display: none !important; } body { background: #fff; } }

/* Headings / intros that introduce a wide grid line up with it. */
.entry-content > :is(h2, h3, p):has(+ :is(.people, .cards, .events, .flyer-group, .newsletters, .funds, .service-group)),
.entry-content > :is(.flyer-group, .service-group) { max-width: var(--wide); }
.entry-content > .lead:first-child:has(+ :is(.cards, .service-group, .funds)) { max-width: var(--wide); }
