/* ==========================================================================
   Low Tide - details theme.json cannot express.
   Motion is CSS-only (scroll-driven), so it is reversible, costs no JavaScript,
   and is switched off for anyone who prefers reduced motion.
   ========================================================================== */

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

::selection { background: var(--wp--preset--color--glass); color: var(--wp--preset--color--ink); }

/* Headline font: soft, low-contrast optical style for a calm voice. */
h1, h2, h3, h4, .wp-block-site-title, .lt-display {
	font-variation-settings: "SOFT" 100;
	text-wrap: balance;
}
p, li { text-wrap: pretty; }
em.lt-soft, :where(h1, h2) em { font-style: italic; }
em.lt-soft, :where(h1, h2):not(.has-text-color) em { color: var(--wp--preset--color--tide); }

/* Focus: always visible, never removed. */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--buoy);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Dark bands (Tide or Ink backgrounds): headings, links, italics and focus rings follow the light text,
   so anything a site owner adds there stays readable. Colours they pick themselves still win. */
:is(.has-tide-background-color, .has-ink-background-color) :where(h1, h2, h3, h4, h5, h6):not(.has-text-color) { color: inherit; }
:is(.has-tide-background-color, .has-ink-background-color) a:where(:not(.wp-element-button)):not(.has-text-color) { color: inherit; }
:is(.has-tide-background-color, .has-ink-background-color) :where(h1, h2):not(.has-text-color) em { color: var(--wp--preset--color--glass); }
:is(.has-tide-background-color, .has-ink-background-color) :is(a, button, summary, input, select, textarea, [tabindex]):is(:focus, :focus-visible) { outline-color: var(--wp--preset--color--shell); }

/* Small eyebrow label above section titles. */
.lt-eyebrow {
	font-size: 0.8rem !important;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.lt-eyebrow::before {
	content: "";
	width: 2.25rem;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
}
.has-tide-background-color .lt-eyebrow,
.has-ink-background-color .lt-eyebrow { color: var(--wp--preset--color--glass); }

/* ---------- Header ---------------------------------------------------------- */
.lt-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--wp--preset--color--sand) 92%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.admin-bar .lt-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .lt-header { top: 0; } }

@supports (animation-timeline: scroll()) {
	.lt-header {
		animation: lt-header-line linear both;
		animation-timeline: scroll(root);
		animation-range: 0 120px;
	}
	@keyframes lt-header-line {
		from { box-shadow: 0 1px 0 transparent; }
		to { box-shadow: 0 1px 0 color-mix(in srgb, var(--wp--preset--color--ink) 14%, transparent); }
	}
}

.lt-header .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.lt-header .wp-block-site-title a:hover { text-decoration: none; }

/* Mobile: header button hides, a designed bottom bar takes over. */
.lt-mobile-bar { display: none; }
@media (max-width: 781px) {
	.lt-header__cta { display: none !important; }
	.lt-mobile-bar {
		display: flex;
		position: fixed;
		left: 0.75rem;
		right: 0.75rem;
		bottom: max(0.75rem, env(safe-area-inset-bottom));
		z-index: 60;
		gap: 0.5rem;
		padding: 0.5rem;
		border-radius: 999px;
		background: color-mix(in srgb, var(--wp--preset--color--ink) 94%, transparent);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
		box-shadow: 0 10px 30px -10px rgba(30, 42, 45, 0.45);
	}
	.lt-mobile-bar a {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		border-radius: 999px;
		font-weight: 600;
		font-size: 0.95rem;
		text-decoration: none;
		color: var(--wp--preset--color--shell);
	}
	.lt-mobile-bar a.lt-mobile-bar__book { background: var(--wp--preset--color--buoy); flex: 1.6; }
	.lt-mobile-bar a:focus-visible { outline-color: var(--wp--preset--color--glass); }
	.wp-site-blocks > footer { padding-bottom: 5.5rem; }
}

/* ---------- Buttons --------------------------------------------------------- */
.wp-block-button__link { transition: background-color .2s ease, color .2s ease, transform .2s var(--wp--custom--motion--ease); }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-quiet .wp-block-button__link {
	background: transparent;
	color: currentColor;
	box-shadow: inset 0 0 0 1.5px currentColor;
}
.wp-block-button.is-style-quiet .wp-block-button__link:hover {
	background: color-mix(in srgb, currentColor 8%, transparent);
	color: currentColor;
}
@media (max-width: 600px) {
	.lt-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.lt-hero .wp-block-button__link { width: 100%; text-align: center; }
}

/* ---------- Hero ----------------------------------------------------------- */
.lt-hero { position: relative; overflow: hidden; }
.lt-hero { --lt-scene-h: clamp(300px, 44vw, 660px); }
.lt-hero__copy { position: relative; z-index: 1; }
/* The scene's sky tucks up behind the words, so the horizon shows in the first screen. */
.lt-hero__scene { margin-top: calc(var(--lt-scene-h) * -0.34) !important; line-height: 0; position: relative; z-index: 0; }
.lt-hero__scene svg { display: block; width: 100%; height: var(--lt-scene-h); }
@media (max-width: 781px) {
	.lt-hero { --lt-scene-h: clamp(260px, 80vw, 420px); }
	.lt-hero__scene { margin-top: calc(var(--lt-scene-h) * -0.2) !important; }
}

@media (prefers-reduced-motion: no-preference) {
	.lt-hero h1 { animation: lt-settle 1.1s var(--wp--custom--motion--ease) both; }
	.lt-hero .lt-hero__lede { animation: lt-settle 1.1s .28s var(--wp--custom--motion--ease) both; }
	.lt-hero .wp-block-buttons { animation: lt-settle 1.1s .4s var(--wp--custom--motion--ease) both; }
	@keyframes lt-settle {
		from { opacity: 0; transform: translateY(0.35em); }
		to { opacity: 1; transform: none; }
	}

	/* The tide goes out as you scroll: far layers drift less than near ones. */
	@supports (animation-timeline: view()) {
		.lt-hero__scene .lt-far,
		.lt-hero__scene .lt-mid,
		.lt-hero__scene .lt-near,
		.lt-hero__scene .lt-sky circle {
			animation: linear both;
			animation-timeline: view();
			animation-range: cover 40% cover 100%;
			transform-box: view-box;
		}
		.lt-hero__scene .lt-sky circle { animation-name: lt-sun; }
		.lt-hero__scene .lt-far { animation-name: lt-drift-far; }
		.lt-hero__scene .lt-mid { animation-name: lt-drift-mid; }
		.lt-hero__scene .lt-near { animation-name: lt-drift-near; }
		@keyframes lt-sun { to { transform: translateY(26px); } }
		@keyframes lt-drift-far { to { transform: translateY(-8px); } }
		@keyframes lt-drift-mid { to { transform: translateY(-22px); } }
		@keyframes lt-drift-near { to { transform: translateY(-46px); } }
	}
}

/* ---------- Gentle reveal (block style "Gentle reveal on scroll") ----------- */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.is-style-reveal > * {
			animation: lt-reveal linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 55%;
		}
		@keyframes lt-reveal {
			from { opacity: 0; transform: translateY(28px); }
			to { opacity: 1; transform: none; }
		}
	}
}
/* Never hide content in the editor. */
.editor-styles-wrapper .is-style-reveal > * { animation: none !important; }

/* ---------- Statement band ------------------------------------------------- */
.lt-statement p { font-variation-settings: "SOFT" 100; }

/* ---------- "What I help with" list ---------------------------------------- */
.wp-block-list.is-style-tide-marks {
	list-style: none;
	padding-inline-start: 0;
	margin: 0;
}
.wp-block-list.is-style-tide-marks > li {
	position: relative;
	padding-block: 1.1rem; padding-inline: 2.75rem 0;
	border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "SOFT" 100;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.35;
}
.wp-block-list.is-style-tide-marks > li:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.wp-block-list.is-style-tide-marks > li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 1.85rem;
	width: 1.6rem;
	height: 6px;
	background:
		linear-gradient(currentColor, currentColor) 0 0 / 100% 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) 0.35rem 100% / 60% 1.5px no-repeat;
	opacity: 0.45;
}
.wp-block-list.is-style-tide-marks > li span.lt-note {
	display: block;
	margin-top: 0.3rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.95rem;
	color: var(--wp--preset--color--muted);
}

/* ---------- Steps ---------------------------------------------------------- */
.lt-step .wp-block-image img { width: 120px; height: auto; }
.lt-step__num {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	color: var(--wp--preset--color--muted);
}

/* ---------- Fees ----------------------------------------------------------- */
.lt-fee {
	border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	padding-top: 1.25rem;
}
.lt-fee .lt-price {
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "SOFT" 100;
	line-height: 1;
}

/* ---------- FAQ (core Details block) --------------------------------------- */
.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "SOFT" 100;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.35;
	min-height: 44px;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--wp--preset--color--muted);
	transition: transform .25s var(--wp--custom--motion--ease);
	flex: none;
}
.wp-block-details[open] summary::after { transform: rotate(45deg); }
:where(.wp-block-details) > :not(summary) { margin-top: 0.75rem; color: var(--wp--preset--color--muted); max-width: 62ch; }

/* ---------- Contact band --------------------------------------------------- */
.lt-contact a:not(.wp-block-button__link) { color: var(--wp--preset--color--shell); }
.lt-contact a:not(.wp-block-button__link):hover { color: var(--wp--preset--color--glass); }
.lt-crisis {
	border-inline-start: 2px solid var(--wp--preset--color--glass);
	padding-inline-start: 1rem;
}

/* ---------- Footer --------------------------------------------------------- */
.lt-footer a { color: inherit; }
.lt-footer .wp-block-navigation a { text-decoration: none; }
.lt-footer .wp-block-navigation a:hover { text-decoration: underline; }

/* ---------- Posts ---------------------------------------------------------- */
.lt-post-card { border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); padding-top: 1.25rem; }
.wp-block-post-content > * + h2 { margin-top: 2.5em; }
.wp-block-post-content blockquote { padding-inline-start: 1.25rem; border-inline-start: 2px solid var(--wp--preset--color--glass); }
.lt-hero__lede { max-width: 36rem !important; }
.lt-room img { aspect-ratio: 2 / 3; width: 100%; height: auto; object-fit: cover; border-radius: 4px; }
/* "Rounded" image style: a true circle. !important beats a corner radius saved on the block itself. */
.wp-block-image.is-style-rounded img { border-radius: 50% !important; }
.wp-block-image.lt-room.is-style-rounded { max-width: 26rem; margin-inline: auto; }
.wp-block-image.lt-room.is-style-rounded img { aspect-ratio: 1; object-position: 50% 32%; }
.lt-footer__rule { max-width: var(--wp--style--global--wide-size) !important; opacity: .18; margin-top: var(--wp--preset--spacing--40) !important; }
.lt-nowrap { white-space: nowrap; }
@media (max-width: 781px) {
	.lt-footer .wp-block-navigation .wp-block-navigation__container { justify-content: flex-start; }
	.lt-footer .wp-block-navigation { justify-content: flex-start; }
}
@media (max-width: 781px) {
	.lt-footer .wp-block-navigation__container { row-gap: 0.6rem; }
}
.lt-label { font-size: 0.8rem !important; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin: 0; }
.lt-eyebrow--center { justify-content: center; }
.lt-eyebrow--center::after { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: 0.6; }

/* Mobile bar: on pages with the film it waits until the hero has been passed. */
.lt-film-js body:not(.lt-past-hero) .lt-mobile-bar { opacity: 0; visibility: hidden; transform: translateY(1.5rem); }
.lt-mobile-bar { transition: opacity .35s ease, transform .35s var(--wp--custom--motion--ease), visibility .35s; }

/* ==========================================================================
   Hero film: a Cover block with a looping, muted background video.
   Light type over the film, with a soft shade on the reading side only.
   ========================================================================== */
.lt-film-wrap { position: relative; }
.lt-film {
	min-height: calc(100svh - 4.5rem) !important;
	background: linear-gradient(180deg, #6f97c3 0%, #45678c 55%, #2c425a 100%);
	overflow: hidden;
}
/* The theme's own film: its still frame is the background, so something calm always shows,
   even if the film script is blocked or delayed. Only the right size is downloaded. */
.lt-film.lt-film--default {
	background: url(../film/hero-poster.webp) center / cover no-repeat, linear-gradient(180deg, #6f97c3 0%, #45678c 55%, #2c425a 100%);
}
@media (max-aspect-ratio: 9/10) {
	.lt-film.lt-film--default { background-image: url(../film/hero-m-poster.webp), linear-gradient(180deg, #6f97c3 0%, #45678c 55%, #2c425a 100%); }
}
/* The film fades in once it is actually playing. Only hidden when the film script is running. */
.lt-film .wp-block-cover__video-background { transition: opacity .8s ease; }
.lt-film-js .lt-film-wrap:not(.is-playing):not(.is-still) .lt-film .wp-block-cover__video-background { opacity: 0; }

/* Pause / play control for the moving background (WCAG 2.2.2). */
.lt-film-toggle {
	position: absolute; z-index: 3; inset-block-end: 1rem; inset-inline-end: 1rem;
	display: inline-flex; align-items: center; justify-content: center;
	inline-size: 2.75rem; block-size: 2.75rem; padding: 0; border: 0; border-radius: 50%;
	background: rgb(12 22 32 / .45); color: #fff; cursor: pointer;
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
	transition: background-color .2s ease;
}
.lt-film-toggle:hover { background: rgb(12 22 32 / .7); }
.lt-film-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lt-film-toggle svg { inline-size: 1rem; block-size: 1rem; fill: currentColor; }
.lt-film-wrap.is-still .lt-film-toggle:not([aria-pressed="true"]) { display: none; }
@media (max-width: 781px) {
	.lt-film-toggle { inset-block-end: auto; inset-block-start: 1rem; }
	.lt-film-js .lt-film .lt-eyebrow { padding-inline-end: 3.25rem; }
}
/* Shade on the reading side, so words stay clear whatever the frame. */
.lt-film::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgb(12 22 32 / .5) 0%, rgb(12 22 32 / .3) 45%, rgb(12 22 32 / 0) 80%),
		linear-gradient(180deg, rgb(12 22 32 / .38) 0%, rgb(12 22 32 / .22) 40%, rgb(12 22 32 / 0) 62%);
}
.lt-film .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: none;
	padding: clamp(3.5rem, 12vh, 7.5rem) var(--wp--style--root--padding-right, 1.5rem) var(--wp--preset--spacing--50) var(--wp--style--root--padding-left, 1.5rem);
	color: var(--wp--preset--color--shell);
	--lt-tshadow: 0 1px 2px rgb(8 14 20 / .55), 0 4px 18px rgb(8 14 20 / .35);
}
.lt-film .lt-hero-copy { max-width: 64rem; }
.lt-film h1,
.lt-film .lt-hero-copy p { color: var(--wp--preset--color--shell); text-shadow: var(--lt-tshadow); }
.lt-film h1 { max-width: none; }
.lt-film h1 em { color: #CFE3E8; }
.lt-film .lt-eyebrow { color: #DCE7EC; }
.lt-film .lt-eyebrow::before { background: #DCE7EC; }
.lt-film .lt-hero-lede {
	max-width: 34rem;
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "SOFT" 100;
	line-height: 1.4;
}
.lt-film .wp-block-button__link { text-shadow: none; }
.lt-film .is-style-quiet .wp-block-button__link { color: var(--wp--preset--color--shell); box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--shell); }
.lt-film .is-style-quiet .wp-block-button__link:hover { background: rgb(250 247 241 / .12); }

@media (prefers-reduced-motion: no-preference) {
	.lt-film .lt-hero-copy > * { animation: lt-settle 1.1s var(--wp--custom--motion--ease) both; }
	.lt-film .lt-hero-copy > *:nth-child(2) { animation-delay: .1s; }
	.lt-film .lt-hero-copy > *:nth-child(3) { animation-delay: .22s; }
	.lt-film .lt-hero-copy > *:nth-child(4) { animation-delay: .34s; }
	.editor-styles-wrapper .lt-film .lt-hero-copy > * { animation: none; }
}

@media (max-width: 781px) {
	.lt-film { min-height: calc(100svh - 4rem) !important; }
	.lt-film::before {
		background: linear-gradient(180deg, rgb(12 22 32 / .5) 0%, rgb(12 22 32 / .2) 45%, rgb(12 22 32 / .55) 100%);
	}
	.lt-film .wp-block-cover__inner-container { padding-top: 2.5rem; }
}
@media (max-width: 600px) {
	.lt-film .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.lt-film .wp-block-button__link { width: 100%; text-align: center; }
}
/* Phone: headline at the top, words and buttons at the bottom, the post and stones left clear in the middle. */
@media (max-width: 781px) {
	.lt-film .wp-block-cover__inner-container { padding-bottom: 1.5rem; }
	.lt-film .lt-hero-copy {
		display: flex;
		flex-direction: column;
		min-height: calc(100svh - 4rem - 4rem);
	}
	.lt-film .lt-hero-copy > .lt-hero-lede { margin-top: auto !important; font-size: 1.1rem !important; }
}

/* ---------- Article typography (blog posts only) -------------------------- */
/* Section headings inside a post sit below the post title in size. Sizes a user picks in the editor still win. */
.single .wp-block-post-content h2:not([class*="font-size"]) { font-size: var(--wp--preset--font-size--large); }
.single .wp-block-post-content h3:not([class*="font-size"]) { font-size: var(--wp--preset--font-size--medium); }
.single .wp-block-post-content > * + h2 { margin-top: 2em; }
.wp-block-quote cite { display: block; margin-top: .5rem; font-family: var(--wp--preset--font-family--body); font-size: var(--wp--preset--font-size--small); font-style: normal; color: var(--wp--preset--color--muted); }
.wp-block-table th { text-align: start; }
.wp-block-table th, .wp-block-table td { border-color: color-mix(in srgb, currentColor 22%, transparent); padding: .6em .8em; }
.wp-block-table thead { border-bottom-color: color-mix(in srgb, currentColor 45%, transparent); }
.wp-block-code { background: color-mix(in srgb, currentColor 6%, transparent); padding: 1rem 1.25rem; border-radius: 4px; overflow-x: auto; font-size: var(--wp--preset--font-size--small); }
.lt-post-nav { gap: 1rem 2rem; }
.lt-post-nav .post-navigation-link-next { margin-inline-start: auto; text-align: end; }

/* ---------- Print -------------------------------------------------------- */
@media print {
	.lt-header, .lt-mobile-bar, .lt-film-toggle, .wp-block-cover__video-background, .wp-block-navigation, .wp-block-search { display: none !important; }
	.lt-film { min-height: 0 !important; background: none !important; }
	.lt-film::before { display: none; }
	.lt-film h1, .lt-film .lt-hero-copy p, .lt-film .lt-eyebrow { color: #000 !important; text-shadow: none !important; }
	body { background: #fff; color: #000; }
	.is-style-reveal > * { opacity: 1 !important; transform: none !important; animation: none !important; }
}
