/*
 * Wintergarden site styles: layout and shared components, ported from the
 * approved preview (v37). Colors, type and spacing come from theme.json tokens.
 */

:root {
	--paper: var(--wp--preset--color--paper);
	--mist: var(--wp--preset--color--mist);
	--ink: var(--wp--preset--color--ink);
	--body: var(--wp--preset--color--body);
	--muted: var(--wp--preset--color--muted);
	--slate: var(--wp--preset--color--slate);
	--line: var(--wp--custom--line);
	--line-2: var(--wp--custom--line-strong);
	--display: var(--wp--preset--font-family--brand);
	--gutter: var(--wp--custom--gutter);
	--ph: #E6E9EB;
	--header-h: 88px;
}

html { scroll-padding-top: calc(var(--header-h) + 8px); }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
h1, h2, h3 { text-wrap: balance; } /* As in the approved preview: no single-word last lines. */

/* The site's own containers do the padding, so the root padding doesn't double up. */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 14px 28px;
	font-family: var(--display); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
	text-decoration: none; border: 1px solid transparent; text-align: center; cursor: pointer;
}
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); color: var(--ink); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }

.link-button {
	background: none; border: 0; padding: 0; margin: 0; min-height: 0;
	font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}

/* ---------- header ---------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 40;
	color: var(--ink); background: #fff; box-shadow: 0 1px 0 var(--line);
	transition: background-color .25s, color .25s, box-shadow .25s;
	padding-top: env(safe-area-inset-top, 0px);
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.has-hero .site-header:not(.solid) {
	color: #fff; background: transparent; box-shadow: none;
	/* Thin fade so the menu reads over bright sky (approved Oct 9). */
	background-image: linear-gradient(to bottom, rgba(16, 20, 23, .55) 0, rgba(16, 20, 23, 0) 100%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.has-hero .site-header:not(.solid) .header-inner { min-height: 88px; }

.brand { color: inherit; text-decoration: none; display: flex; align-items: center; min-height: 44px; }
.brand:hover { color: inherit; }
.wordmark-svg { display: block; width: calc(clamp(17px, 2vw, 23px) * 11.4); height: auto; }

.main-nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-links {
	list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px;
	font-family: var(--display); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
}
.nav-links a, .sub-btn {
	color: inherit; text-decoration: none; font: inherit; letter-spacing: inherit; text-transform: inherit;
	background: none; border: 0; padding: 12px 0; min-height: 44px; cursor: pointer; display: inline-flex; align-items: center;
}
.nav-links a[aria-current="page"], .sub-btn.current { text-decoration: underline; text-underline-offset: 7px; }
.sub-btn::after { content: ""; width: 6px; height: 6px; margin-left: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.sub-btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.has-sub { position: relative; }
.sub {
	list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: -18px; min-width: 230px;
	background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); display: none;
}
.has-sub.open .sub { display: block; }
.sub a { display: flex; padding: 10px 18px; color: var(--ink); }
.sub a:hover { background: var(--mist); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-solid { min-height: 44px; padding: 11px 22px; background: var(--ink); color: #fff; }
.btn-solid:hover { background: #000; color: #fff; }
.has-hero .site-header:not(.solid) .btn-solid { background: #fff; color: var(--ink); }

.menu-btn, .menu-close {
	display: none; width: 48px; height: 48px; border: 1px solid currentColor; background: transparent; color: inherit;
	align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.menu-btn .bars { display: flex; flex-direction: column; gap: 5px; }
.menu-btn .bars span { display: block; width: 18px; height: 1px; background: currentColor; }
.menu-close { display: flex; }

/* phone menu (a dialog) */
.mmenu { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: #fff; overflow: auto; padding-bottom: 48px; }
.mmenu[hidden] { display: none; }
.mmenu-top { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding-top: env(safe-area-inset-top, 0px); }
.mmenu ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mmenu a:not(.btn) {
	color: #fff; text-decoration: none; font-family: var(--display); font-size: 1.25rem; letter-spacing: .14em;
	text-transform: uppercase; display: block; padding: 10px 0;
}
.mmenu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; }
.mmenu .m-group { display: block; margin-top: 22px; font-family: var(--display); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: #A9B0B6; }
.mmenu .btn { margin-top: 28px; font-size: .85rem; padding: 16px 28px; }
body.menu-open { overflow: hidden; }

@media (max-width: 1060px) {
	.main-nav { display: none; }
	.menu-btn { display: flex; }
}
@media (max-width: 520px) {
	.header-inner { gap: 10px; }
	.site-header .wordmark-svg, .mmenu .wordmark-svg { width: 170px; }
	.btn-solid { padding: 10px 12px; font-size: .7rem; letter-spacing: .16em; }
	.header-actions { gap: 8px; }
	.menu-btn, .menu-close { width: 44px; height: 44px; }
}
/* The narrowest screens (and desktops zoomed to 400%): everything in the header still fits (WCAG 1.4.10). */
@media (max-width: 360px) {
	.site-header .wordmark-svg, .mmenu .wordmark-svg { width: 128px; }
	.btn-solid { padding: 9px 9px; letter-spacing: .12em; }
	.header-inner, .header-actions { gap: 6px; }
}

/* Plain pages: the title lines up with the text column. */
.page-title h1 { margin: 0; }
.page-title { max-width: calc(var(--wp--style--global--content-size, 760px) + 2 * var(--gutter)); margin-inline: auto; padding-block: clamp(40px, 6vw, 72px) 24px; }

/* Long text pages (privacy): room above each heading, and anchors clear the fixed header. */
.wp-block-post-content > h2.wp-block-heading { margin-block-start: clamp(48px, 6vw, 72px); scroll-margin-top: 96px; }
.wp-block-post-content > h3.wp-block-heading { margin-block-start: 36px; }
.wp-block-post-content > h4.wp-block-heading { margin-block-start: 26px; font-size: .9rem; font-weight: 400; letter-spacing: .14em; }
.wp-block-post-content > h3 + *, .wp-block-post-content > h4 + * { margin-block-start: 10px; }
.wp-block-post-content > ul.wp-block-list { padding-inline-start: 1.2em; }
.wp-block-post-content > ul.wp-block-list li + li { margin-top: .4em; }
/* Plain text pages (privacy, cookie policy) end with room above the footer; pages that end with a section have their own. */
.wp-block-post-content:not(:has(> .wg-section:last-child)) { padding-block-end: clamp(64px, 9vw, 120px); }
/* A full-width section after plain text needs space above it. */
.wp-block-post-content > :not(.wg-section) + .wg-section { margin-block-start: var(--wp--preset--spacing--60) !important; }

@media print {
	.site-header, .site-footer, .band, .hero-media { display: none !important; }
	body:not(.has-hero) main { padding-top: 0; }
	.wp-block-post-content > h2.wp-block-heading { break-after: avoid; }
	.wp-block-post-content a { color: inherit; }
}

/* Pages without a hero start below the fixed header. */
body:not(.has-hero) main { padding-top: 72px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #D9DDE0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 40px 80px; justify-content: space-between; padding-block: 72px 36px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; color: #D9DDE0; }
.footer-logo { color: #fff; }
.footer-logo .wordmark-svg { width: 262px; max-width: 100%; }
.footer-brand p { line-height: 1.7; }
.site-footer a { color: #fff; text-underline-offset: 4px; }
.site-footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 56px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
/* Footer links are at least 24px tall (WCAG 2.5.8) without changing the spacing between them. */
.footer-nav a, .footer-nav .link-button { display: inline-block; padding-block: 3px; }
.footer-nav .link-button { color: #fff; }
/* A menu item that isn't available yet (the cookie preferences link before the consent tool is set up) takes no space. */
.footer-nav li:has(> [hidden]) { display: none; }
.footer-legal { padding-bottom: 40px; font-size: .82rem; color: #A9B0B6; }
.footer-legal a { color: #D9DDE0; }

/* ---------- focus on dark backgrounds ---------- */
.has-hero .site-header:not(.solid) :focus-visible,
.mmenu :focus-visible,
.site-footer :focus-visible,
.is-dark :focus-visible { outline-color: #fff; }
.site-header .sub :focus-visible { outline-color: var(--slate); }

@media (prefers-reduced-motion: reduce) {
	.site-header { transition: none; }
}

/* Long email addresses wrap instead of pushing the page sideways at 320px (Nov 6, 2026). */
a[href^="mailto:"] { overflow-wrap: anywhere; }
