/* New Horizons Garden: theme extras. Colours/type live in theme.json; this file holds only what blocks can't express. */

/* ---------- Header ---------- */
.nh-header { border-bottom: 1px solid #e6dfea; }
.nh-header .wp-block-navigation a { padding: .45em .2em; display: inline-block; }
.nh-header .wp-block-navigation a[aria-current="page"],
.nh-header .wp-block-navigation .current-menu-item > a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .45em; text-decoration-color: var(--wp--preset--color--mural-sun); }
.nh-header .wp-block-navigation__responsive-container-open,
.nh-header .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
.nh-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
.nh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { font-size: 1.75rem; gap: 1.1rem; font-family: var(--wp--preset--font-family--caprasimo); font-weight: 400; }
.nh-header .is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; padding-top: 2.5rem; }
.nh-header .is-menu-open .wp-block-navigation__container { align-items: flex-start !important; }
.nh-header .is-menu-open :focus-visible { outline-color: var(--wp--preset--color--ray-yellow) !important; }
.nh-header .is-menu-open a[aria-current="page"] { text-decoration-color: var(--wp--preset--color--ray-yellow) !important; }

/* ---------- Page head (title + photo rising out of the rays) ---------- */
.nh-head { padding-top: clamp(1.5rem, 4vw, 4rem); padding-bottom: 0; }
.nh-head .wp-block-columns { gap: clamp(1.5rem, 4vw, 4rem); align-items: end; margin: 0; }
.nh-head h1 { margin-top: 0; text-wrap: balance; }
.nh-lede { font-weight: 300; font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem); line-height: 1.3; margin-top: .75rem; }
.nh-head .nh-where { max-width: 34em; }
.nh-head .wp-block-buttons { margin-top: 1.75rem; margin-bottom: clamp(1.5rem, 4vw, 3.5rem); }

/* The signature: rays from the garden's own artwork, rising from the bottom edge behind the photo */
.nh-rays {
	position: relative;
	padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.75rem, 4vw, 3.25rem) 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' preserveAspectRatio='xMidYMax slice'%3E%3Cpath d='M300 620L-556 342L-403 58Z' fill='%230B5A3C'/%3E%3Cpath d='M300 620L-362 10L-104 -184Z' fill='%231BA251'/%3E%3Cpath d='M300 620L-47 -210L269 -279Z' fill='%23C27A1E'/%3E%3Cpath d='M300 620L331 -279L647 -210Z' fill='%23E84A23'/%3E%3Cpath d='M300 620L704 -184L962 10Z' fill='%2331B7E9'/%3E%3Cpath d='M300 620L1003 58L1156 342Z' fill='%23FFD60A'/%3E%3C/svg%3E") center bottom / cover no-repeat;
	border-radius: 999px 999px 0 0;
	overflow: hidden;
}
.nh-rays .wp-block-image { margin: 0; }
.nh-rays img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 0 0; }
.nh-rays--wide img { aspect-ratio: 4 / 3; }
@media (max-width: 781px) { .nh-rays { max-width: 460px; margin-inline: auto; } }

/* ---------- Horizon line: the six ray colours as one band ---------- */
.wp-block-separator.nh-horizon {
	border: 0 !important;
	height: 10px;
	width: auto;
	max-width: none;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	opacity: 1;
	background: linear-gradient(90deg, #0B5A3C 0 16.666%, #1BA251 0 33.333%, #C27A1E 0 50%, #E84A23 0 66.666%, #31B7E9 0 83.333%, #FFD60A 0);
}
/* The one orchestrated moment: on page load the horizon opens out from the middle. */
@media (prefers-reduced-motion: no-preference) {
	.nh-head + .nh-horizon { animation: nh-horizon 1.1s cubic-bezier(.2, .7, .2, 1) .15s both; transform-origin: 50% 50%; }
	@keyframes nh-horizon { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- Sections ---------- */
.nh-section { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.nh-section > h2:first-child, .nh-section .nh-section-title { margin-top: 0; }
.nh-tint { background: var(--wp--preset--color--seed-paper); }

/* ---------- Workday season: a vine through the months ---------- */
ul.nh-season { list-style: none; padding: 0; margin: 2rem 0 0; position: relative; display: grid; gap: 0; }
ul.nh-season::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 3px; background: var(--wp--preset--color--pea-vine); border-radius: 2px; }
ul.nh-season li { position: relative; padding: 0 0 1.4rem 3rem; line-height: 1.35; }
ul.nh-season li:last-child { padding-bottom: 0; }
ul.nh-season li::before { /* leaf on the vine */
	content: ""; position: absolute; left: 1px; top: 4px; width: 22px; height: 22px;
	background: var(--wp--preset--color--pea-vine); border: 3px solid var(--wp--preset--color--base);
	border-radius: 0 60% 0 60%; box-sizing: border-box;
}
ul.nh-season li strong { display: block; font-family: var(--wp--preset--font-family--caprasimo); font-weight: 400; color: var(--wp--preset--color--purple); font-size: 1.5rem; line-height: 1.1; }
@media (min-width: 960px) {
	ul.nh-season { grid-template-columns: repeat(7, 1fr); }
	ul.nh-season::before { left: 0; right: 0; top: 10px; bottom: auto; width: auto; height: 3px; }
	ul.nh-season li { padding: 2.6rem .5rem 0 0; }
	ul.nh-season li::before { top: 0; left: 0; }
}

.nh-callout { border-left: 6px solid var(--wp--preset--color--mural-sun); padding: 1.25rem 1.5rem; background: var(--wp--preset--color--base); }
.nh-callout p { margin: 0; }
.nh-phone a { font-weight: 700; white-space: nowrap; }

/* ---------- Find the garden ---------- */
.nh-corner { margin: 0; }
.nh-corner svg { display: block; width: 100%; height: auto; }
.nh-corner .t { font-family: var(--wp--preset--font-family--lato); fill: #2B2420; }
.nh-corner .t-street { font-size: 13.5px; font-weight: 700; letter-spacing: .02em; }
.nh-corner .t-label { font-family: var(--wp--preset--font-family--caprasimo); font-size: 18px; fill: #741F8A; }
.nh-corner .t-small { font-size: 15px; }
.nh-corner figcaption { margin-top: .5rem; font-size: var(--wp--preset--font-size--small); }

.nh-envelope {
	position: relative;
	background: var(--wp--preset--color--base);
	border: 2px solid var(--wp--preset--color--contrast);
	padding: 1.5rem 1.5rem 1.25rem;
	box-shadow: 6px 6px 0 var(--wp--preset--color--purple);
}
.nh-envelope::after { /* postage stamp: the ray burst */
	content: ""; position: absolute; top: 12px; right: 12px; width: 44px; height: 52px;
	border: 2px dashed #8f8a87;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cpath d='M0 0L46 0L30 35Z' fill='%230B5A3C'/%3E%3Cpath d='M0 0L22 41L-17 43Z' fill='%231BA251'/%3E%3Cpath d='M0 0L-26 38L-46 5Z' fill='%23C27A1E'/%3E%3Cpath d='M0 0L-46 -5L-26 -38Z' fill='%23E84A23'/%3E%3Cpath d='M0 0L-17 -43L22 -41Z' fill='%2331B7E9'/%3E%3Cpath d='M0 0L30 -35L46 0Z' fill='%23FFD60A'/%3E%3C/svg%3E") center / 30px no-repeat;
}
.nh-envelope h3 { margin-top: 0; padding-right: 60px; }
.nh-envelope p { margin-bottom: 0; }

.nh-map iframe { display: block; width: 100%; height: clamp(300px, 50vw, 460px); border: 0; }

/* ---------- Coordinators + history ---------- */
.nh-people figure { margin: 0; }
.nh-people img { width: 100%; height: auto; }
.nh-people-caption { font-family: var(--wp--preset--font-family--caprasimo); color: var(--wp--preset--color--purple); font-size: var(--wp--preset--font-size--large); line-height: 1.35; }

.nh-history .nh-byline { margin-top: .5rem; }
.nh-history .nh-dropcap::first-letter {
	float: left; font-family: var(--wp--preset--font-family--caprasimo); color: var(--wp--preset--color--purple);
	font-size: 4.1em; line-height: .82; padding: .08em .1em 0 0;
}
.nh-history .wp-block-verse {
	white-space: pre-wrap; background: none; padding: 1.5rem 0 1.5rem 1.5rem; margin-top: 2.5rem;
	border-left: 4px solid var(--wp--preset--color--pea-vine); overflow-wrap: anywhere;
}

/* Privacy Policy section headings (phase 1 class) */
.ow-section-title { font-size: var(--wp--preset--font-size--large); margin-top: 2.5rem; }

/* ---------- Footer ---------- */
.nh-footer { color: #fff; }
.nh-footer a { color: #fff; }
.nh-footer a:hover { color: var(--wp--preset--color--ray-yellow); }
.nh-footer .wp-block-site-title a { color: #fff; }
.nh-footer .wp-block-navigation a { display: inline-block; padding: .4em .3em; }
.nh-footer h2 { color: #fff; font-size: 1.25rem; margin-bottom: .5rem; }
.nh-footer p { margin: 0 0 .35rem; }
.nh-footer .nh-footer-legal a { display: inline-block; padding: .4em .3em; }

/* ---------- Focus, motion ---------- */
:where(a, button, .wp-element-button, summary, input):focus-visible { outline: 3px solid var(--wp--preset--color--purple); outline-offset: 3px; border-radius: 2px; }
.nh-footer :where(a):focus-visible { outline-color: var(--wp--preset--color--ray-yellow); }
.wp-element-button:focus-visible { outline-color: var(--wp--preset--color--mural-sun); }
html { scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
