/*
Theme Name: Lumina Dent
Theme URI: https://lumina-dent.website-test.online
Author: Lumina Dent
Description: Temă personalizată pentru cabinetul stomatologic Lumina Dent (proiect demonstrativ): design premium, RO/EN, programări online cu calendar și plată demonstrativă, contor locuri CAS.
Version: 1.2.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: lumina-dent
*/

:root {
	--porcelain: #fbfaf7;
	--paper: #ffffff;
	--mist: #f2f1ee;
	--stone: #e4dfd6;
	--ink: #2b2b2b;
	--ink-soft: #5b5956;
	--gold: #c9a96e;
	--gold-deep: #86672e;
	--graphite: #252527;
	--ok: #2f6f4f;
	--err: #a23b2c;

	--f-display: "Marcellus", "Optima", "Candara", serif;
	--f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1180px;
	--r-sm: 6px;
	--r-md: 14px;
	--gap: clamp(1.25rem, 3vw, 2.5rem);
	--section: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
	margin: 0;
	background: var(--porcelain);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0 0 .6em; line-height: 1.15; font-weight: 400; color: var(--ink); }
h1, h2 { font-family: var(--f-display); letter-spacing: -.005em; }
h1 { font-size: clamp(2.35rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); }
h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.125rem; line-height: 1.35; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: var(--r-sm); }
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--mid { max-width: 860px; }
.wrap--narrow { max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 48px; padding: .75rem 1.5rem;
	font: 600 .98rem/1.2 var(--f-body);
	border-radius: 999px; border: 1px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #b9965a; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--stone); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--line { color: #f5f0e8; border-color: var(--gold); }
.btn--line:hover { background: var(--gold); color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.text-link { font-weight: 600; color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.text-link:hover { color: var(--gold-deep); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 250, 247, .94);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--stone); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 80px; }
.brand img { width: 200px; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.nav__list { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav__list a:hover, .nav__list a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav__extra { display: flex; align-items: center; gap: 1rem; }
.nav__phone { color: var(--ink-soft); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.nav__lang { font-weight: 600; font-size: .85rem; color: var(--ink); text-decoration: none; border: 1px solid var(--stone); border-radius: 999px; padding: .25rem .6rem; }
.nav__lang:hover { border-color: var(--ink); }
.site-header__cta { white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 1180px) { .nav__phone { display: none; } }
@media (max-width: 1020px) {
	.site-header__inner { min-height: 68px; }
	.brand img { width: 170px; }
	.site-header__cta { margin-left: auto; padding-inline: 1.1rem; min-height: 42px; font-size: .9rem; }
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--stone); background: transparent; border-radius: 999px; cursor: pointer; }
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .2s; }
	.nav-toggle__bars::before { position: absolute; top: -6px; }
	.nav-toggle__bars::after { position: absolute; top: 6px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
	.nav {
		position: absolute; top: 100%; left: 0; right: 0; margin: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--porcelain); border-bottom: 1px solid var(--stone);
		padding: .5rem 1.25rem 1.5rem; display: none;
		max-height: calc(100vh - 68px); overflow: auto;
	}
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--stone); font-size: 1.1rem; }
	.nav__extra { padding-top: 1rem; justify-content: space-between; }
	.nav__phone { display: inline; font-size: 1.05rem; }
}
@media (max-width: 480px) { .site-header__cta { display: none; } .nav-toggle { margin-left: auto; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--graphite); color: #e9e5de; }
.section--dark h2 { color: #fff; }
.section-title { margin-bottom: 1.6em; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; max-width: 20ch; }
.section-head__note { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.hero__place { color: var(--gold-deep); font-weight: 600; margin-bottom: 1.2rem; }
.hero__title { max-width: 16ch; margin-bottom: .45em; }
.hero__lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 0; }
.hero__media { position: relative; margin: 0; }
.arch { border-radius: 999px 999px var(--r-md) var(--r-md); overflow: hidden; background: var(--stone); aspect-ratio: 4 / 5; box-shadow: 0 0 0 1px rgba(201, 169, 110, .35), 0 0 0 12px var(--porcelain), 0 0 0 13px rgba(201, 169, 110, .45); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero__badge { position: absolute; left: -1.5rem; bottom: 2.5rem; background: var(--paper); border-radius: var(--r-md); padding: .9rem 1.2rem; box-shadow: 0 18px 40px -22px rgba(43, 43, 43, .45); display: grid; gap: .1rem; }
.hero__badge strong { font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; }
.hero__badge span { color: var(--ink-soft); font-size: .9rem; }

/* Next free slots: the signature element */
.next-slots { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--stone); max-width: 520px; }
.next-slots__title { font-size: .95rem; color: var(--ink-soft); margin-bottom: .75rem; }
.next-slots__list { display: flex; flex-wrap: wrap; gap: .5rem; min-height: 46px; }
.next-slots__loading { color: var(--ink-soft); font-size: .95rem; }
.slot-chip { display: inline-grid; gap: 0; padding: .45rem .9rem; border-radius: var(--r-sm); border: 1px solid var(--gold); background: var(--paper); color: var(--ink); text-decoration: none; line-height: 1.25; transition: background-color .15s; }
.slot-chip small { color: var(--ink-soft); font-size: .78rem; }
.slot-chip strong { font-weight: 600; font-size: 1rem; }
.slot-chip:hover { background: #faf4e8; color: var(--ink); }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__media { max-width: 420px; margin-inline: auto; order: -1; }
	.hero__badge { left: 50%; transform: translateX(-50%); bottom: -1.4rem; white-space: nowrap; }
	.hero__title { max-width: none; }
}

/* ---------- Split blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { margin: 0; border-radius: var(--r-md); overflow: hidden; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__copy { max-width: 52ch; }
.split__copy p { color: var(--ink-soft); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

.reasons { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.5rem; }
.reasons li { padding-left: 1.4rem; border-left: 2px solid var(--gold); }
.reasons h3 { margin-bottom: .25rem; }
.reasons p { margin: 0; }

/* ---------- Service overview ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--stone); border-left: 1px solid var(--stone); }
.svc-list li { border-right: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.svc-list a { display: flex; flex-direction: column; height: 100%; padding: 1.6rem 1.4rem 1.4rem; color: var(--ink); text-decoration: none; transition: background-color .2s; }
.svc-list a:hover { background: var(--paper); }
.svc-list h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; margin-bottom: .4rem; }
.svc-list p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.2rem; }
.svc-list__price { margin-top: auto; font-weight: 600; color: var(--gold-deep); font-size: .95rem; }
@media (max-width: 980px) { .svc-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .svc-list { grid-template-columns: 1fr; } }

/* ---------- CAS ---------- */
.cas { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.cas__copy p { color: #cfc9bf; max-width: 52ch; }
.cas-meter { padding: 2rem; border: 1px solid rgba(201, 169, 110, .45); border-radius: var(--r-md); }
.cas-meter__count { margin: 0; font-size: 1.05rem; }
.cas-meter__num { display: block; font-family: var(--f-display); font-size: clamp(4rem, 9vw, 6rem); line-height: 1; color: var(--gold); }
.cas-meter__label { margin: .2rem 0 1.2rem; opacity: .8; }
.cas-meter__bar { height: 4px; background: rgba(201, 169, 110, .2); border-radius: 2px; overflow: hidden; }
.cas-meter__bar span { display: block; height: 100%; background: var(--gold); border-radius: 2px; }
@media (max-width: 860px) { .cas { grid-template-columns: 1fr; } }
.prices__cas .cas-meter { background: var(--graphite); color: #e9e5de; margin-top: 1.2rem; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.review { margin: 0; padding-top: 1.4rem; border-top: 1px solid var(--gold); }
.review blockquote { margin: 0 0 1rem; font-family: var(--f-display); font-size: 1.22rem; line-height: 1.45; }
.review blockquote p { margin: 0; }
.review figcaption { font-weight: 600; font-size: .95rem; }
.review figcaption span { display: block; font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 1rem; }
.gallery__item { margin: 0; position: relative; border-radius: var(--r-md); overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--tall img { aspect-ratio: auto; min-height: 100%; }
.gallery__item figcaption { position: absolute; left: .8rem; bottom: .8rem; background: rgba(251, 250, 247, .95); padding: .35rem .75rem; border-radius: var(--r-sm); font-size: .88rem; font-weight: 500; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } .gallery__item--tall { grid-row: auto; } .gallery__item--tall img { aspect-ratio: 16 / 10; } }

/* ---------- Visit / map ---------- */
.visit { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.visit__addr { font-size: 1.1rem; }
.visit__map, .contact__map { border-radius: var(--r-md); overflow: hidden; min-height: 360px; background: var(--stone); }
.visit__map iframe, .contact__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: grayscale(.35) contrast(1.02); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

.hours { margin: 1.2rem 0; display: grid; gap: .35rem; max-width: 340px; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted var(--stone); padding-bottom: .35rem; }
.hours dt { color: var(--ink-soft); }
.hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-hero__title { margin-bottom: .3em; }
.page-hero__intro { font-size: 1.15rem; color: var(--ink-soft); max-width: 58ch; }
.page-content > .wrap:last-child { padding-bottom: var(--section); }

/* ---------- Services page ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chips a { padding: .45rem .95rem; border: 1px solid var(--stone); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 500; }
.chips a:hover { border-color: var(--gold); background: var(--paper); }
.svc-cat { padding-block: clamp(3rem, 6vw, 4.5rem); }
.svc-cat--mist { background: var(--mist); }
.svc-cat__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.svc-cat__head p { color: var(--ink-soft); max-width: 40ch; }
.svc-cat__img { margin: 0; border-radius: var(--r-md); overflow: hidden; }
.svc-cat__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.svc-items { list-style: none; margin: 0; padding: 0; }
.svc-items li { display: grid; grid-template-columns: 1fr auto; column-gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--stone); }
.svc-items li:first-child { border-top: 1px solid var(--stone); }
.svc-items h3 { margin: 0 0 .2rem; grid-column: 1; }
.svc-items p { margin: 0; color: var(--ink-soft); font-size: .95rem; grid-column: 1; }
.svc-items span { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 600; color: var(--gold-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc-cat__grid > div > .svc-cat__head { margin-bottom: 1.2rem; }
@media (max-width: 860px) { .svc-cat__grid { grid-template-columns: 1fr; } .svc-cat__img img { aspect-ratio: 16 / 10; } }
@media (max-width: 480px) { .svc-items li { grid-template-columns: 1fr; } .svc-items span { grid-column: 1; grid-row: auto; margin-top: .4rem; } }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: clamp(2rem, 5vw, 3rem); border: 1px solid var(--gold); border-radius: var(--r-md); }
.cta-band h2 { margin: 0; max-width: 24ch; }

/* ---------- Prices ---------- */
.prices h2 { margin-top: 2.4rem; font-size: 1.6rem; }
.prices__note { padding: 1.1rem 1.3rem; background: var(--mist); border-radius: var(--r-md); color: var(--ink-soft); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: .85rem 0; border-bottom: 1px solid var(--stone); text-align: left; vertical-align: top; }
.price-table th { font-weight: 400; padding-right: 1rem; }
.price-table td { text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prices__cas { margin-top: 3rem; padding: 2rem; border: 1px solid var(--stone); border-radius: var(--r-md); background: var(--paper); }
.prices__cas h2 { margin-top: 0; }
.prices__pay { margin-top: 2rem; color: var(--ink-soft); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__media { margin: 0; max-width: 440px; }
.about__role { color: var(--gold-deep); font-weight: 600; margin-bottom: .6rem; }
.about__name { margin-bottom: .5em; }
.about__quote { margin: 0 0 1.5rem; padding-left: 1.4rem; border-left: 2px solid var(--gold); font-family: var(--f-display); font-size: 1.35rem; line-height: 1.45; }
.about__quote p { margin: 0; }
.about__copy > p { color: var(--ink-soft); max-width: 54ch; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__media { margin-inline: auto; } }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--gold); }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem; padding: 0 0 2rem 1.6rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.timeline__year { font-weight: 600; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.timeline h3 { margin-bottom: .2rem; }
.timeline p { margin: 0; color: var(--ink-soft); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: .2rem; } }

.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.about-cols h2 { font-size: 1.6rem; }
@media (max-width: 760px) { .about-cols { grid-template-columns: 1fr; } }
.tick-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.tick-list li { position: relative; padding: .55rem 0 .55rem 1.6rem; border-bottom: 1px solid var(--stone); }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 10px; height: 6px; border-left: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep); transform: rotate(-45deg); }

/* ---------- FAQ ---------- */
.faq { padding-bottom: var(--section); }
.faq details { border-bottom: 1px solid var(--stone); }
.faq details:first-child { border-top: 1px solid var(--stone); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 1.25rem; margin: 0; max-width: 64ch; }

/* ---------- Blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); padding-bottom: var(--section); }
.post-card__media { display: block; border-radius: var(--r-md); overflow: hidden; margin-bottom: 1rem; }
.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.post-card__media:hover img { transform: scale(1.03); }
.post-card__date { color: var(--ink-soft); font-size: .88rem; margin-bottom: .3rem; }
.post-card h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--gold-deep); }
.post-card p { color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 900px) { .post-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-list { grid-template-columns: 1fr; } }

.post-hero { padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.post-hero__back a { color: var(--ink-soft); font-size: .95rem; }
.post-hero__meta { color: var(--ink-soft); }
.post-cover { margin: 0 auto 3rem; }
.post-cover img { width: 100%; border-radius: var(--r-md); aspect-ratio: 16 / 8; object-fit: cover; }
.prose { font-size: 1.1rem; line-height: 1.75; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.prose li { margin-bottom: .4rem; }
.post-cta { margin-block: 3rem var(--section); padding: 2rem; border: 1px solid var(--gold); border-radius: var(--r-md); }
.page-content .prose { padding-bottom: var(--section); }

/* ---------- Forms ---------- */
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .93rem; }
.field input, .field textarea {
	width: 100%; font: inherit; color: var(--ink);
	padding: .8rem .95rem; border: 1px solid #cfc8bc; border-radius: var(--r-sm); background: var(--paper);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(201, 169, 110, .3); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; color: var(--ink-soft); }
.check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--gold-deep); flex: none; }
.form-error { color: var(--err); font-weight: 600; margin: 0; }
.form-success { color: var(--ok); font-weight: 600; margin: 0; }
.contact-form, .bk-form, .pay__card { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .contact-form, .bk-form, .pay__card { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); padding-bottom: 3rem; }
.contact h2 { font-size: 1.6rem; }
.contact__form { background: var(--paper); border: 1px solid var(--stone); border-radius: var(--r-md); padding: clamp(1.5rem, 4vw, 2.5rem); }
.contact__map { margin-bottom: var(--section); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Booking ---------- */
.book-layout { display: grid; grid-template-columns: 1fr 300px; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-bottom: var(--section); }
.book-layout__aside { position: sticky; top: 110px; padding: 1.6rem; background: var(--mist); border-radius: var(--r-md); font-size: .95rem; }
.book-layout__aside h2 { font-size: 1.4rem; }
.book-layout__aside .tick-list li { border-color: #ddd7cc; }
@media (max-width: 960px) { .book-layout { grid-template-columns: 1fr; } .book-layout__aside { position: static; } }

.booking { background: var(--paper); border: 1px solid var(--stone); border-radius: var(--r-md); padding: clamp(1.25rem, 3.5vw, 2.5rem); }
.booking__steps { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; gap: .5rem; counter-reset: none; }
.booking__steps li { flex: 1; display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink-soft); padding-bottom: .7rem; border-bottom: 2px solid var(--stone); }
.booking__steps li span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--stone); font-weight: 600; font-size: .82rem; flex: none; }
.booking__steps li.is-active { color: var(--ink); border-bottom-color: var(--gold); font-weight: 600; }
.booking__steps li.is-active span { background: var(--gold); border-color: var(--gold); }
.booking__steps li.is-done { color: var(--ink); border-bottom-color: var(--gold); }
.booking__steps li.is-done span { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 640px) { .booking__steps li { font-size: 0; gap: 0; justify-content: center; } .booking__steps li span { font-size: .82rem; } }
.booking__h { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.booking__hint { color: var(--ink-soft); font-size: .93rem; margin-top: 1.2rem; }
.booking__actions { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.8rem; flex-wrap: wrap; }
.booking__actions--center { justify-content: center; }
.booking__panel[hidden] { display: none; }

.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.svc-opt { position: relative; display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; text-align: left; padding: 1.1rem 1.2rem; border: 1px solid var(--stone); border-radius: var(--r-md); background: var(--porcelain); cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, background-color .15s; }
.svc-opt:hover { border-color: var(--gold); }
.svc-opt[aria-checked="true"] { border-color: var(--gold-deep); background: #fbf6ec; box-shadow: inset 0 0 0 1px var(--gold-deep); }
.svc-opt__name { font-weight: 600; }
.svc-opt__price { font-weight: 600; color: var(--gold-deep); white-space: nowrap; }
.svc-opt__desc { grid-column: 1 / -1; color: var(--ink-soft); font-size: .9rem; }
.svc-opt__dur { grid-column: 1 / -1; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal__range { margin: 0; font-weight: 600; }
.cal__nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--stone); background: var(--paper); cursor: pointer; font-size: 1.3rem; line-height: 1; color: var(--ink); }
.cal__nav:hover:not([disabled]) { border-color: var(--ink); }
.cal__nav[disabled] { opacity: .35; cursor: not-allowed; }
.cal__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; margin-bottom: 1.4rem; }
.cal-day { display: grid; gap: .1rem; justify-items: center; padding: .6rem .2rem; border: 1px solid var(--stone); border-radius: var(--r-sm); background: var(--paper); cursor: pointer; font: inherit; color: var(--ink); }
.cal-day small { font-size: .75rem; color: var(--ink-soft); }
.cal-day strong { font-size: 1.15rem; font-weight: 600; }
.cal-day em { font-style: normal; font-size: .72rem; color: var(--gold-deep); font-weight: 600; }
.cal-day:hover:not([disabled]) { border-color: var(--gold); }
.cal-day[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cal-day[aria-selected="true"] small, .cal-day[aria-selected="true"] em { color: #e8d9b8; }
.cal-day[disabled] { opacity: .4; cursor: not-allowed; background: var(--mist); }
.cal__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .45rem; min-height: 120px; align-content: start; }
.cal__empty { grid-column: 1 / -1; color: var(--ink-soft); }
.slot { padding: .6rem 0; border-radius: var(--r-sm); border: 1px solid var(--gold); background: var(--paper); font: 600 .95rem var(--f-body); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.slot:hover:not([disabled]) { background: #fbf6ec; }
.slot[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); }
.slot[disabled] { border-color: transparent; background: var(--mist); color: #a9a49b; text-decoration: line-through; cursor: not-allowed; font-weight: 400; }
.cal__legend { display: flex; align-items: center; gap: .4rem; margin: 1rem 0 0; font-size: .85rem; color: var(--ink-soft); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: .6rem; }
.dot:first-child { margin-left: 0; }
.dot--free { border: 1px solid var(--gold); background: var(--paper); }
.dot--busy { background: var(--mist); border: 1px solid #d9d4ca; }
@media (max-width: 520px) { .cal__days { gap: .25rem; } .cal-day { padding: .45rem 0; } .cal-day strong { font-size: 1rem; } }

.pay { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.6rem; align-items: start; }
.pay__summary { margin: 0; padding: 1.3rem; background: var(--mist); border-radius: var(--r-md); display: grid; gap: .7rem; }
.pay__summary div { display: grid; gap: .05rem; }
.pay__summary dt { font-size: .82rem; color: var(--ink-soft); }
.pay__summary dd { margin: 0; font-weight: 600; }
.pay__summary .pay__total { border-top: 1px solid #d9d4ca; padding-top: .7rem; }
.pay__summary .pay__total dd { font-size: 1.4rem; font-family: var(--f-display); font-weight: 400; }
.pay__demo { grid-column: 1 / -1; margin: 0; padding: .8rem 1rem; border-radius: var(--r-sm); background: #fbf6ec; border: 1px dashed var(--gold); font-size: .88rem; }
.pay__secure { margin: 0; text-align: center; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 760px) { .pay { grid-template-columns: 1fr; } }

.booking__done { text-align: center; padding-block: 1rem; }
.booking__done:focus { outline: none; }
.done__mark { width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%; border: 1.5px solid var(--gold); position: relative; }
.done__mark::after { content: ""; position: absolute; left: 22px; top: 18px; width: 18px; height: 10px; border-left: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep); transform: rotate(-45deg); }
.done__lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }
.done__code strong { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .05em; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(43,43,43,.25); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); color: #cfc9bf; padding-top: clamp(3.5rem, 7vw, 5rem); font-size: .95rem; }
.site-footer a { color: #efe8db; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .9fr; gap: var(--gap); padding-bottom: 3rem; }
.site-footer__brand img { width: 180px; margin-bottom: 1.2rem; }
.site-footer__brand p { max-width: 34ch; }
.site-footer__h { font-family: var(--f-body); font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.site-footer .hours { margin: 0; }
.site-footer .hours div { border-bottom-color: #3a3a3d; }
.site-footer .hours dt { color: #b3ada3; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.4rem; border-top: 1px solid #3a3a3d; font-size: .85rem; color: #9d978d; }
.site-footer__legal p { margin: 0; }
.site-footer__demo { max-width: 60ch; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp ---------- */
.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* ---------- Mobile hero refinement ---------- */
@media (max-width: 900px) {
	.hero__media { max-width: 300px; }
	.hero { padding-top: 1.5rem; }
}

/* ---------- Cookie banner (CookieAdmin) in brand colours ---------- */
.cookieadmin_law_container { font-family: var(--f-body) !important; border-radius: var(--r-md) !important; border: 1px solid var(--stone) !important; box-shadow: 0 18px 40px -22px rgba(43, 43, 43, .45) !important; }
.cookieadmin_btn { border-radius: 999px !important; font-family: var(--f-body) !important; font-weight: 600 !important; }
.cookieadmin_accept_btn { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--ink) !important; }
.cookieadmin_customize_btn, .cookieadmin_reject_btn { background: transparent !important; border: 1px solid var(--stone) !important; color: var(--ink) !important; }
.cookieadmin_re_consent { background: var(--graphite) !important; width: 44px !important; height: 44px !important; }

/* ---------- Booking confirmation: demo link ---------- */
.done__demo { margin-top: 1.5rem; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Public demo of the doctor's panel ---------- */
.panel-demo-wrap { padding-bottom: var(--section); }
.panel-demo { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--stone); box-shadow: 0 30px 60px -40px rgba(43, 43, 43, .5); background: #f3f2ef; }
.panel-demo__loading { padding: 3rem; text-align: center; color: var(--ink-soft); }
.panel-demo__cta { margin-top: 1.5rem; color: var(--ink-soft); }
.pd-app { display: grid; grid-template-columns: 220px 1fr; min-height: 640px; }
.pd-side { background: var(--graphite); color: #cfc9bf; padding: 1.4rem 1rem; display: flex; flex-direction: column; gap: 1.2rem; }
.pd-side__brand { margin: 0; font-family: var(--f-display); font-size: 1.3rem; color: #fff; padding: 0 .5rem; }
.pd-side__nav { display: grid; gap: .25rem; }
.pd-side__nav button { all: unset; cursor: pointer; padding: .6rem .7rem; border-radius: var(--r-sm); font-size: .93rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.pd-side__nav button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.pd-side__nav button:focus-visible { outline: 2px solid var(--gold); }
.pd-side__nav button.is-on { background: var(--gold); color: var(--ink); font-weight: 600; }
.pd-badge { background: #a23b2c; color: #fff; border-radius: 99px; font-size: .72rem; padding: 0 .45rem; line-height: 1.5; }
.pd-side__nav button.is-on .pd-badge { background: var(--ink); }
.pd-side__user { margin-top: auto; font-size: .82rem; padding: 0 .5rem; color: #9d978d; }
.pd-side__user strong { color: #efe8db; font-weight: 500; }
.pd-main { padding: clamp(1rem, 3vw, 1.8rem); min-width: 0; }
.pd-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.pd-eyebrow { margin: 0; color: var(--gold-deep); font-weight: 600; font-size: .85rem; }
.pd-title { margin: .1rem 0 0; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.pd-nav { display: flex; gap: .35rem; }
.pd-btn { font: 500 .9rem var(--f-body); padding: .45rem .8rem; min-width: 38px; border: 1px solid #d6d0c5; background: #fff; border-radius: var(--r-sm); cursor: pointer; color: var(--ink); }
.pd-btn:hover { border-color: var(--ink); }
.pd-btn--on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pd-btn--sm { font-size: .8rem; padding: .3rem .6rem; }
.pd-btn--danger { color: #a23b2c; border-color: #e2b9b1; }
.pd-btn--gold { background: var(--gold); border-color: var(--gold); font-weight: 600; }
.pd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-bottom: 1rem; }
.pd-stat { background: #fff; border: 1px solid var(--stone); border-radius: 10px; padding: .8rem 1rem; display: grid; }
.pd-stat__num { font-family: var(--f-display); font-size: 1.7rem; line-height: 1.15; }
.pd-stat__num--sm { font-size: 1.45rem; }
.pd-stat__num small { font-size: .9rem; }
.pd-stat__label { color: var(--ink-soft); font-size: .82rem; line-height: 1.35; }
.pd-week { display: grid; grid-template-columns: repeat(6, 1fr); gap: .45rem; margin-bottom: 1.1rem; }
.pd-week__day { font: inherit; display: grid; justify-items: center; padding: .5rem .2rem; background: #fff; border: 1px solid var(--stone); border-radius: 8px; cursor: pointer; color: var(--ink); line-height: 1.3; }
.pd-week__day span { font-size: .72rem; color: var(--ink-soft); }
.pd-week__day strong { font-size: 1.05rem; }
.pd-week__day:hover { border-color: var(--gold); }
.pd-week__day.is-today span:first-child { color: var(--gold-deep); font-weight: 700; }
.pd-week__day.is-sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.pd-week__day.is-sel span { color: #e8d9b8; }
.pd-list { display: grid; gap: .6rem; }
.pd-appt { display: grid; grid-template-columns: 70px 1fr; background: #fff; border: 1px solid var(--stone); border-left: 4px solid var(--gold); border-radius: 10px; overflow: hidden; }
.pd-appt.is-past { opacity: .6; }
.pd-appt.is-active { box-shadow: 0 0 0 2px rgba(201, 169, 110, .45); }
.pd-appt--prezent { border-left-color: var(--ok); }
.pd-appt--absent { border-left-color: var(--err); }
.pd-appt--anulata { border-left-color: #bbb; opacity: .55; }
.pd-appt--anulata h3 { text-decoration: line-through; }
.pd-appt__time { background: #f6f4f0; text-align: center; padding: .8rem 0; display: grid; align-content: start; }
.pd-appt__time strong { font-size: 1rem; }
.pd-appt__time span { font-size: .75rem; color: var(--ink-soft); }
.pd-appt__body { padding: .75rem 1rem; min-width: 0; }
.pd-appt__head { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.pd-appt__head h3 { margin: 0; font-size: 1rem; }
.pd-pill { font-size: .72rem; font-weight: 600; padding: .1rem .55rem; border-radius: 99px; }
.pd-pill--live { background: var(--gold); color: var(--ink); }
.pd-appt__svc { margin: .25rem 0 0; font-size: .88rem; }
.pd-appt__note { margin: .45rem 0 0; padding: .4rem .7rem; background: #f6f4f0; border-radius: 6px; font-style: italic; font-size: .88rem; }
.pd-appt__contact { margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .82rem; color: var(--gold-deep); }
.pd-appt__actions { margin-top: .6rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.pd-muted { color: var(--ink-soft) !important; }
.pd-now { display: flex; align-items: center; gap: .5rem; color: var(--err); font-weight: 600; font-size: .78rem; }
.pd-now::before, .pd-now::after { content: ""; flex: 1; height: 1px; background: #e2b9b1; }
.pd-empty { background: #fff; border: 1px dashed var(--stone); border-radius: 10px; padding: 2rem; text-align: center; color: var(--ink-soft); }
.pd-msgs { display: grid; gap: .6rem; }
.pd-msg { background: #fff; border: 1px solid var(--stone); border-radius: 10px; padding: .9rem 1.1rem; }
.pd-msg.is-new { border-left: 4px solid var(--gold); }
.pd-msg__head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.pd-msg h3 { margin: 0; font-size: 1rem; }
.pd-msg p { margin: .4rem 0 0; font-size: .93rem; }
.pd-card { background: #fff; border: 1px solid var(--stone); border-radius: 10px; padding: 1.3rem; max-width: 620px; }
.pd-cas { margin: 0 0 .8rem; font-size: 1rem; }
.pd-cas strong { font-family: var(--f-display); font-size: 2.8rem; color: var(--gold-deep); font-weight: 400; margin-right: .25rem; }
.pd-cas__bar { height: 4px; background: var(--mist); border-radius: 2px; overflow: hidden; margin-bottom: 1rem; }
.pd-cas__bar span { display: block; height: 100%; background: var(--gold); }
.pd-cas__btns { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: .9rem; }
@media (max-width: 900px) {
	.pd-app { grid-template-columns: 1fr; }
	.pd-side { flex-direction: row; flex-wrap: wrap; align-items: center; padding: .8rem; gap: .6rem; }
	.pd-side__nav { display: flex; flex-wrap: wrap; }
	.pd-side__user { display: none; }
	.pd-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .pd-week { grid-template-columns: repeat(3, 1fr); } .pd-appt { grid-template-columns: 58px 1fr; } }

/* ---------- Demo bar (top of every page) ---------- */
.demo-bar { background: var(--graphite); color: #e9e5de; font-size: .92rem; }
.demo-bar__inner { display: flex; align-items: center; justify-content: center; gap: .6rem 1.2rem; flex-wrap: wrap; padding-block: .55rem; text-align: center; }
.demo-bar__text { margin: 0; }
.demo-bar__btn { display: inline-flex; align-items: center; min-height: 36px; padding: .35rem 1rem; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.demo-bar__btn:hover { background: #e0c48f; color: var(--ink); }
@media (max-width: 560px) { .demo-bar { font-size: .85rem; } .demo-bar__inner { gap: .4rem; padding-block: .5rem; } }
