/*
 * HAVEN LOOM — home services: house cleaning, end-of-lease and bond cleans,
 * lawns and gardens, handymen, pressure washing, rubbish removal. A Briefly
 * Pro design on the Loom engine.
 *
 * Its point of view: the house kept well. Fresh white, deep eucalyptus and a
 * warm honey for the small things; Epilogue set firm for headings, Karla for
 * reading. It opens on the front step (the photograph in a window with a
 * pitched head), draws the services as the rooms of a floor plan, sets the
 * steps as a job list that ticks itself off, and closes under a roofline.
 *
 * Part one sets the tokens; part two is the design's signature.
 *
 * Contrast (WCAG 2.1):
 *   ink #17302A on paper #FBFCFA = 13.9:1 · muted #475A53 = 7.0:1
 *   eucalyptus #2E6B57 (labels, links) on paper = 6.0:1 · white on it = 6.3:1
 *   #EEF5F1 on deep green #17302A = 12.8:1 · honey #E9B949 on it = 7.9:1
 */

/* ── 1. Tokens ───────────────────────────────────────────────────────── */
.lm-sec,
.bfy-prime.bfy-havenloom {
	--p-bg: #FBFCFA;
	--p-surface: #FFFFFF;
	--p-ink: #17302A;
	--p-muted: #475A53;
	--p-border: rgba(23, 48, 42, 0.13);
	--p-brand: var(--lm-own-brand, var(--ewpk-brand-override, var(--wp--preset--color--primary, #2E6B57)));
	--p-on-brand: var(--lm-own-on-brand, var(--wp--preset--color--on-primary, #FFFFFF));
	--p-band-bg: #EEF4F0;
	--p-band-surface: #FFFFFF;
	--p-ink-bg: #17302A;
	--p-ink-fg: #EEF5F1;
	--p-ink-muted: rgba(238, 245, 241, 0.76);
	--p-ink-border: rgba(238, 245, 241, 0.16);
	--p-ink-surface: rgba(238, 245, 241, 0.06);

	--p-font-display: 'Epilogue', system-ui, sans-serif;
	--p-font-body: 'Karla', system-ui, sans-serif;
	--p-label-face: 'Karla', system-ui, sans-serif;

	--p-t-hero: clamp(2.3rem, 4.6vw, 3.7rem);
	--p-t-h1: clamp(2rem, 3.8vw, 3rem);
	--p-t-h2: clamp(1.7rem, 3vw, 2.4rem);
	--p-t-h2-sm: clamp(1.25rem, 2vw, 1.5rem);
	--p-t-h3: 1.12rem;
	--p-t-lead: clamp(1.08rem, 1.35vw, 1.2rem);
	--p-t-body: 1.03rem;
	--p-t-sm: 0.94rem;
	--p-t-micro: 0.8rem;
	--p-lh: 1.62;

	--p-w: 1200px;
	--p-sect: clamp(3.75rem, 7.5vw, 6.5rem);
	--p-sect-tight: clamp(2.25rem, 4vw, 3.25rem);
	--p-sect-loose: clamp(4.5rem, 9vw, 8rem);
	--p-gut: clamp(1.25rem, 4vw, 3rem);

	--p-radius: 14px;
	--p-radius-sm: 8px;
	--p-photo-radius: 14px;
	--bfy-btn-radius: 999px;

	--p-h-weight: 700;
	--p-track: 0.8;
	--p-brand-text: var(--lm-own-brand-text, #2E6B57);
	--p-ink-accent: var(--lm-own-ink-accent, #E9B949);
	--p-ink-btn: #E9B949;
	--p-ink-btn-text: #17302A;
	--p-quote-face: 'Epilogue', system-ui, sans-serif;
	--p-quote-style: normal;
	--p-quote-weight: 500;

	--hv-green: var(--lm-own-brand, #2E6B57);
	--hv-green-text: var(--lm-own-brand-text, #2E6B57);
	--hv-honey: #E9B949;
	--hv-wash: #E4EFE8;
}

/* ── 2. Signature ────────────────────────────────────────────────────── */

.lm-sec :is(.lm-h1, .lm-h2) { text-wrap: balance; letter-spacing: -0.03em; }
.lm-sec .lm-h1 { line-height: 1.04; }
.lm-sec .lm-h2 { line-height: 1.1; }
.lm-sec .lm-h3 { font-weight: 600; letter-spacing: -0.01em; }
.lm-sec :is(p, .lm-lede) { text-wrap: pretty; }

/* The label: in the house green, led by a small honey dot. */
.lm-sec .lm-label { display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content; font-family: var(--p-label-face); font-size: var(--p-t-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lm-accent); }
.lm-sec .lm-label::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--hv-honey); }
.lm-sec .lm-btn { font-family: var(--p-font-body); font-weight: 700; letter-spacing: 0.01em; }
.lm-sec .lm-btn:not(.lm-btn--ghost):hover { filter: brightness(1.08); }

/* Proof: what each promise means, on ruled rows, a honey tick before each name. */
.lm-sec.lm-proof { --lm-bg: var(--p-bg); }
.lm-proof .lm-proof__item strong { font-family: var(--p-font-display); font-weight: 600; }
.lm-proof:is(.lm-proof--ledger, .lm-proof--line) .lm-proof__item strong::before { content: "\2713"; display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; margin-right: 0.55rem; border-radius: 50%; background: var(--hv-honey); color: #17302A; font-size: 0.75rem; font-weight: 700; vertical-align: 0.1em; }
.lm-proof--ledger .lm-proof__list { border-top-color: var(--hv-green); }

/* Story: the photograph with soft corners and a green wash set behind it. */
.lm-story .lm-story__media { border-radius: var(--p-photo-radius); }
.lm-story:is(.lm-story--media-right, .lm-story--media-left) .lm-story__media { box-shadow: -1.1rem 1.1rem 0 var(--hv-wash); }
.lm-story .lm-story__sig { font-family: var(--p-font-display); font-weight: 600; font-style: normal; color: var(--hv-green-text); }

/* Reviews across the page: the first in the display face, a honey bar before it. */
.lm-quotes .lm-quote__name { font-family: var(--p-font-display); font-weight: 600; }
.lm-quotes .bfy-quote__rating { color: #B7861A; }
.lm-quotes--band .lm-quote:first-child { position: relative; padding-left: clamp(1.25rem, 3vw, 2rem); border-left: 4px solid var(--hv-honey); border-bottom: 0; }
.lm-quotes:not(.lm-quotes--band) .lm-quote { border-radius: var(--p-radius); }

/* Gallery: each job with soft corners; its note under a green rule. */
.lm-gal .lm-gal__list > .bfy-gal__item { border-radius: var(--p-photo-radius); }
.lm-gal.lm-gal--cases .bfy-gal__cap { border-top-color: var(--hv-green); font-weight: 500; }

.lm-sec .lm-fig__v { font-family: var(--p-font-display); font-weight: 700; letter-spacing: -0.04em; color: var(--hv-green-text); }
.lm-sec.lm-tone-ink .lm-fig__v { color: var(--p-ink-fg); }
.lm-creds .lm-creds__item { padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--hv-wash); font-size: var(--p-t-sm); font-weight: 600; color: var(--p-ink); }

/* Questions laid open: each under a short green rule. */
.lm-faq .lm-qa summary { font-family: var(--p-font-display); font-weight: 600; font-size: var(--p-t-body); }
.lm-faq--open .lm-qa { border-top: 1px solid var(--p-border); background: linear-gradient(var(--hv-green), var(--hv-green)) 0 -1px / 2.25rem 3px no-repeat; }

.lm-pricing .lm-plan { border-radius: var(--p-radius); }
.lm-pricing .lm-plan.is-featured { box-shadow: 0 0 0 2px var(--hv-green), 0 24px 48px -30px rgba(23, 48, 42, 0.45); }
.lm-sec .lm-details__phone { font-family: var(--p-font-display); font-weight: 700; font-size: clamp(1.45rem, 2.6vw, 1.9rem); letter-spacing: -0.03em; }
.lm-sec.lm-tone-ink .lm-details__phone a { color: var(--p-ink-fg); }

/* ── Haven's own sections ────────────────────────────────────────────── */

/* Room by room: the services as a floor plan. A heavy outer wall, thin inner
   walls, each room numbered on a small tag with a door swinging in at its
   foot. An empty corner of the plan is hatched, like the garden. */
.hv-plan .hv-plan__floor {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: minmax(10.5rem, auto);
	margin: 0;
	padding: 0;
	border: 5px solid var(--p-ink);
	border-radius: 3px;
	background: repeating-linear-gradient(-45deg, var(--hv-wash) 0 2px, var(--p-bg) 2px 11px);
	list-style: none;
}
.hv-plan .hv-plan__room {
	position: relative;
	display: grid;
	align-content: start;
	gap: 0.45rem;
	padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.1rem, 2.2vw, 1.6rem) 3.25rem;
	background: var(--p-bg);
	box-shadow: inset 0 0 0 1px var(--p-ink);
	transition: background-color 0.2s ease;
}
.hv-plan .hv-plan__room:hover { background: #F4F8F5; }
.hv-plan .hv-plan__no { justify-self: start; padding: 0.1rem 0.45rem; border: 1px solid var(--p-ink); border-radius: 3px; font-family: var(--p-font-body); font-size: var(--p-t-micro); font-weight: 700; letter-spacing: 0.06em; color: var(--p-ink); }
.hv-plan .hv-plan__what { display: grid; gap: 0.4rem; }
.hv-plan .hv-plan__room .lm-h3 { margin: 0.35rem 0 0; font-size: clamp(1.1rem, 1.6vw, 1.25rem); }
.hv-plan .hv-plan__room .lm-h3 a { color: inherit; text-decoration: none; }
.hv-plan .hv-plan__room .lm-h3 a:hover { color: var(--hv-green-text); text-decoration: underline; text-underline-offset: 0.2em; }
.hv-plan .hv-plan__room .lm-p { margin: 0; font-size: var(--p-t-sm); color: var(--p-muted); }
/* The door: an opening in the room's wall and the arc of its swing. */
.hv-plan .hv-plan__door { position: absolute; left: clamp(1.1rem, 2.2vw, 1.6rem); bottom: 0; width: 2.1rem; height: 2.1rem; border-top: 1px solid var(--p-ink); border-right: 1px dashed rgba(23, 48, 42, 0.45); border-top-right-radius: 100%; }
.hv-plan .hv-plan__door::after { content: ""; position: absolute; left: 0; right: -1px; bottom: -1px; height: 3px; background: var(--p-bg); }
.hv-plan .hv-plan__room:hover .hv-plan__door::after { background: #F4F8F5; }
/* The larger room: the first takes two bays where the plan has room for it. */
.hv-plan .hv-plan__floor:is(.hv-plan__floor--n4, .hv-plan__floor--n5, .hv-plan__floor--n7, .hv-plan__floor--n8) > :first-child { grid-column: span 2; }
.hv-plan .hv-plan__floor--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* The job list: the steps on a white sheet beside the heading, each box
   ticking itself as the row comes into view. */
.hv-list .hv-list__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--lm-gap); align-items: start; }
.hv-list .hv-list__grid > .lm-head { position: sticky; top: 6rem; }
.hv-list .hv-list__sheet { margin: 0; padding: clamp(1rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--p-radius); background: #FFFFFF; box-shadow: 0 1px 0 rgba(23, 48, 42, 0.06), 0 24px 48px -34px rgba(23, 48, 42, 0.5); list-style: none; }
.hv-list .hv-list__row { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 1rem; padding: 1.15rem 0; border-bottom: 1px dashed var(--p-border); }
.hv-list .hv-list__row:last-child { border-bottom: 0; }
.hv-list .hv-list__box { position: relative; width: 1.45rem; height: 1.45rem; margin-top: 0.1rem; border: 2px solid var(--p-ink); border-radius: 5px; background: #FFFFFF; }
.hv-list .hv-list__box::after { content: ""; position: absolute; left: 0.38rem; top: 0.08rem; width: 0.4rem; height: 0.78rem; border: solid var(--hv-green); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.hv-list .hv-list__what { display: grid; gap: 0.3rem; }
.hv-list .hv-list__row .lm-h3 { margin: 0; }
.hv-list .hv-list__row .lm-p { margin: 0; font-size: var(--p-t-sm); color: var(--p-muted); }

@media (max-width: 860px) {
	.hv-plan .hv-plan__floor { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
	.hv-plan .hv-plan__floor > :first-child { grid-column: auto; }
	.hv-plan .hv-plan__floor > .hv-plan__room:nth-child(n) { grid-column: auto; }
	.hv-list .hv-list__grid { grid-template-columns: minmax(0, 1fr); }
	.hv-list .hv-list__grid > .lm-head { position: static; }
}

/* ── Haven's own opening and close ───────────────────────────────────── */

/* The front step: the words to the left; the photograph in a window with a
   pitched head over a soft green wash; on the home page the form on a white
   card at the window's foot. */
.lm-sec.hv-step { padding-block: clamp(2.75rem, 6vw, 5rem) clamp(3rem, 6.5vw, 5.5rem); overflow: hidden; }
.hv-step .lm-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hv-step .hv-step__words { display: grid; gap: 1.35rem; }
.hv-step .lm-hero__copy { display: grid; gap: 1rem; }
.hv-step .lm-h1 { margin: 0; font-size: var(--p-t-hero); font-weight: 700; color: var(--p-ink); }
.hv-step .lm-hero__side { display: grid; gap: 1.4rem; }
.hv-step .lm-lede { margin: 0; max-width: 33rem; font-size: var(--p-t-lead); color: var(--p-muted); }
.hv-step .lm-hero__note { justify-self: start; display: inline-flex; align-items: center; gap: 0.55rem; margin: 0; padding: 0.45rem 0.9rem 0.45rem 0.5rem; border-radius: 999px; background: var(--hv-wash); font-size: var(--p-t-sm); font-weight: 600; color: var(--p-ink); }
.hv-step .lm-hero__note::before { content: "\2713"; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--hv-honey); color: #17302A; font-size: 0.78rem; font-weight: 700; }
.hv-step .hv-step__view { position: relative; display: grid; padding: 0 0 0 clamp(0.75rem, 2vw, 1.5rem); }
.hv-step .hv-step__view::before { content: ""; position: absolute; inset: 12% -40vw -12% 0; border-radius: 40px 0 0 40px; background: var(--hv-wash); }
.hv-step .hv-step__window { position: relative; margin: 0; aspect-ratio: 5 / 4; overflow: hidden; clip-path: polygon(0 13%, 50% 0, 100% 13%, 100% 100%, 0 100%); border-radius: 0 0 var(--p-photo-radius) var(--p-photo-radius); }
.hv-step .hv-step__window > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hv-step--form .hv-step__window { aspect-ratio: 16 / 11; }
.hv-step--page .hv-step__window { aspect-ratio: 16 / 10; }
.hv-step .hv-step__card {
	--briefly-text: #17302A;
	--briefly-border: rgba(23, 48, 42, 0.22);
	position: relative;
	z-index: 2;
	margin: -3.5rem clamp(0.75rem, 3vw, 2rem) 0;
	padding: clamp(1.4rem, 2.6vw, 1.9rem);
	border-radius: var(--p-radius);
	border-top: 4px solid var(--hv-green);
	background: #FFFFFF;
	color: #17302A;
	box-shadow: 0 30px 60px -36px rgba(23, 48, 42, 0.6);
}
/* No photograph, seen by a visitor: the card stands on the wash. */
.hv-step .hv-step__view:has(.hv-step__window > .bfy-img-empty:first-child) .hv-step__window { display: none; }
.hv-step .hv-step__view:has(.hv-step__window > .bfy-img-empty:first-child) .hv-step__card { margin: 2rem 0; }

/* Under the roofline: a deep green panel with a pitched head, the words to
   the left and the details or the form on a white card to the right. */
.lm-sec.hv-home { background: var(--p-bg); color: var(--p-ink-fg); }
.lm-sec.hv-home .lm-in { display: block; }
.hv-home .hv-home__frame { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--lm-gap); align-items: center; padding: calc(clamp(2rem, 5vw, 4rem) + 2.5rem) clamp(2rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem); clip-path: polygon(0 2.75rem, 50% 0, 100% 2.75rem, 100% 100%, 0 100%); border-radius: 0 0 22px 22px; background: var(--p-ink-bg); }
.hv-home .hv-home__frame:not(:has(> .hv-home__side)) { grid-template-columns: minmax(0, 1fr); }
.hv-home .hv-home__frame > .lm-contact__copy:only-child { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 0.9rem var(--lm-gap); align-items: start; }
.hv-home .hv-home__frame > .lm-contact__copy:only-child > :not(.lm-details) { grid-column: 1; }
.hv-home .hv-home__frame > .lm-contact__copy:only-child > .lm-details { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
.hv-home .lm-h2 { color: var(--p-ink-fg); }
.hv-home :is(.lm-lede, .lm-p) { color: var(--p-ink-muted); }
.hv-home .lm-btn:not(.lm-btn--ghost) { background: var(--p-ink-btn); border-color: var(--p-ink-btn); color: var(--p-ink-btn-text); }
.hv-home .lm-btn--ghost { color: var(--p-ink-fg); border-color: var(--p-ink-border); }
.hv-home :is(.hv-home__side, .hv-home__frame > .lm-contact__copy:only-child) .lm-details { padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: var(--p-radius); border: 1px solid var(--p-ink-border); background: var(--p-ink-surface); }
.hv-home .hv-home__side .lm-contact__form { --briefly-text: #17302A; padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: var(--p-radius); background: #FFFFFF; color: #17302A; }
.hv-home .lm-details__phone a { color: var(--p-ink-fg); }

@media (max-width: 860px) {
	.hv-step .lm-in, .hv-home .hv-home__frame, .hv-home .hv-home__frame > .lm-contact__copy:only-child { grid-template-columns: minmax(0, 1fr); }
	.hv-home .hv-home__frame > .lm-contact__copy:only-child > .lm-details { grid-column: 1; grid-row: auto; margin-top: 0.75rem; }
	.hv-step .hv-step__view { padding: 0; }
	.hv-step .hv-step__card { margin: -2rem 0.5rem 0; }
	.lm-sec.hv-home { padding-inline: 0; }
	.hv-home .hv-home__frame { border-radius: 0; padding-inline: var(--p-gut); }
}

/* ── 3. Behaviour ────────────────────────────────────────────────────────
   Friendly and brisk: the job list ticks each box as its row comes into
   view; sections settle in. CSS only, none of it for a visitor who prefers
   less motion. */
.lm-sec .lm-btn { transition: filter 0.15s, transform 0.15s; }
@media (prefers-reduced-motion: no-preference) {
	.lm-sec .lm-btn:hover { transform: translateY(-1px); }
	@supports (animation-timeline: view()) {
		.hv-list .hv-list__box::after { animation: hv-tick linear both; animation-timeline: view(); animation-range: entry 60% cover 45%; }
		.lm-sec:not(.lm-hero) :is(.lm-head, .lm-quote, .lm-fig, .lm-qa, .lm-story__media, .hv-plan__room) { animation: hv-set linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
	}
}
@keyframes hv-tick { from { opacity: 0; transform: rotate(45deg) scale(0.3); } to { opacity: 1; transform: rotate(45deg) scale(1); } }
@keyframes hv-set { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── 4. Header and footer ─────────────────────────────────────────────── */
body .briefly-chrome-header {
	--chrome-bg: #FBFCFA;
	--chrome-text: #17302A;
	--chrome-muted: #475A53;
	--chrome-border: rgba(23, 48, 42, 0.12);
	--chrome-accent: var(--lm-own-brand, #2E6B57);
	--chrome-accent-text: var(--lm-own-on-brand, #FFFFFF);
}
.briefly-chrome-header .briefly-chrome-brand { font-family: 'Epilogue', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.02em; }
.briefly-chrome-header .briefly-chrome-link { font-family: 'Karla', system-ui, sans-serif; font-size: 0.98rem; font-weight: 600; }
.briefly-chrome-header .briefly-chrome-phone { font-family: 'Epilogue', system-ui, sans-serif; font-weight: 700; color: #17302A; }
.briefly-chrome-header .briefly-chrome-cta,
.briefly-chrome-footer .briefly-chrome-footer-cta { border-radius: 999px; font-family: 'Karla', system-ui, sans-serif; font-weight: 700; }
.briefly-chrome-header .briefly-chrome-dropdown { border-radius: 12px; }
body .briefly-chrome-footer {
	--chrome-bg: #17302A;
	--chrome-text: #EEF5F1;
	--chrome-muted: rgba(238, 245, 241, 0.74);
	--chrome-border: rgba(238, 245, 241, 0.14);
}
.briefly-chrome-footer .briefly-chrome-brand,
.briefly-chrome-footer .briefly-chrome-footer-phone { font-family: 'Epilogue', system-ui, sans-serif; font-weight: 700; }
.briefly-chrome-footer .briefly-chrome-footer-cta { --chrome-text: #17302A; background: #E9B949; border-color: #E9B949; }
