/*
Theme Name: Diana Asistență la Domiciliu
Theme URI: https://asistentaladomiciliu.ro
Description: Temă bloc pentru Diana Asistență la Domiciliu (Cluj-Napoca, Florești și împrejurimi).
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.2
License: GPL-2.0-or-later
Text Domain: diana
*/

/* ---------- Tokens + icons ---------- */
:root {
	--d-primary: var(--wp--preset--color--primary);
	--d-navy: var(--wp--preset--color--secondary);
	--d-gold: var(--wp--preset--color--accent);
	--d-muted: var(--wp--preset--color--muted);
	--d-mutedfg: var(--wp--preset--color--muted-foreground);
	--d-border: var(--wp--preset--color--border);
	--d-wa: var(--wp--preset--color--whatsapp);
	--d-serif: var(--wp--preset--font-family--serif);
	--d-wide: 1240px;
	--d-radius: 8px;

	--i-phone: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/></svg>");
	--i-calendar: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><path d='M16 2v4M8 2v4M3 10h18M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01M16 18h.01'/></svg>");
	--i-arrow: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M12 5l7 7-7 7'/></svg>");
	--i-heart: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/></svg>");
	--i-stethoscope: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4.8 2.3A.3.3 0 1 0 5 2H4a2 2 0 0 0-2 2v5a6 6 0 0 0 12 0V4a2 2 0 0 0-2-2h-1a.2.2 0 1 0 .3.3'/><path d='M8 15v1a6 6 0 0 0 12 0v-4'/><circle cx='20' cy='10' r='2'/></svg>");
	--i-pin: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/><circle cx='12' cy='10' r='3'/></svg>");
	--i-check: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/><path d='m9 11 3 3L22 4'/></svg>");
	--i-alert: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/><path d='M12 9v4M12 17h.01'/></svg>");
	--i-sparkles: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m12 3-1.9 5.8a2 2 0 0 1-1.3 1.3L3 12l5.8 1.9a2 2 0 0 1 1.3 1.3L12 21l1.9-5.8a2 2 0 0 1 1.3-1.3L21 12l-5.8-1.9a2 2 0 0 1-1.3-1.3Z'/></svg>");
	--i-whatsapp: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M17.5 14.4c-.3-.1-1.8-.9-2-1-.3-.1-.5-.1-.7.1-.2.3-.8 1-.9 1.2-.2.2-.3.2-.6.1-.3-.1-1.3-.5-2.4-1.5-.9-.8-1.5-1.8-1.7-2.1-.2-.3 0-.5.1-.6l.4-.5c.1-.2.2-.3.3-.5.1-.2 0-.4 0-.5l-.9-2.2c-.2-.6-.5-.5-.7-.5h-.6c-.2 0-.5.1-.8.4-.3.3-1 1-1 2.5s1.1 2.9 1.2 3.1c.1.2 2.1 3.2 5.1 4.5.7.3 1.3.5 1.7.6.7.2 1.4.2 1.9.1.6-.1 1.8-.7 2-1.4.2-.7.2-1.3.2-1.4-.1-.2-.3-.3-.6-.4zM12 21.8c-1.8 0-3.5-.5-5-1.4l-.4-.2-3.7 1 1-3.6-.2-.4A9.8 9.8 0 1 1 12 21.8zm0-21.6A11.8 11.8 0 0 0 1.9 18l-1.7 6 6.2-1.6A11.8 11.8 0 1 0 12 .2z'/></svg>");
}

/* Icon helper: <span class="d-ico" style="--i:var(--i-phone)"> or classes below */
.d-ico, [class^="ico-"]::before, [class*=" ico-"]::before, [class*="btn-ico-"] .wp-block-button__link::before {
	content: "";
	display: inline-block;
	flex: none;
	width: 1.1em;
	height: 1.1em;
	background: currentColor;
	-webkit-mask: var(--i) center / contain no-repeat;
	mask: var(--i) center / contain no-repeat;
	vertical-align: -0.18em;
}
.ico-phone, .btn-ico-phone { --i: var(--i-phone); }
.ico-calendar, .btn-ico-calendar { --i: var(--i-calendar); }
.ico-heart { --i: var(--i-heart); }
.ico-stethoscope { --i: var(--i-stethoscope); }
.ico-pin { --i: var(--i-pin); }
.ico-check { --i: var(--i-check); }
.ico-alert { --i: var(--i-alert); }
.ico-sparkles { --i: var(--i-sparkles); }
.ico-whatsapp, .btn-ico-whatsapp { --i: var(--i-whatsapp); }
.btn-ico-arrow { --i: var(--i-arrow); }
.btn-ico-arrow .wp-block-button__link::before { display: none; }
.btn-ico-arrow .wp-block-button__link::after, .d-arrow::after {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: var(--i-arrow) center / contain no-repeat;
	mask: var(--i-arrow) center / contain no-repeat;
	vertical-align: -0.15em;
	margin-left: 0.4em;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }
.wp-site-blocks > main, .wp-site-blocks > .diana-main-wrap { flex: 1 0 auto; }
:focus-visible { outline: 2px solid var(--d-primary); outline-offset: 2px; }
.skip-link:focus { z-index: 100000; }
a { text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.wp-element-button, .wp-block-button__link { display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center; min-height: 44px; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: #fff; color: var(--d-navy); border: 1px solid var(--d-border); padding: calc(0.8rem - 1px) calc(1.4rem - 1px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--d-muted); color: var(--d-navy); }
.wp-block-button.is-size-lg > .wp-block-button__link { min-height: 48px; padding-left: 1.6rem; padding-right: 1.6rem; }
.wp-block-button.is-wa > .wp-block-button__link { background: var(--d-wa); color: #fff; }
.wp-block-button.is-wa > .wp-block-button__link:hover { background: #156b37; }
.wp-block-button.is-link > .wp-block-button__link { background: none; color: var(--d-primary); padding: 0; min-height: 0; }
.wp-block-button.is-link > .wp-block-button__link:hover { text-decoration: underline; }
.wp-block-button.is-on-dark.is-style-outline > .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.wp-block-button.is-on-dark.is-style-outline > .wp-block-button__link:hover { background: rgba(255,255,255,.08); }

/* Small text helpers used across sections */
.d-kicker { font-size: 0.75rem !important; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--d-primary); margin-bottom: 0 !important; }
.d-kicker.is-gold { color: var(--d-gold); }
.d-kicker + * { margin-block-start: 0.6rem !important; }
.d-muted { color: var(--d-mutedfg); font-size: 0.875rem; line-height: 1.7; }
.d-small { font-size: 0.75rem !important; color: var(--d-mutedfg); }
.d-lead { max-width: 48rem; }

/* ---------- Header ---------- */
/* No backdrop-filter here: it would trap the fixed mobile menu overlay inside the header. */
.diana-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0); z-index: 30; background: #fff; border-bottom: 1px solid var(--d-border); }
.diana-topbar { background: var(--d-navy); color: #FAF8F5; font-size: 0.75rem; }
.diana-topbar .wp-block-group { padding-block: 0.5rem; }
.diana-topbar p { margin: 0; }
.diana-topbar a { color: inherit; text-decoration: none; }
.diana-topbar a:hover { text-decoration: underline; }
@media (max-width: 767px) { .diana-topbar { display: none; } }
.diana-mainbar__inner { padding-block: 0.9rem; gap: 1rem; }

.diana-logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--d-navy); }
.diana-logo__mark { display: block; flex: none; width: 44px; height: 44px; } /* assets/img/logo-mark.svg, inlined */
.diana-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.diana-logo__name { font-family: var(--d-serif); font-style: italic; font-size: 1.5rem; }
.diana-logo__tag { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--d-mutedfg); }
.diana-footer .diana-logo { color: #FAF8F5; }
.diana-footer .diana-logo__tag { color: rgba(250,248,245,.7); }

.diana-nav { font-size: 0.875rem; font-weight: 500; }
.diana-nav .wp-block-navigation-item__content { color: var(--d-navy); text-decoration: none; padding: 0.25rem 0; }
.diana-nav .wp-block-navigation-item__content:hover, .diana-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--d-primary); }
.diana-nav .wp-block-navigation__container { gap: 1.4rem; }
/* Mobile menu: a drawer that slides in from the right and covers half the screen; the rest is dimmed.
   Tap the dimmed part or swipe the drawer to the right to close it (front.php). */
.diana-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 0 !important; background: rgba(13,30,59,.45) !important; color: var(--d-navy); overflow: clip !important; animation: diana-fade .45s ease both; }
/* overflow: clip — WordPress focuses the first link while the drawer is still off-screen; a scrollable overlay would then scroll sideways and make the drawer "jump" in. */
.diana-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; min-width: 250px; max-width: 380px !important; margin: 0 !important; background: #fff; box-shadow: -18px 0 40px -18px rgba(13,30,59,.45); overflow-y: auto; animation: diana-drawer-in .5s cubic-bezier(.4,0,.2,1) both; }
.diana-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog { padding: 4.25rem 1.5rem 2rem; }
.diana-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { top: 1.1rem; right: 1.1rem; }
.diana-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 0 !important; align-items: flex-start; }
.diana-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; font-size: 1.05rem; align-items: stretch; }
.diana-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--d-border); }
.diana-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; padding: .9rem 0; }
@keyframes diana-drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes diana-fade { from { background-color: rgba(13,30,59,0); } }
/* Closing: slide back out before the menu disappears (front.php adds .is-closing for 0.35 s). */
.diana-nav .wp-block-navigation__responsive-container.is-menu-open.is-closing { animation: diana-fade-out .35s ease both; }
.diana-nav .wp-block-navigation__responsive-container.is-menu-open.is-closing .wp-block-navigation__responsive-close { animation: diana-drawer-out .35s cubic-bezier(.4,0,1,1) both; }
@keyframes diana-drawer-out { to { transform: translateX(100%); } }
@keyframes diana-fade-out { to { background-color: rgba(13,30,59,0); } }
.diana-nav .wp-block-navigation__responsive-container-open { color: var(--d-navy); }
/* Collapse into the ☰ button below 1024px (WordPress default is 600px) */
@media (min-width: 600px) and (max-width: 1023px) {
	.diana-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.diana-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.diana-header-actions { gap: 1rem; }
@media (max-width: 1023px) { .diana-header-actions { display: none !important; } }
@media (max-width: 1279px) { .diana-header-actions .diana-social { display: none !important; } }

.diana-social.wp-block-social-links { gap: 0.5rem; }
.diana-social .wp-social-link { background: color-mix(in srgb, var(--d-gold) 15%, transparent) !important; color: var(--d-gold) !important; transition: background-color .15s, color .15s; }
.diana-social .wp-social-link:hover { background: var(--d-gold) !important; color: #fff !important; transform: none; }
.diana-social .wp-social-link a { padding: 0.5rem; }
.diana-social .wp-social-link svg { width: 18px; height: 18px; }

/* ---------- Sections ---------- */
.d-section { padding-block: clamp(3.5rem, 7vw, 5rem); }
.d-section.is-tight { padding-block: clamp(2.5rem, 5vw, 3rem); }
.d-band-muted { background: var(--d-muted); border-block: 1px solid var(--d-border); }
.d-band-navy { background: var(--d-navy); color: #FAF8F5; }
.d-band-navy h1, .d-band-navy h2, .d-band-navy h3 { color: #FAF8F5; }
.d-band-navy .d-muted, .d-band-navy p { color: rgba(250,248,245,.82); }
.d-band-navy .d-kicker { color: var(--d-gold); }
.d-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.d-row.is-center { align-items: center; }
.d-row > * { margin: 0 !important; }

/* Hero */
/* Photo of Diana: right half on wide screens (she looks towards the text), on top on phones. */
.diana-hero { position: relative; overflow: hidden; min-height: 600px; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.diana-hero > .diana-hero__img { position: absolute; top: 0; right: 0; bottom: 0; left: auto; margin: 0 !important; max-width: none !important; width: 52%; height: 100%; }
.diana-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 22%; }
.diana-hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.55) 14%, rgba(255,255,255,0) 34%); }
.diana-hero__content { position: relative; z-index: 1; width: 100%; padding-block: clamp(3.5rem, 8vw, 6rem); }
.diana-hero__content > * { max-width: 34rem; }
@media (max-width: 1100px) and (min-width: 841px) {
	.diana-hero > .diana-hero__img { width: 46%; }
	.diana-hero__content > * { max-width: 29rem; }
}
@media (max-width: 840px) {
	.diana-hero { min-height: 0; justify-content: flex-start; }
	.diana-hero > .diana-hero__img { position: relative; width: auto; height: 300px; margin-inline: calc(-1 * var(--wp--style--root--padding-right, 1rem)) !important; }
	.diana-hero__img img { object-position: 55% 18%; }
	.diana-hero__img::after { background: linear-gradient(180deg, rgba(255,255,255,0) 62%, #fff 100%); }
	.diana-hero__content { padding-block: 0.5rem 3rem; }
}
.diana-hero__kicker { display: flex; align-items: center; gap: 0.6rem; }
.diana-hero__kicker::before { content: ""; width: 2rem; height: 1px; background: var(--d-gold); }
.diana-hero h1 { font-size: clamp(1.875rem, 4.4vw, 3rem); line-height: 1.2; margin-top: 1.25rem; }
.diana-hero h1 .diana-hero__sub { display: block; font-size: 0.8em; }
.diana-hero__tagline { font-family: var(--d-serif); font-size: 1.25rem; line-height: 1.6; color: var(--d-navy); margin-top: 1.5rem !important; }
.diana-hero__lead { max-width: 28rem !important; }
.diana-hero .wp-block-buttons { margin-top: 1.75rem !important; }

/* Trust strip */
.diana-trust { border-block: 1px solid var(--d-border); }
.diana-trust__grid { display: grid; gap: 1.25rem; padding-block: 1.75rem; }
@media (min-width: 640px) { .diana-trust__grid { grid-template-columns: repeat(3, 1fr); } }
.diana-trust__item { display: grid !important; grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: center; margin: 0 !important; }
.diana-trust__item::before { grid-row: span 2; width: 1.75rem; height: 1.75rem; color: var(--d-gold); }
.diana-trust__item p { margin: 0 !important; }
.diana-trust__item p:first-of-type { font-size: 0.875rem; font-weight: 600; color: var(--d-navy); }
.diana-trust__item p + p { font-size: 0.75rem; color: var(--d-mutedfg); margin-top: 0.15rem !important; }

/* Service cards (rendered by the plugin shortcode) */
.d-services { display: grid; gap: 1rem; margin-top: 2rem !important; }
@media (min-width: 640px) { .d-services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .d-services { grid-template-columns: repeat(3, 1fr); } }
.d-card { display: flex; flex-direction: column; border: 1px solid var(--d-border); border-radius: var(--d-radius); background: #fff; padding: 1.5rem; transition: border-color .18s, transform .18s; }
.d-card:hover { border-color: var(--d-gold); transform: translateY(-3px); }
.d-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.d-card__cat { font-size: 0.75rem; font-weight: 500; color: var(--d-primary); }
.d-card__icon { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #FBEAEA; color: var(--d-primary); transition: background-color .2s, color .2s; }
.d-card__icon svg { width: 1.4rem; height: 1.4rem; }
.d-card:hover .d-card__icon { background: var(--d-primary); color: #fff; }
.d-card__icon.is-lg { width: 3.25rem; height: 3.25rem; }
.d-card__icon.is-lg svg { width: 1.65rem; height: 1.65rem; }
.diana-service__head { display: flex; align-items: center; gap: .85rem; margin-bottom: .25rem; }
.diana-service__head .d-kicker { margin: 0 !important; padding: 0; }
.d-card h3, .d-card__title { font-size: 1.125rem !important; line-height: 1.6; margin: 0; }
.d-card__title a { color: var(--d-navy); text-decoration: none; }
.d-card__title a::after { content: ""; position: absolute; inset: 0; }
.d-card { position: relative; }
.d-card__short { font-size: 0.875rem; line-height: 1.7; color: var(--d-mutedfg); margin: 0.75rem 0 1.25rem; }
.d-card__notice { font-size: 0.75rem; color: var(--d-mutedfg); margin: 0 0 1rem; }
.d-card__more { margin-top: auto; font-size: 0.875rem; font-weight: 500; color: var(--d-primary); }

/* Steps */
.diana-steps { display: grid; gap: 2rem; margin-top: 2.5rem !important; }
@media (min-width: 768px) { .diana-steps { grid-template-columns: repeat(3, 1fr); } }
.diana-step { border-top: 1px solid var(--d-border); padding-top: 1.25rem; margin: 0 !important; }
.diana-step > * { margin: 0 !important; }
.diana-step__num { font-family: var(--d-serif); font-size: 1.875rem; color: var(--d-gold); }
.diana-step h3 { margin-top: 1rem !important; }
.diana-step p:last-child { margin-top: 0.5rem !important; font-size: 0.875rem; line-height: 1.7; color: var(--d-mutedfg); }

/* About (navy) */
.diana-about .wp-block-columns { gap: 2.5rem; margin: 0; }
.diana-about h2 { line-height: 1.6; }

/* Coverage band */
.diana-coverage .d-row > div > * { margin: 0; }
.diana-coverage .ico-pin::before { width: 1.5rem; height: 1.5rem; color: var(--d-primary); display: block; margin-bottom: .75rem; }

/* FAQ */
.diana-faq { border-top: 1px solid var(--d-border); margin-top: 2rem !important; }
.diana-faq > .wp-block-details { border-bottom: 1px solid var(--d-border); padding-block: 1.25rem; margin: 0 !important; }
.wp-block-details summary { cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--d-navy); }
.wp-block-details summary:hover { color: var(--d-primary); }
.wp-block-details > p { margin-top: 0.75rem; max-width: 48rem; font-size: 0.875rem; line-height: 1.7; color: var(--d-mutedfg); }

/* Team */
.diana-person-row { display: grid; gap: 2rem 3rem; align-items: center; margin-top: 2.5rem !important; }
.diana-team .diana-facts { max-width: var(--d-wide) !important; margin-inline: auto !important; }
.diana-team .diana-facts li { max-width: 48rem; }
@media (min-width: 768px) { .diana-person-row { grid-template-columns: minmax(240px, 340px) 1fr; } }
.diana-person-row > * { margin: 0 !important; }
.diana-person__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 8%; border-radius: calc(var(--d-radius) * 2); box-shadow: 0 18px 40px -24px rgba(13,30,59,.45); }
@media (max-width: 767px) { .diana-person__photo { max-width: 360px; } }
.diana-person { max-width: 42rem; border-left: 2px solid var(--d-gold); padding-left: 1.5rem; margin-top: 2rem !important; }
.diana-person > * { margin-block: 0; }
.diana-person > * + * { margin-top: 0.5rem; }
.diana-person p { font-size: 0.875rem; line-height: 1.7; color: var(--d-mutedfg); }
.diana-person .wp-block-buttons { margin-top: 1.5rem; }

/* Contact */
.diana-contact .wp-block-columns { gap: 3rem; }
.diana-contact__phone { display: inline-flex; align-items: center; gap: .75rem; font-family: var(--d-serif); font-size: 1.5rem !important; margin-top: 2rem !important; }
.diana-contact__phone a { color: var(--d-navy); text-decoration: none; }
.diana-contact__phone::before { color: var(--d-primary); }
.diana-contact__photo { margin: 2rem 0 0 !important; max-width: 360px; }
.diana-contact__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 8%; border-radius: calc(var(--d-radius) * 2); box-shadow: 0 18px 40px -24px rgba(13,30,59,.45); }
@media (max-width: 781px) { .diana-contact__photo { max-width: none; } .diana-contact__photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 10%; } }
.diana-contact__urgent { border-top: 1px solid var(--d-border); padding-top: 1.25rem; margin-top: 2.5rem !important; }

/* Notices */
.d-checklist { list-style: none; padding-left: 0 !important; margin-block: 0.75rem 1.5rem !important; }
.d-checklist li { position: relative; padding-left: 1.6rem; margin-bottom: 0.5rem; }
.d-checklist li::before { content: ""; position: absolute; left: 0.15rem; top: 0.55em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--d-gold); }
.diana-service .wp-block-post-content h2 { font-size: 1.25rem; margin-top: 2rem; }
.d-alert { position: relative; border: 1px solid color-mix(in srgb, var(--d-primary) 30%, transparent); background: color-mix(in srgb, var(--d-primary) 5%, transparent); border-radius: var(--d-radius); padding: 1rem 1rem 1rem 2.9rem; font-size: 0.875rem; }
.d-alert::before { position: absolute; left: 1rem; top: 1.05rem; color: var(--d-primary); width: 1.25rem; height: 1.25rem; }
.d-notice { border-left: 2px solid var(--d-gold); padding-left: 1rem; font-size: 0.875rem; font-weight: 500; color: var(--d-navy); }

/* Single service */
.diana-service { padding-block: 3rem 4rem; }
.diana-back { font-size: 0.875rem; }
.diana-back a { text-decoration: none; }
.diana-service__cols { gap: 3rem; margin-top: 2rem !important; }
.diana-service h1 { font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.3; }
.diana-service .wp-block-post-content p { font-size: 0.875rem; line-height: 1.7; color: var(--d-mutedfg); }
.diana-service .wp-block-post-content .d-notice { color: var(--d-navy); }
.diana-service .wp-block-post-content h2 { font-size: 1.25rem; margin-top: 2.5rem; }
.diana-service__faq-title { font-size: 1.25rem !important; margin-top: 2.5rem !important; }

/* Legal / plain pages */
.diana-page { padding-block: 3.5rem; }
.diana-page .wp-block-post-title { font-size: 1.875rem; margin-bottom: 1.75rem; }
.diana-page .wp-block-post-content { font-size: 0.875rem; line-height: 1.8; color: var(--d-mutedfg); }
.diana-page .wp-block-post-content h2 { font-size: 1.25rem; margin-top: 1.75rem; margin-bottom: .6rem; }
.diana-page .wp-block-post-content a { text-decoration: underline; }

/* ---------- Booking form + helper (plugin markup) ---------- */
.d-form { border: 1px solid var(--d-border); border-radius: var(--d-radius); background: #fff; padding: clamp(1.25rem, 3vw, 2rem); scroll-margin-top: 120px; }
.d-form h2 { font-size: 1.5rem; margin: 0; }
.d-form__intro { margin: .75rem 0 1.5rem; font-size: .875rem; line-height: 1.7; color: var(--d-mutedfg); }
.d-form__grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .d-form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.d-form label { display: block; font-size: .875rem; font-weight: 500; color: var(--wp--preset--color--contrast); }
.d-form label .d-opt { font-weight: 400; color: var(--d-mutedfg); }
.d-form input, .d-form select, .d-form textarea { display: block; width: 100%; margin-top: .5rem; min-height: 48px; border: 1px solid #DEDAD3; border-radius: 6px; background: #fff; padding: .6rem .75rem; font: inherit; font-size: .875rem; color: inherit; box-sizing: border-box; }
.d-form textarea { min-height: 96px; resize: vertical; }
.d-form input:focus-visible, .d-form select:focus-visible, .d-form textarea:focus-visible { outline: 2px solid var(--d-primary); outline-offset: 0; border-color: transparent; }
.d-form__hint { font-size: .75rem; line-height: 1.6; color: var(--d-mutedfg); margin: 0; }
.d-form__hint a { color: inherit; }
.d-form button, .d-helper button.d-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 48px; border: 0; border-radius: 6px; background: var(--d-primary); color: #fff; font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; }
.d-form button:hover, .d-helper button.d-btn:hover { background: var(--wp--preset--color--primary-dark); }
.d-form button:disabled { opacity: .6; cursor: wait; }
.d-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.d-form__ok { padding-block: 2rem; }
.d-form__ok::before { width: 2rem; height: 2rem; color: var(--d-primary); display: block; margin-bottom: 1rem; }
.d-form__ok h3 { font-size: 1.25rem; margin: 0; }
.d-form__ok p { margin-top: .75rem; font-size: .875rem; color: var(--d-mutedfg); }
.d-form__err { color: #C0000A; font-size: .875rem; margin: 0; }
.d-form [aria-invalid="true"] { border-color: #C0000A; box-shadow: 0 0 0 1px #C0000A; }
.d-form__err[data-camp] { background: #FDF1F1; border: 1px solid #F2C9C9; border-radius: 6px; padding: .75rem .9rem; }

.d-helper { margin-top: 1.5rem; }
.d-helper__box { border: 1px solid var(--d-border); border-radius: 12px; background: #fff; padding: 1.25rem; box-shadow: 0 1px 2px rgba(13,30,59,.05); }
.d-helper textarea { width: 100%; box-sizing: border-box; border: 1px solid #DEDAD3; border-radius: 6px; padding: .75rem; font: inherit; font-size: .875rem; min-height: 110px; resize: vertical; }
.d-helper textarea:focus-visible { outline: 2px solid var(--d-primary); border-color: transparent; }
.d-helper button.d-btn { width: auto; padding: 0 1.25rem; margin-top: .75rem; }
.d-helper__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.d-helper__chips button { border: 1px solid var(--d-border); background: var(--d-muted); color: var(--d-navy); border-radius: 999px; padding: .4rem .85rem; font: inherit; font-size: .8125rem; cursor: pointer; }
.d-helper__chips button:hover { border-color: var(--d-gold); }
.d-helper__result { margin-top: 1.5rem; border-radius: 12px; background: var(--d-muted); padding: 1.25rem; font-size: .875rem; line-height: 1.7; }
.d-helper__result[hidden] { display: none; }
.d-helper__result h3 { font-size: 1.125rem; margin: 0 0 .5rem; }
.d-helper__match { border: 1px solid var(--d-border); background: #fff; border-radius: var(--d-radius); padding: 1rem; margin-top: .75rem; }
.d-helper__match a { font-weight: 600; }
.d-helper__match p { margin: .35rem 0 0; color: var(--d-mutedfg); }
.d-helper__urgent { border: 1px solid var(--d-primary); background: #fff; color: var(--d-primary); border-radius: var(--d-radius); padding: 1rem; font-weight: 600; margin-bottom: .75rem; }
.d-helper__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.d-pill { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0 1rem; border-radius: 6px; font-size: .875rem; font-weight: 600; text-decoration: none !important; }
.d-pill.is-primary { background: var(--d-primary); color: #fff !important; }
.d-pill.is-outline { background: #fff; border: 1px solid var(--d-border); color: var(--d-navy) !important; }
.d-pill.is-wa { background: var(--d-wa); color: #fff !important; }

/* ---------- Footer ---------- */
.diana-footer { background: var(--d-navy); color: #FAF8F5; }
.diana-footer a { color: rgba(250,248,245,.82); text-decoration: none; }
.diana-footer a:hover { color: var(--d-gold); }
.diana-footer__cols { gap: 2.5rem; padding-block: 3.5rem; margin-block: 0 !important; margin-inline: auto !important; }
.diana-footer h2 { font-family: var(--wp--preset--font-family--sans); font-size: 1rem; font-weight: 600; color: #FAF8F5; margin-bottom: 1rem; }
.diana-footer p { font-size: 0.875rem; margin: 0; }
.diana-footer .is-dim { color: rgba(250,248,245,.7); font-size: 0.75rem; line-height: 1.7; }
.diana-footer__phone { display: flex; align-items: center; gap: .5rem; font-size: 1.25rem !important; }
.diana-footer__phone::before { color: var(--d-gold); }
.diana-footer__phone a { color: #FAF8F5; }
.diana-footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; list-style: none; padding: 0; margin: 0; font-size: .875rem; }
.diana-footer__legal { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .5rem; font-size: .75rem; }
.diana-footer__legal a { color: rgba(250,248,245,.7); }
.diana-footer__bottom { border-top: 1px solid rgba(250,248,245,.15); padding-block: 1.25rem; text-align: center; }
.diana-anpc { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1rem; margin-bottom: 1rem; }
.diana-anpc a { display: block; line-height: 0; border-radius: 6px; }
.diana-anpc a:focus-visible { outline: 2px solid var(--d-gold); outline-offset: 2px; }
.diana-anpc img { width: 200px; height: auto; border-radius: 6px; }
.diana-footer__auth { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.1rem !important; padding: .6rem 1.1rem .6rem .85rem; border: 1px solid var(--d-gold); border-radius: 12px; background: rgba(201,162,87,.14); color: #FAF8F5; font-size: .8125rem !important; letter-spacing: .02em; line-height: 1.35; }
.diana-footer__auth::before { flex: none; width: 1.1rem; height: 1.1rem; color: #E2C27F; }
.diana-footer__auth strong { display: block; text-transform: uppercase; letter-spacing: .08em; color: #E2C27F; font-weight: 600; font-size: .75rem; }
.diana-footer__bottom p { font-size: .75rem; color: rgba(250,248,245,.6); }
@media (max-width: 767px) { .diana-footer { padding-bottom: 5.5rem; } }

/* ---------- Floating contact (plugin markup) ---------- */
.d-float-wa { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--d-wa); color: #fff; box-shadow: 0 10px 25px rgba(0,0,0,.2); }
.d-float-wa::before { width: 26px; height: 26px; }
.d-mobile-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: none; grid-template-columns: 1fr 1fr; gap: .75rem; padding: .75rem 1rem max(.75rem, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--d-border); }
.d-mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; border-radius: 6px; color: #fff; text-decoration: none; font-size: .875rem; font-weight: 500; }
.d-mobile-bar .is-call { background: var(--d-primary); }
.d-mobile-bar .is-wa { background: var(--d-wa); }
@media (max-width: 767px) { .d-float-wa { display: none; } .d-mobile-bar { display: grid; } }

/* 404 */
.diana-404 { text-align: center; padding-block: 5rem; }

/* Team page: "Pe scurt" fact list */
.diana-facts-title { font-size: 1.25rem !important; margin-top: 3rem !important; }
.diana-facts { max-width: 48rem; padding-left: 1.1rem; font-size: .875rem; line-height: 1.8; color: var(--d-mutedfg); }
.diana-facts li + li { margin-top: .35rem; }
.diana-facts strong { color: var(--d-navy); font-weight: 600; }

/* ---------- Cookie banner (plugin markup) ---------- */
.d-consent { position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem; max-width: 34rem; margin-left: auto; background: #fff; color: var(--wp--preset--color--contrast); border: 1px solid var(--d-border); border-radius: 12px; box-shadow: 0 12px 40px rgba(13,30,59,.18); padding: 1.25rem; font-size: .875rem; line-height: 1.6; }
.d-consent[hidden] { display: none; }
.d-consent__title { font-family: var(--d-serif); font-size: 1.125rem; color: var(--d-navy); margin: 0 0 .4rem; }
.d-consent__title:focus { outline: none; }
.d-consent__text { margin: 0; color: var(--d-mutedfg); }
.d-consent__panel { display: grid; gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--d-border); }
.d-consent__panel[hidden] { display: none; }
.d-consent__opt { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.d-consent__opt input { margin-top: .3rem; width: 1rem; height: 1rem; accent-color: var(--d-primary); flex: none; }
.d-consent__opt em { color: var(--d-mutedfg); }
.d-consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.d-consent__btn { flex: 1 1 auto; min-height: 44px; padding: 0 1rem; border: 1px solid var(--d-navy); border-radius: 6px; background: var(--d-navy); color: #fff; font: inherit; font-weight: 500; cursor: pointer; }
.d-consent__btn:hover { background: #1a2f55; }
.d-consent__btn.is-ghost { background: #fff; color: var(--d-navy); border-color: var(--d-border); }
.d-consent__btn.is-ghost:hover { background: var(--d-muted); }
.d-consent__btn[hidden] { display: none; }
body.d-consent-open .d-mobile-bar, body.d-consent-open .d-float-wa { display: none; }
@media (max-width: 640px) { .d-consent { left: .5rem; right: .5rem; bottom: .5rem; padding: 1rem; } .d-consent__btn { flex: 1 1 45%; } }
.d-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.diana-footer .d-linkbtn { color: rgba(250,248,245,.7); }
.diana-footer .d-linkbtn:hover { color: var(--d-gold); }
.d-form [data-pow-error][hidden] { display: none; }

/* Phones: the bottom bar already has "Sună acum" + WhatsApp, so the hero keeps only "Vezi serviciile". */
@media (max-width: 767px) {
	.diana-hero .wp-block-button.btn-ico-phone { display: none; }
	.diana-hero .wp-block-button.btn-ico-arrow { flex: 1 1 100%; }
	.diana-hero .wp-block-button.btn-ico-arrow .wp-block-button__link { width: 100%; justify-content: center; background: var(--d-navy); border-color: var(--d-navy); color: #fff; box-shadow: 0 10px 24px -12px rgba(13,30,59,.65); }
	.diana-hero .wp-block-button.btn-ico-arrow .wp-block-button__link:hover, .diana-hero .wp-block-button.btn-ico-arrow .wp-block-button__link:focus-visible { background: color-mix(in srgb, var(--d-navy) 85%, #fff); color: #fff; }
}

/* ---- Reviews (Recenzii): carousel, star rating, review form */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.d-reviews-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; min-width: 0; }
.d-reviews__summary { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; font-size: 1rem; color: var(--d-navy); }
.d-stars { color: #B8892E; letter-spacing: .1em; margin: 0; font-size: 1.1rem; line-height: 1; }
.d-reviews { position: relative; min-width: 0; }
.d-reviews__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; list-style: none; margin: 0; padding: 4px 2px 12px; scrollbar-width: thin; }
.d-reviews__track:focus-visible { outline: 2px solid var(--d-primary); outline-offset: 4px; border-radius: var(--d-radius); }
.d-review { flex: 0 0 min(86%, 380px); scroll-snap-align: start; display: flex; flex-direction: column; gap: .75rem; background: #fff; border: 1px solid var(--d-border); border-radius: calc(var(--d-radius) * 1.5); padding: 1.5rem; }
.d-review blockquote { margin: 0; padding: 0; border: 0; flex: 1; }
.d-review blockquote p { margin: 0; font-family: var(--d-serif); font-size: 1.0625rem; line-height: 1.65; color: var(--d-navy); }
.d-review__by { margin: 0; font-size: .875rem; color: var(--d-mutedfg); }
.d-review__by strong { color: var(--d-navy); font-weight: 600; }
.d-reviews__nav { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .5rem; }
.d-reviews.is-static .d-reviews__nav { display: none; }
.d-reviews__btn { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--d-border); background: #fff; color: var(--d-navy); font-size: 1.1rem; cursor: pointer; }
.d-reviews__btn:hover:not(:disabled) { border-color: var(--d-primary); color: var(--d-primary); }
.d-reviews__btn:disabled { opacity: .35; cursor: default; }
.d-reviews__empty { margin: 0; color: var(--d-mutedfg); }
.d-review-form { max-width: 44rem; }
.d-rating { border: 0; margin: 0; padding: 0; }
.d-rating legend { font-size: .875rem; font-weight: 500; padding: 0; margin-bottom: .35rem; }
.d-rating__stars { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.d-rating__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.d-rating__stars label { cursor: pointer; padding: .1rem; line-height: 1; }
.d-rating__stars label::before { content: "★"; font-size: 2rem; color: #D9D3C7; transition: color .15s; }
.d-rating__stars input:checked ~ label::before, .d-rating__stars label:hover::before, .d-rating__stars label:hover ~ label::before { color: #E0A82E; }
.d-rating__stars input:focus-visible + label { outline: 2px solid var(--d-primary); outline-offset: 2px; border-radius: 4px; }
.d-rating__stars input[aria-invalid="true"] ~ label::before { color: #F0B8B8; }
.d-check { display: flex !important; gap: .6rem; align-items: flex-start; font-size: .8125rem; line-height: 1.5; }
.d-check input { width: 1.1rem !important; min-height: 0 !important; height: 1.1rem; margin: .15rem 0 0 !important; flex: none; }

.diana-reviews-list { padding-top: 0 !important; margin-top: 0 !important; }
.diana-reviews-title:has(+ .diana-reviews-list) { padding-bottom: 1rem !important; }

/* Red "Programare" button at the bottom of the slide-in mobile menu (added in front.php; hidden on desktop) */
.diana-nav .diana-nav-cta { display: none; }
.diana-nav .wp-block-navigation__responsive-container.is-menu-open .diana-nav-cta { display: block; border-bottom: 0 !important; margin-top: 1.5rem; }
.diana-nav .wp-block-navigation__responsive-container.is-menu-open .diana-nav-cta a { display: flex; box-sizing: border-box; width: 100%; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1rem; border-radius: var(--d-radius); background: var(--d-primary); color: #fff !important; font-weight: 600; box-shadow: 0 8px 18px -10px rgba(208,29,33,.8); }
.diana-nav .wp-block-navigation__responsive-container.is-menu-open .diana-nav-cta a::before { content: ""; width: 1.1rem; height: 1.1rem; background: currentColor; -webkit-mask: var(--i-calendar) center / contain no-repeat; mask: var(--i-calendar) center / contain no-repeat; }
.diana-nav .wp-block-navigation__responsive-container.is-menu-open .diana-nav-cta a:hover { background: #B3171B; }

html.has-modal-open .d-mobile-bar { display: none !important; } /* the menu has its own Programare button */
