/* ==========================================================================
   Haapsalu Groomer — "Kuldne tund"
   Mobile-first. Tokens → base → components → sections → motion.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--navy: #1B2A41;
	--deep: #0F1A2B;
	--teal: #5B8A8F;
	--teal-ink: #3F6B70;      /* teal dark enough for small text on cream (≈5.4:1) */
	--seaglass: #A9C6C2;
	--linen: #F6F0E4;
	--shell: #FBF8F1;
	--sand: #E4D5BA;
	--amber: #D19A5B;         /* decorative only — never body text on cream */
	--stone: #4B5A6B;
	--ink: var(--navy);
	--line: rgba(27, 42, 65, .14);
	--line-strong: rgba(27, 42, 65, .28);

	--f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
	--f-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--fs-body: clamp(1rem, .96rem + .2vw, 1.0875rem);
	--fs-lead: clamp(1.1rem, 1rem + .5vw, 1.3rem);
	--fs-h1: clamp(2.7rem, 1.6rem + 5.4vw, 5.6rem);
	--fs-h2: clamp(2.05rem, 1.4rem + 3.2vw, 3.6rem);
	--fs-h3: clamp(1.45rem, 1.2rem + 1.1vw, 2rem);
	--fs-h4: 1.3rem;
	--fs-label: .78rem;

	--gutter: 16px;
	--maxw: 1200px;
	--radius: 28px;
	--radius-sm: 16px;
	--section: clamp(3.75rem, 2.75rem + 5.5vw, 7rem);

	--ease: cubic-bezier(.22, 1, .36, 1);
	--t-slow: .9s;
	--t: .5s;
	--t-fast: .25s;

	--shadow-soft: 0 1px 2px rgba(15, 26, 43, .06), 0 12px 32px -12px rgba(15, 26, 43, .18);
	--shadow-lift: 0 2px 4px rgba(15, 26, 43, .06), 0 24px 60px -20px rgba(15, 26, 43, .32);

	/* Sky (day by default; body.sky-* overrides) */
	--sky-1: #9EC3CF; --sky-2: #CFE2E3; --sky-3: #EEF3EC;
	--sun: #FFF1CC; --sea-1: #8DB7B7; --sea-2: #3F6B70;
	--land: #5E7183; --glint: #FFFFFF; --wave: rgba(255, 255, 255, .55);
	--reed: #3F5A66; --window: #5E7183; --stars: 0;
}

@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

body.sky-dawn {
	--sky-1: #EBC9B6; --sky-2: #F4DFCD; --sky-3: #F8ECDD;
	--sun: #F2B98A; --sea-1: #B4CBC6; --sea-2: #5B8A8F;
	--land: #6E7F8E; --glint: #FFF5E8; --wave: rgba(255, 255, 255, .6);
	--reed: #4A6470; --window: #6E7F8E;
}
body.sky-golden {
	--sky-1: #E3A877; --sky-2: #EFC796; --sky-3: #F7E1BF;
	--sun: #F7D9A6; --sea-1: #C3A487; --sea-2: #4F6872;
	--land: #3B4656; --glint: #FCE6C0; --wave: rgba(252, 230, 192, .55);
	--reed: #2F3B49; --window: #E9B98C;
}
body.sky-night {
	--sky-1: #0B1422; --sky-2: #172640; --sky-3: #2C3F5E;
	--sun: #F1ECDD; --sea-1: #24374F; --sea-2: #0C1626;
	--land: #08101C; --glint: #E9E3CF; --wave: rgba(233, 227, 207, .22);
	--reed: #08101C; --window: #F2C46B; --stars: 1;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
	margin: 0;
	background: var(--linen);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: var(--fs-body);
	line-height: 1.6;
	font-feature-settings: "ss01";
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	overflow-x: clip; /* clip (not hidden) keeps the sticky header working */
}
[hidden] { display: none !important; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 400; line-height: 1.08; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
::selection { background: var(--seaglass); color: var(--navy); }

:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 3px; border-radius: 6px; }
.site-footer :focus-visible { outline-color: var(--seaglass); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--navy); color: var(--linen); padding: .7rem 1.1rem; border-radius: 999px;
	text-decoration: none; transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 12px; }
.site-main:focus { outline: 0; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }

/* ---------- Typography ---------- */
.display { font-family: var(--f-display); font-optical-sizing: auto; font-weight: 380; letter-spacing: -.02em; }
.display em, .h1 em, .h2 em { font-style: italic; font-weight: 340; color: var(--teal-ink); }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); letter-spacing: -.01em; }
.h4 { font-size: var(--fs-h4); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--stone); max-width: 36ch; }
.eyebrow, .label {
	font-family: var(--f-body); font-size: var(--fs-label); font-weight: 600;
	letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); margin: 0 0 1rem;
}
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.label { margin: 0; }

.link {
	display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--teal-ink);
	text-decoration: none; background: none; border: 0; padding: 0; border-bottom: 1px solid currentColor;
	padding-bottom: 1px; line-height: 1.3;
}
.link .icon { width: 1em; height: 1em; transition: transform var(--t) var(--ease); }
.link:hover .icon { transform: translateX(3px); }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn {
	--bg: var(--navy); --fg: var(--linen); --bd: var(--navy);
	display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	min-height: 48px; padding: .7rem 1.45rem; border-radius: 999px;
	background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
	font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
	transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
	-webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform var(--t) var(--ease); }
.btn:hover { --bg: var(--teal-ink); --bd: var(--teal-ink); box-shadow: 0 10px 24px -12px rgba(15, 26, 43, .5); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--ghost { --bg: transparent; --fg: var(--navy); --bd: var(--line-strong); }
.btn--ghost:hover { --bg: var(--navy); --fg: var(--linen); --bd: var(--navy); }
.btn--light { --bg: var(--linen); --fg: var(--navy); --bd: var(--linen); }
.btn--light:hover { --bg: var(--seaglass); --bd: var(--seaglass); --fg: var(--navy); }
.btn--lg { min-height: 56px; padding: .9rem 1.8rem; font-size: 1.05rem; }
.btn--sm { min-height: 40px; padding: .5rem 1.05rem; font-size: .93rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--linen) 86%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
@supports not (background: color-mix(in srgb, red, blue)) { .site-header { background: rgba(246, 240, 228, .92); } }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.admin-bar .site-header { top: 46px; }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } } /* WP admin bar scrolls away on phones */
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
/* backdrop-filter makes the header the containing block of the fixed menu sheet — drop it while open. */
.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--linen); }
.site-header__inner { display: flex; align-items: center; gap: .75rem; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--line); background: var(--shell); transition: transform var(--t) var(--ease); }
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.04); }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__top { font-size: .66rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--teal-ink); }
.brand__name { font-family: var(--f-display); font-size: clamp(1.1rem, .8rem + 1.6vw, 1.45rem); letter-spacing: -.01em; margin-top: .15rem; }

.site-header__cta { display: none; }
@media (min-width: 600px) { .site-header__cta { display: inline-flex; } }

.nav-toggle {
	display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	border: 1.5px solid var(--line-strong); background: transparent; color: var(--navy); position: relative; z-index: 60;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: grid; }

.nav {
	position: fixed; inset: 0; z-index: 55; background: var(--linen); height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
	display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
	padding: 96px var(--gutter) calc(32px + env(safe-area-inset-bottom));
	opacity: 0; visibility: hidden; transform: translateY(-8px);
	transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
}
.nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
html.nav-open { overflow: hidden; } /* lock scroll on the root only: a locked <body> would break position: sticky */
.nav__list { display: grid; gap: .25rem; }
.nav__list a {
	display: block; font-family: var(--f-display); font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.2;
	text-decoration: none; padding: .2rem 0; letter-spacing: -.02em;
}
.nav__list .current-menu-item > a, .nav__list a[aria-current="page"] { font-style: italic; color: var(--teal-ink); }
.nav__extra { display: grid; gap: 1.25rem; }
.nav__cta { justify-self: start; }
.nav__social { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.nav__social a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--stone); font-weight: 500; }

@media (min-width: 1024px) {
	.nav-toggle { display: none; }
	.nav {
		position: static; inset: auto; height: auto; overflow: visible; background: none; padding: 0; flex-direction: row; align-items: center;
		opacity: 1; visibility: visible; transform: none; transition: none; margin-right: 1rem;
	}
	.nav__list { display: flex; gap: .25rem; }
	.nav__list a {
		font-family: var(--f-body); font-size: .98rem; font-weight: 500; letter-spacing: 0; padding: .55rem .9rem;
		border-radius: 999px; position: relative;
	}
	.nav__list a::after {
		content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .35rem; height: 1px; background: currentColor;
		transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease);
	}
	.nav__list a:hover::after, .nav__list .current-menu-item > a::after { transform: scaleX(1); }
	.nav__list .current-menu-item > a { font-style: normal; }
	.nav__extra { display: none; }
}

/* ---------- Sections (shared) ---------- */
.section { padding-block: var(--section); position: relative; }
.section__head { max-width: 760px; margin-bottom: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.section__intro { color: var(--stone); font-size: var(--fs-lead); max-width: 52ch; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(1rem, 3vw, 3rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(1.25rem, 3vw, 3rem); align-items: center; }
.hero__copy { position: relative; z-index: 1; }
.hero__title { font-size: var(--fs-h1); margin-bottom: .35em; }
.hero__title .line { display: block; }
.hero .lead { margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero__facts li {
	display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--stone);
	padding: .45rem .85rem; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--line);
}
.hero__facts strong { color: var(--navy); font-weight: 700; }
.hero__facts .icon { width: 1.05em; height: 1.05em; color: var(--teal-ink); }

@media (max-width: 599px) {
	.hero__actions .btn { flex: 1 1 100%; }
	.porthole { width: min(58vw, 250px); }
}
@media (min-width: 960px) {
	.hero__grid { grid-template-columns: 1.08fr .92fr; min-height: min(78vh, 760px); }
	.hero__visual { order: 2; }
}

/* Porthole */
.porthole { position: relative; width: min(74vw, 340px); aspect-ratio: 1; margin-inline: auto; }
@media (min-width: 960px) { .porthole { width: min(40vw, 540px); } }
.porthole__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.porthole__ring text { font-family: var(--f-body); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; fill: var(--teal-ink); }
.porthole__window {
	position: absolute; inset: 9.5%; border-radius: 50%; overflow: hidden; isolation: isolate;
	box-shadow: 0 0 0 7px var(--shell), 0 0 0 8px var(--line), var(--shadow-lift);
	background: var(--sky-2);
}
.porthole__window::after {
	content: ""; position: absolute; inset: 0; border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), inset 0 -30px 60px -30px rgba(15, 26, 43, .35);
	pointer-events: none;
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene__stars { opacity: var(--stars); transition: opacity 2s var(--ease); }
.scene__window { fill: var(--window); }
.porthole__badge {
	position: absolute; left: 50%; bottom: -6%; width: 40%; aspect-ratio: 1; transform: translateX(-50%);
	border-radius: 50%; background: var(--shell); padding: 3%;
	box-shadow: 0 0 0 1px var(--line), 0 18px 40px -16px rgba(15, 26, 43, .45);
}
.porthole__badge img { width: 100%; height: 100%; border-radius: 50%; }

/* Horizon divider */
.horizon { width: 100%; height: 40px; margin-top: clamp(1.5rem, 3vw, 3rem); color: var(--teal); }
.horizon svg { width: 100%; height: 100%; display: block; overflow: visible; }
.horizon path { fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 3; stroke-dashoffset: 0; }
.horizon .horizon__thin { stroke-width: .8; opacity: .45; }

/* ---------- Services & prices (one card per service) ---------- */
.services { background: linear-gradient(180deg, var(--linen) 0%, #F1E8D8 100%); scroll-margin-top: 72px; }
.services__grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 960px) { .services__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.svc {
	background: var(--shell); border-radius: var(--radius); padding: clamp(1.25rem, .9rem + 2vw, 2.25rem);
	box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 1.25rem; scroll-margin-top: 90px;
}
.svc__head { display: flex; gap: 1rem; align-items: flex-start; }
.svc__head .h3 { margin: .1rem 0 .35rem; }
.svc__lead { color: var(--stone); margin: 0; }
.svc__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.svc__icon .icon { width: 24px; height: 24px; }
.svc__icon--day { background: radial-gradient(circle at 35% 35%, #FBE7C8, #E9C08E); color: var(--navy); }
.svc__icon--night { background: var(--navy); color: var(--linen); }
.svc__prices-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: .5rem; }
.svc__note { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--stone); margin: 1rem 0 0; line-height: 1.5; }
.svc__note .icon { flex: none; color: var(--teal-ink); margin-top: .15em; width: 1.1em; height: 1.1em; }
.svc__more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svc__more summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	padding: 1rem 0; font-weight: 600; min-height: 48px;
}
.svc__more summary::-webkit-details-marker { display: none; }
.svc__chev { transition: transform var(--t) var(--ease); color: var(--teal-ink); }
.svc__more[open] .svc__chev { transform: rotate(180deg); }
.svc__more .ticks { margin: 0 0 1.1rem; }
.svc__cta { margin-top: auto; width: 100%; }

.tide__rows { display: grid; margin: 0; }
.tide__row { display: flex; align-items: center; gap: .85rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.tide__row:last-child { border-bottom: 0; }
.tide__label { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.tide__label strong { font-weight: 600; }
.tide__label span { font-size: .88rem; color: var(--stone); }
.tide__leader { flex: 1; min-width: 12px; border-bottom: 1.5px dotted var(--line-strong); transform: translateY(6px); }
.tide__price { font-family: var(--f-display); font-size: clamp(1.45rem, 1.2rem + .8vw, 1.8rem); line-height: 1; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.tide__from { font-family: var(--f-body); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); margin-bottom: .2rem; }
.p-long { display: none; }
.svc:has(#coat-long:checked) .p-short { display: none; }
.svc:has(#coat-long:checked) .p-long { display: inline; animation: priceIn var(--t) var(--ease); }
.svc:has(#coat-short:checked) .p-short { animation: priceIn var(--t) var(--ease); }
@keyframes priceIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.dog { display: inline-grid; place-items: end center; width: 56px; height: 40px; flex: none; color: var(--teal); }
.dog .icon { width: 30px; height: auto; aspect-ratio: 64 / 44; }
.dog--medium .icon { width: 38px; }
.dog--large .icon { width: 46px; }
.dog--xlarge .icon { width: 54px; }

.coat-toggle {
	position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px;
	background: var(--linen); box-shadow: inset 0 0 0 1px var(--line); min-width: 240px;
}
.coat-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.coat-toggle label { position: relative; z-index: 1; text-align: center; padding: .55rem .9rem; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; transition: color var(--t) var(--ease); white-space: nowrap; }
.coat-toggle input:checked + label { color: var(--linen); }
.coat-toggle input:focus-visible + label { outline: 3px solid var(--teal-ink); outline-offset: 2px; }
.coat-toggle__thumb {
	position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--navy);
	transition: transform var(--t) var(--ease);
}
.coat-toggle:has(#coat-long:checked) .coat-toggle__thumb { transform: translateX(100%); }

.ticks { display: grid; gap: .6rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.5; }
.ticks .icon { color: var(--teal); margin-top: .15em; width: 1.15em; height: 1.15em; }

/* ---------- Steps (how booking works) ---------- */
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow::before { display: none; }
.steps__list { display: grid; gap: 1rem; counter-reset: st; }
@media (min-width: 800px) { .steps__list { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.step {
	position: relative; padding: 1.4rem 1.4rem 1.4rem 4.6rem; border-radius: var(--radius-sm);
	background: var(--shell); box-shadow: inset 0 0 0 1px var(--line);
}
.step__num {
	position: absolute; left: 1.25rem; top: 1.25rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	background: var(--navy); color: var(--linen); font-family: var(--f-display); font-size: 1.2rem;
}
.step__icon { display: none; }
.step__title { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; margin: 0 0 .3rem; }
.step p { color: var(--stone); margin: 0; }
@media (min-width: 800px) {
	.step { padding: 1.75rem; text-align: center; }
	.step__num { position: static; margin: 0 auto 1rem; width: 48px; height: 48px; font-size: 1.35rem; }
}
.steps__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.25rem; margin-top: 2rem; }
.steps__alt { color: var(--stone); }

/* ---------- About (letter) ---------- */
.about__grid { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 5fr 7fr; } }
.about__grid--solo { max-width: calc(820px + var(--gutter) * 2); }
@media (min-width: 900px) { .about__grid--solo { grid-template-columns: 1fr; } }
@media (max-width: 899px) { .about__photo { max-width: 280px; } }
.about__photo { margin: 0; position: relative; max-width: 440px; justify-self: center; width: 100%; }
.about__photo img {
	width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 28px 28px; box-shadow: var(--shadow-lift);
}
.about__photo figcaption {
	position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
	display: inline-flex; gap: .4rem; align-items: center; background: var(--navy); color: var(--linen); border-radius: 999px;
	padding: .5rem 1rem; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.letter {
	position: relative; background: var(--shell); border-radius: 6px 6px var(--radius) var(--radius);
	padding: clamp(1.6rem, 1rem + 3vw, 3.25rem); box-shadow: var(--shadow-lift);
	background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(91, 138, 143, .1) 31px 32px);
	background-position: 0 1.1rem;
}
@media (min-width: 900px) { .letter { rotate: -.6deg; } }
.letter::before {
	content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(-2deg);
	background: rgba(169, 198, 194, .65); border-radius: 3px;
}
.letter .h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.letter__body p { line-height: 2rem; font-size: 1.04rem; }
.letter__sign { margin-top: 1.75rem; display: flex; flex-direction: column; gap: .2rem; }
.letter__sign span:first-child { color: var(--stone); }
.letter__name { font-family: var(--f-display); font-style: italic; font-size: 2rem; color: var(--teal-ink); line-height: 1.1; }

/* ---------- Promises (under the letter) & lace ---------- */
.lace { position: absolute; left: 0; right: 0; height: 14px; background-repeat: repeat-x; background-size: 40px 14px; pointer-events: none; }
.promises { display: grid; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 800px) { .promises { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.promise { display: flex; gap: 1rem; align-items: flex-start; }
.promise__icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--teal-ink); background: var(--shell); box-shadow: inset 0 0 0 1px var(--line); }
.promise__icon .icon { width: 22px; height: 22px; }
.promise__title { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; margin: .2rem 0 .25rem; }
.promise p { color: var(--stone); margin: 0; }
.about__reviews { margin-top: 2rem; }
.about__reviews a {
	display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; text-decoration: none; font-weight: 600;
	padding: .8rem 1.2rem; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--line);
}
.about__reviews a:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.about__stars { display: inline-flex; color: var(--amber); }
.about__stars .icon { width: 16px; height: 16px; }
.reviews__more { margin-top: 1.5rem; }

/* ---------- Reviews (postcards) ---------- */
.postcards {
	display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 340px); gap: 1.25rem; overflow-x: auto;
	scroll-snap-type: x mandatory; padding: 1rem var(--gutter) 2rem; margin-inline: calc(var(--gutter) * -1);
	scrollbar-width: thin; scroll-padding-inline: var(--gutter);
}
@media (min-width: 900px) { .postcards { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 1rem 0 0; } }
.postcard {
	scroll-snap-align: start; margin: 0; position: relative; padding: 1.75rem; border-radius: 10px; background: var(--shell);
	box-shadow: var(--shadow-soft); rotate: var(--tilt, 0deg); min-height: 240px; display: flex; flex-direction: column; gap: 1rem;
	text-decoration: none; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), rotate var(--t) var(--ease), opacity var(--t-slow) var(--ease);
}
.postcard::after {
	content: ""; position: absolute; top: 14px; right: 14px; width: 46px; height: 54px; border: 1.5px dashed var(--line-strong); border-radius: 4px;
	background: radial-gradient(circle, rgba(169, 198, 194, .5) 30%, transparent 32%) center / 100% 100% no-repeat;
}
.postcard:hover { rotate: 0deg; translate: 0 -4px; box-shadow: var(--shadow-lift); }
.postcard blockquote { margin: 0; font-family: var(--f-display); font-size: 1.2rem; line-height: 1.45; }
.postcard figcaption { margin-top: auto; color: var(--stone); font-weight: 600; }
.postcard__stars { display: flex; gap: .15rem; color: var(--amber); }
.postcard__stars .icon { width: 18px; height: 18px; }
.postcard--fb { background: var(--navy); color: var(--linen); justify-content: flex-end; }
.postcard--fb::after { border-color: rgba(246, 240, 228, .3); }
.postcard--fb .link { color: var(--seaglass); align-self: flex-start; }
.postcard__big { font-family: var(--f-display); font-size: 5rem; line-height: .9; }
.postcard--empty { align-items: flex-start; justify-content: flex-end; background: transparent; box-shadow: none; border: 1.5px dashed var(--line-strong); color: var(--stone); font-family: var(--f-display); font-style: italic; font-size: 1.2rem; }
.postcard--empty::after { display: none; }
.postcard__paw { width: 36px; height: 36px; color: var(--seaglass); }

/* ---------- Instagram ---------- */
.insta { background: linear-gradient(180deg, var(--linen), #EEE3CF); }
.insta__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .insta__grid { grid-template-columns: 5fr 7fr; } }
.insta__copy p { color: var(--stone); max-width: 42ch; margin-bottom: 1.75rem; }
.insta__frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 2vw, 1.25rem); }
.frame a { display: block; border-radius: 50%; overflow: hidden; aspect-ratio: 1; box-shadow: 0 0 0 5px var(--shell), var(--shadow-soft); transition: transform var(--t) var(--ease); }
.frame:nth-child(even) { transform: translateY(18%); }
.frame a:hover { transform: scale(1.04); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame__empty { display: grid; place-items: center; width: 100%; height: 100%; color: var(--navy); }
.frame__empty .icon { width: 28%; height: 28%; opacity: .75; }
.frame__empty--0 { background: radial-gradient(circle at 30% 30%, #FBE7C8, var(--amber)); }
.frame__empty--1 { background: radial-gradient(circle at 30% 30%, #E6F0EE, var(--seaglass)); }
.frame__empty--2 { background: radial-gradient(circle at 30% 30%, #F7EFE0, var(--sand)); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: 1rem; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 5fr 7fr; gap: 4rem; } .faq__head { position: sticky; top: 110px; align-self: start; } }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
	list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer;
	padding: 1.3rem 0; font-family: var(--f-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.3;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease); }
.qa[open] .qa__icon { transform: rotate(45deg); background: var(--navy); color: var(--linen); }
.qa summary:hover .qa__icon { background: var(--seaglass); }
.qa__body { padding: 0 3rem 1.4rem 0; color: var(--stone); }
.qa[open] .qa__body { animation: qaIn var(--t) var(--ease); }
@keyframes qaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.contact__copy > p { color: var(--stone); }
.contact__cards { display: grid; gap: .75rem; margin-top: 1.75rem; }
.ccard {
	display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem; border-radius: 20px; text-decoration: none;
	background: var(--shell); box-shadow: inset 0 0 0 1px var(--line); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.ccard > .icon:first-child { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--linen); color: var(--teal-ink); }
.ccard > span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ccard > span span { color: var(--stone); font-size: .92rem; overflow-wrap: anywhere; }
.ccard__go { margin-left: auto; transition: transform var(--t) var(--ease); }
.ccard:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-soft); }
.ccard:hover .ccard__go { transform: translateX(4px); }
.ccard--messenger { background: var(--navy); color: var(--linen); box-shadow: none; }
.ccard--messenger > span span { color: rgba(246, 240, 228, .75); }
.ccard--messenger > .icon:first-child { background: rgba(246, 240, 228, .1); color: var(--seaglass); }

.map { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--shell); box-shadow: var(--shadow-lift); }
.map > svg { display: block; width: 100%; height: auto; }
.map__sea { fill: #DCE8E5; }
.map__contours path { stroke: var(--teal); stroke-width: 1; opacity: .35; stroke-dasharray: 2 5; }
.map__land { fill: var(--linen); stroke: var(--navy); stroke-width: 1.2; stroke-opacity: .55; }
.map__lake { fill: #DCE8E5; stroke: var(--navy); stroke-width: 1; stroke-opacity: .4; }
.map__road { stroke: var(--navy); stroke-opacity: .35; stroke-width: 2; stroke-dasharray: 6 5; }
.map__promenade { stroke: var(--amber); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 7; }
.map__labels text, .map text { font-family: var(--f-body); font-size: 12px; fill: var(--teal-ink); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.map text.small { font-size: 10px; }
.map text.town { font-family: var(--f-display); font-size: 22px; letter-spacing: .14em; fill: var(--navy); font-weight: 500; }
.map__castle path { fill: var(--navy); }
.map__pin circle:last-child { fill: var(--amber); stroke: var(--shell); stroke-width: 3; }
.map__pulse { fill: rgba(209, 154, 91, .35); transform-origin: center; transform-box: fill-box; animation: pulse 2.6s var(--ease) infinite; }
.map__compass circle { stroke: var(--navy); stroke-opacity: .4; }
.map__compass path { fill: var(--navy); opacity: .6; }
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.map figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; padding: 1.1rem 1.4rem; border-top: 1px solid var(--line); }
.map figcaption > span:first-child { display: inline-flex; align-items: center; gap: .4rem; }
.map__note { color: var(--stone); font-size: .9rem; flex-basis: 100%; order: 3; }
.map figcaption .link { margin-left: auto; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding-block: var(--section); text-align: center; background: linear-gradient(180deg, var(--linen) 0%, #F3E6D2 100%); }
.cta__sun { position: absolute; left: 50%; bottom: -40vmin; width: 70vmin; height: 70vmin; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(233, 192, 142, .35) 0%, transparent 70%); }
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta .h2 { max-width: 16ch; }
.cta p { color: var(--stone); max-width: 46ch; font-size: var(--fs-lead); margin-bottom: 2rem; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding-top: clamp(1.5rem, 5vw, 4.5rem); overflow: hidden; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero .h1 { max-width: 15ch; }
.page-hero .lead { max-width: 48ch; }
.page-hero__sky {
	position: relative; width: 112px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 0 1.5rem var(--gutter);
	box-shadow: 0 0 0 6px var(--shell), 0 0 0 7px var(--line), var(--shadow-soft);
}
@media (min-width: 900px) {
	.page-hero__sky { position: absolute; right: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); top: clamp(2rem, 5vw, 4rem); width: clamp(200px, 22vw, 300px); margin: 0; }
}

/* ---------- Prose ---------- */
.section--prose { padding-top: clamp(2rem, 4vw, 3.5rem); }
.prose { max-width: 760px; }
.prose h2 { font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-top: 2.2em; }
.prose h3 { font-family: var(--f-display); font-size: 1.4rem; margin-top: 1.8em; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.25rem; margin-bottom: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--teal-ink); }
.prose img { border-radius: var(--radius-sm); }
.entry { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--deep); color: rgba(246, 240, 228, .82); padding-top: calc(var(--section) * .8); }
.site-footer .lace--top { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14' viewBox='0 0 40 14'%3E%3Cpath fill='%23F6F0E4' d='M0 0h40v2c0 6-4.5 10-10 10S20 8 20 2c0 6-4.5 10-10 10S0 8 0 2Z'/%3E%3Ccircle cx='10' cy='5.5' r='1.6' fill='%230F1A2B'/%3E%3Ccircle cx='30' cy='5.5' r='1.6' fill='%230F1A2B'/%3E%3C/svg%3E"); }
.cta + .site-footer .lace--top { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14' viewBox='0 0 40 14'%3E%3Cpath fill='%23F3E6D2' d='M0 0h40v2c0 6-4.5 10-10 10S20 8 20 2c0 6-4.5 10-10 10S0 8 0 2Z'/%3E%3Ccircle cx='10' cy='5.5' r='1.6' fill='%230F1A2B'/%3E%3Ccircle cx='30' cy='5.5' r='1.6' fill='%230F1A2B'/%3E%3C/svg%3E"); }
.site-footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1.2fr; } }
.site-footer__brand img { width: 120px; height: 120px; border-radius: 50%; margin-bottom: 1.25rem; box-shadow: 0 0 0 5px rgba(246, 240, 228, .08); }
.site-footer__brand p { max-width: 34ch; }
.site-footer .label { color: var(--seaglass); margin-bottom: 1rem; }
.footer-menu { display: grid; gap: .5rem; }
.footer-menu a, .contact-list a { text-decoration: none; color: var(--linen); }
.footer-menu a:hover, .contact-list a:hover { color: var(--seaglass); text-decoration: underline; }
.contact-list { display: grid; gap: .75rem; }
.contact-list a, .contact-list span { display: inline-flex; align-items: center; gap: .6rem; overflow-wrap: anywhere; }
.contact-list .icon { color: var(--seaglass); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.5rem calc(1.5rem + 84px); border-top: 1px solid rgba(246, 240, 228, .12); font-size: .88rem; color: rgba(246, 240, 228, .6); }
.site-footer__base a { color: inherit; }
@media (min-width: 1024px) { .site-footer__base { padding-bottom: 1.5rem; } }

/* ---------- Sticky mobile dock ---------- */
.dock {
	position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
	display: flex; gap: .5rem; padding: 6px; border-radius: 999px;
	background: color-mix(in srgb, var(--shell) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	box-shadow: 0 0 0 1px var(--line), 0 18px 40px -14px rgba(15, 26, 43, .45);
	transform: translateY(140%); transition: transform var(--t) var(--ease);
}
.dock.is-visible { transform: none; }
.dock__cta { flex: 1; min-height: 52px; }
.dock__msg { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--linen); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.dock__msg .icon { width: 24px; height: 24px; }
@media (min-width: 1024px) { .dock { display: none; } }
.nav-open .dock { transform: translateY(140%); }

/* ==========================================================================
   Motion — "tide": slow in, soft out. Everything is opt-in via html.js and
   switched off for prefers-reduced-motion.
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .horizon.reveal { opacity: 1; transform: none; }
.js .horizon.reveal path { stroke-dashoffset: 3; transition: stroke-dashoffset 3s var(--ease); }
.js .horizon.reveal .horizon__thin { transition-delay: .3s; }
.js .horizon.reveal.is-in path { stroke-dashoffset: 0; }

/* Hero animates on load (CSS only — never waits for JS, keeps LCP fast). */
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise 1s var(--ease) both; animation-delay: calc(.15s + var(--d, 0) * 110ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.porthole__window { animation: iris 1.4s var(--ease) both; }
@keyframes iris { from { clip-path: circle(8% at 50% 60%); } to { clip-path: circle(50% at 50% 50%); } }
.porthole__badge { animation: peek 1.2s .7s var(--ease) both; }
@keyframes peek { from { transform: translate(-50%, 22%) scale(.9); opacity: 0; } to { transform: translate(-50%, 0) scale(1); opacity: 1; } }
.porthole__ring { animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.scene__waves path { animation: drift 7s linear infinite; }
.scene__waves path:nth-child(1) { --p: 40px; animation-duration: 9s; }
.scene__waves path:nth-child(2) { --p: 50px; animation-duration: 8s; }
.scene__waves path:nth-child(3) { --p: 60px; animation-duration: 7s; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(var(--p, 40px)); } }
.scene__glint rect { animation: glint 3.2s ease-in-out infinite; }
.scene__glint rect:nth-child(2n) { animation-delay: -1.1s; }
.scene__glint rect:nth-child(3n) { animation-delay: -2.2s; }
@keyframes glint { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.scene__gulls { animation: gulls 14s ease-in-out infinite alternate; }
@keyframes gulls { from { transform: translate(0, 0); } to { transform: translate(40px, -8px); } }
.scene__sun { transition: fill 2s var(--ease); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
	.js .reveal { opacity: 1; transform: none; }
	.js .horizon.reveal path { stroke-dashoffset: 0; }
	.porthole__ring, .scene__waves path, .scene__glint rect, .scene__gulls, .map__pulse { animation: none !important; }
}

@media print {
	.site-header, .dock, .cta, .site-footer, .porthole { display: none !important; }
	.js .reveal { opacity: 1 !important; transform: none !important; }
}
