/* ================================================================
   Heritage Mansion — Homepage
================================================================ */

/* ========================
   Featured Posts
======================== */
.home-featured {
	width: 90%;
	margin: 0 auto 80px;
}

.featured-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px;
}

.featured-card { position: relative; overflow: hidden; }

.featured-card-link {
	display: block;
	position: relative;
}

.featured-card img {
	width: 100%;
	height: 780px;
	object-fit: cover;
	object-position: center top;
	display: block;
	transition: transform .5s ease;
}
.featured-card:hover img { transform: scale(1.03); }

.featured-card-body {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 48px 32px 36px;
	background: linear-gradient(transparent 0%, rgba(0,0,0,.45) 40%, rgba(0,0,0,.82) 100%);
	color: var(--white);
}

.featured-cat {
	display: inline-block;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.16em;
	border: 1px solid rgba(255,255,255,.7);
	padding: 3px 8px;
	margin-bottom: 10px;
	color: var(--white);
}

.featured-title {
	font-family: var(--serif);
	font-size: clamp(18px, 2.2vw, 26px);
	font-weight: 400;
	line-height: 1.35;
	color: var(--white);
	margin-bottom: 16px;
}

.featured-cta {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.16em;
	color: var(--white);
	border-bottom: 1px solid rgba(255,255,255,.7);
	padding-bottom: 3px;
}

.featured-img-placeholder {
	width: 100%;
	height: 780px;
	background: var(--light-gray);
}

/* ========================
   Current Obsessions
======================== */
.home-obsessions {
	padding: 72px 0;
	border-top: 1px solid var(--light-gray);
	border-bottom: 1px solid var(--light-gray);
	margin-bottom: 72px;
}

.obsessions-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 40px;
	display: grid;
	grid-template-columns: 380px 1fr;
	gap: 80px;
	align-items: center;
}

.obsessions-image-col img {
	width: 100%;
	height: 460px;
	object-fit: cover;
	display: block;
}

.obsessions-text-col {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 24px;
}

.section-eyebrow {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--mid-gray);
}

.obsessions-heading {
	font-family: var(--serif);
	font-size: clamp(34px, 4.5vw, 58px);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.01em;
}

.obsessions-desc {
	font-size: 18px;
	color: var(--dark-gray);
	line-height: 1.9;
	max-width: 460px;
}

.arrow-link {
	font-family: var(--sans);
	font-size: 12px;
	letter-spacing: 0.1em;
	color: var(--black);
	text-decoration: underline;
	text-underline-offset: 4px;
	transition: opacity .2s;
	display: inline-block;
}
.arrow-link:hover { opacity: .6; }

/* ========================
   Shop The Obsession strip
======================== */
.obs-shop-strip {
	border-top: 1px solid var(--light-gray);
	border-bottom: 1px solid var(--light-gray);
	padding: 48px 0 56px;
	margin-bottom: 72px;
	background: var(--off-white);
}

.obs-shop-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 40px;
}

.obs-shop-label {
	text-align: center;
	margin-bottom: 28px;
}

.obs-shop-embed {
	width: 100%;
}

/* Make iframes inside responsive */
.obs-shop-embed iframe {
	width: 100% !important;
	min-height: 320px;
	border: none;
	display: block;
}

/* ========================
   The Pieces Carousel
======================== */
.home-pieces {
	margin-bottom: 80px;
}

.pieces-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 40px;
}

.pieces-inner > .section-eyebrow { margin-bottom: 28px; }

.pieces-carousel-wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
}

.pieces-carousel {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	flex: 1;
}
.pieces-carousel::-webkit-scrollbar { display: none; }

.pieces-nav {
	flex-shrink: 0;
	background: none;
	border: 1px solid var(--light-gray);
	width: 36px;
	height: 36px;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: var(--black);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s;
}
.pieces-nav:hover { background: var(--off-white); }

.piece-card {
	flex-shrink: 0;
	width: 200px;
	display: flex;
	flex-direction: column;
}

.piece-card-img {
	aspect-ratio: 3/4;
	overflow: hidden;
	background: var(--light-gray);
}
.piece-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s;
}
.piece-card:hover .piece-card-img img { transform: scale(1.04); }

.piece-card-body {
	padding: 10px 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.piece-brand {
	font-size: 9px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mid-gray);
}

.piece-name {
	font-family: var(--serif);
	font-size: 13px;
	color: var(--black);
	line-height: 1.4;
}

.piece-link {
	font-size: 11px;
	color: var(--dark-gray);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color .2s;
}
.piece-link:hover { color: var(--black); }

.pieces-embed { width: 100%; }
.pieces-embed iframe { width: 100%; border: none; min-height: 380px; }

.pieces-footer {
	margin-top: 24px;
	text-align: center;
}

/* ========================
   Free Guide
======================== */
.home-guide {
	background: var(--off-white);
	padding: 72px 0;
	margin-bottom: 80px;
}

.guide-inner {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 40px;
}

.guide-header {
	text-align: center;
	margin-bottom: 40px;
}

.guide-heading {
	font-family: var(--serif);
	font-size: clamp(24px, 3.5vw, 38px);
	font-weight: 400;
	letter-spacing: 0.02em;
	margin: 10px 0 12px;
}

.guide-subtext {
	font-size: 14px;
	color: var(--dark-gray);
	line-height: 1.7;
	max-width: 460px;
	margin: 0 auto;
}

.guide-box {
	background: var(--white);
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 40px;
	padding: 40px;
	align-items: center;
}

.guide-box-image img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
}

.guide-box-content {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.guide-box-heading {
	font-family: var(--serif);
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 600;
	letter-spacing: 0.02em;
}

.guide-box-text {
	font-size: 14px;
	color: var(--dark-gray);
	line-height: 1.7;
}

/* Fallback form (shown when no shortcode) */
.guide-form-inline {
	display: flex;
	gap: 0;
}
.guide-form-inline input[type=email] {
	flex: 1;
	border: 1px solid var(--black);
	border-right: none;
	padding: 10px 14px;
	font-family: var(--sans);
	font-size: 13px;
	outline: none;
}
.guide-form-inline button {
	background: var(--black);
	color: var(--white);
	border: 1px solid var(--black);
	padding: 10px 20px;
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	cursor: pointer;
	transition: background .2s;
}
.guide-form-inline button:hover { background: var(--dark-gray); }

/* Fluentform overrides to match style */
.guide-form .ff-el-group { margin-bottom: 0; }
.guide-form .ff-btn-submit { background: var(--black) !important; border-color: var(--black) !important; border-radius: 0 !important; letter-spacing: 0.1em !important; }

/* ========================
   From The Journal
======================== */
.home-journal { margin-bottom: 80px; }

.journal-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 40px;
}

.journal-inner > .section-eyebrow { margin-bottom: 28px; }

.journal-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px 24px;
}

.journal-card { display: block; }

.journal-card-link { display: block; color: var(--black); }

.journal-card-link img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	object-position: center top;
	display: block;
	transition: opacity .3s;
}
.journal-card:hover .journal-card-link img { opacity: .88; }

.journal-img-placeholder {
	width: 100%;
	height: 300px;
	background: var(--light-gray);
	display: block;
}

.journal-card-body { padding: 14px 0 0; }

.journal-cat {
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.18em;
	color: var(--mid-gray);
	margin-bottom: 6px;
}

.journal-title {
	font-family: var(--serif);
	font-size: clamp(14px, 1.4vw, 16px);
	font-weight: 400;
	line-height: 1.45;
	color: var(--black);
}

/* ========================
   Journal Load-More / Spinner
======================== */
.journal-load-more-wrap {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	padding: 40px 0 8px;
	min-height: 60px;
}

.journal-loading-spinner {
	display: block;
	width: 28px;
	height: 28px;
	border: 2px solid var(--light-gray);
	border-top-color: var(--black);
	border-radius: 50%;
	opacity: 0;
	transition: opacity .2s;
}

.journal-load-more-wrap.is-loading .journal-loading-spinner {
	opacity: 1;
	animation: hm-spin .7s linear infinite;
}

@keyframes hm-spin {
	to { transform: rotate(360deg); }
}

/* ========================
   Responsive
======================== */
@media ( max-width: 960px ) {
	.featured-grid { grid-template-columns: 1fr; gap: 2px; }
	.featured-card img { height: 480px; }
	.obsessions-inner { grid-template-columns: 1fr; gap: 32px; }
	.obsessions-image-col img { height: 320px; }
	.guide-box { grid-template-columns: 1fr; }
	.journal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media ( max-width: 540px ) {
	.journal-grid { grid-template-columns: 1fr; }
	.journal-card-link img, .journal-img-placeholder { height: 260px; }
	.home-featured { width: 95%; }
	.pieces-inner, .obsessions-inner, .journal-inner, .guide-inner { padding: 0 20px; }
	.guide-box { padding: 24px; }
	.featured-card img { height: 360px; }
}
