/*
Theme Name:        Rosa
Theme URI:         https://fotbalbacau.ro
Author:            Fotbal Bacău Rosa
Description:       Temă custom pentru Fotbal Bacău Rosa — bază sportivă de fotbal în Bacău.
Version:           1.1.1
Requires at least: 6.0
Requires PHP:      8.0
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       rosa
*/

/* ---------------------------------------------------------------------------
   Pagina stă pe întuneric cald, nu pe roșu. Roșul e semnal: acțiune, stare
   activă, cod de suprafață. Restul vine din fotografie și tipografie.
   --------------------------------------------------------------------------- */

:root {
	--ink: #140809;
	--ink-2: #1d0e10;
	--ink-3: #2a1518;
	--paper: #f6f3f1;

	--red: #d6001a;
	--red-deep: #9e0e1a;
	--red-bright: #ff3b4e;  /* text mic pe întuneric: 5,6:1 */
	--gold: #c9a227;

	--on-dark: #fbf8f7;
	--on-dark-soft: rgba(251, 248, 247, 0.74);
	--on-dark-faint: rgba(251, 248, 247, 0.34);
	--hair: rgba(251, 248, 247, 0.15);

	/* Titlurile stau pe alb curat, ca să nu piardă din greutate pe fundal închis. */
	--head: #ffffff;

	--gut: clamp(1.25rem, 5vw, 4.5rem);
	--hold: 86rem;

	--display: "Big Shoulders Display", "Archivo", system-ui, sans-serif;
	--text: "Archivo", system-ui, -apple-system, sans-serif;
	--step: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--ink);
	color: var(--on-dark);
	font-family: var(--text);
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
	line-height: 1.65;
	font-feature-settings: "tnum" 1;
	overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }
html { scrollbar-color: var(--red-deep) var(--ink); caret-color: var(--red-bright); }

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.hold {
	width: 100%;
	max-width: var(--hold);
	margin-inline: auto;
	padding-inline: var(--gut);
}

.sr-only {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
	position: absolute; left: var(--gut); top: 0.5rem; z-index: 100;
	background: var(--red); color: #fff; padding: 0.75rem 1.25rem;
	font-family: var(--display); text-transform: uppercase; text-decoration: none;
	transform: translateY(-200%); transition: transform 0.2s var(--step);
}
.skip-link:focus { transform: translateY(0); }

/* --- Tipografie ---------------------------------------------------------- */

h1, h2, h3 {
	font-family: var(--display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.005em;
	line-height: 0.94;
	margin: 0;
	color: var(--head);
	text-wrap: balance;
}

h1 { font-size: clamp(2.9rem, 7vw, 6.5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }

p { margin: 0 0 1rem; max-width: 62ch; }

.lede { color: var(--on-dark-soft); font-size: clamp(1.05rem, 1.4vw, 1.2rem); }

/* Eticheta mică, folosită ca reper de secțiune. */
.tag {
	font-family: var(--display);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--red-bright);
	margin: 0 0 1.25rem;
	display: flex;
	align-items: center;
	gap: 0.7rem;
}
.tag::after { content: ""; flex: 1; height: 1px; background: var(--hair); }

/* --- Acțiuni -------------------------------------------------------------- */

.btn {
	display: inline-flex; align-items: center; gap: 0.6rem;
	padding: 0.95rem 1.5rem;
	font-family: var(--display); font-weight: 700; font-size: 1.05rem;
	text-transform: uppercase; letter-spacing: 0.03em; line-height: 1;
	text-decoration: none; border: 1px solid transparent;
	transition: background-color 0.2s var(--step), color 0.2s var(--step), border-color 0.2s var(--step);
}
.btn--solid { background: var(--red); color: #fff; }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--red-deep); }
.btn--line { border-color: var(--on-dark-faint); color: var(--on-dark); }
.btn--line:hover, .btn--line:focus-visible { border-color: var(--on-dark); background: rgba(244,238,237,0.07); }

.arrow { width: 1.15em; height: 1.15em; flex: none; }

/* --- Antet ---------------------------------------------------------------- */

.top {
	position: sticky; top: 0; z-index: 50;
	background: rgba(20, 8, 9, 0.82);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--hair);
}
.top__in { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.top__brand {
	font-family: var(--display); font-weight: 800; font-size: 1.1rem;
	text-transform: uppercase; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
}
.top__nav { display: flex; gap: 1.6rem; margin-inline-start: auto; list-style: none; margin-block: 0; padding: 0; }
.top__nav a {
	font-family: var(--display); font-weight: 600; font-size: 0.95rem;
	text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none;
	color: var(--on-dark-soft); transition: color 0.2s var(--step);
}
.top__nav a:hover, .top__nav a:focus-visible { color: var(--on-dark); }
.top__call { padding: 0.65rem 1.1rem; font-size: 0.95rem; }

@media (max-width: 56rem) {
	.top__nav { display: none; }
	.top__call { margin-inline-start: auto; }
}

/* --- Hero: fotografie pe tot cadrul --------------------------------------- */

.hero { position: relative; min-height: clamp(34rem, 88svh, 52rem); display: flex; align-items: flex-end; overflow: hidden; }

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }

/* Scrim în două straturi: întunecă pentru text, apoi virează umbrele spre roșu. */
.hero__bg::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(to top, rgba(20,8,9,0.96) 0%, rgba(20,8,9,0.72) 38%, rgba(20,8,9,0.38) 72%, rgba(20,8,9,0.55) 100%),
		linear-gradient(to right, rgba(158,14,26,0.34), rgba(20,8,9,0.1) 60%);
}

.hero__in { position: relative; z-index: 1; width: 100%; padding-block: clamp(3rem, 8vh, 6rem); }

.rating {
	display: inline-flex; align-items: center; gap: 0.55rem;
	font-family: var(--display); font-weight: 700; font-size: 0.95rem;
	letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 1.5rem;
}
.rating__star { width: 1.15em; height: 1.15em; }

.hero h1 { max-width: 16ch; }

.hero__grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: end; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 62rem) { .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }

.hero__lede { margin: 0; max-width: 44ch; }

.hero__act { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.phone {
	font-family: var(--display); font-weight: 800;
	font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1;
	text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem;
}
.phone:hover .arrow, .phone:focus-visible .arrow { transform: translateX(0.3rem); }
.phone .arrow { transition: transform 0.25s var(--step); color: var(--red-bright); }
.phone__who { margin: 0.6rem 0 0; font-size: 0.95rem; color: var(--on-dark-soft); }

/* --- Secțiuni ------------------------------------------------------------- */

.sec { padding-block: clamp(4rem, 10vw, 8rem); position: relative; }
.sec--paper { background: var(--paper); color: var(--ink); --head: var(--ink); }
.sec--paper .tag { color: var(--red-deep); }
.sec--paper .tag::after { background: rgba(20, 8, 9, 0.16); }
.sec--raise { background: var(--ink-2); }

.sec__head { max-width: 50ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }

/* --- Indexul de suprafețe ------------------------------------------------- */

.rows { border-top: 1px solid var(--hair); }
.sec--paper .rows, .sec--paper .row { border-color: rgba(20, 8, 9, 0.14); }

.row {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.6rem 1.25rem;
	padding: clamp(1.1rem, 2.2vw, 1.9rem) 0;
	border-bottom: 1px solid var(--hair);
	text-decoration: none;
	isolation: isolate;
}

/* Fotografia apare doar la hover, în spatele rândului. */
/* Fotografia se stinge spre margini, ca rândul să nu se termine tăiat brusc. */
.row__peek {
	position: absolute; inset: 0 -6vw; z-index: -1; overflow: hidden;
	opacity: 0; transition: opacity 0.35s var(--step);
	-webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}
.row__peek img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.42); }
.row__peek::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(158,14,26,0.55), rgba(20,8,9,0.25)); }
.row:hover .row__peek, .row:focus-visible .row__peek { opacity: 1; }


.row__name { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.35rem, 3vw, 2.3rem); line-height: 1; }
.row__note { display: block; font-family: var(--text); font-weight: 400; text-transform: none; font-size: 0.9rem; letter-spacing: 0; margin-top: 0.4rem; color: var(--on-dark-soft); }
.sec--paper .row__note { color: rgba(20, 8, 9, 0.6); }

.row__price { font-family: var(--display); font-weight: 700; font-size: clamp(0.95rem, 1.6vw, 1.2rem); white-space: nowrap; text-align: end; }
.row__per { display: block; font-family: var(--text); font-weight: 400; font-size: 0.8rem; color: var(--on-dark-soft); }
.sec--paper .row__per { color: rgba(20, 8, 9, 0.55); }

.rows__split {
	font-family: var(--display); font-weight: 700; font-size: 0.78rem;
	letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-faint);
	padding: 1.75rem 0 0.5rem; margin: 0;
}
.sec--paper .rows__split { color: rgba(20, 8, 9, 0.4); }

/* --- Banda cu dotări ------------------------------------------------------ */

.ribbon { overflow: hidden; padding-block: 1rem; border-block: 1px solid var(--hair); }
.ribbon__track { display: flex; width: max-content; animation: ribbon 46s linear infinite; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
.ribbon__set { display: flex; align-items: center; flex: none; font-family: var(--display); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-dark-soft); }
.ribbon__item { padding-inline: 1.75rem; white-space: nowrap; }
.ribbon__sep { width: 4px; height: 4px; flex: none; background: var(--red-bright); border-radius: 50%; }
@keyframes ribbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon__track { animation: none; } }

/* --- Panoul de căldură ---------------------------------------------------- */

.heat__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 58rem) { .heat__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }

.heat__options { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.heat input { position: absolute; opacity: 0; pointer-events: none; }
.heat__opt {
	font-family: var(--display); font-weight: 700; font-size: 0.92rem;
	text-transform: uppercase; letter-spacing: 0.05em; padding: 0.7rem 1.1rem;
	border: 1px solid var(--on-dark-faint); cursor: pointer;
	transition: background-color 0.2s var(--step), border-color 0.2s var(--step);
}
.heat__opt:hover { border-color: var(--on-dark); }
.heat input:focus-visible + .heat__opt { outline: 2px solid var(--red-bright); outline-offset: 3px; }
.heat[data-caldura="0"] [for="heat-0"],
.heat[data-caldura="6"] [for="heat-6"],
.heat[data-caldura="8"] [for="heat-8"] { background: var(--red); border-color: var(--red); color: #fff; }

.heat__readout { margin-top: 1.75rem; font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1; }
.heat__readout span { display: none; }
.heat[data-caldura="0"] .heat__readout .r0,
.heat[data-caldura="6"] .heat__readout .r6,
.heat[data-caldura="8"] .heat__readout .r8 { display: block; }

.balloon { width: 100%; height: auto; }
.balloon .pump { fill: rgba(244, 238, 237, 0.12); transition: fill 0.3s var(--step); }
.heat[data-caldura="6"] .balloon .pump--mid,
.heat[data-caldura="8"] .balloon .pump--mid,
.heat[data-caldura="8"] .balloon .pump--end { fill: var(--red); }
.balloon .pitch { fill: none; stroke: var(--on-dark-faint); stroke-width: 1.5; }

/* --- Banda de respiro, pe toată lățimea ----------------------------------- */

.breath { position: relative; min-height: clamp(18rem, 46vw, 32rem); display: grid; place-items: center; overflow: hidden; }
.breath__bg { position: absolute; inset: 0; z-index: 0; }
.breath__bg img { width: 100%; height: 100%; object-fit: cover; }
.breath__bg::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to right, rgba(20,8,9,0.9), rgba(158,14,26,0.35) 55%, rgba(20,8,9,0.85));
}
.breath__txt {
	position: relative; z-index: 1; margin: 0; padding: var(--gut); text-align: center;
	font-family: var(--display); font-weight: 800; text-transform: uppercase;
	font-size: clamp(1.8rem, 5.5vw, 4rem); line-height: 0.96; max-width: 20ch;
}

/* --- Recenzii ------------------------------------------------------------- */

.revs { display: grid; gap: 1px; background: var(--hair); border-block: 1px solid var(--hair); list-style: none; margin: 0; padding: 0; }
@media (min-width: 50rem) { .revs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rev { background: var(--ink-2); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1rem; }
.rev__q { margin: 0; font-size: 1.1rem; line-height: 1.55; }
.rev__who { margin: 0; font-size: 0.85rem; color: var(--on-dark-soft); }
.rev__go {
	margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 0.45rem;
	font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em;
	text-transform: uppercase; text-decoration: none; color: var(--red-bright);
	transition: color 0.2s var(--step);
}
.rev__go:hover, .rev__go:focus-visible { color: var(--on-dark); }

/* --- Două destinații ------------------------------------------------------ */

.pair { display: grid; gap: 1px; background: var(--hair); }
@media (min-width: 50rem) { .pair { grid-template-columns: 1fr 1fr; } }
.dest {
	background: var(--ink); padding: clamp(1.75rem, 4vw, 3rem);
	text-decoration: none; display: flex; flex-direction: column; gap: 0.9rem;
	transition: background-color 0.25s var(--step);
}
.dest:hover, .dest:focus-visible { background: var(--ink-3); }
.dest__tag { font-family: var(--display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-bright); }
.dest p { margin: 0; color: var(--on-dark-soft); }
.dest__go { margin-top: auto; display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* --- Locație -------------------------------------------------------------- */

.where__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 58rem) { .where__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.where__addr { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.02; margin: 0 0 1.75rem; max-width: none; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.facts li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.75rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--hair); color: var(--on-dark-soft); }
.facts dt, .facts strong { font-family: var(--display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-faint); }
.where__act { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- Închidere ------------------------------------------------------------ */

.end { text-align: center; }
.end__phone {
	display: inline-flex; align-items: center; gap: 0.8rem; margin-top: 1.25rem;
	font-family: var(--display); font-weight: 800;
	font-size: clamp(2.4rem, 8vw, 5.5rem); line-height: 1; text-decoration: none;
	transition: color 0.25s var(--step);
}
.end__phone .arrow { color: var(--red-bright); transition: transform 0.3s var(--step); }
.end__phone:hover .arrow, .end__phone:focus-visible .arrow { transform: translateX(0.4rem); }
.end__note { margin: 1.5rem auto 0; color: var(--on-dark-soft); }

/* --- Subsol --------------------------------------------------------------- */

.foot { border-top: 1px solid var(--hair); padding-block: 3rem 2rem; font-size: 0.92rem; color: var(--on-dark-soft); }
.foot a { text-decoration: none; transition: color 0.2s var(--step); }
.foot a:hover, .foot a:focus-visible { color: var(--on-dark); }
.foot__cols { display: grid; gap: 2rem; }
@media (min-width: 50rem) { .foot__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.foot h2 { font-size: 0.78rem; letter-spacing: 0.16em; color: var(--on-dark-faint); margin-bottom: 0.9rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.foot__base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--hair); color: var(--on-dark-faint); font-size: 0.85rem; }

/* --- Harta ---------------------------------------------------------------
   Dale întunecate, virate spre cerneala paginii, cu un singur punct roșu.
   Biblioteca se încarcă abia când harta se apropie de ecran.
   --------------------------------------------------------------------------- */

.map {
	position: relative;
	margin-top: clamp(2rem, 5vw, 3rem);
	height: clamp(17rem, 40vw, 27rem);
	border: 1px solid var(--hair);
	background: var(--ink-2);
	overflow: hidden;
}

.map__canvas { position: absolute; inset: 0; }

.map__wait {
	position: absolute; inset: 0; display: grid; place-items: center;
	font-family: var(--display); font-weight: 700; font-size: 0.8rem;
	letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-faint);
}

.map .leaflet-container { background: var(--ink-2); font-family: var(--text); }
/* Dalele vin deschise de la OpenStreetMap; le întoarcem pe negru și le
   potolim, ca harta să stea în aceeași cerneală cu pagina. */
.map .leaflet-tile-pane {
	filter: invert(1) hue-rotate(180deg) saturate(0.3) brightness(0.74) contrast(1.05);
}

/* Spoiala roșie leagă harta de restul paginii, fără să ascundă străzile. */
.map__tint {
	position: absolute; inset: 0; pointer-events: none; z-index: 450;
	background: linear-gradient(to bottom, rgba(158, 14, 26, 0.12), rgba(20, 8, 9, 0.26));
}

.map .leaflet-control-attribution {
	background: rgba(20, 8, 9, 0.78); color: var(--on-dark-faint); font-size: 0.68rem;
}
.map .leaflet-control-attribution a { color: var(--on-dark-soft); }
.map .leaflet-bar a {
	background: var(--ink-2); color: var(--on-dark);
	border-bottom-color: var(--hair);
}
.map .leaflet-bar a:hover { background: var(--ink-3); color: #fff; }

.pin__dot {
	display: block; width: 14px; height: 14px; border-radius: 50%;
	background: var(--red); box-shadow: 0 0 0 5px rgba(214, 0, 26, 0.26);
}

/* --- Bara fixă de apel ---------------------------------------------------- */

.callbar { display: none; }
@media (max-width: 56rem) {
	.callbar {
		position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
		display: grid; grid-template-columns: 1fr 1fr;
		background: var(--ink-2); border-top: 1px solid var(--hair);
	}
	.callbar a {
		display: flex; align-items: center; justify-content: center; gap: 0.5rem;
		min-height: 3.6rem; font-family: var(--display); font-weight: 800; font-size: 1.05rem;
		text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
	}
	.callbar__call { background: var(--red); color: #fff; }
	body { padding-bottom: 3.6rem; }
}

/* --- Stările de pornire ale mișcării -------------------------------------- */

.js-motion [data-rise] { opacity: 0; }
.js-motion .balloon .pump { opacity: 0; }

/* ===========================================================================
   PAGINILE INTERIOARE
   Același sistem de semnalizare, la o scară mai mică: traseul deasupra,
   placa cu codul, apoi conținutul cules dens.
   =========================================================================== */

/* --- Primul ecran al unei pagini ----------------------------------------- */

.phero {
	position: relative;
	min-height: clamp(20rem, 56svh, 32rem);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.phero__bg { position: absolute; inset: 0; z-index: 0; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; }

/* Scrim mai discret decât pe pornire: pagina interioară nu țipă. */
.phero__bg::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(to top, rgba(20,8,9,0.95) 0%, rgba(20,8,9,0.7) 42%, rgba(20,8,9,0.42) 100%),
		linear-gradient(to right, rgba(158,14,26,0.26), rgba(20,8,9,0.08) 65%);
}

/* Fără fotografie: câmp de cerneală cu rigle verticale, ca spatele unui
   panou de semnalizare, și o bară roșie la bază. */
.phero--plain {
	min-height: clamp(15rem, 40svh, 22rem);
	background-color: var(--ink-2);
	background-image: repeating-linear-gradient(to right, var(--hair) 0 1px, transparent 1px 7.5rem);
}
.phero--plain::after {
	content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px;
	background: var(--red);
}

.phero__in {
	position: relative; z-index: 1; width: 100%;
	padding-block: clamp(2.75rem, 7vh, 4.5rem);
}

.phero h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); max-width: 24ch; }
.phero__lede { margin: clamp(1rem, 2vw, 1.5rem) 0 0; max-width: 52ch; }

.phero__act {
	display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
@media (min-width: 62rem) { .phero__act .rating { margin-inline-start: auto; } }

/* --- Traseul de semnalizare ---------------------------------------------- */

.path {
	display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
	font-family: var(--display); font-weight: 600; font-size: 0.78rem;
	letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--on-dark-faint); margin-bottom: clamp(1rem, 2vw, 1.5rem);
}
.path a { text-decoration: none; transition: color 0.2s var(--step); }
.path a:hover, .path a:focus-visible { color: var(--on-dark); }
.path__sep { width: 0.8em; height: 0.8em; flex: none; opacity: 0.5; }
.path__aici { color: var(--on-dark); display: inline-flex; align-items: center; gap: 0.5rem; }

/* --- Nota de pe rating și telefonul, ca piese de sine stătătoare --------- */

.rating { margin: 0; }
.hero .rating { margin-bottom: 1.5rem; }

/* --- Fișa tehnică -------------------------------------------------------- */

.specs { margin: 0; border-top: 1px solid var(--hair); }
@media (min-width: 58rem) {
	.specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4rem); }
}
.specs__row {
	display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.75rem;
	padding: 1rem 0; border-bottom: 1px solid var(--hair);
}
.specs dt {
	font-family: var(--display); font-weight: 700; font-size: 0.82rem;
	letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-faint);
}
.specs dd { margin: 0; color: var(--on-dark-soft); }

/* --- Plăcile de tarif ---------------------------------------------------- */

.plates { display: grid; gap: 1px; background: var(--hair); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 50rem) { .plates { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }

.plate { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 0.6rem; }
.plate:not(.plate--go)::before {
	content: ""; display: block; width: 2.5rem; height: 3px;
	background: var(--red); margin-bottom: 0.9rem;
}
.plate__price { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 0.95; margin: 0; }
.plate__price span {
	font-family: var(--text); font-weight: 500; font-size: 0.95rem;
	letter-spacing: 0; color: var(--on-dark-soft); margin-inline-start: 0.15rem;
}
.plate__when { margin: 0; font-size: 0.95rem; color: var(--on-dark-soft); max-width: 30ch; }
.plate__per {
	margin: 0; font-family: var(--display); font-weight: 700; font-size: 0.85rem;
	letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-bright);
}
.plate--go { justify-content: space-between; }
.plate__link {
	margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 0.5rem;
	font-family: var(--display); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em;
	text-transform: uppercase; text-decoration: none; color: var(--red-bright);
	transition: color 0.2s var(--step);
}
.plate__link:hover, .plate__link:focus-visible { color: var(--on-dark); }
.plate__link .arrow { transition: transform 0.25s var(--step); }
.plate__link:hover .arrow, .plate__link:focus-visible .arrow { transform: translateX(0.3rem); }

/* --- Grila de tarife ----------------------------------------------------- */

.tar__wrap { overflow-x: auto; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.tar { width: 100%; border-collapse: collapse; }
.tar caption { text-align: start; margin-bottom: 1.25rem; }
.tar__grup {
	display: block; font-family: var(--display); font-weight: 700;
	text-transform: uppercase; font-size: clamp(1.3rem, 2.4vw, 1.9rem);
	line-height: 1.05; color: var(--head);
}
.tar__nota { display: block; margin-top: 0.45rem; font-size: 0.92rem; color: var(--on-dark-soft); max-width: 62ch; }

.tar th, .tar td {
	text-align: start; vertical-align: baseline;
	padding: 0.95rem 1rem 0.95rem 0; border-bottom: 1px solid var(--hair);
}
.tar th:last-child, .tar td:last-child { text-align: end; padding-inline-end: 0; }

.tar thead th {
	font-family: var(--display); font-weight: 700; font-size: 0.72rem;
	letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-faint);
	padding-bottom: 0.6rem; border-bottom-color: var(--on-dark-faint);
}
.tar tbody th {
	font-family: var(--display); font-weight: 700; text-transform: uppercase;
	font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--on-dark);
}
.tar tbody tr { transition: background-color 0.2s var(--step); }
.tar tbody tr:hover { background: rgba(251, 248, 247, 0.03); }
.tar__cand { color: var(--on-dark-soft); font-size: 0.95rem; }
.tar__pret { font-family: var(--display); font-weight: 800; font-size: clamp(1.05rem, 1.8vw, 1.35rem); white-space: nowrap; }
.tar__pret span {
	display: block; font-family: var(--text); font-weight: 400; font-size: 0.8rem;
	letter-spacing: 0; color: var(--red-bright);
}


/* --- Note și panouri ----------------------------------------------------- */

.notes { display: grid; gap: 1px; background: var(--hair); margin-top: clamp(1rem, 3vw, 2rem); }
@media (min-width: 50rem) { .notes { grid-template-columns: 1fr 1fr; } }

.note { padding: clamp(1.35rem, 2.5vw, 2rem); }
.note--wide { margin-top: clamp(2rem, 4vw, 3rem); }
.note p { color: var(--on-dark-soft); margin-bottom: 0; }
.note__tag {
	font-family: var(--display); font-weight: 700; font-size: 0.78rem;
	letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-bright);
	margin: 0 0 0.6rem;
}

.panel { padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 1.15rem; }
.panel__tag {
	margin: 0; font-family: var(--display); font-weight: 700; font-size: 0.78rem;
	letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-bright);
}

/* Pătrat plin = intră în tarif. Pătrat gol = îl aduceți voi. */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ticks li { display: grid; grid-template-columns: 0.55rem minmax(0, 1fr); gap: 0.85rem; color: var(--on-dark-soft); }
.ticks li::before { content: ""; width: 0.55rem; height: 0.55rem; background: var(--red); margin-top: 0.55rem; }
.panel--open .ticks li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--on-dark-faint); }

/* --- Pașii -------------------------------------------------------------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--hair); }
@media (min-width: 50rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 0.75rem; }
.step__no { font-family: var(--display); font-weight: 800; font-size: clamp(2.5rem, 5vw, 3.6rem); line-height: 0.8; color: var(--red); }
.step p { margin: 0; color: var(--on-dark-soft); }

/* --- Căile de contact ---------------------------------------------------- */

.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--hair); }
/* Trei căi secundare, trei coloane: altfel rămâne o celulă goală în grilă. */
@media (min-width: 50rem) { .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.way { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 0.55rem; }
.way--main { grid-column: 1 / -1; }
.way__tag {
	font-family: var(--display); font-weight: 700; font-size: 0.78rem;
	letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-bright);
}
.way__val {
	font-family: var(--display); font-weight: 800; text-transform: uppercase;
	font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1; text-decoration: none;
	transition: color 0.2s var(--step);
}
a.way__val:hover, a.way__val:focus-visible { color: var(--red-bright); }
.way__note { font-size: 0.92rem; color: var(--on-dark-soft); }

/* --- Suprafețele cartonașelor, legate de fondul secțiunii ---------------- */

.dest, .plate, .panel, .note, .step, .way, .rev { background: var(--ink-2); }
.sec--raise .dest,
.sec--raise .plate,
.sec--raise .panel,
.sec--raise .note,
.sec--raise .step,
.sec--raise .way,
.sec--raise .rev { background: var(--ink); }

/* --- Text cules din editor ---------------------------------------------- */

.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--on-dark-soft); }
.prose h2, .prose h3 { margin: 2.5rem 0 1rem; }
.prose a { color: var(--red-bright); text-decoration: underline; text-underline-offset: 0.2em; }
.prose ul, .prose ol { margin-block: 1.25rem; padding-inline-start: 1.25rem; display: grid; gap: 0.5rem; }

/* --- Rânduri doar cu text (arhive) -------------------------------------- */

.row--text { grid-template-columns: minmax(0, 1fr) auto; }

/* --- Pagina curentă, în meniu ------------------------------------------- */

.top__nav a { display: inline-block; position: relative; }
.top__nav a.is-here, .top__nav .current-menu-item > a { color: var(--on-dark); }
.top__nav a.is-here::after, .top__nav .current-menu-item > a::after {
	content: ""; position: absolute; inset-inline: 0; bottom: -0.4rem; height: 2px; background: var(--red);
}

/* --- Închiderea: acțiunea secundară ------------------------------------- */

.end__act { margin-top: 1.75rem; }

/* --- Paginare ----------------------------------------------------------- */

.pagination { margin-top: clamp(2rem, 4vw, 3rem); font-family: var(--display); font-weight: 700; letter-spacing: 0.08em; }
.pagination .page-numbers { padding: 0.5rem 0.75rem; text-decoration: none; }
.pagination .current { background: var(--red); color: #fff; }

/* Nota lată își ține eticheta pe o coloană proprie, ca rândurile de fișă:
   altfel textul stă singur într-un panou mult mai lat decât el. */
@media (min-width: 50rem) {
	.note--wide { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0 2rem; align-items: start; }
	.note--wide .note__tag { margin: 0; }
}

/* ===========================================================================
   TELEFON
   Nu o versiune mai mică, ci altă dispunere acolo unde lățimea nu ajunge:
   meniul se strânge într-un panou, iar coloanele devin rânduri.
   =========================================================================== */

.menu { display: none; }

@media (max-width: 56rem) {
	/* Numărul stă permanent jos, în bara fixă, deci nu-l mai ținem și sus. */
	.top__in { gap: 0.75rem; }
	.top__call { display: none; }

	.menu { display: block; margin-inline-start: auto; }
	.menu__btn {
		list-style: none; cursor: pointer;
		display: inline-flex; align-items: center; justify-content: center;
		min-height: 2.75rem; padding: 0 1rem;
		font-family: var(--display); font-weight: 700; font-size: 0.92rem;
		letter-spacing: 0.12em; text-transform: uppercase;
		border: 1px solid var(--on-dark-faint);
	}
	.menu__btn::-webkit-details-marker { display: none; }
	.menu__btn::marker { content: ""; }
	.menu[open] .menu__btn { background: var(--red); border-color: var(--red); color: #fff; }

	.menu__panel {
		position: absolute; inset-inline: 0; top: 100%;
		background: var(--ink-2); border-bottom: 1px solid var(--hair);
	}
	.menu__list { list-style: none; margin: 0; padding: 0.4rem 0 0.9rem; display: grid; }
	.menu__list a {
		display: block; padding: 0.85rem var(--gut);
		font-family: var(--display); font-weight: 700; font-size: 1.1rem;
		letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
	}
	.menu__list a.is-here { color: var(--red-bright); }
}

/* --- Grila de tarife devine listă ---------------------------------------- */

@media (max-width: 46rem) {
	/* Si titlul grupei: un caption ramas table-caption se strange la latimea
	   celui mai lung cuvant si rupe textul cuvant cu cuvant. */
	.tar, .tar tbody, .tar tr, .tar caption { display: block; }

	/* Capetele de coloană rămân pentru cititoarele de ecran. */
	.tar thead {
		position: absolute; width: 1px; height: 1px; margin: -1px;
		overflow: hidden; clip-path: inset(50%); white-space: nowrap;
	}

	.tar tr {
		display: grid; grid-template-columns: minmax(0, 1fr) auto;
		gap: 0.2rem 1rem; align-items: baseline;
		padding: 1.1rem 0; border-bottom: 1px solid var(--hair);
	}
	.tar tr > * { grid-column: 1; display: block; border: 0; padding: 0; text-align: start; }
	.tar tr > .tar__pret { grid-column: 2; grid-row: 1; text-align: end; }
	.tar tbody tr:hover { background: none; }
}

/* --- Coloanele de etichetă trec deasupra valorii -------------------------- */

@media (max-width: 40rem) {
	.specs__row, .facts li { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }

	/* În index, tariful coboară sub numele terenului: altfel îl strânge. */
	.row { grid-template-columns: minmax(0, 1fr); }
	.row__price { text-align: start; white-space: normal; margin-top: 0.3rem; }
	.row__per { display: inline; margin-inline-start: 0.45rem; }
}

/* --- Logoul din bară ------------------------------------------------------
   Lockupul e desenat pentru fundal închis: placa roșie cu terenul, plus numele
   alături. Înălțimea e fixată, lățimea urmează, ca bara să nu sară la încărcare.
   -------------------------------------------------------------------------- */

.top__brand { display: inline-flex; align-items: center; }
.top__brand img { display: block; height: 2.4rem; width: auto; }
@media (max-width: 56rem) { .top__brand img { height: 1.95rem; } }

/* Butonul din primul ecran: numărul stă în buton, nu lângă el. */
.btn--big { padding: 1.15rem 1.9rem; font-size: 1.15rem; }
