/*
 * Homepage redesign styles.
 * Loaded only on the front page (see astra_child_enqueue_homepage_styles()).
 *
 * Palette: black / gold / cream.
 * Headings use a system serif stack (Georgia) rather than a webfont, to
 * avoid an extra font-loading request — swap for a licensed display serif
 * (e.g. Playfair Display) later if desired.
 */

:root {
	--ss-black: #0b0b0b;
	--ss-gold: #c9a24b;
	--ss-gold-light: #e6cd8f;
	/* Deeper gold for text/icons on light (cream/white) backgrounds —
	   --ss-gold itself only meets WCAG AA on dark backgrounds (8.2:1 on
	   --ss-black; just 2.1:1 on --ss-cream, well under the 4.5:1
	   minimum). This variant measures ~5.2:1 on white / ~4.6:1 on
	   cream. Reserve --ss-gold for dark backgrounds only. */
	--ss-gold-dark: #86691d;
	--ss-cream: #f7f1e6;
}

.ss-homepage {
	overflow-x: hidden;
}

/* ---- Hero ---- */

.ss-hero {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	background: var(--ss-black);
	color: var(--ss-cream);
	padding: 2.5rem 1.25rem 3rem;
	text-align: center;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.ss-hero__media {
	width: 100%;
	max-width: 260px;
	margin-bottom: 2rem;
}

.ss-hero__image {
	width: 100%;
	height: auto;
	display: block;
}

.ss-hero__eyebrow {
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-size: 0.75rem;
	color: var(--ss-gold);
	margin: 0 0 0.75rem;
}

.ss-hero__title {
	font-family: Georgia, 'Times New Roman', serif;
	font-weight: 400;
	font-size: clamp(2rem, 8vw, 3.25rem);
	letter-spacing: 0.02em;
	margin: 0 0 1.75rem;
	color: var(--ss-cream);
}

/*
 * Primary CTA, dark-background variant (gold fill / black text) — the
 * hero section has a black background, so the site's usual black-fill
 * CTA would be invisible here; gold-fill is the necessary exception,
 * kept intentionally. Sizing (padding/letter-spacing/font-size) is
 * unified with every other primary CTA sitewide during the polish
 * pass — only the color inverts for contrast.
 */
.ss-hero__cta {
	display: inline-block;
	padding: 1rem 2rem;
	border: 1px solid var(--ss-gold);
	background: var(--ss-gold);
	color: var(--ss-black);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.85rem;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ss-hero__cta:hover,
.ss-hero__cta:focus-visible {
	background: transparent;
	color: var(--ss-gold);
}

@media (min-width: 782px) {
	.ss-hero {
		flex-direction: row;
		justify-content: center;
		gap: 4rem;
		padding: 5rem 3rem;
		text-align: left;
	}

	.ss-hero__content {
		text-align: left;
	}

	.ss-hero__media {
		max-width: 360px;
		margin-bottom: 0;
	}
}

/* ---- Bestsellers ---- */

.ss-bestsellers {
	background: var(--ss-cream);
	padding: 3rem 1.25rem;
}

.ss-bestsellers__header {
	text-align: center;
	margin-bottom: 2rem;
}

.ss-section-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-weight: 400;
	font-size: clamp(1.5rem, 5vw, 2.25rem);
	color: var(--ss-black);
	margin: 0 0 0.5rem;
}

.ss-section-title--on-dark {
	color: var(--ss-cream);
}

.ss-section-subtitle {
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-size: 0.75rem;
	color: var(--ss-gold-dark);
	margin: 0;
}

.ss-bestsellers__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

.ss-product-card {
	margin: 0;
}

.ss-product-card__link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.ss-product-card__media {
	display: block;
	background: #fff;
	border: 1px solid rgba(11, 11, 11, 0.08);
	overflow: hidden;
	margin-bottom: 0.75rem;
}

.ss-product-card__image {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.ss-product-card__link:hover .ss-product-card__image,
.ss-product-card__link:focus-visible .ss-product-card__image {
	transform: scale(1.04);
}

.ss-product-card__name {
	font-size: 0.9rem;
	color: var(--ss-black);
	margin-bottom: 0.25rem;
}

.ss-product-card__price {
	font-size: 0.9rem;
	color: var(--ss-gold-dark);
	font-weight: 600;
}

.ss-product-card__price del {
	color: rgba(11, 11, 11, 0.4);
	font-weight: 400;
	margin-right: 0.4em;
}

.ss-product-card__price ins {
	text-decoration: none;
}

@media (min-width: 600px) {
	.ss-bestsellers__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 992px) {
	.ss-bestsellers {
		padding: 5rem 3rem;
	}

	.ss-bestsellers__grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 2rem;
	}
}

/* ---- Shop by category ---- */

.ss-categories {
	background: #fff;
	padding: 3rem 1.25rem;
}

.ss-categories__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

.ss-category-card__link {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 220px;
	background: var(--ss-black);
	text-decoration: none;
	overflow: hidden;
}

.ss-category-card__media {
	position: absolute;
	inset: 0;
}

.ss-category-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0.55;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.ss-category-card__link:hover .ss-category-card__image,
.ss-category-card__link:focus-visible .ss-category-card__image {
	opacity: 0.7;
	transform: scale(1.04);
}

.ss-category-card__label {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	padding: 1.25rem;
	color: var(--ss-cream);
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-size: 0.95rem;
	text-align: center;
	background: linear-gradient(to top, rgba(11, 11, 11, 0.85), rgba(11, 11, 11, 0));
}

@media (min-width: 600px) {
	.ss-categories__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 992px) {
	.ss-categories {
		padding: 5rem 3rem;
	}

	.ss-category-card__link {
		min-height: 320px;
	}
}

/* ---- Trust signals ---- */

.ss-trust {
	background: var(--ss-cream);
	padding: 2.5rem 1.25rem;
	/* Gold divider — matches the same trust-badges component on the
	   product page (.ss-product-trust), previously black-based here. */
	border-top: 1px solid rgba(201, 162, 75, 0.3);
}

.ss-trust__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
}

.ss-trust__item {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ss-trust__icon {
	color: var(--ss-gold-dark);
	margin-bottom: 0.75rem;
}

.ss-trust__title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 1.05rem;
	color: var(--ss-black);
	margin-bottom: 0.25rem;
}

.ss-trust__desc {
	font-size: 0.85rem;
	color: rgba(11, 11, 11, 0.65);
}

@media (min-width: 600px) {
	.ss-trust__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 992px) {
	.ss-trust {
		padding: 3.5rem 3rem;
	}
}

/* ---- Testimonials ---- */

.ss-testimonials {
	background: var(--ss-black);
	padding: 3rem 1.25rem;
}

.ss-testimonials__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	max-width: 1100px;
	margin-inline: auto;
}

.ss-testimonial-card {
	border: 1px solid rgba(201, 162, 75, 0.3);
	padding: 1.75rem 1.5rem;
	text-align: center;
}

.ss-testimonial-card__stars {
	display: block;
	color: var(--ss-gold);
	letter-spacing: 0.15em;
	margin-bottom: 0.75rem;
}

.ss-testimonial-card__quote {
	font-family: Georgia, 'Times New Roman', serif;
	font-style: italic;
	color: var(--ss-cream);
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0 0 1rem;
}

.ss-testimonial-card__author {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.75rem;
	color: var(--ss-gold);
	margin: 0;
}

@media (min-width: 600px) {
	.ss-testimonials__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 992px) {
	.ss-testimonials {
		padding: 5rem 3rem;
	}
}
