/**
 * HandyHub Liberia — Shared Components
 *
 * Buttons, header/nav, mobile menu, footer, badges, and the FAQ accordion —
 * anything used on more than one template lives here so it's styled once.
 * Page-specific layout (homepage hero, the Post a Job wizard, the
 * Marketplace grid, etc.) lives in assets/css/page-*.css and is enqueued
 * only on the template that needs it — see functions.php.
 */

.eyebrow {
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: var(--hh-radius-s);
	font-weight: 700;
	font-size: 15px;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}

.btn:active {
	transform: translateY(1px);
}

.btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.btn-primary {
	background: var(--hh-gold);
	color: #23180A;
}

.btn-primary:hover:not(:disabled) {
	background: #FFB640;
	box-shadow: 0 6px 18px -6px rgba(245, 166, 35, 0.55);
}

.btn-ghost-navy {
	background: transparent;
	color: var(--hh-on-navy);
	border-color: rgba(237, 241, 251, 0.35);
}

.btn-ghost-navy:hover {
	background: rgba(237, 241, 251, 0.1);
	border-color: rgba(237, 241, 251, 0.6);
}

.btn-outline {
	background: transparent;
	color: var(--hh-blue);
	border-color: var(--hh-blue);
}

.btn-outline:hover:not(:disabled) {
	background: var(--hh-blue);
	color: #fff;
}

.btn-whatsapp {
	background: var(--hh-green);
	color: #fff;
}

.btn-whatsapp:hover {
	background: #23B36B;
	box-shadow: 0 6px 18px -6px rgba(30, 158, 90, 0.5);
}

.btn-danger-outline {
	background: transparent;
	color: var(--hh-red);
	border-color: var(--hh-red);
}

.btn-danger-outline:hover {
	background: var(--hh-red);
	color: #fff;
}

.btn-text {
	background: none;
	border: none;
	padding: 4px 0;
	font-weight: 700;
	color: var(--hh-blue);
}

.btn-text:hover {
	text-decoration: underline;
}

.btn-block {
	width: 100%;
}

.btn-sm {
	padding: 9px 14px;
	font-size: 13px;
}

/* ---------- Header / primary nav ---------- */

header.site {
	background: var(--hh-blue-ink);
	color: var(--hh-on-navy);
	position: sticky;
	top: 0;
	z-index: 40;
}

.nav-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 0;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--hh-font-display);
	font-weight: 700;
	font-size: 19px;
	color: #fff;
}

.brand-mark {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: linear-gradient(155deg, var(--hh-gold), #E08A00);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.brand-mark svg {
	width: 19px;
	height: 19px;
	color: var(--hh-blue-ink);
}

nav.primary {
	display: flex;
	align-items: center;
	gap: 30px;
}

nav.primary a {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--hh-on-navy-soft);
	transition: color 0.15s ease;
}

nav.primary a:hover,
nav.primary a.active,
nav.primary a[aria-current="page"] {
	color: #fff;
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nav-actions .btn-ghost-navy {
	padding: 10px 16px;
	font-size: 14px;
}

.nav-actions .btn-primary {
	padding: 10px 18px;
	font-size: 14px;
}

.nav-toggle {
	display: none;
	background: none;
	border: 1.5px solid rgba(237, 241, 251, 0.3);
	border-radius: 8px;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
}

.nav-toggle svg {
	width: 20px;
	height: 20px;
	color: #fff;
}

@media (max-width: 900px) {
	nav.primary,
	.nav-actions .btn-ghost-navy {
		display: none;
	}

	.nav-toggle {
		display: flex;
	}
}

/* ---------- Mobile menu ---------- */

.mobile-menu {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 60;
	background: var(--hh-blue-ink);
	padding: 20px 28px;
	flex-direction: column;
}

.mobile-menu.is-open {
	display: flex;
}

.mobile-menu-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 36px;
}

.mobile-menu nav {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.mobile-menu nav a {
	font-family: var(--hh-font-display);
	font-size: 22px;
	font-weight: 600;
	color: var(--hh-on-navy);
}

.mobile-menu .actions {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 32px;
}

/* ---------- Breadcrumb ---------- */

.crumb {
	background: var(--hh-cloud);
	padding: 12px 0;
}

.crumb .wrap,
.crumb .narrow-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--hh-ink-soft);
	flex-wrap: wrap;
}

.crumb a {
	font-weight: 600;
}

.crumb a:hover {
	color: var(--hh-blue);
}

.crumb svg {
	width: 12px;
	height: 12px;
}

/* ---------- Badges / pills ---------- */

.badge-verified {
	color: var(--hh-green);
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 13px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.pill .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.pill-blue {
	background: color-mix(in srgb, var(--hh-blue) 14%, transparent);
	color: var(--hh-blue);
}

.pill-gold {
	background: color-mix(in srgb, var(--hh-gold) 20%, transparent);
	color: #8A5C00;
}

.pill-green {
	background: color-mix(in srgb, var(--hh-green) 15%, transparent);
	color: var(--hh-green);
}

.pill-red {
	background: color-mix(in srgb, var(--hh-red) 14%, transparent);
	color: var(--hh-red);
}

.pill-neutral {
	background: var(--hh-cloud);
	color: var(--hh-ink-soft);
}

/* ---------- Professional card (shared: Homepage, Category, Job Detail quotes) ---------- */

.pro-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

@media (max-width: 900px) {
	.pro-grid {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin: 0 auto;
	}
}

.pro-card {
	background: var(--hh-surface-raised);
	border: 1.5px solid var(--hh-line);
	border-radius: var(--hh-radius-m);
	padding: 24px;
	box-shadow: var(--hh-shadow-card);
}

.pro-top {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}

.pro-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--hh-font-display);
	font-weight: 700;
	font-size: 16px;
	color: #fff;
	flex-shrink: 0;
	overflow: hidden;
}

.pro-name-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.pro-name {
	font-weight: 700;
	font-size: 15.5px;
}

.badge-verified {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.pro-cat {
	font-size: 13px;
	color: var(--hh-ink-soft);
	margin-top: 2px;
}

.pro-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 13.5px;
	color: var(--hh-ink-soft);
	margin-bottom: 18px;
	font-variant-numeric: tabular-nums;
}

.pro-rating {
	display: flex;
	align-items: center;
	gap: 5px;
	color: var(--hh-ink);
	font-weight: 700;
}

.pro-rating .star-row svg {
	width: 14px;
	height: 14px;
	color: var(--hh-gold);
}

/* ---------- Honest empty state (never replaced with fabricated cards) ---------- */

.empty-state {
	text-align: center;
	font-size: 15px;
	color: var(--hh-ink-soft);
	padding: 30px 20px;
	border: 1.5px dashed var(--hh-line);
	border-radius: var(--hh-radius-m);
	grid-column: 1 / -1;
}

.empty-state a {
	color: var(--hh-blue);
	font-weight: 700;
}

/* ---------- FAQ accordion (shared: Pricing, FAQ, How It Works, Category pages) ---------- */

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.faq-item {
	border: 1.5px solid var(--hh-line);
	border-radius: var(--hh-radius-m);
	background: var(--hh-surface-raised);
	overflow: hidden;
}

.faq-item summary {
	list-style: none;
	cursor: pointer;
	padding: 17px 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-weight: 700;
	font-size: 15px;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-icon {
	width: 21px;
	height: 21px;
	border-radius: 50%;
	border: 1.5px solid var(--hh-line);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	position: relative;
}

.faq-icon::before,
.faq-icon::after {
	content: "";
	position: absolute;
	background: var(--hh-blue);
	transition: transform 0.2s ease;
}

.faq-icon::before {
	width: 9px;
	height: 1.6px;
}

.faq-icon::after {
	width: 1.6px;
	height: 9px;
}

details[open] .faq-icon::after {
	transform: rotate(90deg) scaleX(0);
}

.faq-body {
	padding: 0 22px 18px;
	color: var(--hh-ink-soft);
	font-size: 14.5px;
}

/* ---------- Footer ---------- */

footer.site {
	background: var(--hh-blue-ink);
	color: var(--hh-on-navy-soft);
	padding: 64px 0 28px;
}

.foot-grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(4, 1fr);
	gap: 32px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(237, 241, 251, 0.14);
}

.foot-brand .brand {
	color: #fff;
	margin-bottom: 12px;
}

.foot-brand p {
	font-size: 14px;
	max-width: 240px;
}

.foot-col h4 {
	font-family: var(--hh-font-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--hh-on-navy);
	margin-bottom: 16px;
}

.foot-col ul {
	display: flex;
	flex-direction: column;
	gap: 11px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.foot-col a {
	font-size: 14px;
}

.foot-col a:hover {
	color: #fff;
}

.foot-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 24px;
	font-size: 13px;
	gap: 16px;
	flex-wrap: wrap;
}

.foot-wa {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--hh-green);
	font-weight: 700;
}

.foot-wa svg {
	width: 16px;
	height: 16px;
}

@media (max-width: 900px) {
	.foot-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.foot-grid {
		grid-template-columns: 1fr;
	}

	.foot-bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---------- Restrained page header band (used by Category, Pricing, FAQ, Trust & Safety, About, How It Works, Post a Job, Marketplace, Product Detail, Job Detail) ---------- */

.page-head {
	background: linear-gradient(180deg, var(--hh-blue-ink) 0%, #0C3282 100%);
	color: var(--hh-on-navy);
	padding: 56px 0 46px;
	text-align: center;
}

.page-head .eyebrow {
	color: var(--hh-gold);
}

.page-head h1 {
	color: #fff;
	font-size: clamp(30px, 4.6vw, 42px);
	margin-top: 14px;
}

.page-head p.sub {
	margin-top: 14px;
	font-size: 17px;
	color: var(--hh-on-navy-soft);
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Reveal-on-scroll (progressive enhancement; content is visible without JS) ---------- */

.reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
	opacity: 1;
	transform: translateY(0);
}

.no-js .reveal {
	opacity: 1;
	transform: none;
}
