/* ═══════════════════════════════════════════════════════════
   SANTA APOLÔNIA — v6
   Paleta tirada do próprio consultório:
   creme · greige · vidro verde-sálvia · nogueira · latão
   ═══════════════════════════════════════════════════════════ */

:root {
	--cream: #F2EEE7;
	--paper: #FBF9F5;
	--greige: #CFC8BC;
	--taupe: #9C9C90;
	--sage: #DCE6E2;
	--sage-deep: #75887E;
	--walnut: #60543C;
	--espresso: #1B1613;
	--brass: #A98A56;

	--bg: var(--cream);
	--surface: var(--paper);
	--ink: var(--espresso);
	--accent: var(--sage-deep);
	--ink-soft: color-mix(in srgb, var(--ink) 62%, transparent);
	--ink-faint: color-mix(in srgb, var(--ink) 40%, transparent);
	--line: color-mix(in srgb, var(--ink) 12%, transparent);
	--line-2: color-mix(in srgb, var(--ink) 24%, transparent);
	--btn-bg: var(--espresso);
	--btn-ink: #F7F4EE;
	--shadow-sm: 0 2px 10px -6px rgba(27, 22, 19, 0.28);
	--shadow: 0 24px 60px -34px rgba(27, 22, 19, 0.42);
	--shadow-lg: 0 46px 90px -46px rgba(27, 22, 19, 0.5);

	--serif: 'Cormorant Garamond', Georgia, serif;
	--sans: 'Jost', system-ui, -apple-system, sans-serif;
	--e: cubic-bezier(0.22, 1, 0.36, 1);
	--pad: clamp(18px, 4.4vw, 68px);
	--r: 18px;
	--r-lg: 28px;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
/* O scroll suave do CSS atrapalha o toque no telemóvel e trava as animações
   ligadas ao scroll. Fica só no rato; nos anchors o JS trata do resto. */
@media (hover: hover) and (pointer: fine) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body.csa {
	background: var(--bg); color: var(--ink);
	font-family: var(--sans); font-size: 16px; font-weight: 300; line-height: 1.62;
	-webkit-font-smoothing: antialiased; overflow-x: clip;
}
::selection { background: var(--sage); color: var(--espresso); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
ul { list-style: none; }
[id] { scroll-margin-top: 96px; }
[hidden] { display: none !important; }

.wrap { width: 100%; padding-inline: var(--pad); }
.mid { width: min(1320px, 100%); margin-inline: auto; padding-inline: var(--pad); }

html.js [data-rise] { opacity: 0; transform: translateY(28px); }
html.js.reduced [data-rise] { opacity: 1; transform: none; }
[data-mask] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.14em; margin-bottom: -0.14em; }
[data-mask] .w > span { display: inline-block; }
html.js [data-mask] { opacity: 0; }
html.js.reduced [data-mask] { opacity: 1; }

/* ── Tipografia ────────────────────────────────────────────── */
.d1 { font-family: var(--serif); font-weight: 300; line-height: 0.98; letter-spacing: -0.012em; font-size: clamp(2.7rem, 7.4vw, 7rem); }
.d2 { font-family: var(--serif); font-weight: 300; line-height: 1.02; letter-spacing: -0.01em; font-size: clamp(2.1rem, 4.6vw, 4rem); }
.d3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.d1 em, .d2 em, .d3 em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(0.98rem, 1.1vw, 1.08rem); color: var(--ink-soft); max-width: 54ch; font-weight: 300; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: clamp(0.66rem, 0.6rem + 0.2vw, 0.74rem); font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
	color: var(--ink-faint);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--brass); }
.eyebrow.mid-c { justify-content: center; }

/* ── Botões ────────────────────────────────────────────────── */
.btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 17px 30px; border-radius: 999px; border: 1px solid var(--line-2);
	font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
	overflow: hidden; isolation: isolate; white-space: nowrap;
	transition: color 0.45s var(--e), border-color 0.45s var(--e), background-color 0.45s var(--e);
}
.btn > * { position: relative; z-index: 1; }
.btn svg { width: 14px; height: 14px; }
.btn::after {
	content: ''; position: absolute; inset: 0; z-index: 0; border-radius: 999px;
	background: var(--accent); transform: translateY(101%);
	transition: transform 0.55s cubic-bezier(0.65, 0, 0.2, 1);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { color: #FBF9F5; border-color: var(--accent); }
.btn-solid { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.btn-lg { padding: 20px 38px; font-size: 0.72rem; }
.btn-sm { padding: 13px 20px; font-size: 0.62rem; }
.btn-ghost { border-color: var(--line-2); }
.link {
	display: inline-flex; align-items: center; gap: 9px; width: fit-content;
	font-size: 0.66rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
	padding-bottom: 5px; border-bottom: 1px solid var(--line-2);
	transition: color 0.35s, border-color 0.35s;
}
.link svg { width: 13px; height: 13px; transition: transform 0.45s var(--e); }
.link:hover { color: var(--accent); border-color: var(--accent); }
.link:hover svg { transform: translateX(5px); }

/* ── Cursor ────────────────────────────────────────────────── */
.cursor {
	position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
	width: 12px; height: 12px; border-radius: 50%;
	background: #fff; border: 0 solid #fff; mix-blend-mode: difference;
	transform: translate(-50%, -50%);
	transition: width 0.32s var(--e), height 0.32s var(--e), background-color 0.32s, border-width 0.32s;
}
.cursor .cur-l {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
	color: #000; opacity: 0; transition: opacity 0.2s; white-space: nowrap;
}
/* elementos clicáveis genéricos: anel discreto, nunca uma mancha */
.cursor.link { width: 32px; height: 32px; background: transparent; border-width: 1.5px; }
/* só o que tem etiqueta própria cresce */
.cursor.big { width: 84px; height: 84px; background: #fff; border-width: 0; }
.cursor.big .cur-l { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select,
html.has-cursor input *, html.has-cursor textarea * { cursor: auto !important; }

/* ── Preloader / progresso ─────────────────────────────────── */
.pre { position: fixed; inset: 0; z-index: 2000; background: var(--cream); display: grid; place-items: center; }
.pre-in { text-align: center; }
.pre-w { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 5vw, 3rem); letter-spacing: 0.4em; text-indent: 0.4em; overflow: hidden; display: flex; justify-content: center; }
.pre-w span { display: inline-block; transform: translateY(110%); }
.pre-s { margin-top: 12px; font-size: 0.56rem; letter-spacing: 0.5em; text-indent: 0.5em; text-transform: uppercase; color: var(--ink-faint); }
.pre-b { width: min(220px, 50vw); height: 1px; background: var(--line); margin: 28px auto 0; position: relative; }
.pre-b i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--brass); }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1200; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
	position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
	transition: transform 0.55s var(--e), background-color 0.4s, backdrop-filter 0.4s, border-color 0.4s;
	border-bottom: 1px solid transparent;
}
html.js body.csa .nav:not(.in) { transform: translateY(-101%); }
html.js.reduced body.csa .nav:not(.in) { transform: none; }
.nav.solid { background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: var(--line); }
.nav.hide { transform: translateY(-101%); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 82px; transition: height 0.4s var(--e); }
.nav.solid .nav-in { height: 66px; }
.logo { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.logo img { height: 36px; width: auto; }
.logo-w { font-family: var(--sans); font-weight: 300; font-size: 0.98rem; letter-spacing: 0.3em; text-indent: 0.3em; }
.logo-s { font-size: 0.48rem; letter-spacing: 0.44em; text-indent: 0.44em; text-transform: uppercase; color: var(--ink-faint); }
.nav-links { display: flex; gap: clamp(14px, 1.8vw, 28px); }
.nav-links a { position: relative; font-size: 0.66rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); padding-block: 8px; transition: color 0.35s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.5s var(--e); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
/* secção onde o visitante está agora */
.nav-links a.is-here { color: var(--ink); }
.nav-links a.is-here::after { transform: scaleX(1); transform-origin: 0 50%; background: var(--brass); }
.menu-nav a.is-here { color: var(--accent); }
.menu-nav a.is-here svg { color: var(--accent); transform: translateX(4px); }
.nav-r { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger i { width: 15px; height: 1px; background: var(--ink); transition: transform 0.5s var(--e); }
.burger.open i:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger.open i:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
.nav.on-dark:not(.solid) {
	background: linear-gradient(180deg, rgba(16, 13, 11, 0.6) 0%, rgba(16, 13, 11, 0.26) 62%, rgba(16, 13, 11, 0) 100%);
	--ink: #F7F4EE; --ink-soft: rgba(247, 244, 238, 0.86); --ink-faint: rgba(247, 244, 238, 0.62);
	--line: rgba(247, 244, 238, 0.22); --line-2: rgba(247, 244, 238, 0.4);
	--btn-bg: #F7F4EE; --btn-ink: #1B1613;
	color: var(--ink);
}
.nav.on-dark:not(.solid) .logo img { filter: brightness(0) invert(1); }
.nav.on-dark:not(.solid) .logo, .nav.on-dark:not(.solid) .nav-links a { text-shadow: 0 1px 10px rgba(12, 9, 7, 0.45); }
/* com o menu aberto o painel é claro: o cabeçalho volta à tinta escura */
body.menu-open .nav.on-dark:not(.solid) {
	--ink: var(--espresso);
	--ink-soft: color-mix(in srgb, var(--espresso) 62%, transparent);
	--ink-faint: color-mix(in srgb, var(--espresso) 40%, transparent);
	--line: color-mix(in srgb, var(--espresso) 12%, transparent);
	--line-2: color-mix(in srgb, var(--espresso) 24%, transparent);
	--btn-bg: var(--espresso); --btn-ink: #F7F4EE;
	color: var(--ink);
}
body.menu-open .nav.on-dark:not(.solid) .logo img { filter: none; }
@media (max-width: 1080px) {
	.nav-links { display: none; }
	.burger { display: flex; }
	.nav-r .btn span { display: none; }
	.nav-r .btn { padding: 0; width: 42px; height: 42px; }
}

/* ── Menu ──────────────────────────────────────────────────── */
.menu {
	position: fixed; inset: 0; z-index: 995;
	background: var(--cream);
	padding: 96px var(--pad) max(26px, calc(env(safe-area-inset-bottom, 0px) + 20px));
	overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
	opacity: 0; visibility: hidden; transform: translateY(-8px);
	transition: opacity 0.38s var(--e), visibility 0.38s, transform 0.48s var(--e);
}
.menu.open { opacity: 1; visibility: visible; transform: none; }
.menu-in {
	position: relative; display: grid; gap: clamp(26px, 5vh, 42px);
	align-content: start; min-height: 100%; width: min(520px, 100%);
}

.menu-nav { display: grid; }
.menu-nav a {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding-block: clamp(14px, 2.4vh, 19px);
	border-bottom: 1px solid var(--line);
	font-family: var(--serif); font-weight: 300; font-size: clamp(1.55rem, 6.2vw, 2.05rem); line-height: 1.1;
	opacity: 0; transform: translateY(8px);
	transition: opacity 0.5s var(--e), transform 0.5s var(--e), color 0.3s, padding-left 0.4s var(--e);
}
.menu-nav a:first-child { border-top: 1px solid var(--line); }
.menu-nav a svg { width: 16px; height: 16px; color: var(--ink-faint); transition: transform 0.45s var(--e), color 0.3s; flex: 0 0 16px; }
.menu-nav a:hover, .menu-nav a:active { color: var(--accent); padding-left: 5px; }
.menu-nav a:hover svg { transform: translateX(5px); color: var(--accent); }
.menu.open .menu-nav a { opacity: 1; transform: none; }
.menu.open .menu-nav a:nth-child(1) { transition-delay: 0.07s; }
.menu.open .menu-nav a:nth-child(2) { transition-delay: 0.11s; }
.menu.open .menu-nav a:nth-child(3) { transition-delay: 0.15s; }
.menu.open .menu-nav a:nth-child(4) { transition-delay: 0.19s; }
.menu.open .menu-nav a:nth-child(5) { transition-delay: 0.23s; }
.menu.open .menu-nav a:nth-child(6) { transition-delay: 0.27s; }
.menu.open .menu-nav a:nth-child(7) { transition-delay: 0.31s; }

.menu-cta, .menu-info { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--e) 0.3s, transform 0.5s var(--e) 0.3s; }
.menu-info { transition-delay: 0.36s; }
.menu.open .menu-cta, .menu.open .menu-info { opacity: 1; transform: none; }
.menu-cta { width: 100%; }
.menu-cta svg { width: 15px; height: 15px; }

.menu-info { display: grid; gap: 14px; justify-items: start; }
.menu-tel {
	font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 7.4vw, 2.3rem); line-height: 1;
	transition: color 0.3s;
}
.menu-tel:hover { color: var(--accent); }
.menu-hours { font-size: 0.88rem; line-height: 1.6; color: var(--ink-soft); }
.menu-links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 4px; }
.menu-links a {
	font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--ink-faint); padding-bottom: 4px; border-bottom: 1px solid var(--line);
	transition: color 0.3s, border-color 0.3s;
}
.menu-links a:hover { color: var(--accent); border-color: var(--accent); }
@media (min-height: 780px) { .menu-in { gap: clamp(30px, 6vh, 52px); } }
@media (max-height: 620px) {
	.menu-nav a { font-size: 1.3rem; padding-block: 10px; }
	.menu-tel { font-size: 1.4rem; }
	.menu-in { gap: 20px; }
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 116px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg picture { display: block; position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hpos, 50% 50%); }
@media (max-width: 820px) { .hero-bg img { object-position: var(--hpos-m, var(--hpos, 50% 50%)); } }
/* escurecimento uniforme, regulável no backoffice */
.hero-dim { position: absolute; inset: 0; background: #14100D; }
/* scrim: topo para o menu, base para o texto, lado esquerdo para o título */
.hero-scrim {
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(16, 13, 11, 0.72) 0%, rgba(16, 13, 11, 0.34) 12%, rgba(16, 13, 11, 0) 30%),
		linear-gradient(0deg, rgba(16, 13, 11, 0.88) 0%, rgba(16, 13, 11, 0.62) 24%, rgba(16, 13, 11, 0.18) 56%, rgba(16, 13, 11, 0) 78%),
		linear-gradient(90deg, rgba(16, 13, 11, 0.62) 0%, rgba(16, 13, 11, 0.22) 44%, rgba(16, 13, 11, 0) 72%);
}
@media (max-width: 820px) {
	.hero-scrim {
		background:
			linear-gradient(180deg, rgba(16, 13, 11, 0.78) 0%, rgba(16, 13, 11, 0.36) 16%, rgba(16, 13, 11, 0) 36%),
			linear-gradient(0deg, rgba(16, 13, 11, 0.92) 0%, rgba(16, 13, 11, 0.72) 34%, rgba(16, 13, 11, 0.24) 66%, rgba(16, 13, 11, 0) 86%);
	}
}
.hero.dark { --ink: #F7F4EE; --ink-soft: rgba(247, 244, 238, 0.78); --ink-faint: rgba(247, 244, 238, 0.56); --line: rgba(247, 244, 238, 0.2); --line-2: rgba(247, 244, 238, 0.38); --btn-bg: #F7F4EE; --btn-ink: #1B1613; --accent: #CBD8CF; color: var(--ink); }
.hero-art { position: absolute; inset: 0; z-index: 0; background: linear-gradient(168deg, var(--paper), var(--sage) 62%, var(--greige)); }
.hero-art .arch { position: absolute; right: 6vw; top: 12%; width: min(38vw, 460px); aspect-ratio: 3/4.4; border-radius: 999px 999px 24px 24px; background: linear-gradient(170deg, rgba(255, 255, 255, 0.6), rgba(207, 200, 188, 0.5)); border: 1px solid rgba(255, 255, 255, 0.6); }
.hero-art .glow { position: absolute; left: -10vw; bottom: -10vh; width: 52vw; height: 52vw; border-radius: 50%; background: radial-gradient(circle, rgba(169, 138, 86, 0.16), transparent 62%); }
.hero-in {
	position: relative; z-index: 2;
	padding-bottom: clamp(26px, 5vh, 58px);
	display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px;
}
.hero h1 { max-width: 14ch; margin: clamp(16px, 3vh, 30px) 0 clamp(14px, 2.4vh, 24px); }
.hero.dark h1 { text-shadow: 0 2px 30px rgba(12, 9, 7, 0.4); }
.hero.dark .lead { text-shadow: 0 1px 14px rgba(12, 9, 7, 0.5); color: rgba(247, 244, 238, 0.9); }
.hero.dark .eyebrow { color: rgba(247, 244, 238, 0.78); text-shadow: 0 1px 12px rgba(12, 9, 7, 0.5); }
.hero .lead { max-width: 42ch; margin-bottom: clamp(22px, 3.4vh, 34px); }
.hero-copy { max-width: min(100%, 60ch); }

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.hero-link {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
	padding-bottom: 6px; border-bottom: 1px solid currentColor; color: inherit;
	transition: opacity 0.3s, gap 0.4s var(--e);
}
.hero-link svg { width: 14px; height: 14px; }
.hero-link:hover { gap: 15px; opacity: 0.72; }

.hero-note {
	margin-top: clamp(18px, 2.6vh, 26px);
	font-size: 0.76rem; letter-spacing: 0.04em; line-height: 1.6;
	color: rgba(247, 244, 238, 0.68);
}
.hero:not(.dark) .hero-note { color: var(--ink-faint); }

.hero-cue {
	display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
	font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: inherit; opacity: 0.72;
	padding-bottom: 4px; transition: opacity 0.3s;
}
.hero-cue:hover { opacity: 1; }
.hero-cue i { width: 1px; height: 46px; background: linear-gradient(currentColor, transparent); animation: cue 2.6s var(--e) infinite; }
.hero-cue span { writing-mode: vertical-rl; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: 0 0; } 45% { transform: scaleY(1); transform-origin: 0 0; } 55% { transform: scaleY(1); transform-origin: 0 100%; } 100% { transform: scaleY(0); transform-origin: 0 100%; } }
@media (max-width: 820px) {
	.hero-in { grid-template-columns: 1fr; }
	.hero-cue { display: none; }
}
@media (max-width: 560px) {
	.hero-cta { gap: 14px 20px; }
	.hero-cta .btn { width: 100%; }
	.hero-link { align-self: center; }
}

/* ── Ticker ────────────────────────────────────────────────── */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding-block: 13px; background: var(--paper); }
.ticker-track { display: flex; width: max-content; }
.ticker-track span { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; font-size: 0.64rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.ticker-track i { font-style: normal; color: var(--brass); }

/* ── Secções ───────────────────────────────────────────────── */
.sec { padding-block: clamp(58px, 8.4vw, 128px); position: relative; }
.sec-paper { background: var(--paper); }
.sec-sage { background: var(--sage); }
.sec-head { margin-bottom: clamp(28px, 4.4vw, 56px); display: grid; gap: 16px; }
.sec-head.row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; }
@media (max-width: 900px) { .sec-head.row { grid-template-columns: 1fr; } }

/* ── Carrossel de especialidades ───────────────────────────── */
.car-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.car-nav { display: flex; gap: 8px; }
.car-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color 0.35s, color 0.35s, opacity 0.3s; }
.car-nav button:hover { background: var(--espresso); color: var(--paper); }
.car-nav button:disabled { opacity: 0.3; }
.car-nav svg { width: 14px; height: 14px; }
.car-nav .p svg { transform: rotate(180deg); }
@media (max-width: 720px) { .car-nav { display: none; } }
.rail { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.drag { cursor: grabbing; }
.rail-in { display: flex; gap: clamp(12px, 1.6vw, 22px); width: max-content; padding-inline: var(--pad); }
.spec {
	scroll-snap-align: start;
	position: relative; flex: 0 0 clamp(272px, 38vw, 540px);
	border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
	border: 1px solid var(--line); text-align: left;
	transition: transform 0.55s var(--e), box-shadow 0.55s var(--e), border-color 0.4s;
}
.spec:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: var(--line-2); }
.spec-img { display: block; aspect-ratio: 16/11; overflow: hidden; position: relative; }
.spec-img img, .spec-img .fill { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--e); }
.spec:hover .spec-img img { transform: scale(1.06); }
.spec-n { position: absolute; top: 14px; left: 16px; z-index: 2; font-family: var(--serif); font-size: 1.5rem; color: #F7F4EE; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4); }
.spec-img::after {
	content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(0deg, rgba(16, 13, 11, 0.42) 0%, rgba(16, 13, 11, 0) 46%);
	opacity: 0.85; transition: opacity 0.5s var(--e);
}
.spec:hover .spec-img::after { opacity: 1; }
.ico-plus { position: relative; width: 11px; height: 11px; flex: 0 0 11px; display: block; }
.ico-plus::before, .ico-plus::after { content: ''; position: absolute; left: 50%; top: 50%; background: currentColor; transition: transform 0.45s var(--e); }
.ico-plus::before { width: 11px; height: 1.4px; transform: translate(-50%, -50%); }
.ico-plus::after { width: 1.4px; height: 11px; transform: translate(-50%, -50%); }
.spec-open {
	position: absolute; z-index: 2; right: 14px; bottom: 14px;
	display: inline-flex; align-items: center; gap: 0;
	height: 38px; padding: 0 13px; border-radius: 999px;
	background: rgba(251, 249, 245, 0.94); color: var(--espresso);
	box-shadow: 0 6px 22px -12px rgba(16, 13, 11, 0.7);
	transition: gap 0.5s var(--e), padding 0.5s var(--e), background-color 0.4s;
}
.spec-open em {
	font-style: normal; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
	max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
	transition: max-width 0.55s var(--e), opacity 0.35s var(--e);
}
.spec:hover .spec-open, .spec:focus-visible .spec-open { gap: 9px; background: var(--espresso); color: #FBF9F5; }
.spec:hover .spec-open em, .spec:focus-visible .spec-open em { max-width: 150px; opacity: 1; }
.spec:hover .ico-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
@media (hover: none) {
	.spec-open { gap: 9px; }
	.spec-open em { max-width: 150px; opacity: 1; }
}
.spec-b { display: grid; padding: clamp(18px, 2vw, 26px); gap: 9px; }
.spec-b h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 1.9vw, 1.65rem); line-height: 1.06; }
.spec-b .t { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1rem; }
.spec-b p { color: var(--ink-soft); font-size: 0.88rem; }
.spec-b .link { margin-top: 6px; }
.fill { display: block; background: linear-gradient(160deg, var(--sage), var(--greige)); }
.rail-hint { text-align: center; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); padding-top: 18px; }
.rail-hint::before { content: '←  '; }
.rail-hint::after { content: '  →'; }
@media (min-width: 721px) { .rail-hint { display: none; } }
.gal-f { scroll-snap-align: start; }

/* ── Análise facial (sticky, sem pin) ──────────────────────── */
.fm-wrap { position: relative; background: var(--paper); min-height: 320svh; }
html:not(.js) .fm-wrap { min-height: 0; }
.fm-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.fm-grid { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(20px, 4vw, 64px); align-items: center; width: 100%; }
.fm-copy { display: grid; gap: 16px; }
.fm-steps { display: grid; margin-top: 4px; }
.fm-step { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: baseline; padding-block: 11px; border-top: 1px solid var(--line); opacity: 0.32; transition: opacity 0.5s var(--e); }
.fm-step:last-child { border-bottom: 1px solid var(--line); }
.fm-step.on { opacity: 1; }
.fm-step i { font-style: normal; font-size: 0.58rem; letter-spacing: 0.16em; color: var(--brass); }
.fm-step b { font-weight: 400; font-size: 0.95rem; display: block; }
.fm-step span { color: var(--ink-soft); font-size: 0.82rem; }
.fm-viz {
	position: relative; justify-self: center; contain: layout paint;
	/* A largura manda e a altura vem da proporção, por isso o quadro é sempre
	   600:760 mesmo quando a coluna é estreita (iPad Pro ao alto, por exemplo). */
	width: 100%; height: auto;
	max-width: calc(min(84vh, 760px) * 600 / 760);
	aspect-ratio: 600 / 760;
	border-radius: var(--r-lg); overflow: hidden; background: var(--greige); box-shadow: var(--shadow);
	isolation: isolate;
}
.fm-img { position: absolute; inset: 0; }
.fm-img img { width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; }
.fm-after { opacity: 0; will-change: opacity; }
.fm-ph { position: absolute; inset: 0; background: radial-gradient(60% 46% at 50% 40%, #E9D9CC, transparent 70%), linear-gradient(165deg, var(--greige), var(--taupe)); }

/* véu que garante contraste às linhas claras e à barra de leitura */
.fm-shade {
	position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(120% 86% at 50% 38%, rgba(16, 13, 11, 0) 44%, rgba(16, 13, 11, 0.9) 100%),
		linear-gradient(0deg, rgba(16, 13, 11, 0.92) 0%, rgba(16, 13, 11, 0.34) 16%, rgba(16, 13, 11, 0) 34%);
}

/* ── desenho, tudo em percentagem do quadro ── */
.fm-net, .fm-th, .fm-ax, .fm-dots, .fm-oval { position: absolute; inset: 0; pointer-events: none; }
/* contraste por sombra própria de cada linha: muito mais barato de pintar
   do que um filtro no contentor, que obrigava a repintar tudo a cada frame */
.fm-net i { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -0.5px; background: #F7F4EE; opacity: 0.34; transform: scaleY(0); transform-origin: 50% 0; box-shadow: 0 0 3px rgba(12, 9, 7, 0.6); }
.fm-th i { position: absolute; left: 7%; right: 7%; height: 1px; background: #F3EBDA; opacity: 0.92; transform: scaleX(0); transform-origin: 50% 50%; box-shadow: 0 0 3px rgba(12, 9, 7, 0.7); }
.fm-ax i { position: absolute; top: 6%; bottom: 4%; width: 1px; margin-left: -0.5px; background: #F3EBDA; opacity: 0.94; transform: scaleY(0); transform-origin: 50% 0; box-shadow: 0 0 3px rgba(12, 9, 7, 0.7); }
.fm-wrap.no-net .fm-net { display: none; }
.fm-oval { opacity: 0; }
.fm-oval path { fill: none; stroke: #FBF9F5; stroke-width: 2.6; opacity: 0.9; }
html:not(.js) .fm-oval, html.reduced .fm-oval { opacity: 1; }
/* contorno do rosto: em percentagem, para acompanhar sempre as outras marcas */
.fm-ring {
	position: absolute; z-index: 1; pointer-events: none;
	border: 2px solid rgba(251, 249, 245, 0.94); border-radius: 50%;
	box-shadow: 0 0 4px rgba(12, 9, 7, 0.45);
	clip-path: inset(0 0 100% 0);
}
html:not(.js) .fm-ring, html.reduced .fm-ring { clip-path: none; }
.fm-pt {
	position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
	background: #F4F8F6; opacity: 0; transform: scale(0.3);
	box-shadow: 0 0 0 1px rgba(12, 9, 7, 0.35), 0 0 14px rgba(220, 230, 226, 0.8);
}
.fm-pt::after { content: ''; position: absolute; inset: -12px; border: 1px solid rgba(244, 248, 246, 0.9); border-radius: 50%; }
.fm-pt.sm { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
.fm-pt.sm::after { inset: -9px; }

.fm-scan {
	position: absolute; left: 0; right: 0; height: 26%; top: 0; pointer-events: none;
	will-change: transform; transform: translateY(-100%);
	background: linear-gradient(180deg, rgba(240, 230, 210, 0) 0%, rgba(240, 230, 210, 0.34) 52%, rgba(255, 255, 255, 0.6) 62%, rgba(240, 230, 210, 0) 100%);
}

.fm-label {
	position: absolute; z-index: 2; opacity: 0;
	font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
	color: #F7F4EE; background: rgba(16, 13, 11, 0.74);
	padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(247, 244, 238, 0.3);
	max-width: 44%; overflow: hidden; text-overflow: ellipsis;
}
.fm-label.lft { transform: translate(calc(-100% - 30px), -50%); }
.fm-label.rgt { transform: translate(30px, -50%); }
.fm-label::before {
	content: ''; position: absolute; top: 50%; width: 24px; height: 1px;
	background: rgba(247, 244, 238, 0.7);
}
.fm-label.lft::before { left: 100%; }
.fm-label.rgt::before { right: 100%; }

.fm-hud {
	position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px;
	display: flex; align-items: center; gap: 12px;
	font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247, 244, 238, 0.92);
}
.fm-hud .bar { flex: 1; height: 2px; border-radius: 2px; background: rgba(247, 244, 238, 0.28); position: relative; overflow: hidden; }
.fm-hud .bar i { position: absolute; inset: 0; background: #F0E6D2; transform: scaleX(0); transform-origin: 0 50%; }

/* ── tipografia maior no desktop ── */
@media (min-width: 901px) {
	.fm-label { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(16, 13, 11, 0.68); }
	.fm-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
	.fm-copy { gap: 20px; }
	.fm-copy .d2 { font-size: clamp(2.4rem, 3.5vw, 4.4rem); }
	.fm-copy .lead { font-size: clamp(1.02rem, 0.9vw + 0.5rem, 1.2rem); max-width: 44ch; }
	.fm-step { padding-block: 15px; }
	.fm-step b { font-size: 1.06rem; }
	.fm-step span span { font-size: 0.92rem; }
	.fm-step i { font-size: 0.66rem; }
	.fm-label { font-size: 0.66rem; }
}

@media (max-width: 900px) {
	/* a secção continua fixa até a leitura terminar */
	/* percurso mais curto no telemóvel: a leitura lê-se toda sem prender demasiado */
	.fm-wrap { min-height: 260svh; }
	.fm-sticky { position: sticky; top: 0; height: 100svh; padding-block: 84px 14px; align-items: center; }
	.fm-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 12px; height: 100%; align-content: center; }
	.fm-copy { gap: 8px; align-content: start; }
	.fm-copy .lead { display: none; }
	.fm-copy .d2 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
	/* O quadro tem de ser SEMPRE 600:760, senão o desenho deixa de assentar na
	   foto. Com max-width sozinho a caixa estreitava mas mantinha a altura, por
	   isso a altura é limitada também pela largura disponível. */
	.fm-viz {
		height: min(100%, calc((100vw - 2 * var(--pad)) * 760 / 600));
		width: auto; max-width: 100%;
		aspect-ratio: 600 / 760; order: 2; margin-inline: auto;
	}
	.fm-label { font-size: 0.54rem; padding: 5px 9px; max-width: 40%; }
	.fm-label.lft { transform: translate(calc(-100% - 16px), -50%); }
	.fm-label.rgt { transform: translate(16px, -50%); }
	.fm-label::before { width: 12px; }
	.fm-hud { left: 12px; right: 12px; top: 12px; bottom: auto; font-size: 0.56rem; gap: 9px; }
	.fm-shade { background:
		radial-gradient(120% 86% at 50% 42%, rgba(16, 13, 11, 0) 46%, rgba(16, 13, 11, 0.88) 100%),
		linear-gradient(180deg, rgba(16, 13, 11, 0.78) 0%, rgba(16, 13, 11, 0.2) 14%, rgba(16, 13, 11, 0) 30%); }
	.fm-steps { display: flex; gap: 6px; border-top: 0; }
	.fm-step { display: block; grid-template-columns: none; padding: 0; border: 0; flex: 1; opacity: 1; }
	.fm-step:last-child { border-bottom: 0; }
	.fm-step i, .fm-step span span { display: none; }
	.fm-step b {
		display: block; font-size: 0.62rem; letter-spacing: 0.04em; padding-top: 8px;
		border-top: 2px solid color-mix(in srgb, var(--ink) 12%, transparent);
		color: var(--ink-faint); transition: color 0.4s, border-color 0.4s;
	}
	.fm-step.on b { border-top-color: var(--brass); color: var(--ink); }
}
@media (max-width: 420px) {
	.fm-copy .d2 { font-size: 1.55rem; }
	.fm-step b { font-size: 0.55rem; letter-spacing: 0; }
	.fm-label { font-size: 0.5rem; padding: 4px 7px; }
}
/* ecrãs baixos ao alto (iPhone SE, landscape) */
@media (max-width: 900px) and (max-height: 680px) {
	.fm-copy .lead, .fm-copy .eyebrow { display: none; }
	.fm-sticky { padding-block: 74px 10px; }
}

/* ── Antes & Depois ────────────────────────────────────────── */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.ba { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--r-lg); cursor: ew-resize; user-select: none; -webkit-user-select: none; touch-action: pan-y; box-shadow: var(--shadow); }
.ba-l { position: absolute; inset: 0; }
.ba-l img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-tag { position: absolute; top: 12px; font-size: 0.54rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; background: rgba(27, 22, 19, 0.6); color: #F7F4EE; backdrop-filter: blur(6px); }
.ba-tag.b { left: 12px; }
.ba-tag.a { right: 12px; background: var(--accent); }
.ba-h { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 1px; background: rgba(255, 255, 255, 0.92); margin-left: -0.5px; }
.ba-h i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #F7F4EE; color: var(--espresso); box-shadow: var(--shadow-sm); }
.ba-h svg { width: 15px; height: 15px; }
.ba-item figcaption { margin-top: 10px; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }

/* ── Split (clínica) ───────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 4.4vw, 68px); align-items: center; }
.split-media { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 999px 999px var(--r-lg) var(--r-lg); box-shadow: var(--shadow); }
.split-media img, .split-media .fill { width: 100%; height: 106%; object-fit: cover; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(18px, 2.6vw, 30px); }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; font-size: 0.7rem; background: var(--surface); }
.pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ── Equipa ────────────────────────────────────────────────── */
.team {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 250px));
	justify-content: center; gap: clamp(16px, 2.2vw, 30px);
	width: min(100%, 880px); margin-inline: auto;
}
@media (max-width: 620px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.tm { display: grid; gap: 12px; text-align: left; align-content: start; }
.tm-ph { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--r-lg); background: var(--greige); }
.tm-ph img, .tm-ph .fill { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--e); }
.tm:hover .tm-ph img { transform: scale(1.05); }
.tm-open {
	position: absolute; right: 12px; bottom: 12px; z-index: 2;
	width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
	background: rgba(251, 249, 245, 0.94); color: var(--espresso);
	box-shadow: 0 6px 18px -10px rgba(16, 13, 11, 0.7);
	transition: background-color 0.35s, color 0.35s, transform 0.45s var(--e);
}
.tm:hover .tm-open { background: var(--espresso); color: #FBF9F5; transform: scale(1.08); }
.tm:hover .tm-open .ico-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.tm-b { display: grid; gap: 3px; }
.tm h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.15; }
.tm .r { font-size: 0.74rem; color: var(--ink-faint); line-height: 1.4; }

/* Popup da equipa */
.tmm { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
@media (max-width: 760px) { .tmm { grid-template-columns: 1fr; } }
.tmm-media { position: relative; min-height: 260px; background: var(--greige); }
.tmm-media img, .tmm-media .fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .tmm-media { position: relative; aspect-ratio: 4/3; min-height: 0; } }
.tmm-body { padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 10px; align-content: start; }
.tmm-body h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.05; }
.tmm-body .r { font-size: 0.78rem; letter-spacing: 0.02em; color: var(--accent); }
.tmm-body .cro { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.tmm-body .bio { color: var(--ink-soft); font-size: 0.92rem; margin-top: 4px; }
.tmm-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.tmm-foot .btn { flex: 1 1 auto; }

/* ── Depoimentos ───────────────────────────────────────────── */
.quotes-wrap { text-align: center; display: grid; justify-items: center; }
.q-glyph {
	font-family: var(--serif); font-size: clamp(4rem, 9vw, 7rem); line-height: 0.6;
	color: var(--accent); opacity: 0.34; margin: 10px 0 -6px; user-select: none;
}
.q { display: none; }
.q.on { display: grid; gap: 16px; justify-items: center; animation: fade 0.6s var(--e); }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.q blockquote {
	font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 3vw, 2.5rem);
	line-height: 1.24; max-width: 22ch; margin-inline: auto; text-wrap: balance;
}
.q blockquote::before { content: '“'; }
.q blockquote::after { content: '”'; }
.q figcaption { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.q-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: clamp(22px, 3vw, 34px); }
.q-dots { display: inline-flex; align-items: center; gap: 8px; }
.q-dot { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--espresso) 22%, transparent); transition: background-color 0.35s, transform 0.35s var(--e); }
.q-dot.on { background: var(--espresso); transform: scale(1.35); }
.q-b { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color 0.35s, color 0.35s; }
.q-b:hover { background: var(--espresso); color: var(--paper); }
.q-b svg { width: 13px; height: 13px; }
.q-b.prev svg { transform: rotate(180deg); }
.q-c { font-size: 0.62rem; letter-spacing: 0.18em; color: var(--ink-faint); }

/* ── Galeria ───────────────────────────────────────────────── */
.gal-in { display: flex; gap: clamp(10px, 1.4vw, 18px); width: max-content; padding-inline: var(--pad); }
.gal-f { width: clamp(200px, 22vw, 300px); }
.gal-f:nth-child(even) { margin-top: clamp(14px, 3vw, 44px); }
.gal-b { display: block; width: 100%; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--r); }
.gal-b img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--e); }
.gal-b:hover img { transform: scale(1.05); }
.gal-f figcaption { margin-top: 9px; font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }

/* ── Contacto + CTA ────────────────────────────────────────── */
.cgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: clamp(16px, 2.4vw, 34px); border-top: 1px solid var(--line); padding-top: clamp(20px, 3vw, 36px); }
.cc { display: grid; gap: 7px; align-content: start; }
.cc h3 { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
.cc p, .cc a { font-size: 0.95rem; }
.cc a { width: fit-content; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color 0.35s, border-color 0.35s; }
.cc a:hover { color: var(--accent); border-color: var(--accent); }
.cc small { color: var(--ink-soft); font-size: 0.82rem; }
.map { margin-top: clamp(20px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.map iframe { display: block; width: 100%; height: clamp(240px, 34vw, 400px); border: 0; }

.cta { text-align: center; padding-block: clamp(56px, 8vw, 130px); overflow: hidden; background: var(--paper); }
.wa-big {
	display: flex; justify-content: center; align-items: flex-start;
	position: relative; margin: 18px auto 8px; width: fit-content; max-width: 100%;
	font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 9vw, 8rem); line-height: 1;
	white-space: nowrap; letter-spacing: -0.01em;
}
.wa-big .ch { display: block; transition: transform 0.3s var(--e), color 0.3s; }
.wa-big:hover .ch { color: var(--accent); }
.wa-big::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--brass); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.55s cubic-bezier(0.65, 0, 0.2, 1); }
.wa-big:hover::after { transform: scaleX(1); }
.cta-sub { color: var(--ink-soft); max-width: 50ch; margin: 16px auto 24px; }
.ftr { border-top: 1px solid var(--line); padding-block: 30px; background: var(--paper); }
.ftr-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; font-size: 0.68rem; color: var(--ink-soft); }
.ftr-links { display: flex; flex-wrap: wrap; gap: 16px; }
.ftr-links a:hover { color: var(--accent); }
.clock { display: inline-flex; align-items: center; gap: 7px; }
.clock i { width: 6px; height: 6px; border-radius: 50%; background: #6D9E72; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── Flutuantes ────────────────────────────────────────────── */
.fabs { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: grid; gap: 10px; justify-items: end; }
.fab {
	display: inline-flex; align-items: center; gap: 9px; padding: 14px 20px; border-radius: 999px;
	font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
	box-shadow: var(--shadow); transition: transform 0.4s var(--e), background-color 0.35s;
}
.fab svg { width: 16px; height: 16px; }
.fab-wa { background: #5C7F63; color: #F7F4EE; }
.fab-wa:hover { transform: translateY(-3px); background: #4E6E55; }
.fab-bk { background: var(--espresso); color: var(--btn-ink); }
.fab-bk:hover { transform: translateY(-3px); }
html.js .fabs { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.4s, visibility 0.4s, transform 0.4s var(--e); }
html.js .fabs.show { opacity: 1; visibility: visible; transform: none; }
body.modal-open .fabs, body.menu-open .fabs { opacity: 0 !important; visibility: hidden !important; }
@media (max-width: 640px) {
	.fabs { right: 14px; bottom: 14px; gap: 8px; }
	.fab { padding: 13px; }
	.fab span { display: none; }
}

/* ── MODAIS (agendamento + especialidade) ──────────────────── */
.modal {
	position: fixed; inset: 0; z-index: 1600;
	display: grid; place-items: center;
	padding: clamp(10px, 3vw, 34px);
	opacity: 0; visibility: hidden;
	transition: opacity 0.4s var(--e), visibility 0.4s;
}
.modal.on { opacity: 1; visibility: visible; }
.modal-bd { position: absolute; inset: 0; background: rgba(27, 22, 19, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-card {
	position: relative; z-index: 1;
	width: min(1020px, 100%); max-height: min(92svh, 900px);
	background: var(--cream); border-radius: var(--r-lg);
	box-shadow: var(--shadow-lg); overflow: hidden;
	display: flex; flex-direction: column;
	transform: translateY(22px) scale(0.985);
	transition: transform 0.55s var(--e);
}
.modal.on .modal-card { transform: none; }
.modal-card.modal-narrow { width: min(760px, 100%); }
.modal-card.modal-plain { background: transparent; box-shadow: none; width: min(1100px, 94vw); }
.modal-hd-plain { background: transparent; border: 0; justify-content: flex-end; }
.modal-hd-plain .modal-x { color: #F7F4EE; border-color: rgba(247, 244, 238, 0.4); }
.lb-fig { display: grid; gap: 10px; justify-items: center; padding: 0 0 20px; }
.lb-fig img { max-height: 74svh; width: auto; border-radius: 16px; object-fit: contain; }
.lb-fig figcaption { color: #F7F4EE; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; }
.modal-hd {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 16px clamp(16px, 2.4vw, 28px); border-bottom: 1px solid var(--line);
	background: var(--paper); flex: 0 0 auto;
}
.modal-hd h2 { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; }
.modal-hd .sub { font-size: 0.62rem; color: var(--ink-faint); letter-spacing: 0.1em; }
.modal-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color 0.3s, transform 0.4s var(--e); }
.modal-x:hover { background: var(--espresso); color: var(--paper); transform: rotate(90deg); }
.modal-x svg { width: 14px; height: 14px; }
.modal-bd-in { overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1 1 auto; overscroll-behavior: contain; }
html.lock, html.lock body.csa { overflow: hidden; }
html:not(.js) .modal:target { opacity: 1; visibility: visible; }
html:not(.js) .modal:target .modal-card { transform: none; }
@media (max-width: 720px) {
	.modal { padding: 0; place-items: stretch; }
	.modal-card { width: 100%; max-height: 100svh; height: 100svh; border-radius: 0; }
	.modal-hd { padding-block: 13px; }
}

/* Modal de agendamento */
.bk { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); min-height: 0; }
@media (max-width: 860px) { .bk { grid-template-columns: 1fr; } }
.bk-side { background: var(--sage); padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 18px; align-content: start; }
@media (max-width: 860px) { .bk-side { display: none; } }
.bk-side h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.05; }
.bk-trust { display: grid; gap: 9px; margin-top: 2px; }
.bk-trust li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.8rem; color: var(--ink-soft); line-height: 1.4; }
.bk-trust svg { width: 13px; height: 13px; margin-top: 3px; color: var(--sage-deep); flex: 0 0 13px; }
.bk-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.bk-chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
	background: var(--sage); font-size: 0.74rem; color: var(--ink);
}
.bk-chip i { font-style: normal; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.pro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 10px; }
.pro-b {
	display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 13px; align-items: center; text-align: left;
	padding: 11px 14px 11px 11px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
	transition: border-color 0.35s, box-shadow 0.4s;
}
.pro-b:hover { border-color: var(--line-2); }
.pro-b.on { border-color: var(--espresso); box-shadow: inset 0 0 0 1px var(--espresso); }
.pro-ph { display: block; width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: var(--sage); flex: 0 0 54px; }
.pro-ph img, .pro-ph .fill { width: 100%; height: 100%; object-fit: cover; }
.pro-any { display: grid; place-items: center; color: var(--sage-deep); }
.pro-any svg { width: 18px; height: 18px; }
.pro-t { display: block; min-width: 0; }
.pro-b strong { display: block; font-weight: 400; font-size: 0.94rem; }
.pro-b small { display: block; font-size: 0.74rem; color: var(--ink-faint); margin-top: 2px; line-height: 1.35; }
.bk-side p { font-size: 0.86rem; color: var(--ink-soft); }
.bk-steps { display: grid; margin-top: 4px; }
.bk-step { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; padding-block: 11px; border-top: 1px solid rgba(27, 22, 19, 0.12); color: var(--ink-faint); transition: color 0.4s; }
.bk-step:last-child { border-bottom: 1px solid rgba(27, 22, 19, 0.12); }
.bk-step i { font-style: normal; font-size: 0.56rem; letter-spacing: 0.16em; }
.bk-step span { font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; }
.bk-step.on { color: var(--ink); }
.bk-step.done { color: var(--sage-deep); }
.bk-main { padding: clamp(18px, 2.4vw, 30px); display: grid; align-content: start; gap: 16px; }
.bk-wa { display: none; }
@media (max-width: 860px) {
	.bk-wa { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
	.bk-wa span { font-size: 0.78rem; color: var(--ink-faint); }
}
.bk-crumb { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bk-crumb b { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.bk-back { display: inline-flex; align-items: center; gap: 7px; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.bk-back svg { width: 12px; height: 12px; transform: rotate(180deg); }
.bk-back:hover { color: var(--accent); }
.bk-pane { display: none; }
.bk-pane.on { display: grid; gap: 14px; animation: fade 0.4s var(--e); }
.svc-b { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; text-align: left; padding: 12px 16px 12px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color 0.35s, transform 0.4s var(--e), box-shadow 0.4s; }
.svc-b:hover { border-color: var(--accent); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.svc-th { display: block; width: 62px; height: 62px; border-radius: 14px; overflow: hidden; background: var(--sage); flex: 0 0 62px; }
.svc-th img, .svc-th .fill { width: 100%; height: 100%; object-fit: cover; }
.svc-t { display: block; min-width: 0; }
.svc-b strong { display: block; font-weight: 400; font-size: 0.98rem; }
.svc-b small { display: block; font-size: 0.78rem; letter-spacing: 0.01em; color: var(--ink-faint); margin-top: 3px; }
.svc-b svg { width: 14px; height: 14px; }
.cal-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cal-m { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
.cal-nav { display: flex; gap: 7px; }
.cal-nav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color 0.3s, opacity 0.3s; }
.cal-nav button:disabled { opacity: 0.3; cursor: default; }
.cal-nav svg { width: 11px; height: 11px; }
.cal-nav .p svg { transform: rotate(180deg); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); text-align: center; padding-block: 5px; }
.cal-d { aspect-ratio: 1; display: grid; place-items: center; font-size: 0.84rem; border-radius: 10px; border: 1px solid transparent; color: var(--ink-soft); background: var(--surface); transition: border-color 0.3s, background-color 0.3s, color 0.3s; }
.cal-d:disabled { opacity: 0.32; background: transparent; cursor: default; }
.cal-d:not(:disabled):hover { border-color: var(--line-2); color: var(--ink); }
.cal-d.sel { background: var(--espresso); color: var(--paper); border-color: var(--espresso); }
.cal-legend { font-size: 0.66rem; color: var(--ink-faint); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 7px; }
.slot { padding: 12px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 0.82rem; transition: border-color 0.3s, background-color 0.3s, color 0.3s; }
.slot:hover { border-color: var(--line-2); }
.slot.sel { background: var(--espresso); color: var(--paper); border-color: var(--espresso); }
.slots-empty { color: var(--ink-faint); font-size: 0.86rem; }
.bk-loading { display: flex; align-items: center; gap: 9px; color: var(--ink-faint); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; }
.bk-loading i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line-2); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.frm { display: grid; gap: 13px; }
.frm-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
@media (max-width: 600px) { .frm-2 { grid-template-columns: 1fr; } }
.fld { display: grid; gap: 5px; }
.fld label { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.fld input, .fld textarea { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); font-family: inherit; font-size: 0.94rem; transition: border-color 0.35s; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--accent); }
.fld textarea { resize: vertical; min-height: 64px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.frm-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
@media (max-width: 620px) {
	.frm-foot { flex-direction: column-reverse; align-items: stretch; }
	.frm-foot .btn { width: 100%; }
	.frm-note { text-align: center; max-width: none; }
}
.frm-note { font-size: 0.72rem; color: var(--ink-faint); max-width: 38ch; }
.bk-sum { display: grid; gap: 7px; padding: 13px 15px; border-radius: var(--r); background: var(--sage); }
.bk-sum div { display: flex; justify-content: space-between; gap: 12px; }
.bk-sum .k { color: var(--ink-faint); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.6rem; }
.bk-sum .v { font-size: 0.84rem; }
.bk-msg { font-size: 0.78rem; color: #A85440; }
.bk-ok { display: grid; gap: 16px; justify-items: start; }
.bk-ok .mk { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); }
.bk-ok .mk svg { width: 18px; height: 18px; }
.bk-ok-act { display: flex; flex-wrap: wrap; gap: 9px; }

/* Modal de especialidade */
.sp-modal-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
@media (max-width: 860px) { .sp-modal-in { grid-template-columns: 1fr; } }
.sp-media { position: relative; min-height: 220px; }
.sp-media img, .sp-media .fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-body { padding: clamp(20px, 2.6vw, 34px); display: grid; gap: 14px; align-content: start; }
.sp-body h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.04; }
.sp-body .t { font-family: var(--serif); font-style: italic; color: var(--accent); }
.sp-body > p { color: var(--ink-soft); font-size: 0.92rem; }
.sp-list { display: grid; margin-top: 6px; border-top: 1px solid var(--line); }
.sp-i { border-bottom: 1px solid var(--line); overflow: hidden; transition: background-color 0.35s; }
.sp-i:hover, .sp-i.on { background: color-mix(in srgb, var(--sage) 42%, transparent); }
.sp-i > button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 12px; text-align: left; }
.sp-i h4 { flex: 1; font-weight: 400; font-size: 0.98rem; transition: transform 0.4s var(--e); }
.sp-i:hover h4 { transform: translateX(5px); }
.sp-p { position: relative; width: 12px; height: 12px; flex: 0 0 12px; }
.sp-p::before, .sp-p::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--ink-soft); transition: transform 0.4s var(--e); }
.sp-p::before { width: 11px; height: 1px; transform: translate(-50%, -50%); }
.sp-p::after { width: 1px; height: 11px; transform: translate(-50%, -50%); }
.sp-i.on .sp-p::after { transform: translate(-50%, -50%) scaleY(0); }
.sp-c { overflow: hidden; height: 0; }
.sp-c p { padding: 0 12px 15px; color: var(--ink-soft); font-size: 0.88rem; max-width: 60ch; }
.sp-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ═══════════════════════════════════════════════════════════
   v7.1 — responsividade extrema, iOS e usabilidade dos popups
   ═══════════════════════════════════════════════════════════ */

/* ── iOS: fallback para svh e área segura ── */
@supports not (height: 100svh) {
	.hero { min-height: 100vh; }
	.fm-sticky { height: 100vh; }
	.modal-card { max-height: 92vh; }
	@media (max-width: 720px) { .modal-card { height: 100vh; max-height: 100vh; } }
}
body.csa { -webkit-tap-highlight-color: transparent; }
.fabs { bottom: max(18px, env(safe-area-inset-bottom, 0px)); }
.menu { padding-bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 18px)); }
@media (max-width: 720px) {
	.modal-card { padding-bottom: env(safe-area-inset-bottom, 0px); }
}
/* impede o zoom automático do Safari ao focar um campo */
@media (max-width: 860px) {
	.fld input, .fld textarea, .fld select { font-size: 16px; }
}
.modal-bd { touch-action: none; }

/* ── alvos de toque confortáveis ── */
.q-dot { position: relative; }
.q-dot::after { content: ''; position: absolute; inset: -12px; }
.burger, .modal-x, .q-b, .car-nav button { min-width: 44px; min-height: 44px; }
.cal-d { min-height: 40px; }
.slot { min-height: 44px; }
@media (max-width: 480px) {
	.slots { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
	.cal-grid { gap: 3px; }
	.cal-d { font-size: 0.9rem; border-radius: 9px; }
}

/* ── popups: media sem cortes agressivos ── */
@media (max-width: 860px) {
	.sp-modal-in { grid-template-columns: 1fr; }
	.sp-media { position: relative; aspect-ratio: 16 / 10; min-height: 0; }
	.sp-media img, .sp-media .fill { position: absolute; inset: 0; }
	.sp-body { padding: 20px 18px 8px; }
	.sp-foot { position: sticky; bottom: 0; z-index: 2; margin: 6px -18px 0; padding: 12px 18px max(12px, env(safe-area-inset-bottom, 0px)); background: linear-gradient(0deg, var(--cream) 68%, color-mix(in srgb, var(--cream) 0%, transparent)); }
	.sp-foot .btn { flex: 1 1 46%; }
}
@media (max-width: 760px) {
	.tmm-media { aspect-ratio: 4 / 3; }
	.tmm-body { padding: 20px 18px max(20px, env(safe-area-inset-bottom, 0px)); }
	.tmm-foot .btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
	.sp-foot .btn, .tmm-foot .btn { flex: 1 1 100%; }
}

/* ── agendamento: barra inferior fixa com o voltar ── */
.bk-foot {
	position: sticky; bottom: 0; z-index: 3;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin: 4px calc(-1 * clamp(18px, 2.4vw, 30px)) calc(-1 * clamp(18px, 2.4vw, 30px));
	padding: 12px clamp(18px, 2.4vw, 30px) max(12px, env(safe-area-inset-bottom, 0px));
	background: linear-gradient(0deg, var(--cream) 62%, color-mix(in srgb, var(--cream) 0%, transparent));
	border-top: 1px solid var(--line);
}
.bk-foot[hidden] { display: none !important; }
.bk-foot .btn { padding: 13px 20px; font-size: 0.66rem; }
.bk-progress { display: inline-flex; align-items: center; gap: 7px; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.bk-progress b { font-weight: 500; color: var(--ink); }
/* o voltar de cima deixa de ser preciso no telemóvel */
@media (max-width: 860px) { .bk-back { display: none; } }

/* ── varrimento fino de larguras ── */
@media (max-width: 400px) {
	.btn { padding: 15px 22px; font-size: 0.64rem; letter-spacing: 0.14em; }
	.btn-lg { padding: 17px 24px; font-size: 0.66rem; }
	.nav-in { height: 70px; }
	.svc-b { grid-template-columns: auto minmax(0, 1fr); padding: 10px 12px; gap: 11px; }
	.svc-b > svg { display: none; }
	.svc-th { width: 54px; height: 54px; flex-basis: 54px; }
	.pro-ph { width: 46px; height: 46px; flex-basis: 46px; }
	.spec { flex-basis: min(86vw, 340px); }
	.wa-big { font-size: clamp(1.5rem, 11vw, 3rem); }
	.modal-hd h2 { font-size: 0.62rem; }
}
@media (max-width: 340px) {
			.d1 { font-size: 2.4rem; }
}
/* telemóvel deitado */
@media (max-height: 460px) and (orientation: landscape) {
	.hero { min-height: 520px; padding-top: 92px; }
	.menu { padding-top: 84px; overflow-y: auto; }
	.menu-nav a { font-size: 1.4rem; padding-block: 6px; }
	.modal-card { height: 100svh; }
}
