/* Shooglis homepage hero: four slides, photo + bordeaux panel (Jonas, 31 Oct 2026, after drinkdesoi.com).
   Desktop: photo left, text right (in RTL the panel is the first column). Phones: photo on top, text below.
   Slides are stacked in one grid cell and cross-fade; only opacity and transform animate.
   Under it: the promise band, a running line. RTL first. */

.shg-hs { position: relative; margin-inline: var(--hero-inset, 20px); border-radius: var(--r-hero, 28px); overflow: hidden; background: var(--inverse, #4c1e20); color: var(--on-inverse, #fff6ee); isolation: isolate; }
.shg-hs__track { display: grid; }
.shg-hs__slide {
	/* Each slide's colours (Jonas, 31 Oct): bordeaux by default; a slide sets its own with data-tone. */
	--hs-bg: var(--inverse, #4c1e20); --hs-fg: var(--on-inverse, #fff6ee); --hs-btn-bg: var(--seashell, #fff6ee); --hs-btn-fg: var(--inverse, #4c1e20);
	grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "panel media";
	block-size: 560px; opacity: 0; visibility: hidden;
	transition: opacity 700ms var(--m-out, cubic-bezier(.16, 1, .3, 1)), visibility 0s linear 700ms;
}
.shg-hs__slide.is-on { opacity: 1; visibility: visible; transition: opacity 700ms var(--m-out, cubic-bezier(.16, 1, .3, 1)), visibility 0s; z-index: 1; }
/* Each panel takes its colour from its photo (Jonas, 31 Oct): deep photos get a deep panel with cream text,
   light photos a light panel with ink text and a bordeaux button. All pass 4.5:1. */
.shg-hs__slide[data-slide="all"] { --hs-bg: #f6ede4; --hs-fg: #381b20; --hs-btn-bg: #4c1e20; --hs-btn-fg: #fff6ee; } /* light paper against the bordeaux photo (Jonas: light, dark text, high contrast) */
.shg-hs__slide[data-slide="hanukkah"] { --hs-bg: #dccdbd; --hs-fg: #381b20; --hs-btn-bg: #4c1e20; --hs-btn-fg: #fff6ee; } /* the sand under the open box */
.shg-hs__slide[data-slide="business"] { --hs-bg: #c6dae6; --hs-fg: #381b20; --hs-btn-bg: #4c1e20; --hs-btn-fg: #fff6ee; } /* Pale Sky, text in Rich Mahogany, the darkest colour in the palette (Jonas, 31 Oct) */
.shg-hs__slide[data-slide="today"] { --hs-bg: #4a2122; --hs-btn-fg: #4a2122; } /* the bordeaux box */
.shg-hs { --hs-nav: #381b20; }
.shg-hs[data-tone="hanukkah"] { --hs-nav: #381b20; }
.shg-hs[data-tone="business"] { --hs-nav: #381b20; }
.shg-hs[data-tone="today"] { --hs-nav: #4a2122; }
.shg-hs__media { grid-area: media; display: block; position: relative; overflow: hidden; background: var(--tile, #eedecf); }
.shg-hs__img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7000ms linear; }
.shg-hs__slide.is-on .shg-hs__img { transform: scale(1); }
.shg-hs__panel { grid-area: panel; background: var(--hs-bg); color: var(--hs-fg); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px; padding: 56px clamp(32px, 5vw, 80px) 96px; text-align: center; }
.shg-hs__t { margin: 0; font-family: var(--font-body); font-weight: 400; font-size: clamp(40px, 4.2vw, 60px); line-height: 1.06; letter-spacing: 0; text-transform: none; color: inherit; text-wrap: balance; max-inline-size: 13ch; }
.shg-hs__slide[data-slide="all"] .shg-hs__t { max-inline-size: 16ch; } /* the H1 is longer than the other headlines */
.shg-hs__s { margin: 0; max-inline-size: 30em; font-size: 18px; line-height: 1.5; color: color-mix(in srgb, var(--hs-fg) 86%, transparent); text-wrap: pretty; }
.shg-hs__btn { margin-block-start: 6px; background: var(--hs-btn-bg); border-color: var(--hs-btn-bg); color: var(--hs-btn-fg); }
.shg-hs__btn:hover { background: transparent; border-color: var(--hs-fg); color: var(--hs-fg); }
.shg-hs__panel > * { transform: translateY(10px); opacity: 0; transition: transform 600ms var(--m-out, ease-out), opacity 600ms var(--m-out, ease-out); }
.shg-hs__slide.is-on .shg-hs__panel > * { transform: none; opacity: 1; }
.shg-hs__slide.is-on .shg-hs__panel > :nth-child(2) { transition-delay: 70ms; }
.shg-hs__slide.is-on .shg-hs__panel > :nth-child(3) { transition-delay: 140ms; }
/* The first paint shows slide 1 at once: no fade, no rise, no zoom (LCP). */
.shg-hs:not(.is-ready) .shg-hs__slide.is-on, .shg-hs:not(.is-ready) .shg-hs__slide.is-on * { transition: none !important; }

/* arrows and dots: bottom centre of the whole hero, across the seam (Jonas, 31 Oct) */
.shg-hs__nav { position: absolute; z-index: 2; inset-block-end: 28px; inset-inline: 0; inline-size: max-content; margin-inline: auto; display: flex; justify-content: center; align-items: center; gap: 14px; padding: 6px; border-radius: 99px; background: color-mix(in srgb, var(--hs-nav) 76%, transparent); transition: background-color 700ms; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); } /* a bordeaux pill, so it reads over the photo too */
.shg-hs__arr { display: grid; place-items: center; inline-size: 36px; block-size: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgb(255 246 238 / .12); color: inherit; cursor: pointer; transition: background-color 200ms, transform 120ms var(--m-out, ease-out); }
.shg-hs__arr svg { inline-size: 18px; block-size: 18px; }
.shg-hs__arr:hover { background: rgb(255 246 238 / .24); }
.shg-hs__arr:active { transform: scale(.94); }
.shg-hs__dots { display: flex; align-items: center; gap: 8px; }
.shg-hs__dot { position: relative; inline-size: 8px; block-size: 8px; margin: 0; padding: 0; border: 0; border-radius: 99px; background: rgb(255 246 238 / .4); cursor: pointer; overflow: hidden; transition: inline-size 300ms var(--m-out, ease-out), background-color 200ms; }
.shg-hs__dot::before { content: ""; position: absolute; inset: -10px; } /* a bigger tap target */
.shg-hs__dot[aria-current="true"] { inline-size: 44px; background: rgb(255 246 238 / .35); }
.shg-hs__dot i { position: absolute; inset: 0; border-radius: inherit; background: var(--on-inverse, #fff6ee); transform: scaleX(0); transform-origin: right; }
.shg-hs__dot[aria-current="true"] i { transform: scaleX(1); }
.shg-hs.is-playing .shg-hs__dot[aria-current="true"] i { animation: shg-hs-fill var(--hs-ms, 7000ms) linear both; }
.shg-hs.is-paused .shg-hs__dot[aria-current="true"] i { animation-play-state: paused; }
@keyframes shg-hs-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.shg-hs__arr:focus-visible, .shg-hs__dot:focus-visible { outline: 2px solid var(--on-inverse, #fff6ee); outline-offset: 3px; }
.shg-hs__btn:focus-visible { outline: 2px solid var(--hs-fg); outline-offset: 3px; }

/* the promise band under the hero */
.shg-hsb { margin: 12px var(--hero-inset, 20px) 0; border-radius: 14px; background: #faf0e7; /* a quarter Almond Cream on Seashell: Seashell alone was too light on the white page (Jonas, 2 Nov) */ color: var(--ink, #381b20); overflow: hidden; }
.shg-hsb__track { display: flex; inline-size: max-content; animation: shg-hsb-run 48s linear infinite; }
.shg-hsb:hover .shg-hsb__track { animation-play-state: paused; }
.shg-hsb__list { display: flex; flex: 0 0 auto; margin: 0; padding: 0; list-style: none; }
.shg-hsb__list li { display: inline-flex; align-items: center; block-size: 48px; font-size: 15px; white-space: nowrap; }
.shg-hsb__list li::after { content: ""; inline-size: 6px; block-size: 6px; margin-inline: 22px; border-radius: 50%; background: var(--inverse, #4c1e20); }
@keyframes shg-hsb-run { to { transform: translateX(50%); } } /* RTL: the line runs to the right; two equal lists make it seamless */

@media (max-width: 749px) {
	.shg-hs { margin-inline: 12px; border-radius: 22px; }
	.shg-hs__slide { grid-template-columns: 1fr; grid-template-areas: "media" "panel"; block-size: auto; }
	/* Phones (Jonas, 3 Nov): the hero fits the first screen with the button and the promise band in view.
	   The photo is capped at a third of the screen, the arrows and dots sit on the photo's bottom edge,
	   so the panel needs no room for them, and the headline runs wider (two lines, not three). */
	.shg-hs { --hs-ph: min(calc((100vw - 24px) * .6), 34svh); }
	.shg-hs__slide { grid-template-rows: var(--hs-ph) 1fr; } /* the panel takes any spare height, so no strip shows under a shorter slide */
	.shg-hs__media { aspect-ratio: auto; block-size: var(--hs-ph); }
	.shg-hs__panel { gap: 10px; padding: 18px 20px 22px; }
	.shg-hs__t { font-size: 27px; line-height: 1.1; max-inline-size: 18ch; }
	.shg-hs__s { font-size: 14.5px; line-height: 1.4; }
	.shg-hs__btn { margin-block-start: 4px; }
	.shg-hs__nav { inset-block-end: auto; inset-block-start: calc(var(--hs-ph) - 50px); gap: 10px; padding: 4px; }
	.shg-hs__arr { inline-size: 32px; block-size: 32px; }
	.shg-hsb { margin-inline: 12px; border-radius: 12px; }
	.shg-hsb__list li { block-size: 40px; font-size: 13.5px; }
	.shg-hsb__list li::after { margin-inline: 16px; }
}
@media (min-width: 750px) and (max-width: 1023px) {
	.shg-hs__slide { block-size: 480px; }
	.shg-hs__panel { padding-inline: 28px; }
}

@media (prefers-reduced-motion: reduce) {
	.shg-hs__slide, .shg-hs__slide.is-on, .shg-hs__panel > *, .shg-hs__img { transition: none !important; }
	.shg-hs__img { transform: none; }
	.shg-hsb__track { animation: none; inline-size: auto; overflow-x: auto; scrollbar-width: none; }
	.shg-hsb__list[aria-hidden="true"] { display: none; }
}
