/* Himalayan Berry. Brand palette from the identity sheet + the two can colours from the print labels. */
@font-face { font-family: "Lilita One"; src: url("../fonts/lilita-one.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --navy: #262f5c;
  --navy-deep: #1a2147;
  --teal: #0c7e8b;
  --sky: #bfd7ea;
  --sky-deep: #a9c8e1;
  --paper: #f7f3f6;
  --ink: #202124;
  --rr: #f0a8e4;        /* Raspberry Rush can */
  --rr-tint: #f8d9f2;
  --rr-deep: #c2559f;
  --pc: #f0c0cc;        /* Peach Charm can */
  --pc-tint: #fbe6ea;
  --pc-deep: #d9757f;
  --line: rgba(38, 47, 92, .14);
  --display: "Caraque Melted", "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Forma DJR Text", "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --radius: 28px;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 400 1.0625rem/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .95; margin: 0 0 .35em; text-transform: uppercase; letter-spacing: .005em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 200; width: auto; height: auto; clip: auto; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 12px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 2.5px solid var(--navy);
  background: var(--bg); color: var(--fg); font: 800 1.02rem/1 var(--body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 5px 0 var(--navy-deep);
  transition: transform .18s var(--bounce), box-shadow .18s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--navy-deep); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--navy-deep); }
.btn--light { --bg: #fff; --fg: var(--navy); }
.btn--light:hover { --bg: var(--paper); }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Top bar + header ---------- */
.announce { background: var(--navy); color: #fff; text-align: center; font-weight: 700; font-size: .9rem; padding: 9px var(--gutter); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 243, 246, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 70px; gap: 12px; }
.nav { display: flex; gap: 26px; }
.nav a { font-weight: 800; text-decoration: none; font-size: .98rem; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2.5px; text-underline-offset: 6px; }
.brand { width: 136px; color: var(--navy); display: block; }
.brand img { width: 100%; height: auto; display: block; }
.header-end { display: flex; justify-content: flex-end; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 2.5px solid var(--navy); background: #fff; font-weight: 800; cursor: pointer; }
.cart-btn:hover { background: var(--navy); color: #fff; }
.cart-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--rr); color: var(--navy); font-size: .8rem; line-height: 24px; text-align: center; }
.cart-count.bump { animation: bump .5s var(--bounce); }
@keyframes bump { 30% { transform: scale(1.5) rotate(-8deg); } }
@media (max-width: 760px) {
  .site-header .wrap { grid-template-columns: 1fr auto; min-height: 62px; }
  .nav { display: none; }
  .brand { width: 112px; }
  .cart-btn .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* hidden but still read out */
}

/* ---------- Hero ---------- */
/* --hero-blue is the backdrop colour of the splash photo, so the photo melts into it. */
.hero { --hero-blue: #9ccdef; position: relative; background: var(--hero-blue); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0 0 0 34%; z-index: -2; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 100% center; animation: drift 12s ease-in-out infinite alternate; transform-origin: 85% 50%; }
@keyframes drift { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.06) translateY(-1.5%); } }
.hero .wrap { min-height: clamp(560px, 78vh, 760px); display: flex; flex-direction: column; justify-content: center; padding-top: 48px; padding-bottom: 64px; }
.hero-copy { max-width: min(520px, 40vw); }
.hero h1 { font-size: clamp(3.4rem, 7vw, 6.4rem); color: var(--navy); }
.hero h1 .word { display: inline-block; animation: pop-in .8s var(--bounce) both; }
.hero h1 .word:nth-child(2) { animation-delay: .12s; }
.hero h1 .word:nth-child(3) { animation-delay: .24s; }
/* Movement only, never hidden: the headline is the page's main content. */
@keyframes pop-in { from { transform: translateY(40px) rotate(-6deg) scale(.8); } }
.hero p { font-size: clamp(1.1rem, 1.7vw, 1.3rem); font-weight: 600; max-width: 30ch; animation: fade-up .8s .35s var(--ease) both; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; animation: fade-up .8s .5s var(--ease) both; }
@keyframes fade-up { from { transform: translateY(24px); } }
@media (max-width: 760px) {
  /* Phones: words first, then the splash underneath, so text never sits on the cans. */
  .hero { --hero-blue: #a7cdee; display: flex; flex-direction: column; }
  .hero .wrap { order: 1; min-height: 0; padding-top: 30px; padding-bottom: 6px; }
  .hero-copy { max-width: none; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .hero-bg { order: 2; position: relative; inset: auto; height: min(70vh, 560px); margin-top: -10px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%); mask-image: linear-gradient(180deg, transparent 0, #000 14%); }
  .hero-bg img { object-position: center 72%; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .floaters img:nth-child(3), .floaters img:nth-child(4) { display: none; } /* keep the headline clear */
}

/* Floating fruit: drifts on its own, and moves with scroll (JS sets --py). */
.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.floaters img { position: absolute; width: var(--s, 70px); transform: translate3d(0, var(--py, 0px), 0) rotate(var(--r, 0deg)); filter: drop-shadow(0 12px 18px rgba(38, 47, 92, .18)); }

.bob { animation: bob var(--t, 6s) ease-in-out infinite alternate; }
@keyframes bob { to { translate: 0 -18px; rotate: 8deg; } }

/* ---------- Claims strip (marquee) ---------- */
.marquee { background: var(--navy); color: #fff; overflow: hidden; border-block: 3px solid var(--navy); }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 16px 17px; font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); text-transform: uppercase; white-space: nowrap; }
.marquee li img { width: 34px; height: 34px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
.section-head p { font-size: 1.15rem; font-weight: 600; margin: 0; }

/* ---------- Flavour switcher ---------- */
.flavours { background: var(--tint, var(--rr-tint)); transition: background-color .6s var(--ease); overflow: hidden; }
.flavours[data-flavour="peach-charm"] { --tint: var(--pc-tint); --accent: var(--pc); --deep: var(--pc-deep); }
.flavours[data-flavour="raspberry-rush"] { --tint: var(--rr-tint); --accent: var(--rr); --deep: var(--rr-deep); }
.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: clamp(24px, 4vw, 40px); flex-wrap: wrap; }
.tab { min-height: 50px; padding: 0 24px; border-radius: 999px; border: 2.5px solid var(--navy); background: #fff; font-weight: 800; cursor: pointer; transition: transform .2s var(--bounce), background-color .2s; }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; transform: scale(1.06); }
.flavour-stage { display: grid; grid-template-columns: 1fr minmax(220px, 340px) 1fr; align-items: center; gap: clamp(16px, 4vw, 48px); }
.flavour-can { position: relative; display: grid; place-items: center; height: clamp(340px, 42vw, 520px); }
.flavour-can::before { content: ""; position: absolute; inset: 12% -10%; border-radius: 50%; background: var(--accent, var(--rr)); filter: blur(4px); transform: scale(.9); transition: background-color .6s var(--ease); z-index: 0; }
.flavour-can img.can { position: relative; z-index: 1; height: 100%; width: auto; max-width: none; min-height: 0; filter: drop-shadow(0 30px 30px rgba(38, 47, 92, .25)); }
.flavour-can img.can.swap { animation: can-swap .7s var(--bounce); }
@keyframes can-swap { from { transform: translateY(40px) rotate(-14deg) scale(.7); opacity: 0; } }
.flavour-can .orbit { position: absolute; z-index: 2; width: 26%; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(38, 47, 92, .2)); transition: opacity .4s; }
.flavour-copy h3 { font-size: clamp(2.4rem, 5vw, 4rem); }
.flavour-copy .taste { font-size: 1.2rem; font-weight: 600; max-width: 26ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--navy); font-weight: 800; font-size: .9rem; }
.flavour-buy { text-align: right; justify-self: end; }
.flavour-buy .price { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.flavour-buy .per { font-weight: 700; margin: 6px 0 16px; }
@media (max-width: 860px) {
  .flavour-stage { grid-template-columns: 1fr; text-align: center; }
  .flavour-can { height: 340px; width: 240px; margin: 0 auto; order: -1; }
  .flavour-copy .taste { margin-inline: auto; }
  .chips { justify-content: center; }
  .flavour-buy { justify-self: center; text-align: center; }
}

/* ---------- Shop cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 32px); list-style: none; padding: 0; margin: 0; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { background: #fff; border: 2.5px solid var(--navy); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 8px 0 var(--navy); transition: transform .25s var(--bounce), box-shadow .25s; }
.card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 14px 0 var(--navy); }
.card-media { position: relative; aspect-ratio: 1; background: var(--card-tint); display: grid; place-items: center; overflow: hidden; }
.card-media::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--card-colour); opacity: .55; }
.card-media .cans { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; }
.card-media .cans img { height: 78%; width: auto; max-width: none; filter: drop-shadow(0 18px 18px rgba(38, 47, 92, .22)); transition: transform .45s var(--bounce); }
.card-media .cans img:first-child:not(:last-child) { transform: rotate(-7deg); }
.card-media .cans img + img { margin-left: -2%; transform: rotate(7deg) translateY(3%); }
.card:hover .card-media .cans img:first-child { transform: rotate(-6deg) translateY(-4%); }
.card-media .tag { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--navy); color: #fff; font-weight: 800; font-size: .82rem; padding: 6px 12px; border-radius: 999px; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 2rem; margin: 0; }
.card-body .taste { margin: 0; font-weight: 600; }
.pack-line { font-weight: 800; color: var(--teal); font-size: .95rem; margin: 0; }
.price-row { display: flex; align-items: baseline; gap: 10px; }
.price-row .now { font-family: var(--display); font-size: 2.1rem; line-height: 1; }
.price-row del { color: #5b6180; font-weight: 600; } /* readable grey, 6:1 on white */
.packs { display: inline-flex; padding: 3px; border: 2.5px solid var(--navy); border-radius: 999px; align-self: flex-start; }
.packs button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 800; cursor: pointer; }
.packs button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.card .btn { margin-top: auto; }

/* ---------- What's in the can ---------- */
.inside { background: var(--sky); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); list-style: none; padding: 0; margin: 0 0 clamp(32px, 5vw, 56px); }
.facts li { background: #fff; border: 2.5px solid var(--navy); border-radius: var(--radius); padding: 26px 22px; text-align: center; transition: transform .3s var(--bounce); }
.facts li:hover { transform: rotate(-2deg) scale(1.03); }
.facts img { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 12px; }
.facts strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.7rem; text-transform: uppercase; line-height: 1; margin-bottom: 6px; }
.facts span { font-weight: 600; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tastes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
.taste-card { display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: center; border-radius: var(--radius); padding: 22px; border: 2.5px solid var(--navy); }
.taste-card img { height: 150px; width: auto; justify-self: center; }
.taste-card h3 { font-size: 1.8rem; margin-bottom: .2em; }
.taste-card p { margin: 0; font-weight: 600; }
.taste-card.rr { background: var(--rr-tint); }
.taste-card.pc { background: var(--pc-tint); }
@media (max-width: 760px) { .tastes { grid-template-columns: 1fr; } }

/* ---------- Photo strip ---------- */
.reel { padding: clamp(48px, 7vw, 80px) 0; overflow: hidden; background: var(--paper); }
.reel-track { display: flex; gap: 20px; width: max-content; animation: marquee 50s linear infinite; }
.reel:hover .reel-track { animation-play-state: paused; }
.reel figure { margin: 0; flex: none; height: clamp(260px, 34vw, 420px); border-radius: var(--radius); overflow: hidden; border: 2.5px solid var(--navy); transform: rotate(var(--tilt, 0deg)); }
.reel figure img { height: 100%; width: auto; }
.reel-follow { text-align: center; margin-top: 28px; font-weight: 800; }
.reel-follow a { text-decoration-thickness: 2.5px; text-underline-offset: 5px; }

/* ---------- How it works ---------- */
.how { background: #fdd9db url("../img/collage.webp") center / cover no-repeat; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { background: #fff; border: 2.5px solid var(--navy); border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 8px 0 var(--navy); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--display); font-size: 1.7rem; margin-bottom: 14px; }
.steps h3 { font-size: 1.7rem; margin-bottom: .25em; }
.steps p { margin: 0; font-weight: 600; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .how { background-image: url("../img/collage-small.webp"); } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 2.5px solid var(--navy); border-radius: 22px; background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 800; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.6rem; line-height: 1; transition: transform .3s var(--bounce); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand { width: 150px; color: #fff; margin-bottom: 16px; }
.footer-grid h3 { font-size: 1.3rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; opacity: .9; }
.footer-grid a:hover { text-decoration: underline; opacity: 1; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); font-size: .88rem; opacity: .8; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(26, 33, 71, .5); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .4s var(--bounce); border-left: 2.5px solid var(--navy); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 2px solid var(--line); }
.drawer-head h2 { font-size: 2rem; margin: 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid var(--navy); background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.empty { text-align: center; padding: 40px 0; font-weight: 700; }
.empty img { width: 90px; margin: 0 auto 12px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 2px solid var(--line); }
.line-img { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; }
.line-img img { height: 56px; width: auto; }
.line-name { font-weight: 800; line-height: 1.2; }
.line-meta { font-size: .88rem; opacity: .75; }
.line-price { font-weight: 800; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--navy); border-radius: 999px; margin-top: 6px; background: #fff; }
.qty button { width: 34px; height: 32px; border: 0; background: none; cursor: pointer; font-weight: 800; font-size: 1.1rem; }
.qty span { min-width: 22px; text-align: center; font-weight: 800; }
.drawer-foot { padding: 18px 22px 22px; border-top: 2px solid var(--line); display: grid; gap: 10px; }
.total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.2rem; }
.note { font-size: .9rem; opacity: .8; margin: 0; text-align: center; }

/* Fruit pop on add to cart */
.burst { position: fixed; z-index: 150; width: 34px; pointer-events: none; animation: burst .9s var(--ease) forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) rotate(var(--dr)) scale(.4); opacity: 0; } }

/* Scroll reveals */
.reveal { opacity: 0; transform: translateY(36px) scale(.98); transition: opacity .7s var(--ease), transform .8s var(--bounce); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track, .reel-track { flex-wrap: wrap; width: auto; }
}
