/* Solove landing page (page-templates/landing.php).
   Content is block-editor markup; sections are Group blocks with these classes (Advanced → Additional CSS class).
   Dynamic parts: inc/landing-shortcodes.php. */

.solove-landing {
	--sl-ink: #2b2622;
	--sl-muted: #6f655c;
	--sl-gold: #b08a5b;
	--sl-cream: #f7f2eb;
	--sl-sand: #efe6da;
	--sl-dark: #2b2622;
	--sl-line: #e6ddd1;
	--sl-radius: 14px;
	color: var(--sl-ink);
	font-family: 'Alike', Georgia, serif;
	overflow-x: hidden;
}
.solove-landing h1, .solove-landing h2, .solove-landing h3 {
	font-family: 'Aboreto', 'Alike', Georgia, serif; color: var(--sl-ink); letter-spacing: .04em; font-weight: 400;
}
/* Classic theme: Group blocks wrap their content in an extra div - let the grid/flex rules see the children. */
.solove-landing .wp-block-group__inner-container { display: contents; }
.solove-landing p { margin: 0 0 12px; }
.solove-landing figure { margin: 0; }
.solove-landing img { display: block; max-width: 100%; height: auto; }
.sl-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sl-narrow { max-width: 780px; }
.sl-section { padding: 88px 0; }
.sl-center { text-align: center; margin-top: 32px !important; }
.sl-eyebrow { text-align: center; text-transform: uppercase; letter-spacing: .16em; font-size: 15px; color: var(--sl-gold); margin: 0 0 12px !important; }
.solove-landing .sl-h2 { text-align: center; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; margin: 0 0 16px; }
.sl-sub { text-align: center; color: var(--sl-muted); font-size: 17px; max-width: 640px; margin: 0 auto 40px !important; }
.sl-link a { color: var(--sl-gold); text-decoration: none; border-bottom: 1px solid currentColor; }

/* Buttons (Buttons block; style class on the Button) */
.solove-landing .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.sl-section .wp-block-buttons, .sl-final .wp-block-buttons, .sl-events__box .wp-block-buttons { justify-content: center; margin-top: 32px; }
.solove-landing .wp-block-button__link {
	display: inline-block; padding: 15px 30px; border-radius: 999px; font-size: 14px; letter-spacing: .1em;
	text-transform: uppercase; text-decoration: none; transition: all .2s ease; border: 1px solid transparent; background: none;
}
.sl-btn--dark .wp-block-button__link { background: var(--sl-dark); color: #fff; }
.sl-btn--dark .wp-block-button__link:hover { background: var(--sl-gold); color: #fff; }
.sl-btn--ghost .wp-block-button__link { border-color: var(--sl-ink); color: var(--sl-ink); }
.sl-btn--ghost .wp-block-button__link:hover { background: var(--sl-ink); color: #fff; }
.sl-btn--light .wp-block-button__link { background: #fff; color: var(--sl-ink); }
.sl-btn--light .wp-block-button__link:hover { background: var(--sl-gold); color: #fff; }

/* Hero */
.sl-hero { background: linear-gradient(180deg, var(--sl-cream) 0%, #fff 100%); padding: 56px 0 72px; }
.sl-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.sl-hero__text .sl-eyebrow { text-align: left; }
.solove-landing .sl-hero__title { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; margin: 0 0 24px; }
.sl-hero__title em { font-style: normal; color: var(--sl-gold); }
.sl-hero__lead { font-size: 19px; line-height: 1.6; color: var(--sl-muted); max-width: 520px; margin-bottom: 32px !important; }
.sl-hero__code { margin-top: 24px !important; font-size: 14px; color: var(--sl-muted); }
.sl-hero__code strong { color: var(--sl-ink); letter-spacing: .08em; }
.sl-hero__media { position: relative; min-height: 520px; }
.sl-hero__media figure { position: absolute; }
.sl-hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--sl-radius); box-shadow: 0 30px 60px -30px rgba(43, 38, 34, .45); }
.sl-hero__img--main { right: 0; top: 0; width: 78%; height: 100%; }
.sl-hero__img--small {
	left: 0; bottom: -28px; width: 42%; aspect-ratio: 1;
	/* Slow, GPU-composited float: sine-like easing and both ends defined, so there is no jump or jitter */
	animation: sl-float 4.5s cubic-bezier(.45, 0, .55, 1) infinite alternate;
	will-change: transform;
	backface-visibility: hidden;
}
.sl-hero__img--small img { border: 8px solid #fff; }
@keyframes sl-float {
	from { transform: translate3d(0, 0, 0) rotate(-.4deg); }
	to   { transform: translate3d(0, -12px, 0) rotate(.4deg); }
}
@media (prefers-reduced-motion: reduce) {
	.sl-hero__img--small { animation: none; }
}

/* Trust strip */
.sl-trust { border-top: 1px solid var(--sl-line); border-bottom: 1px solid var(--sl-line); background: #fff; }
.solove-landing .sl-trust__list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; padding-top: 22px; padding-bottom: 22px; }
.sl-trust__list li { text-align: center; font-size: 15px; color: var(--sl-muted); padding: 4px 8px; margin: 0; }
.sl-trust__list li + li { border-left: 1px solid var(--sl-line); }
.sl-trust__list strong { color: var(--sl-ink); }

/* How it works: Group "sl-steps" with Groups "sl-step" (numbered automatically) */
.sl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; counter-reset: sl-step; }
.sl-step { background: var(--sl-cream); border-radius: var(--sl-radius); padding: 36px 30px; counter-increment: sl-step; }
.sl-step::before {
	content: counter(sl-step); display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
	border-radius: 50%; background: var(--sl-dark); color: #fff; font-size: 18px; margin-bottom: 18px;
}
.solove-landing .sl-step h3 { font-size: 22px; margin: 0 0 10px; }
.sl-step p { color: var(--sl-muted); margin: 0; line-height: 1.6; }
.sl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.sl-stats p { text-align: center; padding: 22px 8px; border: 1px solid var(--sl-line); border-radius: var(--sl-radius); font-size: 14px; color: var(--sl-muted); margin: 0; }
.sl-stats strong { display: block; font-family: 'Aboreto', serif; font-size: 30px; color: var(--sl-gold); font-weight: 400; }

/* Category tiles [solove_category_tiles] */
.sl-cats { background: var(--sl-cream); }
.sl-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
.sl-tile { display: flex; flex-direction: column; background: #fff; border-radius: var(--sl-radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.sl-tile:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(43, 38, 34, .35); }
.sl-tile__img { aspect-ratio: 1; overflow: hidden; background: var(--sl-sand); }
.sl-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sl-tile:hover .sl-tile__img img { transform: scale(1.05); }
.sl-tile__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.sl-tile__title { font-family: 'Aboreto', serif; font-size: 18px; color: var(--sl-ink); }
.sl-tile__text { color: var(--sl-muted); font-size: 15px; }
.sl-tile__price { color: var(--sl-gold); font-size: 15px; margin-top: 4px; }

/* Scent finder [solove_scent_finder] */
.sl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.sl-chip { background: #fff; border: 1px solid var(--sl-line); color: var(--sl-ink); border-radius: 999px; padding: 10px 22px; font-size: 14px; cursor: pointer; transition: all .2s ease; font-family: inherit; }
.sl-chip:hover { border-color: var(--sl-ink); }
.sl-chip.is-active { background: var(--sl-dark); border-color: var(--sl-dark); color: #fff; }
.sl-scent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.sl-scent { display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--sl-line); border-radius: var(--sl-radius); overflow: hidden; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.sl-scent[hidden] { display: none; }
.sl-scent:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(43, 38, 34, .35); }
.sl-scent__img { aspect-ratio: 1; background: var(--sl-cream); overflow: hidden; }
.sl-scent__img img { width: 100%; height: 100%; object-fit: cover; }
.sl-scent__mood { margin: 18px 20px 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sl-gold); }
.sl-scent__name { margin: 6px 20px 0; font-family: 'Aboreto', serif; font-size: 20px; color: var(--sl-ink); }
.sl-scent__lead { margin: 10px 20px 0; font-size: 14px; line-height: 1.55; color: var(--sl-muted); }
.sl-scent__notes { margin: 12px 20px 0; font-size: 13px; color: var(--sl-ink); font-style: italic; }
.sl-scent__price { margin: auto 20px 0; padding: 16px 0 20px; display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.sl-scent__go { color: var(--sl-gold); font-size: 13px; letter-spacing: .06em; }

/* Colour swatches [solove_colour_swatches] */
.sl-colours { background: var(--sl-cream); }
.sl-swatches { display: grid; grid-template-columns: repeat(7, 1fr); gap: 22px 12px; max-width: 980px; margin: 0 auto; }
.sl-swatch { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--sl-muted); font-size: 13px; text-align: center; }
.sl-swatch__dot { width: 64px; height: 64px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 8px 18px -10px rgba(0, 0, 0, .45); transition: transform .2s ease; }
.sl-swatch:hover .sl-swatch__dot { transform: scale(1.12); }
.sl-swatch:hover { color: var(--sl-ink); }

/* Product grids ([products] shortcode) */
.sl-products .woocommerce, .sl-sets .woocommerce { margin-top: 36px; }

/* Why */
.sl-why { background: var(--sl-sand); }
.sl-why__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.sl-why__img img { width: 100%; border-radius: var(--sl-radius); aspect-ratio: 4 / 5; object-fit: cover; }
.sl-why__text .sl-eyebrow, .solove-landing .sl-why__text .sl-h2 { text-align: left; }
.solove-landing .sl-why__list { list-style: none; padding: 0; margin: 24px 0 0; }
.sl-why__list li { padding: 18px 0; border-bottom: 1px solid rgba(43, 38, 34, .12); color: var(--sl-muted); line-height: 1.6; margin: 0; }
.sl-why__list strong { color: var(--sl-ink); display: block; font-size: 17px; margin-bottom: 2px; }

/* Events */
.sl-events__box { background: var(--sl-dark); border-radius: 22px; padding: 64px 32px; text-align: center; }
.solove-landing .sl-events__box .sl-h2 { color: #fff; }
.sl-events__box .sl-sub { color: rgba(255, 255, 255, .72); margin-bottom: 0 !important; }

/* FAQ (Details blocks) */
.sl-faq .wp-block-details { border-bottom: 1px solid var(--sl-line); padding: 6px 0; }
.sl-faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-size: 18px; position: relative; }
.sl-faq summary::-webkit-details-marker { display: none; }
.sl-faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--sl-gold); transition: transform .2s ease; }
.sl-faq details[open] summary::after { transform: rotate(45deg); }
.sl-faq .wp-block-details p { color: var(--sl-muted); line-height: 1.65; margin: 0 0 18px; }

/* Final CTA */
/* Cover block: photo and overlay are set in the editor */
.solove-landing .wp-block-cover.sl-final { min-height: 460px; padding: 96px 24px; text-align: center; }
.solove-landing .sl-final__title { color: #fff; font-size: clamp(28px, 4vw, 48px); margin: 0; text-align: center; }

/* Responsive */
@media (max-width: 1024px) {
	.sl-tiles, .sl-scent-grid { grid-template-columns: repeat(2, 1fr); }
	.sl-swatches { grid-template-columns: repeat(5, 1fr); }
	.sl-why__grid { gap: 40px; }
}
@media (max-width: 768px) {
	.sl-section { padding: 64px 0; }
	.sl-wrap { padding: 0 16px; }
	.sl-hero { padding-top: 32px; }
	.sl-hero__grid, .sl-why__grid { grid-template-columns: 1fr; }
	.sl-hero__media { min-height: 380px; order: -1; }
	.sl-hero__img--main { width: 82%; }
	.sl-hero__img--small { bottom: -16px; width: 40%; }
	.solove-landing .sl-trust__list { grid-template-columns: repeat(2, 1fr); gap: 12px 0; }
	.sl-trust__list li:nth-child(3) { border-left: 0; }
	.sl-steps { grid-template-columns: 1fr; }
	.sl-stats { grid-template-columns: 1fr 1fr; }
	.sl-swatches { grid-template-columns: repeat(4, 1fr); }
	.sl-swatch__dot { width: 52px; height: 52px; }
	/* Scents: swipeable row instead of a long column */
	.sl-scent-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 0 16px 12px; scrollbar-width: none; }
	.sl-scent-grid::-webkit-scrollbar { display: none; }
	.sl-scent { flex: 0 0 72%; scroll-snap-align: start; }
}
@media (max-width: 480px) {
	.sl-tile__text { display: none; }
	.sl-tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
	.sl-tile__body { padding: 14px; }
	.sl-scent { flex-basis: 78%; }
}

/* Savoy's list block class (nm-block-list) adds disc bullets and a left padding to every list item;
   the landing lists are styled without bullets */
.solove-landing ul.nm-block-list.sl-trust__list li,
.solove-landing ul.nm-block-list.sl-why__list li { list-style: none; }
.solove-landing ul.nm-block-list.sl-trust__list,
.solove-landing ul.nm-block-list.sl-why__list { padding-left: 0; margin-bottom: 0; }
