/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-1);
	line-height: var(--lh-body);
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: var(--s-2); background: var(--c-ink); color: var(--c-white); padding: var(--s-2) var(--s-3); z-index: 100; border-radius: var(--radius); }
.skip:focus { left: var(--s-2); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-3); }
p { max-width: 64ch; }
.sec__lead { color: var(--ink-2); font-size: var(--fs-2); margin-top: var(--s-3); max-width: 58ch; }
.ico { display: inline-flex; width: 1.1em; height: 1.1em; vertical-align: -0.2em; }
.ico svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- layout ---------- */
.wrap { width: min(var(--w-content), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sec { padding-block: var(--s-8); background: var(--bg); color: var(--ink); }
.sec__head { max-width: 720px; }
.sec__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); }
@media (max-width: 700px) { .sec { padding-block: var(--s-7); } }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
	padding: 0.9em 1.5em; border-radius: var(--btn-radius);
	font-weight: 700; font-size: var(--fs-1); line-height: 1;
	border: 1.5px solid transparent; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
	white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--solid:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn--line { border-color: var(--rule); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: var(--c-white); }
.btn--ghost:hover { border-color: var(--c-white); background: rgba(255,255,255,.08); }
.btn--lg { padding: 1.05em 1.8em; font-size: var(--fs-2); }
.btn--wa { background: var(--c-wa); color: var(--c-white); border-color: var(--c-wa); }
.btn--wa:hover { background: var(--c-wa-2); border-color: var(--c-wa-2); color: var(--c-white); }
.btn--wa .ico { width: 1.25em; height: 1.25em; }
.btn--call { background: transparent; color: var(--ink); border-color: var(--c-wa); }
.btn--call:hover { background: var(--c-wa); color: var(--c-white); }
.btn--call .ico { width: 1.1em; height: 1.1em; }
.hdr__nav .btn--call, .ftr .btn--call { color: var(--c-white); }
.nudge .btn--call { color: var(--c-ink); width: 100%; margin-top: var(--s-2); }
.ftr__brand .btn--call { margin-top: var(--s-2); }
.eyebrow { font-size: var(--fs-0); font-weight: 700; color: var(--c-accent); margin-bottom: var(--s-2); }
.is-dark .eyebrow { color: var(--c-gold); }
.stars { display: inline-block; line-height: 1; }
.stars::before { content: "★★★★★"; color: var(--c-gold); letter-spacing: 2px; font-size: 1rem; }

/* ---------- media slots ---------- */
.lhr-media { position: relative; overflow: hidden; background: var(--bg-2); border-radius: var(--radius-lg); aspect-ratio: 9 / 16; }
.lhr-media img, .lhr-media video { width: 100%; height: 100%; object-fit: cover; }
.lhr-media.is-empty { display: grid; place-items: center; border: 1px dashed var(--rule); }
.lhr-media__ph { font-size: var(--fs-0); font-weight: 600; color: var(--ink-2); text-align: center; padding: var(--s-2); }
.lhr-media__sound {
	position: absolute; right: var(--s-2); bottom: var(--s-2); width: 36px; height: 36px; border-radius: 50%;
	background: rgba(22,32,42,.72); color: var(--c-white); display: grid; place-items: center;
}
.lhr-media__sound span { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 2px; }
.lhr-media__sound[aria-pressed="true"] span { width: 10px; height: 10px; border: 0; background: currentColor; margin: 0; border-radius: 2px; }

/* ---------- header ---------- */
.hdr { position: relative; z-index: 50; border-bottom: 1px solid var(--c-line); }
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would make it the
   containing block for the fixed mobile menu (clipping the menu to the header bar). */
.hdr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hdr__in { width: min(var(--w-header), 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }
.hdr__brand { display: inline-flex; align-items: center; }
.hdr-sticky .hdr { position: sticky; top: 0; }
.hdr__brand img { height: 52px; width: auto; }
.hdr__wa { padding-block: 0.75em; }
.hdr__wa .ico { width: 1.2em; height: 1.2em; }
.hdr__nav-wa { color: var(--c-wa); }
.hdr__word { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.hdr__nav { margin-left: auto; }
.hdr__nav-in { display: contents; }
.hdr__nav-note, .hdr__nav-social, .hdr__nav-brand { display: none; }
.hdr__menu { display: flex; gap: var(--s-4); }
.hdr__nav a { font-weight: 600; font-size: var(--fs-0); padding: var(--s-2) 0; position: relative; }
.hdr__menu > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.hdr__menu > li > a:hover::after { transform: scaleX(1); }
.hdr__item { position: relative; display: flex; align-items: center; gap: 2px; }
/* an invisible bridge under the item keeps :hover alive while the pointer crosses the gap to the dropdown */
.hdr__item.has-sub::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.hdr__sub-toggle { width: 22px; height: 22px; display: grid; place-items: center; color: inherit; }
.hdr__sub-toggle::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); transition: transform .2s var(--ease); }
.hdr__nav .hdr__sub { position: absolute; top: calc(100% + 10px); left: -12px; min-width: 240px; background: var(--c-white); color: var(--c-ink); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s-2); display: grid; gap: 0; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s; z-index: 5; }
.hdr__sub li a { display: block; padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: var(--fs-0); white-space: nowrap; }
.hdr__sub li a:hover { background: var(--c-cloud); }
.hdr__sub li:last-child a { color: var(--c-accent); }
.hdr__item:hover .hdr__sub, .hdr__item:focus-within .hdr__sub, .hdr__item.is-open .hdr__sub { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s; }
.hdr__item:hover .hdr__sub-toggle::before, .hdr__item.is-open .hdr__sub-toggle::before { transform: rotate(225deg) translate(-1px, -1px); }
.hdr__close { display: none; }
.hdr__nav-contact { display: none; }
.hdr__actions { display: flex; align-items: center; gap: var(--s-3); }
.hdr__tel { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 700; font-size: var(--fs-0); font-variant-numeric: tabular-nums; }
.hdr__cta { padding-block: 0.75em; }
.hdr__burger { display: none; width: 44px; height: 44px; position: relative; }
.hdr__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--c-ink); transition: transform .25s var(--ease), top .25s var(--ease); }
.hdr__burger span:first-child { top: 17px; } .hdr__burger span:last-child { top: 25px; }
.hdr__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.hdr__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1240px) {
	.hdr__tel > span:not(.ico), .hdr__wa > span:not(.ico) { display: none; }
	.hdr__wa { padding-inline: 0.8em; }
	.hdr__menu { gap: var(--s-3); }
}
@media (max-width: 860px) {
	:root { --header-h: 64px; }
	.hdr__in { gap: var(--s-3); }
	/* Full-screen menu. Revealed with a clip-path circle from the burger (nothing is ever
	   positioned off-canvas, so the page can never scroll sideways). */
	.hdr__nav {
		position: fixed; inset: 0; z-index: 60; margin: 0;
		background: var(--c-ink); color: var(--c-white);
		display: flex; flex-direction: column;
		padding: calc(var(--header-h) + var(--s-4)) var(--gutter) var(--s-6);
		overflow: hidden;
		visibility: hidden;
		clip-path: circle(0px at calc(100% - var(--gutter) - 22px) 32px);
		transition: clip-path .75s cubic-bezier(.65,0,.35,1), visibility 0s linear .75s;
	}
	.hdr__nav.is-open { visibility: visible; clip-path: circle(160% at calc(100% - var(--gutter) - 22px) 32px); transition: clip-path .85s cubic-bezier(.65,0,.35,1), visibility 0s; }
	.hdr__nav-in { position: static; display: flex; flex-direction: column; gap: var(--s-5); flex: 1; overflow-y: auto; }
	.hdr__nav-brand { display: block; position: absolute; top: calc((var(--header-h) - 44px) / 2); left: var(--gutter); height: 44px; }
	.hdr__nav-brand img { height: 44px; width: auto; }
	.hdr__menu { flex-direction: column; gap: 0; }
	.hdr__menu > li { opacity: 0; transform: translateY(22px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
	.hdr__nav.is-open .hdr__menu > li { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i, 0) * 60ms); }
	.hdr__menu > li > a { display: block; font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; padding: var(--s-2) 0; color: var(--c-white); }
	.hdr__item { flex-wrap: wrap; align-items: center; gap: var(--s-3); }
	.hdr__item.has-sub::before { display: none; }
	.hdr__item > a { flex: 1; }
	.hdr__sub-toggle { width: 44px; height: 44px; border: 1px solid var(--c-line-dark); border-radius: 50%; color: var(--c-white); }
	.hdr__sub-toggle::before { width: 9px; height: 9px; }
	.hdr__nav .hdr__sub { position: static; flex-basis: 100%; min-width: 0; background: transparent; border: 0; box-shadow: none; padding: 0 0 var(--s-2) var(--s-3); border-left: 2px solid var(--c-line-dark); margin-left: var(--s-2); display: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: none; }
	.hdr__nav .hdr__item.is-open .hdr__sub { display: grid; }
	.hdr__nav .hdr__item:hover .hdr__sub { display: none; }
	.hdr__nav .hdr__item.is-open:hover .hdr__sub { display: grid; }
	.hdr__sub li a { font-size: var(--fs-2); font-weight: 600; padding: var(--s-2) 0; color: var(--c-mist); white-space: normal; }
	.hdr__sub li a:hover { background: transparent; color: var(--c-white); }
	.hdr__sub li:last-child a { color: var(--c-gold); }
	.hdr__close { display: block; position: absolute; top: calc((var(--header-h) - 44px) / 2); right: var(--gutter); width: 44px; height: 44px; z-index: 2; border: 1px solid var(--c-line-dark); border-radius: 50%; }
	.hdr__close span { position: absolute; left: 13px; right: 13px; top: 21px; height: 2px; background: var(--c-white); }
	.hdr__close span:first-child { transform: rotate(45deg); }
	.hdr__close span:last-child { transform: rotate(-45deg); }
	.hdr__nav.is-open ~ .hdr__actions .hdr__burger { visibility: hidden; }
	.hdr__nav-contact { display: grid; gap: var(--s-3); opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease) .55s, transform .5s var(--ease) .55s; }
	.hdr__nav.is-open .hdr__nav-contact { opacity: 1; transform: none; }
	.hdr__nav-contact .btn { justify-content: center; }
	.hdr__nav-contact .btn--line { border-color: var(--c-line-dark); color: var(--c-white); }
	.hdr__nav-note { font-size: var(--fs-0); color: var(--c-mist); }
	.hdr__nav-social { display: flex; gap: var(--s-3); }
	.hdr__nav-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--c-line-dark); border-radius: 50%; color: var(--c-white); }
	.hdr__nav-social .ico { width: 18px; height: 18px; }
	.hdr__nav-note { display: block; }
	.hdr__actions { margin-left: auto; }
	.hdr__cta, .hdr__tel { display: none; }
	.hdr__burger { display: block; position: relative; z-index: 70; }
	.hdr__burger[aria-expanded="true"] span { background: var(--c-white); }
	body.nav-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .hdr__nav, .hdr__menu > li, .hdr__nav-contact, .hdr__burger span, .hdr__menu > li > a::after, .hdr__sub, .btn { transition: none; } }

/* ---------- footer ---------- */
.ftr { background: var(--c-ink); color: var(--c-mist); padding-block: var(--s-7) var(--s-5); }
.ftr__in { width: min(var(--w-content), 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; flex-wrap: wrap; gap: var(--s-6); }
.ftr__brand { flex: 1.6 1 260px; }
.ftr__col { flex: 1 1 160px; }
.ftr__logo img { width: 220px; height: auto; }
.ftr__brand .btn--wa { margin-top: var(--s-4); }
.ftr__h--gap { margin-top: var(--s-4); }
.ftr__legal a { margin-left: var(--s-3); text-decoration: underline; text-underline-offset: 3px; }
.ftr__line { margin-top: var(--s-2); max-width: 40ch; }
.ftr__social { display: flex; gap: var(--s-3); margin-top: var(--s-4); }
.ftr__social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--c-line-dark); border-radius: 50%; color: var(--c-white); }
.ftr__social .ico { width: 18px; height: 18px; }
.ftr__h { color: var(--c-white); font-weight: 700; margin-bottom: var(--s-2); }
.ftr__col p { margin-top: var(--s-1); }
.ftr__col a:hover { color: var(--c-white); text-decoration: underline; text-underline-offset: 3px; }
.ftr__legal { width: min(var(--w-content), 100% - 2 * var(--gutter)); margin: var(--s-6) auto 0; padding-top: var(--s-4); border-top: 1px solid var(--c-line-dark); font-size: var(--fs-0); }
@media (max-width: 760px) { .ftr__in { gap: var(--s-5); } .ftr__brand, .ftr__col { flex-basis: 100%; } }

/* ---------- generic page ---------- */
.prose { padding-block: var(--s-7); }
.prose h1 { font-size: var(--fs-4); margin-bottom: var(--s-5); }
.prose p { margin-bottom: var(--s-3); max-width: 68ch; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry + .entry { margin-top: var(--s-6); }

/* ---------- motion ---------- */
/* Scroll reveal: JS adds .reveal, then .is-in when the element enters the viewport. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-in { opacity: 1; transform: none; }
/* Header gains depth once the page has scrolled. */
.hdr { transition: box-shadow .25s var(--ease); }
.hdr.is-scrolled { box-shadow: 0 6px 24px rgba(22,32,42,.08); }
/* Cards lift a little on hover. */
.plan, .review { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.plan:hover, .review:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(22,32,42,.10); }
.lhr-media img { transition: transform .8s var(--ease); }
.rail__item:hover .lhr-media img, .pair:hover .lhr-media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.plan, .review, .lhr-media img, .hdr { transition: none; }
	.plan:hover, .review:hover, .rail__item:hover .lhr-media img, .pair:hover .lhr-media img { transform: none; }
}

/* ---------- dark header (body.hdr-dark, set from Theme settings → Header) ---------- */
.hdr-dark .hdr { border-bottom-color: var(--c-line-dark); color: var(--c-white); }
.hdr-dark .hdr::before { background: rgba(14,22,32,.86); }
.hdr-dark .hdr__menu > li > a::after { background: var(--c-gold); }
.hdr-dark .hdr__burger span { background: var(--c-white); }
.hdr-dark .hdr__cta { background: var(--c-accent); color: var(--c-white); border-color: var(--c-accent); }
.hdr-dark .hdr__cta:hover { background: var(--c-accent-2); border-color: var(--c-accent-2); }
.hdr-dark .hdr.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.35); }
@media (max-width: 860px) {
	.hdr-dark .hdr__nav { background: var(--c-ink); color: var(--c-white); }
}

/* ---------- logo overlay on media (Theme settings → Media & watermark) ---------- */
.lhr-media__wm { position: absolute; width: var(--lhr-wm-size, 28%); aspect-ratio: 1200 / 570; background: url("../img/logo-white.png") no-repeat center / contain; opacity: var(--lhr-wm-opacity, .7); pointer-events: none; filter: drop-shadow(0 1px 6px rgba(0,0,0,.45)); }
.lhr-media__wm--br { right: 4%; bottom: 4%; }
.lhr-media__wm--bl { left: 4%; bottom: 4%; }
.lhr-media__wm--tr { right: 4%; top: 4%; }
.lhr-media__wm--tl { left: 4%; top: 4%; }
.lhr-media__wm--c { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.lhr-media.is-empty .lhr-media__wm { display: none; }
.lhr-media[data-protect] img, .lhr-media[data-protect] video { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* ---------- floating WhatsApp ---------- */
.wa-float {
	position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: 45;
	display: inline-flex; align-items: center; gap: var(--s-2);
	padding: 0.85em 1.2em 0.85em 1em; border-radius: 999px;
	background: var(--c-wa); color: var(--c-white); font-weight: 700; font-size: var(--fs-1);
	box-shadow: 0 12px 30px rgba(37,211,102,.35);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(37,211,102,.45); }
.wa-float .ico { width: 26px; height: 26px; }
.wa-float::before { content: ""; position: absolute; inset: -6px; border-radius: 999px; border: 2px solid var(--c-wa); opacity: 0; animation: lhr-pulse 2.4s ease-out infinite; }
@keyframes lhr-pulse { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.25); opacity: 0; } }
@media (max-width: 860px) { .wa-float { display: none; } }

/* ---------- WhatsApp nudge card ---------- */
.nudge {
	position: fixed; right: var(--s-4); bottom: calc(var(--s-4) + 72px); z-index: 44; width: min(360px, calc(100% - 2 * var(--s-4)));
	background: var(--c-white); color: var(--c-ink); border-radius: var(--radius-lg); padding: var(--s-4) var(--s-4) var(--s-4);
	box-shadow: 0 24px 60px rgba(14,22,32,.25); border: 1px solid var(--c-line);
	transform: translateY(16px); opacity: 0; transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.nudge.is-shown { transform: none; opacity: 1; }
.nudge[hidden] { display: none; }
.nudge__close { position: absolute; top: 6px; right: 10px; font-size: 22px; line-height: 1; color: var(--c-slate); width: 32px; height: 32px; }
.nudge__title { font-weight: 800; font-size: var(--fs-2); padding-right: var(--s-5); }
.nudge__text { margin-top: var(--s-2); color: var(--c-slate); font-size: var(--fs-0); }
.nudge .btn { margin-top: var(--s-3); width: 100%; }
@media (max-width: 860px) { .nudge { bottom: calc(56px + var(--s-3) + env(safe-area-inset-bottom)); left: var(--s-3); right: var(--s-3); width: auto; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } .wa-float, .nudge { transition: none; } }
