/**
 * Single Post: Full Width Template Styles
 *
 * @package SmartMove
 * @since 0.4.0
 */

/* =========================================================
   Override header/main container for full-bleed layout
   ========================================================= */

/* Remove the default 120px margin so there is no white gap before the hero.
   The hero itself carries a padding-top equal to the navbar height instead. */
.smartmove-single-fullwidth #primary.site-main {
	padding: 0;
	margin-top: 0 !important;
}

.smartmove-single-fullwidth #primary .container {
	max-width: 100%;
	padding: 0;
}

/* =========================================================
   Hero – full-width featured image with overlay + text
   ========================================================= */

:root {
	--smfw-navbar-height: 120px;
}

.smfw-hero {
	position: relative;
	width: 100%;
	min-height: calc(520px + var(--smfw-navbar-height));
	max-height: calc(680px + var(--smfw-navbar-height));
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	/* Push content area below the fixed navbar */
	padding-top: var(--smfw-navbar-height);
	box-sizing: border-box;
}

.smfw-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.smfw-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Dark gradient overlay so white text stays readable */
.smfw-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.05) 0%,
		rgba(0, 0, 0, 0.30) 40%,
		rgba(0, 0, 0, 0.78) 100%
	);
	pointer-events: none;
}

.smfw-hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 0 0 3rem;
}

.smfw-hero__inner {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 2rem;
}

/* Breadcrumbs inside hero */
.smfw-hero__inner .breadcrumbs,
.smfw-hero__inner .breadcrumb {
	color: rgba(255, 255, 255, 0.80);
	font-size: 0.813rem;
	letter-spacing: 0.03em;
	margin-bottom: 0.75rem;
}

.smfw-hero__inner .breadcrumbs a,
.smfw-hero__inner .breadcrumb a {
	color: rgba(255, 255, 255, 0.80);
	text-decoration: none;
}

.smfw-hero__inner .breadcrumbs a:hover,
.smfw-hero__inner .breadcrumb a:hover {
	color: #ffffff;
	text-decoration: underline;
}

/* Post title */
.smfw-hero__title {
	margin: 0 0 1rem;
	color: #ffffff;
	font-size: clamp(1.75rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Meta bar (date · author · reading time) */
.smfw-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.88);
}

.smfw-hero__meta--dark {
	color: #555;
}

.smfw-meta-sep {
	opacity: 0.6;
}

/* =========================================================
   Title band – fallback when there is no featured image
   ========================================================= */

.smfw-title-band {
	background: #f5f5f5;
	border-bottom: 1px solid #e5e5e5;
	padding: calc(var(--smfw-navbar-height) + 2rem) 2rem 2.5rem;
}

.smfw-title-band__inner {
	max-width: 860px;
	margin: 0 auto;
}

.smfw-title-band__title {
	margin: 0.5rem 0 0.75rem;
	font-size: clamp(1.5rem, 3.5vw, 2.5rem);
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a1a;
}

/* =========================================================
   Content wrapper
   ========================================================= */

.smfw-content-wrap {
	max-width: 860px;
	margin: 0 auto;
	padding: 3rem 2rem 4rem;
}

/* =========================================================
   Article / entry content
   ========================================================= */

.smfw-article {
	/* remove default WP margins reset */
}

.smfw-entry-content {
	font-size: 1.0625rem;
	line-height: 1.8;
	color: #2d2d2d;
}

.smfw-entry-content h2,
.smfw-entry-content h3,
.smfw-entry-content h4,
.smfw-entry-content h5,
.smfw-entry-content h6 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
}

.smfw-entry-content p {
	margin-bottom: 1.25rem;
}

.smfw-entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.smfw-entry-content figure {
	margin: 2rem 0;
}

.smfw-entry-content figcaption {
	font-size: 0.813rem;
	color: #777;
	text-align: center;
	margin-top: 0.375rem;
}

.smfw-entry-content blockquote {
	border-left: 4px solid var(--smartmove-accent, #C5A36A);
	margin: 2rem 0;
	padding: 1rem 1.5rem;
	background: #faf8f4;
	font-style: italic;
	color: #444;
}

.smfw-entry-content ul,
.smfw-entry-content ol {
	padding-left: 1.5rem;
	margin-bottom: 1.25rem;
}

.smfw-entry-content li {
	margin-bottom: 0.375rem;
}

.smfw-entry-content a {
	color: var(--smartmove-accent, #C5A36A);
	text-decoration: underline;
}

.smfw-entry-content a:hover {
	opacity: 0.8;
}

/* =========================================================
   Entry footer (categories + tags)
   ========================================================= */

.smfw-entry-footer {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e5e5;
}

.smfw-entry-footer__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	font-size: 0.875rem;
}

/* =========================================================
   Post navigation (prev/next)
   ========================================================= */

.post-navigation {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid #e5e5e5;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {
	:root {
		--smfw-navbar-height: 80px;
	}

	.smfw-hero {
		min-height: calc(340px + var(--smfw-navbar-height));
		max-height: calc(500px + var(--smfw-navbar-height));
	}

	.smfw-hero__inner,
	.smfw-title-band__inner,
	.smfw-content-wrap {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	.smfw-content-wrap {
		padding-top: 2rem;
		padding-bottom: 2.5rem;
	}
}

@media (max-width: 480px) {
	:root {
		--smfw-navbar-height: 70px;
	}

	.smfw-hero {
		min-height: calc(260px + var(--smfw-navbar-height));
	}

	.smfw-hero__content {
		padding-bottom: 1.75rem;
	}
}
