/* ==========================================================================
   La Bunica lui Jechel (demo) – page-restaurant.php
   Direcție: restaurant tradițional, dar sobru și premium.
   Fundal cald închis, hârtie, alamă și vin; serif clasic, linii fine, fotografii mari.
   ========================================================================== */

:root {
	--night: #14110d;
	--night-2: #1e1a15;
	--bone: #f2ebdf;
	--paper: #faf6ef;
	--ink: #1b1611;
	--muted: #6b6156;
	--muted-inv: #b3a897;
	--line: rgba(27, 22, 17, .14);
	--line-inv: rgba(242, 235, 223, .16);
	--brass: #a9844e;
	--brass-light: #d4b585;
	--wine: #74222a;
	--wine-dark: #561920;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
	--sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--shadow: 0 30px 60px rgba(20, 17, 13, .18);

	/* Nume păstrate pentru flipbook.css */
	--cream: var(--bone);
	--border: #e0d4c0;
	--red: var(--wine);
	--red-dark: var(--wine-dark);
	--red-soft: #f1e2dc;
	--green: #1f261c;
	--green-soft: #e4e7dc;
	--gold: var(--brass);
	--gold-soft: #f3e8d4;
	--band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='16'%3E%3Cpath d='M12 2l6 6-6 6-6-6z' fill='%23a9844e'/%3E%3Cpath d='M12 6l2 2-2 2-2-2z' fill='%2314110d'/%3E%3Crect x='28' y='6' width='4' height='4' fill='%23a9844e'/%3E%3Crect x='36' y='6' width='4' height='4' fill='%23741f26'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.resto { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/26px var(--sans); -webkit-font-smoothing: antialiased; }
:where(.resto) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
:where(.resto) :where(ul, ol) { padding: 0; list-style: none; }
:where(.resto) :where(a) { color: inherit; text-decoration: none; }
:where(.resto) :where(h1, h2, h3) { text-wrap: balance; }
:where(.resto) :where(p, blockquote) { text-wrap: pretty; }
.resto img { max-width: 100%; }
.resto :focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }
::selection { background: var(--brass-light); color: var(--ink); }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--brass); color: var(--night); padding: 8px 12px; }
.skip-link:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Tipografie ---------- */
.r-display, .r-h1, .r-h2, .r-h3, .r-h4, .r-brand-big, .h-intro-text, .h-roman, .a-year { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.r-display { font-size: clamp(48px, 7.2vw, 104px); line-height: .98; }
.r-h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1; }
.r-h2 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.04; }
.r-h3 { font-size: clamp(30px, 3vw, 40px); line-height: 1.1; }
.r-h4 { font-size: 26px; line-height: 1.15; font-weight: 600; }
.r-lead { font-size: 18px; line-height: 30px; max-width: 560px; }
.r-label { display: inline-block; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); }
.r-orn { display: block; width: 120px; height: 12px; color: var(--brass); }

/* ---------- Structură ---------- */
.r-container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.r-narrow { width: min(880px, 100% - 48px); }
.r-section { padding: 128px 0; }
@media (max-width: 760px) { .r-container, .r-narrow { width: calc(100% - 32px); } .r-section { padding: 80px 0; } }
.r-paper { background: var(--paper); }
.r-bone { background: var(--bone); }
.r-night { background: var(--night); color: var(--bone); }
.r-night .r-label { color: var(--brass-light); }
.r-head { max-width: 720px; margin-bottom: 64px; }
.r-head .r-label { margin-bottom: 20px; }
.r-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.r-head-center { margin-inline: auto; text-align: center; }

/* ---------- Butoane și linkuri ---------- */
.r-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 28px; border: 1px solid transparent; border-radius: 0;
	font: 600 12px/16px var(--sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
	transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.r-btn:active { transform: translateY(1px); }
.r-btn-brass { background: var(--brass); color: var(--night); }
.r-btn-brass:hover { background: var(--brass-light); }
.r-btn-line { border-color: currentColor; color: inherit; background: transparent; }
.r-btn-line:hover { background: var(--bone); border-color: var(--bone); color: var(--night); }
.r-btn-night, .r-btn-primary { background: var(--night); color: var(--bone); }
.r-btn-night:hover, .r-btn-primary:hover { background: var(--wine); }
.r-btn-block { width: 100%; }
.r-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; transition: color .4s var(--ease), gap .4s var(--ease); }
.r-link:hover { color: var(--wine); gap: 16px; }
.r-link-inv:hover { color: var(--brass-light); }
.r-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 40px; }

/* ---------- Header ---------- */
.r-header { position: sticky; top: 0; z-index: 100; isolation: isolate; color: var(--bone); border-bottom: 1px solid var(--line-inv); }
/* Fundalul e pe pseudo-element: un backdrop-filter pe .r-header ar închide meniul mobil (position: fixed) în bară. */
.r-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(20, 17, 13, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.admin-bar .r-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .r-header { top: 46px; } }
.r-header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 84px; }
.r-header-end { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }

.r-brand { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; text-align: center; }
.r-brand-small { font-size: 10px; line-height: 14px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: var(--brass-light); padding-left: .42em; }
.r-brand-big { font-size: 30px; line-height: 30px; font-weight: 600; }
.r-brand-lg .r-brand-big { font-size: 56px; line-height: 56px; }
.r-brand-lg .r-brand-small { font-size: 12px; }

.d-menu ul { display: flex; align-items: center; gap: 32px; }
.d-menu a:not(.r-btn) { position: relative; padding: 6px 0; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-inv); transition: color .4s var(--ease); }
.d-menu a:not(.r-btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.d-menu a:not(.r-btn):hover { color: var(--bone); }
.d-menu a:not(.r-btn):hover::after, .d-menu a[aria-current="page"]::after { transform: scaleX(1); }
.d-menu a[aria-current="page"] { color: var(--bone); }
.d-menu-cta { display: none; }
.r-nav-cta { padding: 12px 20px; }

.d-toggle { display: none; position: relative; z-index: 2; width: 44px; height: 44px; border: 1px solid var(--line-inv); background: transparent; cursor: pointer; }
.d-toggle span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--bone); transition: transform .5s var(--ease); }
.d-toggle span:nth-child(1) { transform: translateY(-4px); }
.d-toggle span:nth-child(2) { transform: translateY(4px); }
.d-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.d-toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }

@media (max-width: 1080px) {
	.r-header-inner { grid-template-columns: auto 1fr; min-height: 72px; }
	.r-brand { order: -1; align-items: flex-start; text-align: left; }
	.r-brand-small { padding-left: 0; }
	.r-brand-big { font-size: 26px; line-height: 26px; }
	.r-header-end { gap: 12px; }
	.d-toggle { display: block; }
	/* Panou pe tot ecranul: 100dvh ține cont de bara browserului pe telefon, iar panoul se poate derula singur. */
	.d-menu {
		position: fixed; top: 0; left: 0; z-index: 1; width: 100%; height: 100vh; height: 100dvh;
		padding: 120px 24px 40px; overflow-y: auto; overscroll-behavior: contain; background: var(--night);
		opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s;
	}
	.d-menu.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
	.d-menu ul { flex-direction: column; align-items: stretch; gap: 0; }
	.d-menu li { border-bottom: 1px solid var(--line-inv); opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
	.d-menu.is-open li { opacity: 1; transform: none; }
	.d-menu.is-open li:nth-child(2) { transition-delay: 60ms; }
	.d-menu.is-open li:nth-child(3) { transition-delay: 120ms; }
	.d-menu.is-open li:nth-child(4) { transition-delay: 180ms; }
	.d-menu.is-open li:nth-child(5) { transition-delay: 240ms; }
	.d-menu.is-open li:nth-child(6) { transition-delay: 300ms; }
	.d-menu a:not(.r-btn) { display: block; padding: 16px 0; font: 500 36px/40px var(--serif); letter-spacing: 0; text-transform: none; color: var(--bone); }
	.d-menu a:not(.r-btn)::after { display: none; }
	.d-menu a[aria-current="page"] { color: var(--brass-light); }
	.d-menu-cta { display: block; margin-top: 32px; border: 0 !important; }
	.d-menu-cta .r-btn { width: 100%; }
	.r-brand, .r-header-end { position: relative; z-index: 2; }
	/* Cu meniul deschis, pagina de dedesubt nu se mai derulează (body overflow singur nu ajunge pe iOS). */
	html:has(body.menu-open) { overflow: hidden; }
	body.menu-open .r-header { border-bottom-color: transparent; }
	.d-lang-btn { min-height: 44px; padding: 8px 10px; }
}
@media (max-width: 560px) { .r-nav-cta { display: none; } }

/* ---------- Selector de limbă ---------- */
.d-lang { position: relative; z-index: 3; }
.d-lang-btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 4px; border: 0; background: transparent; color: var(--bone);
	font: 600 12px/16px var(--sans); letter-spacing: .18em; cursor: pointer; transition: color .4s var(--ease);
}
.d-lang-btn:hover, .d-lang-btn[aria-expanded="true"] { color: var(--brass-light); }
.d-caret { font-size: 12px; transition: transform .5s var(--ease); }
.d-lang-btn[aria-expanded="true"] .d-caret { transform: rotate(180deg); }
.d-lang-list {
	position: absolute; top: calc(100% + 16px); right: 0; z-index: 5; min-width: 190px; padding: 8px;
	background: var(--night-2); border: 1px solid var(--line-inv); box-shadow: var(--shadow); animation: r-pop .35s var(--ease);
}
@keyframes r-pop { from { opacity: 0; transform: translateY(-6px); } }
.d-lang-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; font-size: 14px; color: var(--muted-inv); transition: color .3s var(--ease), background-color .3s var(--ease); }
.d-lang-list a:hover, .d-lang-list a[aria-current] { color: var(--bone); background: rgba(242, 235, 223, .06); }
.d-lang-code { width: 24px; font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--brass-light); }

/* ---------- Hero (prima pagină) ---------- */
.h-hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(100svh - 84px); padding-top: 120px; color: var(--bone); background: var(--night); overflow: hidden; isolation: isolate; }
.h-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: h-zoom 18s var(--ease) forwards; }
@keyframes h-zoom { to { transform: scale(1); } }
/* Voal peste fotografie (nu fundal de pagină): textul alb trebuie să se citească. */
.h-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 17, 13, .9) 0%, rgba(20, 17, 13, .55) 55%, rgba(20, 17, 13, .2) 100%), linear-gradient(0deg, rgba(20, 17, 13, .9), transparent 45%); }
.h-hero-inner { padding-bottom: 64px; }
.h-hero-inner .r-label { margin-bottom: 28px; color: var(--brass-light); }
.h-hero .r-display { max-width: 980px; }
.h-hero .r-lead { margin-top: 28px; color: #d8cfc1; }
.h-hero-bar { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-inv); }
.h-hero-bar li { display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 32px 0; font-family: var(--serif); font-size: 20px; line-height: 26px; }
.h-hero-bar li + li { padding-left: 24px; border-left: 1px solid var(--line-inv); }
.h-hero-bar .r-label { font-family: var(--sans); color: var(--muted-inv); }
@media (max-width: 760px) {
	.h-hero { min-height: calc(100svh - 72px); }
	.h-hero-bar { grid-template-columns: 1fr; }
	.h-hero-bar li { padding: 16px 0; }
	.h-hero-bar li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-inv); }
	.h-hero-bar li:nth-child(2) { display: none; }
}

/* Antetul paginilor interioare */
.r-pagehero { position: relative; display: flex; align-items: flex-end; min-height: 62svh; padding: 160px 0 80px; color: var(--bone); background: var(--night); overflow: hidden; isolation: isolate; }
.r-pagehero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.r-pagehero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20, 17, 13, .92), rgba(20, 17, 13, .45)); }
.r-pagehero .r-label { margin-bottom: 24px; color: var(--brass-light); }
.r-pagehero .r-h1 { max-width: 900px; }
.r-pagehero .r-lead { margin-top: 24px; color: #d8cfc1; }
@media (max-width: 760px) { .r-pagehero { min-height: 52svh; padding: 120px 0 56px; } }

/* ---------- Intro (prima pagină) ---------- */
.h-intro { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.h-intro-text { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.22; }
.h-intro-text .w { color: rgba(27, 22, 17, .22); transition: color .6s var(--ease); }
.h-intro-text .w.is-on { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .h-intro-text .w { color: var(--ink); } }
.h-intro-sign { font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.h-intro-sign span { font: 600 24px/1 var(--serif); letter-spacing: 0; color: var(--wine); }

/* ---------- Bucatele casei: rânduri alternate ---------- */
.h-dishes { display: grid; gap: 96px; }
.h-dish { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: center; }
.h-dish:nth-child(even) .h-dish-img { order: 2; }
.h-dish-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bone); }
.h-dish-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.h-dish:hover .h-dish-img img { transform: scale(1.04); }
.h-dish-text { max-width: 460px; }
.h-dish-no { display: block; margin-bottom: 24px; font: 500 64px/1 var(--serif); color: var(--brass); }
.h-dish-text .r-h3 { margin: 16px 0 16px; }
.h-dish-text p { color: var(--muted); }
.h-dish-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.h-dish-meta strong { font: 600 28px/1 var(--serif); color: var(--ink); }
@media (max-width: 900px) {
	.h-dishes { gap: 64px; }
	.h-dish { grid-template-columns: 1fr; gap: 32px; }
	.h-dish:nth-child(even) .h-dish-img { order: 0; }
}

.r-tag { display: inline-block; padding: 4px 10px; border: 1px solid currentColor; font-size: 10px; line-height: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.r-tag-signature { color: var(--wine); }
.r-tag-veg { color: #4f6b3a; }
.r-tag-spicy { color: #a24a12; }

/* ---------- Trei coloane cu cifre romane ---------- */
.h-features { display: grid; grid-template-columns: repeat(3, 1fr); }
.h-features li { padding: 8px 40px 8px 0; }
.h-features li + li { padding-left: 40px; border-left: 1px solid var(--line-inv); }
.h-roman { display: block; margin-bottom: 32px; font-size: 56px; line-height: 1; color: var(--brass); }
.h-features h2, .h-features h3 { margin-bottom: 16px; }
.h-features p { color: var(--muted-inv); }
@media (max-width: 900px) {
	.h-features { grid-template-columns: 1fr; }
	.h-features li, .h-features li + li { padding: 32px 0; border-left: 0; border-top: 1px solid var(--line-inv); }
}

/* ---------- Recenzii ---------- */
.h-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.h-review { display: flex; flex-direction: column; gap: 24px; padding-top: 32px; border-top: 1px solid var(--ink); }
.h-stars { font-size: 12px; letter-spacing: .3em; color: var(--brass); }
.h-review blockquote { flex: 1; font: 500 24px/1.3 var(--serif); }
.h-review figcaption { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .h-reviews { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Articole: rânduri editoriale ---------- */
.r-posts { border-top: 1px solid var(--ink); }
.r-post { display: grid; grid-template-columns: 180px 140px 1fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.r-post-date { font: 500 20px/26px var(--serif); color: var(--ink); }
.r-post-cat { font-size: 11px; line-height: 26px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.r-post-cat-offer { color: var(--wine); }
.r-post-body { max-width: 640px; }
.r-post-body h3 { margin-bottom: 8px; }
.r-post-body p { color: var(--muted); }
@media (max-width: 760px) { .r-post { grid-template-columns: 1fr auto; gap: 8px 16px; } .r-post-body { grid-column: 1 / -1; margin-top: 8px; } }

.n-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; margin-bottom: 96px; }
.n-featured-img { aspect-ratio: 4 / 3; overflow: hidden; }
.n-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.n-featured-text .r-h2 { margin: 20px 0; }
.n-featured-text p { margin-bottom: 32px; color: var(--muted); }
@media (max-width: 900px) { .n-featured { grid-template-columns: 1fr; gap: 32px; margin-bottom: 64px; } }

/* ---------- Banda de rezervare ---------- */
.r-book { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; background: var(--night); color: var(--bone); }
.r-book-img { position: relative; overflow: hidden; }
.r-book-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r-book-text { display: flex; flex-direction: column; justify-content: center; padding: 96px clamp(24px, 7vw, 120px); }
.r-book-text .r-label { margin-bottom: 24px; color: var(--brass-light); }
.r-book-text p { max-width: 460px; margin-top: 24px; color: var(--muted-inv); }
@media (max-width: 900px) { .r-book { grid-template-columns: 1fr; } .r-book-img { aspect-ratio: 16 / 10; } .r-book-text { padding: 64px 16px; } }

/* ---------- Despre noi ---------- */
.a-story { display: grid; grid-template-columns: 1.1fr .9fr; gap: 96px; align-items: center; }
.a-story-text .r-h2 { margin: 20px 0 40px; }
.a-story-text p { color: var(--muted); }
.a-story-text p + p { margin-top: 20px; }
.a-dropcap::first-letter { float: left; margin: 6px 12px 0 0; font: 600 88px/.8 var(--serif); color: var(--wine); }
.a-dropcap { color: var(--ink) !important; font-size: 18px; line-height: 30px; }
.a-story-img img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.a-story-img figcaption { margin-top: 12px; font: 500 16px/1 var(--serif); color: var(--muted); }
@media (max-width: 900px) { .a-story { grid-template-columns: 1fr; gap: 48px; } }

.a-stats-wrap { padding-bottom: 128px; }
.a-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.a-stats li { display: flex; flex-direction: column; gap: 8px; padding: 40px 24px 40px 0; }
.a-stats li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.a-stats strong { font: 500 72px/1 var(--serif); color: var(--wine); }
.a-stats span { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .a-stats { grid-template-columns: repeat(2, 1fr); } .a-stats li:nth-child(3) { padding-left: 0; border-left: 0; } .a-stats li:nth-child(n+3) { border-top: 1px solid var(--line); } .a-stats strong { font-size: 52px; } }

.a-timeline { border-top: 1px solid var(--ink); }
.a-timeline li { display: grid; grid-template-columns: 220px 1fr 1.4fr; gap: 32px; align-items: baseline; padding: 36px 0; border-bottom: 1px solid var(--line); }
.a-year { font-size: 64px; line-height: 1; color: var(--brass); }
.a-timeline p { color: var(--muted); }
@media (max-width: 900px) { .a-timeline li { grid-template-columns: 1fr; gap: 8px; } .a-year { font-size: 48px; } }

.a-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.a-member .r-label { margin: 24px 0 8px; }
.a-member p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 24px; }
.a-portrait { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; background: var(--bone); }
.a-portrait::before { content: ''; position: absolute; inset: 12px; border: 1px solid var(--line); }
.a-portrait span { font: 500 88px/1 var(--serif); color: var(--brass); }
.a-portrait-0 { background: #ebe1cf; }
.a-portrait-1 { background: #e3e2d6; }
.a-portrait-2 { background: #efe3d6; }
.a-portrait-3 { background: #e6dfd6; }
@media (max-width: 960px) { .a-team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .a-team { grid-template-columns: 1fr; } .a-portrait { aspect-ratio: 4 / 3; } }

/* ---------- Contact ---------- */
.c-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 96px; align-items: start; }
@media (max-width: 960px) { .c-grid { grid-template-columns: 1fr; gap: 64px; } }
.c-rows { border-top: 1px solid var(--ink); }
.c-rows div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.c-rows dt { line-height: 30px; }
.c-rows dd { min-width: 0; font: 500 24px/30px var(--serif); overflow-wrap: anywhere; }
@media (max-width: 520px) { .c-rows div { grid-template-columns: 1fr; gap: 4px; } .c-rows dd { font-size: 22px; } }
.c-rows dd a { transition: color .4s var(--ease); }
.c-rows dd a:hover { color: var(--wine); }
.c-rows small { display: block; margin-top: 4px; font: 400 14px/20px var(--sans); color: var(--muted); }
.c-hours-title { margin: 56px 0 16px; }
.c-hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.c-hours dt { color: var(--muted); }
.c-hours dd { font: 600 18px/24px var(--serif); }
.c-map { position: relative; display: block; margin-top: 56px; aspect-ratio: 16 / 9; overflow: hidden; color: var(--bone); }
.c-map img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) brightness(.6); transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.c-map:hover img { transform: scale(1.04); filter: grayscale(.2) brightness(.55); }
.c-map-label { position: absolute; left: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 4px; font: 500 26px/1.1 var(--serif); }
.c-map-label span { font: 600 11px/16px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass-light); }

.c-form { display: grid; gap: 24px; padding: 56px; background: var(--bone); }
/* Copiii din grid nu au voie să împingă lățimea (inputurile de dată/oră au lățime minimă nativă). */
.c-grid > *, .c-form > *, .c-row3 > * { min-width: 0; }
.c-form .r-h3 { margin: -8px 0 8px; }
.c-row3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
@media (max-width: 520px) { .c-form { padding: 32px 20px; } .c-row3 { grid-template-columns: 1fr 1fr; } .c-row3 .d-field:first-child { grid-column: 1 / -1; } }
.d-field { display: grid; gap: 8px; }
.d-field label { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.d-field input, .d-field select, .d-field textarea {
	width: 100%; min-width: 0; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(27, 22, 17, .35); border-radius: 0; background: transparent;
	font: 500 18px/28px var(--serif); color: var(--ink); transition: border-color .4s var(--ease);
}
.d-field textarea { resize: vertical; font-family: var(--sans); font-size: 15px; }
.d-field input:focus, .d-field select:focus, .d-field textarea:focus { outline: none; border-bottom-color: var(--wine); }
.d-field.has-error input { border-bottom-color: #a4161a; }
.d-error { color: #a4161a; font-size: 13px; }
.c-form-note { text-align: center; font-size: 13px; color: var(--muted); }
.r-notice { padding: 16px 20px; border-left: 2px solid currentColor; font-size: 14px; font-weight: 600; }
.r-notice-ok { background: #e7eadf; color: #2e5a2a; }
.r-notice-err { background: #f1e1dd; color: #a4161a; }

/* ---------- Footer ---------- */
.r-footer { padding: 112px 0 104px; background: var(--night); color: var(--muted-inv); }
.r-footer-top { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; color: var(--bone); }
.r-footer-tagline { max-width: 460px; font: 500 22px/1.35 var(--serif); color: var(--muted-inv); }
.r-orn-footer { margin: 80px auto 64px; width: 100%; max-width: 420px; }
.r-footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
@media (max-width: 760px) { .r-footer-grid { grid-template-columns: 1fr; gap: 40px; } }
.r-footer-title { margin-bottom: 20px; font: 600 11px/16px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--brass-light); }
.r-footer ul { display: grid; gap: 10px; font-size: 15px; }
.r-footer a { transition: color .4s var(--ease); }
.r-footer a:hover { color: var(--bone); }
.r-footer-hours div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 15px; }
.r-footer-hours dd { color: var(--bone); }
.r-footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line-inv); font-size: 13px; color: #8c8273; }
.r-footer-demo { flex-basis: 100%; }
.r-credits { flex-basis: 100%; }
.r-credits summary { cursor: pointer; font-weight: 600; color: var(--muted-inv); }
.r-credits summary:hover { color: var(--bone); }
.r-credits p { margin: 8px 0; }
.r-credits ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 24px; font-size: 12px; line-height: 18px; }
.r-credits a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Notă demo + „Sus” ---------- */
/* Notă „site demo” fixă jos în stânga, ca pe JechelDent. */
.r-demo {
	position: fixed; left: 24px; bottom: 24px; z-index: 90; display: flex; align-items: center; gap: 10px;
	max-width: min(560px, calc(100% - 180px)); padding: 10px 16px 10px 12px;
	background: var(--night-2); border: 1px solid rgba(169, 132, 78, .55); color: var(--muted-inv); box-shadow: var(--shadow);
	font-size: 12px; line-height: 16px;
}
.r-demo i { flex: none; font-size: 18px; color: var(--brass-light); }
.r-demo a { flex: none; color: var(--brass-light); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; }
.r-demo a:hover { color: var(--bone); }
.r-demo-short { display: none; }
@media (max-width: 760px) {
	.r-demo { left: 16px; bottom: 16px; max-width: calc(100% - 120px); }
	.r-demo-long, .r-demo a { display: none; }
	.r-demo-short { display: inline; }
}
.d-to-top {
	position: fixed; right: 24px; bottom: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px;
	background: var(--night-2); border: 1px solid var(--line-inv); color: var(--bone); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
	opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s var(--ease), transform .5s var(--ease), background-color .4s var(--ease), color .4s var(--ease);
}
.d-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.d-to-top:hover { background: var(--brass); color: var(--night); }
@media (max-width: 640px) { .d-to-top { right: 16px; bottom: 16px; } }

/* ---------- Apariție la scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { transform: none; transition: opacity .3s linear; }
	.h-hero-img { animation: none; transform: none; }
}
