/*
 * RomaniaHUB – partea de sus a paginii Firme ([romaniahub_firme_sus]):
 * hero cu poză, caseta cu categorii și „Firme în prim-plan”.
 */

.rh-firme-sus {
	--rh-accent: #6c1cff;
	--rh-accent-ink: #5612d6;
	--rh-ink: #16141f;
	--rh-muted: #5b5870;
	--rh-line: #dcd9e6;
	--rh-dark: #120c26;
	background: #f4f2f9;
	color: var(--rh-ink);
}

.rh-firme-sus *,
.rh-firme-sus *::before,
.rh-firme-sus *::after {
	box-sizing: border-box;
}

/* Lățimea paginii: 1440px, aceeași ca lista de firme de dedesubt */
.rh-fs-wrap {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 32px;
}

/* Widgetul Elementor în care stă shortcode-ul: fără margini în jur */
.elementor-widget-wrap:has(> .elementor-widget .rh-firme-sus) {
	padding: 0 !important;
}

.elementor-widget:has(.rh-firme-sus) {
	margin-bottom: 0 !important;
}

.rh-firme-sus .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Hero cu poză ---------- */

.rh-fs-hero {
	position: relative;
	padding: 30px 0 76px;
	overflow: hidden;
	background-color: var(--rh-dark);
	background-image:
		radial-gradient(circle at 82% 18%, rgba(108, 28, 255, .55) 0, rgba(108, 28, 255, 0) 38%),
		radial-gradient(circle at 62% 110%, rgba(59, 108, 255, .4) 0, rgba(59, 108, 255, 0) 40%),
		radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px);
	background-size: auto, auto, 22px 22px;
	color: #fff;
}

/* Cercurile mari din dreapta, ca pe banda de jos a cardului de firmă */
.rh-fs-hero::before,
.rh-fs-hero::after {
	content: "";
	position: absolute;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 50%;
	pointer-events: none;
}

.rh-fs-hero::before {
	width: 640px;
	height: 640px;
	right: -160px;
	top: -260px;
}

.rh-fs-hero::after {
	width: 420px;
	height: 420px;
	right: 40px;
	top: -150px;
}

.rh-fs-hero .rh-fs-wrap {
	position: relative;
	z-index: 1;
}

/* Cu poză aleasă din shortcode (imagine="…") */
.rh-fs-hero--photo {
	background-image:
		linear-gradient(90deg, rgba(18, 12, 38, .97) 0%, rgba(18, 12, 38, .9) 38%, rgba(18, 12, 38, .55) 70%, rgba(18, 12, 38, .35) 100%),
		var(--rh-hero-img, none);
	background-size: cover;
	background-position: 70% center;
}

.rh-fs-hero .rh-fs-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.rh-fs-crumbs {
	display: flex;
	gap: 8px;
	font-size: 14px;
	color: #b9b2d4;
}

.rh-fs-crumbs a {
	color: #d6d1ea !important;
	text-decoration: none;
}

.rh-fs-crumbs span[aria-current] {
	color: #fff;
	font-weight: 700;
}

.rh-fs-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	border: 1px solid rgba(169, 139, 255, .55);
	border-radius: 999px;
	background: rgba(108, 28, 255, .22);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: #e9e2ff;
}

.rh-fs-pill__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #a98bff;
}

.rh-firme-sus .rh-fs-title {
	max-width: 640px;
	margin: 0;
	font-size: clamp(32px, 3.4vw, 50px);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -1.4px;
	color: #fff;
}

.rh-fs-title span {
	color: #a98bff;
}

.rh-fs-lead {
	max-width: 600px;
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: #d6d1ea;
}

/* Căutarea rapidă */
.rh-fs-search {
	display: flex;
	align-items: stretch;
	gap: 8px;
	width: 100%;
	max-width: 990px;
	margin-top: 10px;
	padding: 8px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}

.rh-fs-field {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 200px;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0 34px 0 42px;
	border: 1px solid #ebe8f3;
	border-radius: 12px;
	background: #fff;
	color: var(--rh-ink);
	cursor: pointer;
}

.rh-fs-field--q {
	flex: 2 1 340px;
	padding-right: 14px;
	cursor: text;
}

.rh-fs-field__icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	color: var(--rh-accent);
}

.rh-fs-field__chev {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--rh-muted);
	pointer-events: none;
}

.rh-firme-sus .rh-fs-field input,
.rh-firme-sus .rh-fs-field select {
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--rh-ink);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.rh-firme-sus .rh-fs-field input::placeholder {
	color: #8a87a0;
	font-weight: 500;
}

.rh-fs-field:focus-within {
	border-color: var(--rh-accent);
}

.rh-firme-sus .rh-fs-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 0 0 auto;
	height: 52px;
	padding: 0 28px;
	border: 0;
	border-radius: 12px;
	background: var(--rh-accent);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(108, 28, 255, .35);
	transition: background .15s ease;
}

.rh-firme-sus .rh-fs-submit:hover {
	background: var(--rh-accent-ink);
}

/* Căutări populare */
.rh-fs-popular {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
	font-size: 14px;
	color: #b9b2d4;
}

.rh-fs-popular span {
	margin-right: 4px;
}

.rh-fs-popular a {
	padding: 6px 13px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background .15s ease;
}

.rh-fs-popular a:hover {
	background: rgba(255, 255, 255, .18);
}

/* ---------- Caseta cu categorii ---------- */

.rh-fs-cats {
	position: relative;
	z-index: 2;
	margin-top: -34px;
}

.rh-fs-cats__box {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 6px 12px;
	padding: 18px 22px;
	border: 1px solid #ebe8f3;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 14px 36px rgba(18, 12, 38, .1);
}

.rh-fs-cat {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 8px;
	border-radius: 12px;
	color: var(--rh-ink) !important;
	text-decoration: none !important;
	transition: background .15s ease;
}

.rh-fs-cat:hover {
	background: #f6f1ff;
}

.rh-fs-cat__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 12px;
}

.rh-fs-cat__icon i {
	font-size: 19px;
	line-height: 1;
	color: #fff !important;
	background: none !important;
}

.rh-firme-sus .rh-fs-cat__icon img {
	width: 22px !important;
	height: 22px !important;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.rh-fs-cat__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.rh-fs-cat__name {
	overflow: hidden;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.rh-fs-cat__count {
	font-size: 13px;
	font-weight: 500;
	color: var(--rh-muted);
}

/* ---------- Firme în prim-plan ---------- */

.rh-fs-featured {
	padding: 40px 0 8px;
}

.rh-fs-featured__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.rh-fs-eyebrow {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: #b45309;
}

.rh-firme-sus .rh-fs-h2 {
	margin: 0;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -.6px;
	color: var(--rh-ink);
}

.rh-fs-promo-link {
	flex: 0 0 auto;
	color: var(--rh-accent-ink) !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
}

.rh-fs-promo-link:hover {
	text-decoration: underline !important;
}

.rh-fs-featured__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

/* Cardul lat */
.rh-fs-fcard {
	display: flex;
	min-height: 300px;
	overflow: hidden;
	border: 1px solid #ebe8f3;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(18, 12, 38, .08);
}

.rh-fs-fcard__media {
	position: relative;
	flex: 0 0 40%;
	display: block;
	overflow: hidden;
	background: #e9e6f2;
}

.rh-firme-sus .rh-fs-fcard__media img,
.rh-fs-fcard__empty {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	border-radius: 0 !important;
}

.rh-fs-fcard__promo {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 9px;
	border-radius: 7px;
	background: rgba(18, 12, 38, .7);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.rh-fs-fcard__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
	padding: 20px 22px;
}

.rh-fs-fcard__top {
	display: flex;
	align-items: center;
	gap: 14px;
}

.rh-firme-sus img.rh-fs-fcard__logo {
	flex: 0 0 auto;
	width: 56px !important;
	height: 56px !important;
	border: 1px solid #ebe8f3 !important;
	border-radius: 12px !important;
	background: #fff;
	object-fit: contain;
}

.rh-fs-fcard__id {
	min-width: 0;
}

.rh-fs-fcard__cat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #3a3748;
}

.rh-fs-fcard__cat span {
	width: 8px;
	height: 8px;
	border-radius: 2px;
}

.rh-firme-sus .rh-fs-fcard__name {
	margin: 2px 0 0;
	font-size: 19px;
	line-height: 1.25;
	font-weight: 800;
	color: var(--rh-ink);
}

.rh-fs-fcard__name a {
	color: inherit !important;
	text-decoration: none !important;
}

.rh-fs-fcard__name .rh-card__verified {
	display: inline-block;
	margin-left: 4px;
	vertical-align: -3px;
}

.rh-fs-fcard__tagline {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.5;
	color: var(--rh-muted);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.rh-fs-fcard__meta {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 14px;
	color: #3a3748;
}

.rh-fs-fcard__meta span {
	display: flex;
	align-items: center;
	gap: 7px;
}

.rh-fs-fcard__meta svg {
	flex: 0 0 auto;
	color: var(--rh-accent);
}

.rh-fs-fcard__actions {
	display: flex;
	gap: 10px;
	margin-top: auto;
}

.rh-fs-fcard__btn,
.rh-fs-fcard__btn2 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 44px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background .15s ease;
}

.rh-fs-fcard__btn {
	flex: 1 1 auto;
	background: var(--rh-accent);
	color: #fff !important;
}

.rh-fs-fcard__btn:hover {
	background: var(--rh-accent-ink);
}

.rh-fs-fcard__btn2 {
	flex: 0 0 auto;
	padding: 0 16px;
	background: #f1ebff;
	color: var(--rh-accent-ink) !important;
}

.rh-fs-fcard__btn2:hover {
	background: #e6dbff;
}

/* ---------- Pagina Firme: hero scund, aceeași lățime ca lista (1440px) ---------- */

.rh-firme-sus--firme .rh-fs-wrap {
	max-width: 1440px;
	padding: 0 10px;
}

.rh-fs-hero--short {
	padding: 26px 0 30px;
}

.rh-fs-hero--short .rh-fs-wrap {
	gap: 8px;
}

.rh-firme-sus .rh-fs-hero--short .rh-fs-title {
	max-width: none;
	font-size: clamp(28px, 2.6vw, 38px);
	letter-spacing: -1px;
}

.rh-firme-sus--firme .rh-fs-featured {
	padding-top: 32px;
}

/* ---------- Prima pagină: 2 firme + caseta „Firma ta nu e încă aici?” ---------- */

.rh-firme-sus--acasa .rh-fs-featured__list {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 300px;
}

.rh-fs-addcard {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 10px;
	padding: 24px 22px;
	border-radius: 20px;
	background:
		radial-gradient(circle at 90% 0%, rgba(169, 139, 255, .45) 0, rgba(169, 139, 255, 0) 50%),
		linear-gradient(160deg, #3d0aa3 0%, #1d0f4a 100%);
	color: #fff;
}

.rh-fs-addcard__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-bottom: auto;
	border-radius: 12px;
	background: rgba(255, 255, 255, .14);
}

.rh-firme-sus .rh-fs-addcard h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.25;
	color: #fff;
}

.rh-fs-addcard p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #ddd5f7;
}

.rh-fs-addcard a {
	align-self: flex-start;
	margin-top: 6px;
	padding: 10px 16px;
	border-radius: 12px;
	background: #fff;
	color: var(--rh-accent-ink) !important;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none !important;
}

/* ---------- Tabletă ---------- */

@media (max-width: 1200px) {
	.rh-fs-cats__box {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* Sub 1200px lista are bara ei de căutare + „Filtre”, deci ascundem căutarea din hero */
	.rh-fs-search,
	.rh-fs-popular {
		display: none;
	}

	.rh-fs-hero {
		padding-bottom: 60px;
	}

	.rh-fs-featured__list,
	.rh-firme-sus--acasa .rh-fs-featured__list {
		grid-template-columns: 1fr;
	}
}

/* ---------- Telefon ---------- */

@media (max-width: 767px) {
	.rh-fs-wrap {
		padding: 0 10px;
	}

	.rh-fs-hero {
		padding: 20px 0 52px;
	}

	.rh-fs-hero .rh-fs-wrap {
		gap: 10px;
	}

	.rh-fs-lead {
		font-size: 14px;
	}

	.rh-firme-sus .rh-fs-title {
		font-size: 28px;
		letter-spacing: -.7px;
	}

	.rh-fs-cats {
		margin-top: -28px;
	}

	/* Categoriile: un rând care se derulează cu degetul */
	.rh-fs-cats__box {
		display: flex;
		gap: 4px;
		padding: 8px;
		border-radius: 20px;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	.rh-fs-cats__box::-webkit-scrollbar {
		display: none;
	}

	.rh-fs-cat {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}

	.rh-fs-featured {
		padding-top: 26px;
	}

	.rh-firme-sus .rh-fs-h2 {
		font-size: 21px;
	}

	.rh-fs-promo-link {
		font-size: 13px;
	}

	/* Carusel: câte o firmă promovată, cu degetul */
	.rh-fs-featured__list {
		display: flex;
		gap: 12px;
		margin: 0 -10px;
		padding: 0 10px 6px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 10px;
		scrollbar-width: none;
	}

	.rh-fs-featured__list::-webkit-scrollbar {
		display: none;
	}

	.rh-fs-fcard {
		flex: 0 0 88%;
		flex-direction: column;
		min-height: 0;
		scroll-snap-align: start;
	}

	.rh-fs-fcard:only-child {
		flex-basis: 100%;
	}

	.rh-fs-addcard {
		flex: 0 0 88%;
		scroll-snap-align: start;
	}

	.rh-firme-sus--firme .rh-fs-wrap {
		padding: 0 10px;
	}

	.rh-fs-fcard__media {
		flex: 0 0 auto;
		aspect-ratio: 16 / 9;
	}

	.rh-fs-fcard__body {
		padding: 14px 16px 16px;
	}

	.rh-firme-sus .rh-fs-fcard__name {
		font-size: 16px;
	}
}

/* Prima pagină: titlul e mai lung, are nevoie de mai mult loc */
.rh-firme-sus.rh-firme-sus--acasa .rh-fs-title {
	max-width: 900px;
}

/* Prima pagină: „!” albastru ca în logo, rândul cu puncte albastre (ca hero-ul de acum) */
.rh-firme-sus .rh-fs-title .rh-fs-excl {
	font-weight: inherit;
	color: #3b6cff;
}

.rh-firme-sus .rh-fs-lead--list {
	max-width: none;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	color: #fff;
}

.rh-fs-lead--list .rh-fs-dot {
	margin: 0 7px;
	font-style: normal;
	font-weight: 800;
	color: #3b6cff;
}

/* Căutarea temei (Firme / Evenimente / Jobs) în hero */
.rh-fs-themesearch {
	width: 100%;
	max-width: 1100px;
	margin-top: 6px;
}

.rh-fs-themesearch .featured-search {
	margin: 0 !important;
}

@media (max-width: 1200px) {
	/* Pe prima pagină căutarea rămâne și pe telefon (acolo nu e lista de firme) */
	.rh-firme-sus--acasa .rh-fs-popular {
		display: flex;
	}
}

@media (max-width: 767px) {
	.rh-firme-sus .rh-fs-lead--list {
		font-size: 15px;
	}
}

/* Prima pagină: margini laterale de 10px și 40px sus/jos la „Firme în prim-plan” */
.rh-firme-sus.rh-firme-sus--acasa .rh-fs-wrap {
	padding: 0 10px;
}

.rh-firme-sus.rh-firme-sus--acasa .rh-fs-featured {
	padding: 40px 0;
}

/* Pagina Firme: 3 firme în prim-plan */
.rh-firme-sus--firme .rh-fs-featured__list {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Pe ecrane mai înguste, cele 3 carduri au poza deasupra, ca să nu se strângă textul */
@media (min-width: 1201px) and (max-width: 1599px) {
	.rh-firme-sus--firme .rh-fs-fcard {
		flex-direction: column;
		min-height: 0;
	}

	.rh-firme-sus--firme .rh-fs-fcard__media {
		flex: 0 0 auto;
		aspect-ratio: 2 / 1;
	}
}

@media (max-width: 1200px) {
	.rh-firme-sus--firme .rh-fs-featured__list {
		grid-template-columns: 1fr;
	}
}

/* ---------- Pagina de categorie / județ a firmelor ---------- */

.rh-term-head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.rh-term-head__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	border-radius: 12px;
}

.rh-term-head__icon i {
	font-size: 26px;
	line-height: 1;
	color: #fff !important;
	background: none !important;
}

.rh-firme-sus .rh-term-head__icon img {
	width: 28px !important;
	height: 28px !important;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.rh-term-desc {
	max-width: 900px;
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #d6d1ea;
}

/* Bara „Ce căutați? Firme / Evenimente / Jobs” nu mai e nevoie pe pagina de categorie */
body:has(.rh-firme-sus--term) .cts-explore .explore-head {
	display: none !important;
}

@media (max-width: 767px) {
	.rh-term-head__icon {
		width: 42px;
		height: 42px;
	}

	.rh-term-desc {
		font-size: 14px;
	}
}
