/* Hero */

/* ============================================================================
   Outer Elementor section/container — full-bleed hero section
   Targets the section that contains the #ds-hero shortcode wrapper.
   Uses :has(#ds-hero) so rules survive Elementor element ID changes.
   ========================================================================== */

body.home .elementor-section:has(#ds-hero),
body.home .e-con:has(#ds-hero) {
	min-height: 100vh !important;  /* Fallback for browsers without svh support */
	min-height: 100svh !important; /* svh = small viewport height, excludes mobile browser chrome */
	padding: 0 !important; /* Remove Elementor default section padding (was causing top/bottom gap) */
	background-position: center center !important;
	background-size: cover !important;
	justify-content: center !important;
	align-items: stretch !important; /* Let widget fill full section height */
	position: relative !important;
}

/* Elementor widget/shortcode container must stretch to fill the section */
body.home .elementor-section:has(#ds-hero) .elementor-widget-shortcode,
body.home .elementor-section:has(#ds-hero) .elementor-shortcode,
body.home .e-con:has(#ds-hero) .elementor-widget-shortcode,
body.home .e-con:has(#ds-hero) .elementor-shortcode {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	min-height: 100% !important;
	flex-grow: 1 !important;
}

/* Mobile: shift background focal point to preserve leaf/product detail */
@media (max-width: 767px) {
	body.home .elementor-section:has(#ds-hero),
	body.home .e-con:has(#ds-hero) {
		background-position: 65% center !important;
	}
}

/* ============================================================================
   #ds-hero – Shortcode wrapper div (inner content container)
   ========================================================================== */
/*
 * #ds-hero is now the outermost div inside the shortcode output.
 * The Elementor section holds the background image; #ds-hero handles
 * content layout, overlay, and spacing.
 */

#ds-hero {
	/* Layout — fills the Elementor widget container */
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: center !important;
	width: 100% !important;
	flex-grow: 1 !important;
	/* min-height: 100vh !important; */ /* Fallback — commented out; height driven by Elementor section */
	/* min-height: 100svh !important; */ /* Preferred — commented out; see breakpoint blocks above */
	padding-left: clamp(24px, 4vw, 64px) !important;
	padding-right: clamp(24px, 4vw, 64px) !important;
	padding-top: clamp(48px, 6vh, 80px) !important;
	padding-bottom: clamp(48px, 6vh, 80px) !important;

	/* Dark gradient overlay */
	position: relative !important;
}

#ds-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	/* Dark overlay to improve text contrast over background image */
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.55),
		rgba(0, 0, 0, 0.25)
	);
	pointer-events: none;
	z-index: 1;
}

/* Ensure content sits above overlay */
#ds-hero > * {
	position: relative;
	z-index: 2;
}

/* Content width constraint */
#ds-hero .ds-hero-shell,
#ds-hero .hero-content,
#ds-hero .ds-hero-content {
	/* max-width: clamp(480px, 52vw, 560px) !important; */
	width: 100% !important;
}

/* Enhanced vertical spacing */
#ds-hero .ds-hero-badge,
#ds-hero .hero-badge {
	margin-bottom: clamp(16px, 2.5vh, 24px) !important;
}

#ds-hero .ds-hero-title,
#ds-hero .hero-title {
	font-size: clamp(3.5rem, 7vw, 4rem) !important; /* 56px - 64px */
	line-height: 1.08 !important; /* Looser line-height */
	margin-top: 0 !important;
	margin-bottom: clamp(20px, 3vh, 28px) !important;
}

#ds-hero .ds-hero-subtitle,
#ds-hero .hero-subtitle {
	margin-bottom: clamp(24px, 3.5vh, 32px) !important;
	line-height: 1.45 !important; /* Improved readability */
}

#ds-hero .ds-hero-social-proof {
	margin-top: 0 !important;
	margin-bottom: clamp(28px, 4vh, 36px) !important;
}

#ds-hero .ds-hero-cta {
	margin-top: 0 !important;
}

/* Tablet breakpoint: adjust container padding and content width */
@media (max-width: 1024px) {
	#ds-hero {
		/* min-height: 100vh !important;
		min-height: 100svh !important; */
		padding-left: clamp(20px, 3vw, 48px) !important;
		padding-right: clamp(20px, 3vw, 48px) !important;
	}

	#ds-hero .ds-hero-shell,
	#ds-hero .hero-content,
	#ds-hero .ds-hero-content {
		max-width: clamp(440px, 60vw, 520px) !important;
	}

	#ds-hero .ds-hero-title,
	#ds-hero .hero-title {
		font-size: clamp(3rem, 8vw, 3.5rem) !important; /* 48px - 56px */
	}
}

/* Mobile breakpoint: stack layout, adjust spacing */
@media (max-width: 768px) {
	#ds-hero {
		/* min-height: 100vh !important;
		min-height: 100svh !important; */
		padding-left: clamp(16px, 5vw, 32px) !important;
		padding-right: clamp(16px, 5vw, 32px) !important;
		padding-top: clamp(32px, 5vh, 56px) !important;
		padding-bottom: clamp(32px, 5vh, 56px) !important;
	}

	#ds-hero::before {
		/* Stronger overlay on mobile for better text contrast */
		background: linear-gradient(
			135deg,
			rgba(0, 0, 0, 0.78) 0%,
			rgba(0, 0, 0, 0.68) 50%,
			rgba(0, 0, 0, 0.58) 100%
		);
	}

	#ds-hero .ds-hero-shell,
	#ds-hero .hero-content,
	#ds-hero .ds-hero-content {
		max-width: 100% !important;
	}

	#ds-hero .ds-hero-title,
	#ds-hero .hero-title {
		font-size: clamp(2.25rem, 9vw, 3rem) !important; /* 36px - 48px */
		line-height: 1.12 !important;
		margin-bottom: clamp(16px, 2.5vh, 20px) !important;
	}

	#ds-hero .ds-hero-subtitle,
	#ds-hero .hero-subtitle {
		margin-bottom: clamp(20px, 3vh, 24px) !important;
	}

	#ds-hero .ds-hero-social-proof {
		margin-bottom: clamp(24px, 3.5vh, 28px) !important;
	}

	#ds-hero .ds-hero-badge,
	#ds-hero .hero-badge {
		margin-bottom: clamp(12px, 2vh, 16px) !important;
	}
}

/* Small mobile: further reduce spacing */
@media (max-width: 480px) {
	#ds-hero {
		/* min-height: 100vh !important;
		min-height: 100svh !important; */
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	#ds-hero .ds-hero-title,
	#ds-hero .hero-title {
		font-size: clamp(2rem, 10vw, 2.5rem) !important; /* 32px - 40px */
	}
}

/* Shop hero upgrade */
.ds-shop-hero {
	margin-bottom: 1.25rem;
	background: linear-gradient(135deg, rgb(var(--ds-primary-rgb) / 0.12), rgb(var(--ds-gold-rgb) / 0.14));
	border: 1px solid rgb(var(--ds-primary-rgb) / 0.18);
	border-radius: 16px;
	padding: 1.15rem 1.15rem 1rem;
}

.ds-shop-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 180px;
	gap: 1rem;
	align-items: center;
}

.ds-shop-kicker {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ds-primary-dark);
	margin-bottom: 0.38rem;
}

.ds-shop-subtitle {
	margin: 0.35rem 0 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--ds-muted);
	/* max-width: 72ch; */
}

.ds-shop-quicklinks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.8rem;
}

.ds-shop-quicklinks a {
	text-decoration: none;
	border: 1px solid rgb(var(--ds-primary-rgb) / 0.3);
	background: rgb(var(--ds-bg-rgb) / 0.9);
	color: var(--ds-text);
	font-size: 0.82rem;
	font-weight: 600;
	padding: 0.34rem 0.64rem;
	border-radius: 999px;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.ds-shop-quicklinks a:hover {
	border-color: var(--ds-primary);
	color: var(--ds-primary-dark);
	background: var(--ds-surface);
}

.ds-shop-hero-stat {
	display: flex;
	justify-content: flex-end;
}

.ds-stat-card {
	min-width: 160px;
	background: var(--ds-surface);
	border: 1px solid var(--ds-border);
	border-radius: 12px;
	padding: 0.7rem 0.8rem;
	text-align: center;
	box-shadow: 0 6px 18px rgb(var(--ds-text-rgb) / 0.09);
}

.ds-stat-value {
	display: block;
	font-size: 1.55rem;
	line-height: 1;
	font-weight: 800;
	color: var(--ds-primary-dark);
}

.ds-stat-label {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.76rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ds-muted);
}

.ds-active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.8rem;
}

.ds-filter-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.32rem 0.62rem;
	border-radius: 999px;
	border: 1px solid rgb(var(--ds-primary-dark-rgb) / 0.22);
	background: rgb(var(--ds-surface-rgb) / 0.84);
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ds-text);
}

/* Tablet breakpoint: hero improvements (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 821px) {
	.ds-shop-hero {
		padding: 1rem 1rem 0.9rem;
	}

	.ds-shop-hero-inner {
		gap: 0.85rem;
	}

	.ds-shop-subtitle {
		font-size: 0.92rem;
	}

	.ds-stat-card {
		min-width: 140px;
	}

	.ds-stat-value {
		font-size: 1.4rem;
	}
}

/* Mobile hero: switch to single column (max 820px) */
@media (max-width: 820px) {
	.ds-shop-hero {
		padding: 0.95rem 0.9rem 0.85rem;
		margin-bottom: 1rem;
	}

	.ds-shop-hero-inner {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.ds-shop-kicker {
		font-size: 0.7rem;
		margin-bottom: 0.3rem;
	}

	.ds-shop-subtitle {
		font-size: 0.88rem;
		margin: 0.25rem 0 0;
		line-height: 1.5;
	}

	.ds-shop-quicklinks {
		gap: 0.35rem;
		margin-top: 0.6rem;
	}

	.ds-shop-quicklinks a {
		font-size: 0.78rem;
		padding: 0.3rem 0.55rem;
	}

	.ds-shop-hero-stat {
		justify-content: flex-start;
	}

	.ds-stat-card {
		min-width: 0;
		width: 100%;
		padding: 0.6rem 0.7rem;
	}

	.ds-stat-value {
		font-size: 1.3rem;
		margin-bottom: 0.25rem;
	}

	.ds-stat-label {
		font-size: 0.7rem;
		margin-top: 0.2rem;
	}
}

/* Tablet layout adjustments (1025px - 980px) */
@media (max-width: 1024px) and (min-width: 981px) {
	.hero {
		min-height: 420px;
		height: auto;
	}

	.hero .container {
		gap: 1.2rem;
	}

	.hero-content {
		padding: 1.25rem 1rem;
		border-radius: 14px;
	}

	.hero-title {
		font-size: clamp(1.8rem, 5.5vw, 2.4rem) !important;
		line-height: 1.15;
		margin-bottom: 0.8rem;
	}

	.hero-subtitle {
		font-size: 0.98rem;
		line-height: 1.5;
		margin-bottom: 1rem;
	}

}

/* Mobile layout hardening: hero */
@media (max-width: 980px) {
	#main-content,
	#primary,
	.content-area,
	.site-main,
	.site-container,
	.content-container {
		max-width: 100% !important;
		min-width: 0 !important;
		overflow-x: clip;
		box-sizing: border-box;
	}

	.container {
		max-width: 100% !important;
	}

	.hero {
		min-height: 380px;
		height: auto;
		padding: 1.5rem 0;
	}

	.hero .container {
		gap: 1rem;
		padding: 0 1rem;
	}

	.hero-content {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow: hidden;
		padding: 1.1rem 1rem;
		border-radius: 14px;
	}

	.hero-title {
		font-size: clamp(1.65rem, 6.5vw, 2.2rem) !important;
		line-height: 1.15;
		margin-bottom: 0.7rem;
		word-break: break-word;
		overflow-wrap: anywhere;
	}

	.hero-subtitle {
		font-size: 0.94rem;
		line-height: 1.5;
		margin-bottom: 0.95rem;
	}

	.hero-badge {
		max-width: 100%;
		font-size: 0.78rem;
		line-height: 1.2;
		margin-bottom: 0.65rem;
	}

	.hero-cta {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0.5rem;
		width: 100%;
	}

	.hero-scroll {
		display: none;
	}
}

/* Extra small mobile (max 480px) */
@media (max-width: 480px) {
	.hero {
		min-height: 340px;
		padding: 1.25rem 0;
	}

	.hero .container {
		padding: 0 0.75rem;
	}

	.hero-content {
		padding: 0.95rem 0.85rem;
	}

	.hero-title {
		font-size: clamp(1.35rem, 5.5vw, 1.8rem) !important;
		margin-bottom: 0.6rem;
	}

	.hero-subtitle {
		font-size: 0.88rem;
		margin-bottom: 0.8rem;
	}

}

/* Hero refinements from overrides */
/* Small overrides to better match mockup visuals */
.hero-heading { font-weight: 800; }

/* Increase hero sizes on large screens */
@media (min-width: 1024px) {
  .hero-heading { font-size: 4.5rem; line-height: 1; }
}

/* Make reveal elements transition nicely */
.reveal { transition: opacity 420ms ease, transform 420ms ease; transform: translateY(8px); }
.reveal.active { opacity:1; transform: translateY(0); }