/**
 * Homepage Specific Styles - Chocolate-inspired elegant design
 *
 * @package Stam_Chocolate
 * @since 2.0.0
 */

/* ==========================================================================
   Hero Section - Smaller, Clean
   ========================================================================== */

.hero {
	min-height: 380px; /* Verhoogd voor betere spacing */
	display: block;
	text-align: center;
	background: linear-gradient(135deg, var(--color-off-white) 0%, var(--color-background) 100%);
	padding: 0;
	position: relative;
	overflow: hidden;
	width: 100%;
}

/* Pattern overlay alleen zichtbaar als er geen afbeelding is */
.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23E8E3DB" stroke-width="0.5"/></svg>') repeat;
	background-size: 200px;
	opacity: 0.3;
	z-index: 0;
}

.hero-content {
	position: relative;
	z-index: 1;
	width: 100%;
	/* Vaste hoogte voor absoluut gepositioneerde slides */
	height: 380px;
	min-height: 380px;
}

.hero-slide {
	display: none;
	animation: heroFadeIn 0.5s ease;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	/* Absoluut positioneren om hele hero te vullen */
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	min-height: 380px;
	/* Meer padding aan boven- en onderkant voor ruimte dots en subtitle */
	padding: var(--space-2xl) var(--container-padding) calc(var(--space-2xl) + 30px);
	align-items: center;
	justify-content: center;
	flex-direction: column;
	text-align: center;
}

.hero-slide::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(245, 242, 237, 0.7) 0%, rgba(253, 251, 247, 0.7) 100%);
	z-index: 0;
}

/* Donkere overlay wanneer er een achtergrondafbeelding is voor betere leesbaarheid */
.hero-slide[style*="background-image"]::before {
	background: linear-gradient(
		to bottom,
		rgba(59, 36, 20, 0.5) 0%,
		rgba(59, 36, 20, 0.4) 100%
	);
}

.hero-slide.active {
	display: flex !important;
	position: absolute; /* Behoud absolute positie ook bij active */
}

.hero-slide > * {
	position: relative;
	z-index: 1;
	max-width: 800px; /* Max-width voor tekst leesbaarheid */
}

/* Lichte tekst op donkere overlay voor slides met achtergrondafbeelding */
.hero-slide[style*="background-image"] .hero-subtitle {
	color: var(--color-gold);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-slide[style*="background-image"] h1 {
	color: var(--color-white);
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-slide[style*="background-image"] p {
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

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

.hero-subtitle {
	font-family: var(--font-accent);
	font-size: var(--text-lg);
	color: var(--color-gold);
	margin-bottom: var(--space-sm);
	letter-spacing: 0.05em;
}

.hero h1 {
	margin-bottom: var(--space-md);
}

.hero p {
	color: var(--color-text-secondary);
	font-size: var(--text-md);
	max-width: 600px;
	margin: 0 auto var(--space-lg);
}

.hero-dots {
	display: flex;
	justify-content: center;
	gap: var(--space-sm);
	/* Absoluut positioneren onderaan de hero */
	position: absolute;
	bottom: var(--space-md);
	left: 0;
	right: 0;
	z-index: 10;
}

.hero-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--color-border);
	border: none;
	cursor: pointer;
	transition: all var(--transition-base);
	padding: 0;
	min-width: 12px;
	min-height: 12px;
	flex-shrink: 0;
}

.hero-dot:hover {
	background: var(--color-light-chocolate);
}

.hero-dot.active {
	background: var(--color-gold);
	transform: scale(1.2);
}

/* ==========================================================================
   Products Section
   ========================================================================== */

.products-section {
	background: var(--color-white);
}

/* ==========================================================================
   Categories Section
   ========================================================================== */

.categories-section {
	background: var(--color-off-white);
}

.categories-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--space-lg);
}

@media (max-width: 1000px) {
	.categories-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.categories-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-sm);
	}
	
	.categories-grid .category-card {
		padding: var(--space-md);
		min-height: auto;
	}
}

.category-card {
	text-align: center;
	padding: var(--space-lg);
	background: var(--color-white);
	border-radius: var(--radius-md);
	transition: all var(--transition-base);
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.category-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.category-image {
	width: 100%;
	max-width: 180px;
	aspect-ratio: 1 / 1;
	border-radius: var(--radius-md);
	overflow: hidden;
	margin-bottom: var(--space-sm);
	position: relative;
	background: var(--color-off-white);
}

.category-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

/* Mobile: ensure equal image sizing */
@media (max-width: 600px) {
	.category-image {
		max-width: 120px;
	}
}

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

.category-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto var(--space-sm);
	background: var(--color-off-white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
}

.category-name {
	font-family: var(--font-display);
	font-size: var(--text-base);
	font-weight: 500;
	color: var(--color-text);
}

.category-card:hover .category-name {
	color: var(--color-gold);
}

/* ==========================================================================
   Heritage Section
   ========================================================================== */

.heritage-section {
	background: var(--color-deep-chocolate);
	color: var(--color-white);
	position: relative;
	overflow: hidden;
}

.heritage-section::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, var(--color-medium-chocolate) 0%, transparent 70%);
	opacity: 0.3;
}

.heritage-content {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-3xl);
	align-items: center;
}

@media (max-width: 900px) {
	.heritage-content {
		grid-template-columns: 1fr;
		text-align: center;
	}
}

.heritage-text h2 {
	color: var(--color-gold);
	margin-bottom: var(--space-md);
}

.heritage-text p {
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: var(--space-lg);
}

.heritage-stats {
	display: flex;
	gap: var(--space-2xl);
}

@media (max-width: 900px) {
	.heritage-stats {
		justify-content: center;
	}
}

.stat {
	text-align: center;
}

.stat-number {
	font-family: var(--font-display);
	font-size: 3rem;
	font-weight: 500;
	color: var(--color-gold);
	line-height: 1;
	margin-bottom: var(--space-xs);
}

.stat-label {
	font-size: var(--text-sm);
	color: rgba(255, 255, 255, 0.6);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* ==========================================================================
   Responsive - Hero
   ========================================================================== */

@media (max-width: 768px) {
	.hero {
		min-height: 350px; /* Iets lager op mobile maar nog steeds voldoende ruimte */
		padding: 0;
	}

	.hero-content {
		height: 350px;
		min-height: 350px;
	}

	.hero-slide {
		min-height: 350px;
		padding: var(--space-xl) var(--container-padding) calc(var(--space-xl) + 30px);
	}

	.hero h1 {
		font-size: var(--text-3xl);
	}

	.hero-subtitle {
		font-size: var(--text-base);
	}

	.stat-number {
		font-size: 2.5rem;
	}
}

/* ==========================================================================
   FAQ Section (SEO)
   ========================================================================== */

.faq-section {
	background: var(--color-off-white);
}

.faq-list {
	max-width: 800px;
	margin: 0 auto;
}

.faq-item {
	background: var(--color-white);
	border-radius: var(--radius-md);
	margin-bottom: var(--space-sm);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	padding: var(--space-lg);
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: var(--font-display);
	font-size: var(--text-md);
	font-weight: 500;
	color: var(--color-text);
	transition: all var(--transition-base);
}

.faq-question:hover {
	background: var(--color-off-white);
}

.faq-question.is-active {
	background: var(--color-off-white);
	color: var(--color-deep-chocolate);
}

.faq-question.is-active .faq-question-text {
	color: var(--color-deep-chocolate);
}

.faq-question-text {
	flex: 1;
}

.faq-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	color: var(--color-gold);
	transition: transform var(--transition-base);
}

.faq-question.is-active .faq-icon {
	transform: rotate(180deg);
}

.faq-answer {
	padding: 0 var(--space-lg) var(--space-lg);
}

.faq-answer[hidden] {
	display: none;
}

.faq-answer-content {
	color: var(--color-text-secondary);
	line-height: 1.7;
}

.faq-answer-content p {
	margin: 0;
}

/* ==========================================================================
   Heritage Section (SEO Enhanced)
   ========================================================================== */

.bg-chocolate-dark {
	background: var(--color-deep-chocolate);
	color: var(--color-white);
}

/* ==========================================================================
   Heritage Oval Cameo Badge (8.6 Style)
   ========================================================================== */

.heritage-cameo-wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-bottom: 30px; /* Space for ribbon */
}

.heritage-cameo-frame {
	background: linear-gradient(145deg, var(--color-gold) 0%, #9a7b1e 50%, var(--color-gold) 100%);
	padding: 12px;
	width: 300px;
	height: 360px;
	border-radius: 150px / 180px;
	box-shadow:
		0 0 0 4px var(--color-medium-chocolate),
		0 30px 60px rgba(0, 0, 0, 0.5),
		inset 0 2px 4px rgba(255, 255, 255, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
}

.heritage-cameo-inner {
	background: linear-gradient(180deg, #f5efe6 0%, #ebe4d8 100%);
	width: 100%;
	height: 100%;
	border-radius: 140px / 170px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.heritage-cameo-inner::before {
	content: '';
	position: absolute;
	inset: 10px;
	border: 1px solid var(--color-medium-chocolate);
	border-radius: 130px / 160px;
	opacity: 0.3;
}

.heritage-cameo-content {
	text-align: center;
	padding: 1.5rem;
}

.heritage-cameo-est {
	display: block;
	font-family: 'Cinzel', var(--font-display);
	font-size: 0.6rem;
	color: var(--color-gold);
	letter-spacing: 0.3em;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}

.heritage-cameo-logo {
	display: block;
	width: 90px;
	height: 90px;
	margin: 0 auto 1rem;
	object-fit: contain;
	filter: sepia(30%);
}

.heritage-cameo-brand {
	font-family: 'Playfair Display', var(--font-display);
	font-size: 1.4rem;
	font-weight: 500;
	color: var(--color-medium-chocolate);
	line-height: 1.2;
	margin: 0 0 0.5rem 0;
}

.heritage-cameo-divider {
	display: block;
	width: 40px;
	height: 1px;
	background: var(--color-gold);
	margin: 0.75rem auto;
}

.heritage-cameo-year {
	display: block;
	font-family: 'Playfair Display', var(--font-display);
	font-size: 2.5rem;
	font-weight: 400;
	color: var(--color-medium-chocolate);
	line-height: 1;
	margin-bottom: 0.25rem;
}

.heritage-cameo-location {
	display: block;
	font-family: 'Cormorant Garamond', var(--font-accent);
	font-size: 0.9rem;
	font-style: italic;
	color: #666;
}

.heritage-cameo-ribbon-wrap {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
}

.heritage-cameo-ribbon {
	display: block;
	background: var(--color-medium-chocolate);
	color: #f5efe6;
	padding: 0.5rem 2rem;
	font-family: 'Cinzel', var(--font-display);
	font-size: 0.55rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	position: relative;
}

.heritage-cameo-ribbon::before,
.heritage-cameo-ribbon::after {
	content: '';
	position: absolute;
	top: 0;
	border: 14px solid var(--color-medium-chocolate);
}

.heritage-cameo-ribbon::before {
	left: -20px;
	border-left-color: transparent;
}

.heritage-cameo-ribbon::after {
	right: -20px;
	border-right-color: transparent;
}

.heritage-title {
	color: var(--color-gold);
	margin-bottom: var(--space-md);
}

.heritage-description {
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.8;
	margin-bottom: var(--space-xl);
}

.heritage-description p {
	margin-bottom: var(--space-md);
}

.heritage-description p:last-child {
	margin-bottom: 0;
}

.heritage-facts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-md);
	margin-bottom: var(--space-xl);
}

@media (max-width: 600px) {
	.heritage-facts {
		grid-template-columns: 1fr;
	}
}

.heritage-fact {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	color: rgba(255, 255, 255, 0.8);
}

.heritage-fact .fact-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	color: var(--color-gold);
}

.heritage-fact .fact-text {
	font-size: var(--text-sm);
}

.heritage-fact strong {
	color: var(--color-white);
}

.btn-light {
	color: var(--color-white);
	border-color: rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Category SEO Intro
   ========================================================================== */

.category-seo-intro {
	margin-bottom: var(--space-xl);
	padding: var(--space-lg);
	background: var(--color-off-white);
	border-radius: var(--radius-md);
	border-left: 4px solid var(--color-gold);
}

.category-intro-content {
	color: var(--color-text-secondary);
	line-height: 1.7;
	margin-bottom: var(--space-md);
}

.category-intro-content p {
	margin-bottom: var(--space-sm);
}

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

.category-trust-signals {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
	padding-top: var(--space-md);
	border-top: 1px solid var(--color-border);
}

.trust-signal {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	font-size: var(--text-sm);
	color: var(--color-text-secondary);
}

.trust-signal svg {
	color: var(--color-gold);
	flex-shrink: 0;
}

/* ==========================================================================
   Heritage Section Responsive
   ========================================================================== */

@media (max-width: 900px) {
	.heritage-cameo-wrapper {
		margin-bottom: var(--space-xl);
	}
}

@media (max-width: 768px) {
	.heritage-cameo-frame {
		width: 260px;
		height: 310px;
		border-radius: 130px / 155px;
		padding: 10px;
	}

	.heritage-cameo-inner {
		border-radius: 120px / 145px;
	}

	.heritage-cameo-inner::before {
		border-radius: 110px / 135px;
	}

	.heritage-cameo-content {
		padding: 1rem;
	}

	.heritage-cameo-logo {
		width: 70px;
		height: 70px;
	}

	.heritage-cameo-brand {
		font-size: 1.2rem;
	}

	.heritage-cameo-year {
		font-size: 2rem;
	}

	.heritage-cameo-ribbon {
		padding: 0.4rem 1.5rem;
		font-size: 0.5rem;
	}

	.heritage-cameo-ribbon::before,
	.heritage-cameo-ribbon::after {
		border-width: 12px;
	}

	.heritage-cameo-ribbon::before {
		left: -17px;
	}

	.heritage-cameo-ribbon::after {
		right: -17px;
	}

	.faq-question {
		padding: var(--space-md);
		font-size: var(--text-base);
	}

	.faq-answer {
		padding: 0 var(--space-md) var(--space-md);
	}
}

