/* =========================================================================
   CHOMP — Homepage
   Loaded only on the front page.
   ========================================================================= */
.home { overflow-x: clip; } /* safety net: no horizontal scroll from full-bleed/marquee */

/* HERO ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background:
	radial-gradient(60% 55% at 82% 20%, var(--chomp-primary-soft) 0%, transparent 60%),
	linear-gradient(180deg, var(--chomp-surface-alt) 0%, var(--chomp-bg) 55%);
	padding-block: clamp(2rem, 5vw, 4rem) 0; }
.hero__inner { display: grid; gap: var(--space-xl); align-items: center; }
/* The brand marquee fills the bottom of the hero as a flush divider strip. */
.hero__marquee { margin-top: clamp(1.75rem, 5vw, 3rem); }
/* Give the hero real height on larger screens; the content centres in the space
   above the marquee, so the cookie graphic never crowds the next section. */
@media (min-width: 900px) {
	.hero { display: flex; flex-direction: column; min-height: min(86vh, 780px); }
	.hero__inner { flex: 1 1 auto; align-content: center; }
}
[data-hero-left], [data-hero-right] { will-change: transform, opacity; }

/* Left column: vertical "Kelowna-Based Bakery" bar + text */
.hero__spine { display: flex; align-items: center; gap: .6rem; margin-bottom: var(--space-md); }
.hero__spine-bar { flex: none; width: 28px; height: 4px; border-radius: 999px; background: var(--chomp-primary); }
.hero__spine-text { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--chomp-teal-deep); }
.hero__title { font-size: var(--fs-hero); line-height: .98; letter-spacing: -0.02em; margin: .3rem 0 .7rem; }
.hero__lead { max-width: 34rem; }
.hero__cta { margin-top: var(--space-lg); }
.hero__trust { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-md); font-size: var(--fs-sm); font-weight: 600; color: var(--chomp-ink-2); }
.hero__trust li { display: inline-flex; align-items: center; gap: .4rem; }
.hero__trust .icon { color: var(--chomp-primary-700); }

.hero__media { position: relative; display: grid; place-items: center; }
.hero__stage { position: relative; width: min(90vw, 480px); aspect-ratio: 1 / 1; margin-inline: auto; }
/* Mint bite-notch slab behind, offset down-right */
.hero__slab { position: absolute; inset: 12% 0 0 14%; background: var(--chomp-primary); border-radius: var(--radius-2xl); box-shadow: var(--shadow-mint), var(--pillow-top); z-index: 1; }
.hero__slab::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-2xl); background-image: radial-gradient(rgba(255,255,255,.5) 1.5px, transparent 1.6px); background-size: 22px 22px; opacity: .45; }
/* Cookie photo in front, offset up-left so it breaks the slab frame */
.hero__photo { position: absolute; inset: 0 14% 12% 0; border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-lg); z-index: 2; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--placeholder { position: absolute; inset: 0; background: var(--chomp-primary-soft); }

/* COTM photo is a click-through to the product: invite it with a zoom + lift
   and a "view this cookie" cue on hover/focus. */
.hero__photo--link { display: block; cursor: pointer; text-decoration: none; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.hero__photo--link img { transition: transform .5s var(--ease-out); }
.hero__photo--link:hover, .hero__photo--link:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-2xl, var(--shadow-xl)); }
.hero__photo--link:hover img, .hero__photo--link:focus-visible img { transform: scale(1.06); }
.hero__photo-cue { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%) scale(.9); display: inline-flex; align-items: center; gap: .4rem; padding: .58rem 1rem; border-radius: var(--radius-pill); background: rgba(33,30,27,.9); color: #fff; font-weight: 800; font-size: .9rem; white-space: nowrap; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-spring); }
.hero__photo--link:hover .hero__photo-cue, .hero__photo--link:focus-visible .hero__photo-cue { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hero__photo-cue .icon { transition: transform var(--dur) var(--ease-out); }
.hero__photo--link:hover .hero__photo-cue .icon { transform: translateX(3px); }
.hero__cotm:focus-visible { outline: 3px solid var(--chomp-focus); outline-offset: 3px; }
.hero__sticker { position: absolute; top: 2%; right: 2%; z-index: 5; background: var(--chomp-sunny); color: var(--chomp-ink); font-weight: 700; animation: chomp-badge-in .7s .15s var(--ease-spring) both; }

/* Floating Cookie-of-the-Month card (the "graphic that appears") */
.hero__cotm { position: absolute; left: -5%; bottom: 6%; z-index: 6; display: flex; flex-direction: column; gap: .18rem; padding: .78rem 1.05rem; background: var(--chomp-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); text-decoration: none; transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease-spring); animation: chomp-badge-in .7s .35s var(--ease-spring) both; }
.hero__cotm:hover { transform: translateY(-4px); box-shadow: var(--shadow-2xl, var(--shadow-xl)); text-decoration: none; }
.hero__cotm-eyebrow { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--chomp-teal-deep); }
.hero__cotm-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 1.1rem + .8vw, 1.6rem); line-height: 1; color: var(--chomp-ink); }
.hero__cotm-stars { display: inline-flex; gap: 1px; margin-top: .22rem; color: #F5A623; }
.hero__cotm-stars .icon { width: 16px; height: 16px; }

.hero__blob { position: absolute; border-radius: 50%; filter: blur(6px); z-index: 0; pointer-events: none; }
.hero__blob--1 { width: 200px; height: 200px; background: radial-gradient(circle at 30% 30%, #B7E6DC, var(--chomp-primary)); top: -30px; right: 6%; opacity: .55; animation: chomp-float 8s var(--ease) infinite; }
.hero__blob--2 { width: 130px; height: 130px; background: radial-gradient(circle at 30% 30%, #FBD9A0, var(--chomp-caramel)); bottom: 4%; left: 2%; opacity: .4; animation: chomp-float 10s var(--ease) infinite reverse; }

@keyframes chomp-badge-in { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }

/* Entrance: content slides in from the left, media from the right (mirrors the scroll-out). */
/* fill-mode is `backwards` (not `both`) on purpose: the entrance still plays,
   but once it ends the animation stops overriding the element's transform, so
   the JS scroll-out (inline transform) can take over. Base state == the `to`
   frame, so there's no visual snap. */
@media (prefers-reduced-motion: no-preference) {
	[data-hero-left]  { animation: chomp-hero-in-left  .7s var(--ease-out) backwards; }
	[data-hero-right] { animation: chomp-hero-in-right .7s .08s var(--ease-out) backwards; }
}
@keyframes chomp-hero-in-left  { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@keyframes chomp-hero-in-right { from { opacity: 0; transform: translateX(36px);  } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.hero__cotm, .hero__sticker, [data-hero-left], [data-hero-right] { animation: none; }
	.hero__photo--link:hover, .hero__photo--link:focus-visible,
	.hero__photo--link:hover img, .hero__photo--link:focus-visible img { transform: none; }
	.hero__photo-cue { transition: opacity var(--dur) linear; }
	.hero__photo--link:hover .hero__photo-cue, .hero__photo--link:focus-visible .hero__photo-cue { transform: translate(-50%, -50%); }
}

@media (min-width: 900px) {
	.hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-3xl); }
	.hero__content { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(1rem, 1.6vw, 1.9rem); align-items: start; }
	.hero__spine { flex-direction: column; align-items: center; gap: .9rem; margin: .4rem 0 0; padding-top: .6rem; }
	.hero__spine-bar { width: 4px; height: 58px; }
	.hero__spine-text { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .2em; }
}

/* COOKIES SHOWCASE — Crumbl-style alternating feature rows ---------------
   COTM leads; every live cookie staggers photo-left / photo-right; hovering
   pops the cookie out of a soft mint bubble; each links to its product page. */
.cookies-showcase { background: var(--chomp-bg); overflow: hidden; }
.cookies-showcase__head { text-align: center; max-width: 44rem; margin: 0 auto clamp(2rem, 5vw, 4rem); }
.cookies-showcase__head h2 { font-size: var(--fs-3xl); margin: .35rem 0 .5rem; overflow-wrap: break-word; }
@media (max-width: 560px) { .cookies-showcase__head h2 { font-size: var(--fs-2xl); } }
.cookies-showcase__list { display: grid; gap: clamp(2.5rem, 6vw, 5.5rem); }
.cookies-showcase__foot { text-align: center; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.cookies-showcase__foot-title { font-size: var(--fs-2xl); margin: 0 0 .5rem; }
.cookies-showcase__foot-text { max-width: 48ch; margin: 0 auto var(--space-lg); color: var(--chomp-muted); }

.cookie-feature { display: grid; grid-template-columns: 1fr; gap: var(--space-lg) clamp(2rem, 5vw, 5rem); align-items: center; }

/* The plated cookie + mint bubble */
.cookie-feature__media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; width: 100%; max-width: 420px; margin-inline: auto; }
.cookie-feature__blob { position: absolute; inset: 0; border-radius: 50%; z-index: 0;
	background: radial-gradient(circle at 42% 38%, #BBE7DD 0%, var(--chomp-primary) 68%);
	opacity: .2; transform: scale(.84);
	transition: transform .55s var(--ease-spring), opacity .45s var(--ease-out); }
.cookie-feature__img { position: relative; z-index: 1; width: 80%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; background: var(--chomp-surface); box-shadow: var(--shadow-lg); transition: transform .55s var(--ease-spring); }
.cookie-feature:hover .cookie-feature__blob,
.cookie-feature:focus-within .cookie-feature__blob { opacity: .55; transform: scale(1.06); }
@media (prefers-reduced-motion: no-preference) {
	.cookie-feature:hover .cookie-feature__img,
	.cookie-feature:focus-within .cookie-feature__img { transform: scale(1.07) rotate(-3deg); }
}

/* Content */
.cookie-feature__content { text-align: center; }
.cookie-feature__badge { margin-bottom: var(--space-sm); }
.cookie-feature__name { font-size: var(--fs-2xl); margin: .1rem 0 .5rem; }
.cookie-feature__name a { color: inherit; }
.cookie-feature__name a:hover { color: var(--chomp-teal-deep); text-decoration: none; }
.cookie-feature__desc { color: var(--chomp-muted); font-size: var(--fs-md); max-width: 42ch; margin-inline: auto; }
.cookie-feature__cta { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: var(--space-lg); }
.cookie-feature.is-oos .cookie-feature__img { filter: saturate(.6) opacity(.85); }

/* COTM lead gets a touch more presence */
.cookie-feature--cotm .cookie-feature__media { max-width: 480px; }

/* Tablet + desktop: two columns, alternating photo side.
   Text is capped and pinned toward the centre gap on BOTH sides so the row
   spacing is uniform (photo-right rows no longer hug the screen edge). */
@media (min-width: 768px) {
	.cookie-feature { grid-template-columns: 1fr 1fr; }
	.cookie-feature__content { text-align: left; max-width: 34rem; }
	.cookie-feature__desc { margin-inline: 0; }
	.cookie-feature__cta { justify-content: flex-start; }
	/* Even rows: photo on the right, text pinned to the right of the left column. */
	.cookies-showcase__list > .cookie-feature:nth-child(even) .cookie-feature__media { order: 2; }
	.cookies-showcase__list > .cookie-feature:nth-child(even) .cookie-feature__content { margin-left: auto; }
	.cookie-feature--cotm { gap: clamp(2rem, 5vw, 6rem); }
}

/* WHY CHOMP — image-forward benefit cards (Milk Bar-inspired) ----------- */
.why-chomp { background: var(--chomp-surface-alt); }
.why-chomp__grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); grid-template-columns: 1fr; }
.why-card { text-align: center; }
.why-card__media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-2xl); overflow: hidden; overflow: clip; box-shadow: var(--shadow-md); background: var(--chomp-primary-soft); margin-bottom: var(--space-lg); }
.why-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.why-card:hover .why-card__img { transform: scale(1.05); }
.why-card__num { position: absolute; top: .9rem; left: .9rem; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--chomp-primary); color: var(--chomp-ink); font-family: var(--font-display); font-weight: 700; box-shadow: var(--shadow-sm), var(--pillow-top); }
.why-card__title { font-size: var(--fs-xl); margin-bottom: .35rem; }
.why-card__text { color: var(--chomp-muted); max-width: 34ch; margin-inline: auto; }
@media (min-width: 720px) { .why-chomp__grid { grid-template-columns: repeat(3, 1fr); } }

/* MARQUEE — sweeping "Okanagan sensation" ticker.
   Block container with overflow:hidden clips to the viewport; the flex track
   (2 identical groups) slides -50% for a seamless, overflow-free loop. */
.chomp-marquee { position: relative; overflow: hidden; height: clamp(3.25rem, 2.8rem + 2vw, 4.25rem); background: var(--chomp-primary); border-block: 3px solid var(--chomp-primary-600); user-select: none; }
/* Absolutely-positioned track can't expand the parent or the document width. */
.chomp-marquee__track { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: center; width: max-content; animation: chomp-marquee 34s linear infinite; }
.chomp-marquee__group { display: flex; align-items: center; flex: none; }
.chomp-marquee__item { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, .9rem + 1.4vw, 2rem); color: var(--chomp-ink); white-space: nowrap; padding-inline: .5rem; }
.chomp-marquee__sep { flex: none; width: 8px; height: 8px; margin-inline: .95rem; background: var(--chomp-teal-deep); transform: rotate(45deg); }
@keyframes chomp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.chomp-marquee:hover .chomp-marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .chomp-marquee__track { animation: none; } }

/* BESTSELLERS ----------------------------------------------------------- */
.bestsellers__all { flex: none; }

/* EVENTS TEASER --------------------------------------------------------- */
.events-teaser { background: var(--chomp-cream-2); }
.events-teaser__inner { display: grid; gap: var(--space-xl); align-items: center; }
.events-teaser__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); }
.events-teaser__item a { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "date name" "date loc"; gap: .1rem var(--space-md); align-items: center; background: var(--chomp-surface); border: 1px solid var(--chomp-border); border-radius: var(--radius-md); padding: var(--space-md); text-decoration: none; color: var(--chomp-ink); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.events-teaser__item a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.events-teaser__date { grid-area: date; font-family: var(--font-display); font-weight: 800; color: var(--chomp-primary-800); text-align: center; line-height: 1.1; padding-right: var(--space-md); border-right: 1px solid var(--chomp-border); }
.events-teaser__name { grid-area: name; font-weight: 700; }
.events-teaser__loc { grid-area: loc; display: inline-flex; align-items: center; gap: .3rem; color: var(--chomp-muted); font-size: var(--fs-sm); }
.events-teaser__empty { background: var(--chomp-surface); border: 1px dashed var(--chomp-border-2); border-radius: var(--radius-lg); padding: var(--space-xl); text-align: center; color: var(--chomp-muted); }
.events-teaser__emoji { font-size: 2.5rem; margin-bottom: .5rem; }
@media (min-width: 860px) { .events-teaser__inner { grid-template-columns: 1fr 1fr; } }

/* REVIEWS — card + grid styles now live in theme.css (shared with About). */

/* LOCAL SEO ------------------------------------------------------------- */
.local-seo__inner { display: grid; gap: var(--space-xl); align-items: center; }
.local-seo__facts { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; gap: .7rem; }
.local-seo__facts li { display: flex; align-items: flex-start; gap: .6rem; }
.local-seo__facts .icon { color: var(--chomp-primary-700); flex: none; margin-top: .1rem; }
.local-seo__map { width: 100%; }
@media (min-width: 860px) { .local-seo__inner { grid-template-columns: 1.1fr 0.9fr; } }

/* FAQ ------------------------------------------------------------------- */
.faq__list { display: grid; gap: .75rem; }
.faq__item { background: var(--chomp-surface); border: 1px solid var(--chomp-border); border-radius: var(--radius-md); overflow: hidden; }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) var(--space-lg); font-weight: 700; cursor: pointer; list-style: none; font-size: var(--fs-md); }
.faq__q::-webkit-details-marker { display: none; }
.faq__chevron { flex: none; color: var(--chomp-primary-700); transition: transform var(--dur) var(--ease); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__a { padding: 0 var(--space-lg) var(--space-lg); color: var(--chomp-muted); }
.faq__q:hover { background: var(--chomp-primary-soft); }

/* NEWSLETTER ------------------------------------------------------------ */
.newsletter { background: var(--chomp-primary-soft); }
.newsletter__inner { text-align: center; }
.newsletter__emoji { font-size: 3rem; display: block; margin-bottom: .3rem; }
.newsletter__form { display: flex; gap: .5rem; max-width: 30rem; margin: var(--space-lg) auto 0; flex-wrap: wrap; }
.newsletter__form input { flex: 1; min-width: 200px; }
.newsletter__form .btn { flex: none; }
.newsletter__fine { font-size: var(--fs-xs); color: var(--chomp-muted); margin-top: var(--space-sm); }
@media (min-width: 520px) { .newsletter__form { flex-wrap: nowrap; } }

/* OUR COMMUNITY — social platform cards ---------------------------------- */
.community { background: var(--chomp-surface-alt); }
.community__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
@media (min-width: 720px) { .community__grid { grid-template-columns: repeat(3, 1fr); } }
.community__card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; background: var(--chomp-surface); border: 1px solid var(--chomp-border); border-radius: var(--radius-xl); padding: var(--space-xl) var(--space-lg); box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease-out); }
.community__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.community__icon { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; color: #fff; margin-bottom: var(--space-sm); box-shadow: var(--shadow-sm), var(--pillow-top); }
.community__card--instagram .community__icon { background: linear-gradient(45deg, #F58529 0%, #DD2A7B 45%, #8134AF 100%); }
.community__card--facebook .community__icon { background: #1877F2; }
.community__card--tiktok .community__icon { background: #111; }
.community__label { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); color: var(--chomp-ink); }
.community__handle { color: var(--chomp-teal-deep); font-weight: 600; font-size: var(--fs-sm); }
.community__text { color: var(--chomp-muted); font-size: var(--fs-sm); max-width: 28ch; margin: .35rem auto var(--space-md); }
.community__cta { margin-top: auto; }
