/**
 * Inner Page Hero + Base Page Content Styles
 */

/* ─── Container (base layout) ─────────────────────────────────────────── */

.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

/* ─── Inner Hero Base ─────────────────────────────────────────────────── */

.inner-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.inner-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	/* padding-bottom: 4rem; */
}

/* ─── Dark Variant ────────────────────────────────────────────────────── */

.inner-hero--dark {
	min-height: clamp(300px, 30vw, 380px);
	color: var(--color-text-on-dark);
	text-align: center;
}

/* Generic dark hero (no height_class): center content vertically, push 2rem from top */
.inner-hero--dark:not(.inner-hero--about):not(.inner-hero--contact):not(.inner-hero--single-cpt) {
	align-items: center;
}

.inner-hero--dark:not(.inner-hero--about):not(.inner-hero--contact):not(.inner-hero--single-cpt) .inner-hero__content {
	padding-top: 6rem;
}

.inner-hero--dark .inner-hero__title {
	color: var(--color-text-on-dark);
}

/* Gradient base layer — always present in dark variant */
.inner-hero__gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		var(--color-brand) 0%,
		var(--color-brand-light) 100%
	);
	z-index: 0;
	pointer-events: none;
}

/* ─── Height Variants (exact pixel values from reference) ───────────────── */

.inner-hero--about {
	height: 409px;
}

.inner-hero--contact {
	height: 460px;
}

@media (max-width: 768px) {
	.inner-hero--about,
	.inner-hero--contact {
		height: auto;
		min-height: clamp(280px, 50vw, 380px);
	}
}

.inner-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.inner-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 1;
	opacity: 0.2;
}

/* ─── Light Variant ───────────────────────────────────────────────────── */

.inner-hero--light {
	background: var(--color-bg-alt);
	color: var(--color-text);
	padding: calc(clamp(6rem, 10vw, 10rem) - 5rem) 0 clamp(3rem, 5vw, 5rem);
	text-align: center;
}

.inner-hero--light .inner-hero__title {
	color: var(--color-text);
}

/* ─── Archive Light Card Hero ─────────────────────────────────────────── */

.inner-hero--light-card {
	position: relative;
	background: transparent;
	padding: clamp(8rem, 4vw, 5rem) 0 clamp(2rem, 5vw, 5rem);
	overflow: hidden;
}

.inner-hero--light-card .inner-hero__blur {
	position: absolute;
	top: -6rem;
	right: -6rem;
	width: 16rem;
	height: 16rem;
	background: var(--color-brand);
	opacity: 0.05;
	border-radius: 50%;
	filter: blur(64px);
	pointer-events: none;
	z-index: 0;
}

.inner-hero--light-card .inner-hero__content {
	position: relative;
	z-index: 1;
	background: var(--color-surface-container-low);
	border-radius: var(--radius-xl, 1.5rem);
	padding: clamp(3rem, 5vw, 5rem);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
}

@media (max-width: 768px) {
	.inner-hero--light-card .inner-hero__content {
		width: 95%;
		margin: 0 auto;
	}
}

.inner-hero--light-card .inner-hero__content--left .breadcrumb {
	justify-content: flex-start;
	margin-bottom: 0.75rem;
}

.inner-hero--light-card .inner-hero__title {
	color: var(--color-on-surface);
	margin-bottom: 1.5rem;
	max-width: 56rem;
	text-align: start;
}

.inner-hero--light-card .breadcrumb {
	color: var(--color-on-surface-variant);
}

.inner-hero--light-card .breadcrumb a {
	color: inherit;
	opacity: 0.9;
}

.inner-hero--light-card .breadcrumb a:hover {
	opacity: 1;
	text-decoration: underline;
}

/* ─── Title ────────────────────────────────────────────────────────────── */

.inner-hero__title {
	font-size: clamp(2.5rem, 5vw, 3.75rem);
	font-weight: 900;
	line-height: var(--lh-heading);
	margin-bottom: 1rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
	max-width: 100%;
}

.inner-hero--dark .inner-hero__title {
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ─── Breadcrumb (Yoast Style) ─────────────────────────────────────────── */

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	font-size: var(--fs-small);
	font-weight: 400;
	margin-top: 1rem;
	color: inherit;
}

.breadcrumb ol,
.breadcrumb ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
}

.breadcrumb li {
	display: flex;
	align-items: center;
}

.breadcrumb__item {
	/* flex container on li handles layout; no display needed here */
}

.breadcrumb__sep {
	font-size: 1.1em;
	opacity: 0.6;
	flex-shrink: 0;
	line-height: 1;
}

.inner-hero--dark .breadcrumb {
	color: rgba(255, 255, 255, 0.9);
}

.breadcrumb__link,
.breadcrumb a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease, text-decoration 0.2s ease;
}

.breadcrumb__link:hover,
.breadcrumb a:hover {
	text-decoration: underline;
}

.inner-hero--dark .breadcrumb__link,
.inner-hero--dark .breadcrumb a {
	color: rgba(255, 255, 255, 0.9);
}

.inner-hero--dark .breadcrumb__link:hover,
.inner-hero--dark .breadcrumb a:hover {
	color: var(--color-text-on-dark);
}

.breadcrumb__current {
	font-weight: 600;
}

.inner-hero--dark .breadcrumb__current {
	color: var(--color-text-on-dark);
}

/* ─── Rank Math Breadcrumb Overrides ─────────────────────────────────── */

.breadcrumb .rank-math-breadcrumb .rank-math-breadcrumb-link,
.breadcrumb .rank-math-breadcrumb a {
	color: inherit !important;
}

.breadcrumb .rank-math-breadcrumb .rank-math-breadcrumb-link:hover,
.breadcrumb .rank-math-breadcrumb a:hover {
	text-decoration: underline;
}

.inner-hero--dark .rank-math-breadcrumb a {
	color: rgba(255, 255, 255, 0.9) !important;
}

.inner-hero--dark .rank-math-breadcrumb a:hover {
	color: var(--color-text-on-dark) !important;
}

/* ─── Page Content ────────────────────────────────────────────────────── */

.page-content {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: var(--section-padding) var(--container-padding);
}

.page-content--narrow {
	max-width: 800px;
}

/* ─── Left-aligned hero variant ─────────────────────────────────────── */

.inner-hero__content--left {
	text-align: start;
}

.inner-hero--dark.inner-hero--left-aligned {
	align-items: center;
}

.inner-hero--dark.inner-hero--left-aligned .inner-hero__content {
	padding-top: clamp(8rem, 12vw, 7rem);
	padding-bottom: 6rem;
}

.inner-hero--single-cpt {
	min-height: 0;
	align-items: flex-start;
}

.inner-hero__content--left .breadcrumb {
	justify-content: flex-start;
	margin-bottom: 0.75rem;
}

.inner-hero__content--left .inner-hero__title {
	text-align: start;
}

.inner-hero__subtitle {
	font-size: var(--fs-body);
	font-weight: 400;
	line-height: var(--lh-body);
	opacity: 0.9;
	margin-top: 1rem;
	max-width: 640px;
}

/* ─── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 768px) {
	.inner-hero--dark {
		min-height: clamp(300px, 50vw, 380px);
	}

	.inner-hero__title {
		font-size: clamp(2rem, 6vw, 2.5rem);
	}

	.breadcrumb {
		font-size: var(--fs-xs);
	}
}

/* ─── Desktop: center-aligned dark hero (archive pages) ─────────────────── */
/* Single/left-aligned pages use inner-hero--left-aligned which sets         */
/* align-items: center, so they are not affected.                            */
@media (min-width: 769px) {
	.inner-hero--dark:not(.inner-hero--left-aligned) {
		align-items: center;
	}

	.inner-hero--dark:not(.inner-hero--left-aligned) .inner-hero__content {
		padding-bottom: 2rem;
	}
}

@media (max-width: 480px) {
	.inner-hero--dark:not(.inner-hero--single-cpt) {
		height: clamp(200px, 35vw, 280px);
	}

	.inner-hero__title {
		font-size: clamp(1.75rem, 5vw, 2rem);
	}
}

/* ─── Contact / Booking Page Layout ────────────────────────────────────── */

.contact-section,
.booking-section {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: 3rem;
	align-items: start;
}

@media (max-width: 1024px) {
	.contact-section,
	.booking-section {
		grid-template-columns: 1fr;
	}
}

/* ─── Social Row ───────────────────────────────────────────────────────── */

.social-row-section {
	padding: 4rem 0;
	background: var(--color-surface-container-low);
}

.social-row__container {
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.5rem;
	text-align: center;
}

@media (min-width: 768px) {
	.social-row__container {
		padding: 0 3rem;
	}
}

.social-row__heading {
	font-size: var(--fs-h3);
	font-weight: 700;
	color: var(--color-on-surface-variant);
	margin-bottom: 2.5rem;
}

.social-row__pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
}

.social-pill {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	background: white;
	padding: 1rem 2rem;
	border-radius: 999px;
	box-shadow: var(--shadow-sm);
	border: 1px solid rgba(var(--color-outline-variant-rgb, 190, 200, 204), 0.2);
	text-decoration: none;
	transition: box-shadow 0.2s, transform 0.2s;
}

.social-pill:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.social-pill__icon {
	color: var(--color-brand);
	transition: transform 0.2s;
}

.social-pill:hover .social-pill__icon {
	transform: scale(1.1);
}

.social-pill__label {
	font-weight: 700;
	color: var(--color-on-surface);
}

/* ─── 404 Error Page ─────────────────────────────────────────────────── */

.error-404 {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 200px);
	padding: 4rem 1.5rem;
}

.error-404-container {
	text-align: center;
	max-width: 600px;
	width: 100%;
}

.error-404__code {
	font-size: clamp(6rem, 20vw, 10rem);
	font-weight: 900;
	line-height: 1;
	color: var(--color-bg-alt);
	text-shadow: 2px 2px 0 var(--color-brand);
	margin-bottom: 1rem;
}

.error-404__title {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 0.75rem;
}

.error-404__subtitle {
	color: var(--color-text-light);
	margin-bottom: 2.5rem;
	font-size: 1rem;
	line-height: 1.6;
}

.error-404__search {
	display: flex;
	gap: 0;
	max-width: 480px;
	margin: 0 auto 1.5rem;
	border-radius: 999px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(190, 200, 204, 0.3);
}

.error-404__search-input {
	flex: 1;
	padding: 0.875rem 1.25rem;
	border: none;
	background: var(--color-surface-lowest);
	font-size: 1rem;
	color: var(--color-text);
	font-family: inherit;
	direction: rtl;
	outline: none;
}

.error-404__search-input:focus {
	box-shadow: inset 0 0 0 2px var(--color-brand);
}

.error-404__search-btn {
	padding: 0.875rem 1.25rem;
	background: var(--color-brand);
	color: var(--color-text-on-dark);
	border: none;
	cursor: pointer;
	font-size: 1rem;
	transition: background 0.2s ease;
}

.error-404__search-btn:hover {
	background: var(--color-brand-dark);
}

.error-404__home-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.875rem 2rem;
	background: transparent;
	color: var(--color-brand);
	border: 2px solid var(--color-brand);
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.error-404__home-btn:hover {
	background: var(--color-brand);
	color: var(--color-text-on-dark);
}

.error-404__home-btn:focus-visible {
	outline: 2px solid var(--color-brand);
	outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHARED CATEGORY FILTER COMPONENT
   Used by blog archive and services archive — one component, unified design.
   ═══════════════════════════════════════════════════════════════════════════ */

.category-filter {
	padding: 2rem 0;
}

.category-filter__row {
	display: flex;
	overflow-x: auto;
	padding-bottom: 1rem;
	margin-left: -0.5rem;
	margin-right: -0.5rem;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.category-filter__row::-webkit-scrollbar {
	display: none;
}

.category-filter-pills {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.category-filter-pill {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	padding: 0.75rem 2rem;
	border-radius: var(--radius-full, 999px);
	font-weight: 600;
	font-family: var(--font-primary);
	font-size: var(--fs-small, 0.875rem);
	text-decoration: none;
	transition: all 0.3s var(--ease-out, ease);
	background: var(--color-surface-container-lowest);
	color: var(--color-secondary);
	border: 1px solid transparent;
	cursor: pointer;
}

.category-filter-pill:hover {
	background: var(--color-secondary-container);
	color: var(--color-secondary);
}

.category-filter-pill--active {
	background: var(--color-primary);
	color: var(--color-on-primary);
	font-weight: 700;
	box-shadow: 0 4px 15px rgba(var(--color-brand-dark-rgb), 0.2);
}

.category-filter-pill--active:hover {
	background: var(--color-primary-container);
	color: var(--color-on-primary);
}

@media (max-width: 640px) {
	.category-filter__row {
		margin-left: 0;
		margin-right: 0;
		padding-left: var(--container-padding);
		padding-right: var(--container-padding);
	}

	.category-filter-pills {
		gap: 0.5rem;
		flex-wrap: nowrap;
	}

	.category-filter-pill {
		padding: 0.5rem 1.25rem;
		font-size: var(--fs-xs, 0.8125rem);
	}
}
