/**
 * MeetingHive-inspired homepage and chrome (ListingHive free + HivePress).
 * Reference: https://meetinghive.hivepress.io/
 */

:root {
	--mh-cream: #f9f4f0;
	--mh-yellow: #ffd15c;
	--mh-yellow-hover: #ffc107;
	--mh-ink: #0f1727;
	--mh-muted: rgba(15, 23, 39, 0.65);
	--mh-border: rgba(7, 36, 86, 0.08);
	--mh-radius-lg: 24px;
	--mh-radius-pill: 999px;
	--mh-cat-1: #fce8ef;
	--mh-cat-2: #fff4d6;
	--mh-cat-3: #e3f4ff;
}

body {
	color: var(--mh-muted);
}

a:hover,
a:focus {
	color: #1db1fc;
}

/* —— Header —— */
.site-header {
	background-color: #fff;
	box-shadow: none;
}

.header-navbar {
	padding: 1rem 2rem;
	border-bottom: 1px solid var(--mh-border);
}

/* Home: transparent header over hero */
.home.directory-mh-home .site-container {
	position: relative;
}

.home.directory-mh-home .site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: transparent !important;
	box-shadow: none;
}

.home.directory-mh-home .header-navbar {
	background: transparent;
	border-bottom: none;
}

.header-logo__name {
	color: rgba(15, 23, 39, 0.9);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.header-logo__description {
	color: rgba(15, 23, 39, 0.45);
	font-size: 0.8125rem;
}

.header-navbar__menu > ul > li > a {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(15, 23, 39, 0.75);
	padding: 0.5rem 1rem;
	border-radius: var(--mh-radius-pill);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.header-navbar__menu > ul > li > a:hover {
	color: var(--mh-ink);
	background-color: rgba(252, 232, 239, 0.6);
}

.header-navbar__menu > ul > li.current-menu-item > a,
.header-navbar__menu > ul > li.current_page_item > a {
	color: var(--mh-ink);
	background-color: #fce8ef;
}

.header-navbar__actions .hp-menu__item--listing-submit.button--primary {
	background-color: var(--mh-yellow) !important;
	border-color: var(--mh-yellow) !important;
	color: var(--mh-ink) !important;
	border-radius: var(--mh-radius-pill);
	padding: 0.65rem 1.25rem;
	font-weight: 600;
	font-size: 0.8125rem;
	box-shadow: 0 2px 8px rgba(255, 193, 7, 0.35);
}

.header-navbar__actions .hp-menu__item--listing-submit.button--primary:hover {
	background-color: var(--mh-yellow-hover) !important;
	border-color: var(--mh-yellow-hover) !important;
}

/* —— Homepage layout (neutralize HiveTheme .alignfull shift) —— */
.home.directory-mh-home .site-content {
	padding-top: 0;
}

.home.directory-mh-home .site-content > .container {
	max-width: 100%;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.home.directory-mh-home .page__text > .alignfull,
.home.directory-mh-home .page__text > .wp-block-group.alignfull {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	left: auto !important;
	right: auto !important;
	position: relative !important;
}

.home.directory-mh-home .directory-section {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 2rem;
	padding-right: 2rem;
}

/* —— Homepage hero —— */
.home .directory-hero {
	position: relative;
	background-color: var(--mh-cream);
	padding: 3.5rem 2rem 3rem;
	margin-bottom: 0;
	overflow: hidden;
	text-align: center;
	box-sizing: border-box;
}

.home.directory-mh-home .directory-hero {
	padding-top: 6.5rem;
}

.home .directory-hero .wp-block-heading,
.home .directory-hero p,
.home .directory-hero .hp-form--listing-search,
.home .directory-hero .directory-hero-tags {
	margin-left: auto;
	margin-right: auto;
}

.home .directory-hero::before,
.home .directory-hero::after {
	content: '';
	position: absolute;
	pointer-events: none;
	opacity: 0.35;
}

.home .directory-hero::before {
	width: 120px;
	height: 120px;
	top: 12%;
	left: 8%;
	background: linear-gradient(135deg, #ffd15c 0%, transparent 70%);
	transform: rotate(45deg);
	border-radius: 8px;
}

.home .directory-hero::after {
	width: 0;
	height: 0;
	right: 12%;
	top: 18%;
	border-left: 50px solid transparent;
	border-right: 50px solid transparent;
	border-bottom: 86px solid rgba(21, 205, 114, 0.25);
}

.home .directory-hero > * {
	position: relative;
	z-index: 1;
}

.home .directory-hero h1 {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.03em;
	color: rgba(15, 23, 39, 0.92);
	margin-bottom: 1rem;
	max-width: 44rem;
	width: 100%;
	text-align: center;
}

.home .directory-hero > .wp-block-paragraph,
.home .directory-hero > p.has-text-align-center {
	font-size: 1.0625rem;
	line-height: 1.6;
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 2rem;
	color: var(--mh-muted);
}

/* Search pill */
.home .directory-hero .hp-form--listing-search {
	max-width: 52rem;
	width: 100%;
	margin: 0 auto 1.5rem;
	border: none;
	border-radius: var(--mh-radius-pill);
	box-shadow: 0 8px 32px rgba(15, 23, 39, 0.08);
	padding: 0.5rem 0.5rem 0.5rem 1.25rem;
	background: #fff;
	justify-content: center;
}

/* Keywords only on home hero (hide optional category dropdown) */
.home .directory-hero .hp-form__field:has(select[name='_category']),
.home .directory-hero .hp-form__field:has([name='_category']) {
	display: none !important;
}

.home .directory-hero .hp-form--listing-search .hp-form__field:not(:last-child) {
	border-right: 1px solid var(--mh-border);
}

.home .directory-hero .hp-form--listing-search .hp-form__field input[type='search'],
.home .directory-hero .hp-form--listing-search .hp-form__field input[type='text'] {
	font-size: 1rem;
	height: 3.25rem;
}

.home .directory-hero .hp-form--listing-search .hp-form__button {
	height: 3.25rem;
	min-width: 3.25rem;
	width: 3.25rem;
	padding: 0;
	border-radius: 50%;
	background-color: var(--mh-yellow) !important;
	border-color: var(--mh-yellow) !important;
	color: var(--mh-ink) !important;
	font-size: 0;
	overflow: hidden;
}

.home .directory-hero .hp-form--listing-search .hp-form__button::before {
	content: '\f002';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	font-size: 1.125rem;
	line-height: 3.25rem;
	display: block;
}

.home .directory-hero-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0 auto;
	max-width: 40rem;
}

.home .directory-hero-tags a {
	display: inline-block;
	padding: 0.35rem 1rem;
	font-size: 0.8125rem;
	color: rgba(15, 23, 39, 0.55);
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid var(--mh-border);
	border-radius: var(--mh-radius-pill);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.home .directory-hero-tags a:hover {
	background: #fff;
	color: var(--mh-ink);
}

/* Hide duplicate CTA/links in menu */
.header-navbar__menu > ul > li.menu-item a[href*='submit-listing'],
.header-navbar__menu > ul > li.menu-item a[href*='listing_submit'],
.header-navbar__menu > ul > li.menu-item a[href*='newsletter'] {
	display: none !important;
}

/* —— Category band (MeetingHive cards) —— */
.home .directory-categories-band {
	background: #fff;
	padding: 2.5rem 2rem 3.5rem;
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.home .directory-categories-band .hp-row {
	margin-left: -0.75rem;
	margin-right: -0.75rem;
}

.home .directory-categories-band .hp-listing-categories {
	margin-top: 0;
}

.home .directory-categories-band .hp-listing-category--view-block {
	display: flex;
	flex-direction: column;
	min-height: 260px;
	border: none;
	border-radius: 20px;
	padding: 1.75rem;
	color: var(--mh-ink) !important;
	transform: none !important;
	box-shadow: 0 4px 24px rgba(15, 23, 39, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home .directory-categories-band .hp-listing-category--view-block .hp-listing-category__content {
	position: static !important;
	left: auto !important;
	bottom: auto !important;
	padding: 0 !important;
}

.home .directory-categories-band .hp-listing-category--view-block .hp-listing-category__item-count {
	position: static !important;
	left: auto !important;
	top: auto !important;
	z-index: auto !important;
}

.home .directory-categories-band .hp-listing-category--view-block:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 32px rgba(15, 23, 39, 0.1);
}

.home .directory-categories-band .hp-grid__item:nth-child(1) .hp-listing-category--view-block {
	background: var(--mh-cat-1);
}

.home .directory-categories-band .hp-grid__item:nth-child(2) .hp-listing-category--view-block {
	background: var(--mh-cat-2);
}

.home .directory-categories-band .hp-grid__item:nth-child(3) .hp-listing-category--view-block {
	background: var(--mh-cat-3);
}

.home .directory-categories-band .hp-listing-category__header {
	position: static;
	margin-bottom: 1rem;
}

.home .directory-categories-band .hp-listing-category__image {
	position: static;
	width: auto;
	flex-shrink: 0;
}

.home .directory-categories-band .hp-listing-category__image a {
	position: static;
	display: inline-block;
}

.home .directory-categories-band .hp-listing-category__image a::after {
	display: none !important;
	content: none !important;
}

.home .directory-categories-band .hp-listing-category__image img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(15, 23, 39, 0.12);
}

.home .directory-categories-band .hp-listing-category__content {
	position: static;
	padding: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.home .directory-categories-band .hp-listing-category__content a,
.home .directory-categories-band .hp-listing-category__content h4,
.home .directory-categories-band .hp-listing-category__name {
	color: var(--mh-ink);
}

.home .directory-categories-band .hp-listing-category__name {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.home .directory-categories-band .hp-listing-category__description {
	font-size: 0.875rem;
	line-height: 1.5;
	color: rgba(15, 23, 39, 0.55);
	margin-bottom: auto;
}

.home .directory-categories-band .hp-listing-category__details--primary {
	margin-top: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.home .directory-categories-band .hp-listing-category__count {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	background: rgba(255, 255, 255, 0.65);
	border-radius: var(--mh-radius-pill);
	color: rgba(15, 23, 39, 0.6);
}

.home .directory-categories-band .hp-listing-category--view-block::after {
	content: '\f061';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	position: absolute;
	right: 1.75rem;
	bottom: 1.75rem;
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	background: #fff;
	border-radius: 50%;
	color: var(--mh-ink);
	box-shadow: 0 2px 8px rgba(15, 23, 39, 0.08);
}

/* —— Lower sections —— */
.home .directory-section {
	padding: 2rem 0 3rem;
}

.home .directory-section h2 {
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: rgba(15, 23, 39, 0.9);
	margin-bottom: 1.5rem;
}

.home .directory-section--muted {
	background: #fafbfc;
	border-top: 1px solid var(--mh-border);
}

.home .hp-listing--view-block {
	border-radius: 16px;
	border-color: var(--mh-border);
	overflow: hidden;
}

.home .hp-listing--view-block.hp-listing--featured {
	border-color: var(--mh-yellow);
}

.home .wp-block-button__link {
	border-radius: var(--mh-radius-pill);
	padding: 0.75rem 1.5rem;
	font-weight: 600;
}

.home .wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 2px;
}

/* Wide forms elsewhere */
.hp-form--wide.hp-form--primary {
	border: 1px solid var(--mh-border);
	box-shadow: 0 2px 4px 0 rgba(7, 36, 86, 0.075);
}

@media only screen and (max-width: 47.99em) {
	.home.directory-mh-home .directory-hero {
		padding: 5.5rem 1rem 2rem;
	}

	.home .directory-hero .hp-form--listing-search {
		border-radius: 20px;
		padding: 0.75rem;
	}

	.home .directory-hero .hp-form--listing-search .hp-form__field:not(:last-child) {
		border-right: none;
		border-bottom: 1px solid var(--mh-border);
	}

	.home .directory-hero .hp-form--listing-search .hp-form__button {
		width: 100%;
		border-radius: var(--mh-radius-pill);
		font-size: 1rem;
	}

	.home .directory-hero .hp-form--listing-search .hp-form__button::before {
		content: none;
	}
}
