/* =============================================================================
 * DeerEdge — Homepage Template Styles
 * Hero, brand story, featured products grid, social proof, and CTA
 * Leverages brand.css tokens. Loaded conditionally on front page only.
 * ========================================================================== */

/* --------------------------------------------------------------------------
 * HERO SECTION
 * Full-width background image with overlay and centered text
 * ------------------------------------------------------------------------ */
.hero-section {
	position: relative;
	min-height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 60px;
}

@media (min-width: 768px) {
	.hero-section {
		min-height: 600px;
		margin-bottom: 80px;
	}
}

.hero-background {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

.hero-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(28, 27, 26, 0.55);
	z-index: 2;
}

.hero-content {
	position: relative;
	z-index: 3;
	text-align: center;
	color: #fff;
	animation: fadeInUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero-title {
	font-family: var(--de-serif);
	font-size: 2.5rem;
	font-weight: 600;
	line-height: 1.1;
	margin: 0 0 12px 0;
	letter-spacing: -0.01em;
	color: #fff;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
	.hero-title {
		font-size: 3.5rem;
	}
}

.hero-subtitle {
	font-family: var(--de-sans);
	font-size: 1.25rem;
	font-weight: 400;
	margin: 0 0 20px 0;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--de-spark);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
	font-family: var(--de-sans);
	font-size: 1.1rem;
	line-height: 1.6;
	margin: 20px auto 0;
	color: rgba(255, 255, 255, 0.9);
	max-width: 600px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
 * BRAND STORY SECTION
 * Warm background, serif headings, generous whitespace
 * ------------------------------------------------------------------------ */
.brand-story-section {
	background: var(--de-parch-2);
	padding: 60px 20px;
	margin-bottom: 80px;
}

@media (min-width: 768px) {
	.brand-story-section {
		padding: 80px 20px;
	}
}

.story-content {
	line-height: 1.8;
}

.story-content h2 {
	font-family: var(--de-serif);
	font-size: 2rem;
	font-weight: 600;
	color: var(--de-iron);
	margin: 0 0 30px 0;
	letter-spacing: -0.01em;
}

@media (min-width: 768px) {
	.story-content h2 {
		font-size: 2.5rem;
		margin-bottom: 40px;
	}
}

.story-content p {
	font-family: var(--de-sans);
	font-size: 1rem;
	color: var(--de-ink-soft);
	margin: 0 0 20px 0;
	line-height: 1.8;
}

.story-content p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
 * FEATURED PRODUCTS SECTION
 * Grid layout, product cards with hover effects, minimal styling
 * ------------------------------------------------------------------------ */
.featured-products-section {
	padding: 60px 20px;
	margin-bottom: 80px;
}

@media (min-width: 768px) {
	.featured-products-section {
		padding: 80px 20px;
	}
}

.section-title {
	font-family: var(--de-serif);
	font-size: 2rem;
	font-weight: 600;
	color: var(--de-iron);
	text-align: center;
	margin: 0 0 12px 0;
	letter-spacing: -0.01em;
}

@media (min-width: 768px) {
	.section-title {
		font-size: 2.5rem;
		margin-bottom: 16px;
	}
}

.section-subtitle {
	font-family: var(--de-sans);
	font-size: 1rem;
	color: var(--de-steel);
	text-align: center;
	margin: 0 0 40px 0;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.products-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	margin-bottom: 20px;
}

@media (min-width: 600px) {
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

@media (min-width: 1024px) {
	.products-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 20px;
	}
}

/* --------------------------------------------------------------------------
 * PRODUCT CARD
 * Image with overlay CTA, product info below
 * ------------------------------------------------------------------------ */
.product-card {
	background: var(--de-bone);
	border-radius: var(--de-r);
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(28, 27, 26, 0.08);
	transition: box-shadow 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
	display: flex;
	flex-direction: column;
}

.product-card:hover {
	box-shadow: 0 8px 24px rgba(28, 27, 26, 0.16);
}

.product-image-wrapper {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1;
	background: #f9f7f2;
}

.product-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-card:hover .product-image {
	transform: scale(1.05);
}

.product-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(28, 27, 26, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-card:hover .product-overlay {
	opacity: 1;
}

.btn-view-product {
	display: inline-block;
	padding: 12px 28px;
	background: var(--de-ember);
	color: #fff;
	text-decoration: none;
	font-family: var(--de-sans);
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: var(--de-r);
	letter-spacing: 0.03em;
	transition: background-color 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.btn-view-product:hover {
	background: var(--de-ember-hot);
	text-decoration: none;
	color: #fff;
}

/* --------------------------------------------------------------------------
 * PRODUCT INFO
 * Name, rating, price
 * ------------------------------------------------------------------------ */
.product-info {
	padding: 16px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.product-name {
	font-family: var(--de-serif);
	font-size: 1rem;
	font-weight: 600;
	color: var(--de-iron);
	margin: 0 0 8px 0;
	line-height: 1.3;
	letter-spacing: -0.005em;
}

.product-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	font-size: 0.85rem;
}

.rating-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: rgba(201, 84, 31, 0.1);
	border-radius: var(--de-r);
	color: var(--de-ember);
	font-weight: 600;
}

.rating-stars {
	font-size: 1.1em;
}

.rating-value {
	font-family: var(--de-serif);
	font-variant-numeric: lining-nums tabular-nums;
}

.rating-count {
	color: var(--de-steel);
	font-size: 0.8rem;
}

.product-price {
	margin-top: auto;
}

.product-price .price {
	font-family: var(--de-serif);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--de-iron);
	font-variant-numeric: lining-nums tabular-nums;
}

/* --------------------------------------------------------------------------
 * SOCIAL PROOF SECTION
 * Centered badge with rating + review count
 * ------------------------------------------------------------------------ */
.social-proof-section {
	background: var(--de-iron);
	padding: 60px 20px;
	margin-bottom: 80px;
	text-align: center;
}

@media (min-width: 768px) {
	.social-proof-section {
		padding: 80px 20px;
	}
}

.social-proof-badge {
	display: inline-flex;
	align-items: center;
	gap: 20px;
	padding: 24px 32px;
	background: rgba(255, 217, 160, 0.1);
	border: 1px solid rgba(255, 217, 160, 0.2);
	border-radius: var(--de-r);
}

@media (min-width: 600px) {
	.social-proof-badge {
		padding: 32px 48px;
		gap: 32px;
	}
}

.proof-icon {
	font-size: 3rem;
	color: var(--de-spark);
	line-height: 1;
}

.proof-text {
	text-align: left;
}

.proof-rating {
	font-family: var(--de-serif);
	font-size: 1.5rem;
	font-weight: 600;
	color: #fff;
	margin: 0;
	letter-spacing: -0.005em;
}

@media (min-width: 600px) {
	.proof-rating {
		font-size: 1.75rem;
	}
}

.proof-reviews {
	font-family: var(--de-sans);
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.8);
	margin: 4px 0 0 0;
}

/* --------------------------------------------------------------------------
 * CTA SECTION
 * Call-to-action with button
 * ------------------------------------------------------------------------ */
.cta-section {
	padding: 80px 20px;
	background: linear-gradient(135deg, var(--de-parch-2) 0%, var(--de-bone) 100%);
	text-align: center;
	margin-bottom: 0;
}

@media (min-width: 768px) {
	.cta-section {
		padding: 100px 20px;
	}
}

.cta-content h2 {
	font-family: var(--de-serif);
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--de-iron);
	margin: 0 0 32px 0;
	letter-spacing: -0.01em;
}

@media (min-width: 768px) {
	.cta-content h2 {
		font-size: 2.25rem;
		margin-bottom: 40px;
	}
}

.btn-explore {
	display: inline-block;
	padding: 16px 48px;
	background: var(--de-ember);
	color: #fff;
	text-decoration: none;
	font-family: var(--de-sans);
	font-size: 1rem;
	font-weight: 700;
	border-radius: var(--de-r);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
	box-shadow: 0 4px 12px rgba(201, 84, 31, 0.3);
}

.btn-explore:hover {
	background: var(--de-ember-hot);
	box-shadow: 0 8px 24px rgba(201, 84, 31, 0.4);
	text-decoration: none;
	color: #fff;
	transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
 * PAGE STRUCTURE
 * Ensures full-page layout integrates cleanly
 * ------------------------------------------------------------------------ */
.home-page {
	background: var(--de-parchment);
}

#content.site-content {
	max-width: 100%;
	padding: 0;
}
