/* ==========================================================================
   SVEA — Swedish Spring Water
   Layout follows SVEA-brand-kit/website/homepage-design.html.
   ========================================================================== */

:root {
  --forest: #13201A;
  --gold:   #B5A584;
  --taupe:  #6E624C;
  --stone:  #D6D6D0;
  --ivory:  #F3F1EC;
  --ice:    #DCE6E8;

  --ink-soft:    #2E3A33;
  --card-forest: #1C2B23;
  --line-ice:    #A9BCC0;
  --line-forest: #2E3D35;

  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 2rem;
  --header-h: 84px;
  --section-y: 6rem;
  --bottle-ratio: 289 / 1313;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--forest);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 300;
  background: var(--ivory); color: var(--forest);
  padding: 12px 20px; text-decoration: none;
  font-size: 13px; letter-spacing: .24em; text-transform: uppercase;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; }
.theme-forest :focus-visible,
.site-header :focus-visible,
.mobile-nav :focus-visible { outline-color: var(--gold); }

/* ---------- Typography ---------- */

h1, h2, h3 { font-weight: 200; letter-spacing: .04em; line-height: 1.15; margin: 0; }

.h-xl { font-size: clamp(2.75rem, 6.2vw, 4.5rem); line-height: 1.05; letter-spacing: .02em; }
.h-l  { font-size: clamp(2.1rem, 4.4vw, 3rem); }
.h-m  { font-size: clamp(2rem, 4vw, 2.75rem); }
.h-s  { font-size: clamp(1.9rem, 3.6vw, 2.5rem); }

.label {
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .4em;
  line-height: 1.5;
  color: var(--ink-soft);
}
.label--gold  { color: var(--gold); }
.label--taupe { color: var(--taupe); }
.theme-forest .label:not(.label--gold) { color: var(--stone); }

.lead { font-size: 1.125rem; line-height: 1.7; max-width: 30rem; }

/* Placeholders: plain bracketed text, as in the design reference. */
.ph { font-style: normal; }

/* ---------- Themes ---------- */

.theme-forest { background: var(--forest); color: var(--ivory); }
.theme-ivory  { background: var(--ivory);  color: var(--forest); }
.theme-stone  { background: var(--stone);  color: var(--forest); }
.theme-ice    { background: var(--ice);    color: var(--forest); }

section { position: relative; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px;
  padding: 0 2rem;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .24em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.btn--sm { min-height: 44px; padding: 0 1.75rem; }

.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--forest); }
.btn--gold:hover { background: var(--ivory); border-color: var(--ivory); }

.btn--outline { border-color: var(--stone); color: var(--ivory); }
.btn--outline:hover { background: var(--ivory); border-color: var(--ivory); color: var(--forest); }

.btn--line { border-color: var(--gold); color: var(--gold); padding: 0 1.5rem; }
.btn--line:hover { background: var(--gold); color: var(--forest); }

.btn--dark { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.btn--dark:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

.btn[disabled] { opacity: .45; cursor: not-allowed; }

.link-line {
  align-self: flex-start;
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .24em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color .4s var(--ease);
}
.link-line:hover { color: var(--taupe); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--forest);
  color: var(--gold);
  transition: background-color .6s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(19, 32, 26, .82);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 33px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 2rem; }

.nav ul { display: flex; gap: 2rem; }
.nav a {
  position: relative;
  display: inline-block;
  padding: .5rem 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .22em;
  text-decoration: none;
  color: var(--stone);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: .22em; bottom: 2px; height: 1px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0; background: transparent; cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1px; background: var(--stone);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--forest);
  color: var(--stone);
  padding: 48px var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.mobile-nav ul { display: grid; gap: 8px; }
.mobile-nav a {
  display: block; padding: 10px 0;
  font-size: 2rem; font-weight: 200; letter-spacing: .06em;
  text-decoration: none; color: var(--ivory);
}
.mobile-nav .label { color: var(--gold); }

@media (max-width: 959px) {
  .nav { display: none; }
  .menu-toggle { display: inline-block; }
  .header-actions { gap: .75rem; }
}
@media (max-width: 600px) {
  :root { --gutter: 1rem; --section-y: 4.5rem; --header-h: 72px; }
}
@media (max-width: 400px) {
  .header-actions .btn--sm { padding: 0 1rem; letter-spacing: .18em; }
}
@media (max-width: 360px) {
  .brand img { height: 28px; }
  .header-actions { gap: .5rem; }
  .header-actions .btn--sm { padding: 0 .7rem; letter-spacing: .12em; font-size: 12px; }
  .menu-toggle { width: 40px; }
}

/* ---------- Hero (full-bleed photo, headline behind the bottle) ---------- */

.site-header--overlay { margin-bottom: calc(-1 * var(--header-h)); background: transparent; }
.site-header--overlay.is-scrolled { background: rgba(19, 32, 26, .82); }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  color: var(--ivory);
  background: var(--forest);
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg { z-index: -2; }
.hero__bg img { object-fit: cover; object-position: 50% 35%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(243, 241, 236, 0) 89%, var(--ivory) 100%),
    linear-gradient(90deg, rgba(19, 32, 26, .55) 0%, rgba(19, 32, 26, 0) 60%),
    linear-gradient(180deg, rgba(19, 32, 26, .6) 0%, rgba(19, 32, 26, .18) 32%, rgba(19, 32, 26, .22) 62%, rgba(19, 32, 26, .55) 84%, rgba(19, 32, 26, .35) 100%);
}

.hero__inner {
  position: relative;
  min-height: inherit;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vh, 5rem));
  padding-bottom: clamp(5rem, 12vh, 8rem);
}

.hero__title { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.hero__headline {
  font-weight: 200;
  font-size: clamp(2.6rem, 8.6vw, 8.25rem);
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ivory);
  text-shadow: 0 2px 30px rgba(19, 32, 26, .35);
}
.hero__headline span { display: block; white-space: nowrap; }

.hero .bottle-slot--hero {
  position: absolute; z-index: 2;
  left: 50%; top: calc(var(--header-h) + 1.5rem);
  height: min(70vh, 640px);
  transform: translateX(-50%);
  filter: drop-shadow(0 30px 30px rgba(19, 32, 26, .35));
}

.hero__bottom {
  grid-row: 3;
  position: relative; z-index: 3;
  display: flex; flex-direction: column; gap: 1.75rem;
  max-width: 30rem;
}
.hero__bottom .lead { color: var(--ivory); text-shadow: 0 1px 14px rgba(19, 32, 26, .5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .btn--outline { border-color: var(--ivory); }



@media (max-width: 700px) {
  .hero__inner { padding-top: calc(var(--header-h) + 2.5rem); padding-bottom: 3.5rem; }
  .hero__headline { font-size: clamp(2.1rem, 11vw, 3.4rem); letter-spacing: .05em; }
  .hero .bottle-slot--hero { top: calc(var(--header-h) + 5.5rem); height: min(36svh, 330px); }
  .hero__bottom { gap: 1.25rem; }
  .hero__bottom .label { letter-spacing: .3em; }
  .hero__bottom .lead { font-size: 1rem; }
  .hero__actions { flex-wrap: nowrap; gap: .75rem; }
  .hero__actions .btn { flex: 1; padding: 0 .75rem; font-size: 12px; letter-spacing: .16em; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(243, 241, 236, 0) 94%, var(--ivory) 100%),
      linear-gradient(180deg, rgba(19, 32, 26, .6) 0%, rgba(19, 32, 26, .25) 30%, rgba(19, 32, 26, .45) 52%, rgba(19, 32, 26, .8) 80%, rgba(19, 32, 26, .3) 100%);
  }
}

/* ---------- Bottle (slots + scroll traveller) ---------- */

.bottle-slot { position: relative; z-index: 2; aspect-ratio: var(--bottle-ratio); }
.bottle-slot img, .bottle-frame img { width: 100%; height: 100%; object-fit: contain; }

.bottle-slot--intro, .bottle-slot--water, .bottle-slot--source { display: none; pointer-events: none; }


.bob { animation: bob 2.8s ease-in-out infinite alternate; transform-origin: 50% 60%; }
@keyframes bob {
  from { transform: translateY(-10px) rotate(-1deg); }
  to   { transform: translateY(10px) rotate(1deg); }
}

.bottle-traveler {
  position: fixed; left: 0; top: 0; z-index: 50;
  width: 200px; height: 909px;
  pointer-events: none;
  display: none;
  will-change: transform;
  filter: drop-shadow(0 24px 24px rgba(19, 32, 26, .18));
}
.bottle-traveler img { width: 100%; height: 100%; object-fit: contain; }

/* Travel mode (desktop, motion allowed) — set by JS on <html>. */
html.travel .bottle-traveler { display: block; }
html.travel [data-bottle-slot] > .bottle-img { visibility: hidden; }
html.travel .bottle-slot--intro {
  display: block;
  position: absolute; left: 7vw; top: 50%;
  height: 360px; transform: translateY(-50%);
}
html.travel .bottle-slot--water { display: block; height: 340px; justify-self: center; }
.source__photo { position: relative; }
html.travel .bottle-slot--source {
  display: block;
  position: absolute; left: 50%; top: 50%;
  height: 380px; transform: translate(-50%, -50%);
}

/* ---------- Water effects: bubbles, light ---------- */

.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

.bubble {
  position: absolute; bottom: -24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .25);
  opacity: 0;
  animation: rise var(--dur, 9s) linear var(--delay, 0s) infinite;
}
@keyframes rise {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .6; }
  100% { transform: translate3d(var(--drift, 0px), calc(-1 * var(--travel, 700px)), 0); opacity: 0; }
}

.water-fx { overflow: hidden; }
.water-fx::before {
  content: "";
  position: absolute; z-index: 0;
  width: 70vw; height: 30vw; left: -10vw; top: -8vw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  animation: shine 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine { 0%, 100% { opacity: .25; } 50% { opacity: .7; } }

/* ---------- Intro ---------- */

.intro { padding: 7rem 0; overflow: hidden; }
.intro__inner {
  max-width: 760px;
  display: flex; flex-direction: column; align-items: center; gap: 2rem;
  text-align: center;
}
.intro__crowns { width: 72px; height: auto; }
.intro__text { font-size: 1.125rem; line-height: 1.8; color: var(--ink-soft); }

/* ---------- The water ---------- */

.water { padding: var(--section-y) 0; }
.water__layout { display: grid; gap: 3rem; align-items: center; }
html.travel .water__layout { grid-template-columns: 1fr 160px; }
.water__main { display: flex; flex-direction: column; gap: 3rem; }
.water__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem;
}
.water__head .label { margin-bottom: .75rem; }
.water__note { max-width: 26rem; line-height: 1.7; color: var(--ink-soft); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1px;
  background: var(--line-ice);
}
.fact {
  background: var(--ice);
  padding: 2.5rem 1.75rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.fact__value { font-weight: 200; font-size: 3.5rem; line-height: 1; overflow-wrap: anywhere; }
.fact__label { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; }
.keep-case { text-transform: none; }
.fact__value--soon { color: rgba(19, 32, 26, .35); }

/* ---------- The source ---------- */

.source__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 4rem;
  align-items: center;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.source__text { display: flex; flex-direction: column; gap: 1.5rem; }
.source__text p:not(.label) { font-size: 1.0625rem; line-height: 1.8; color: var(--ink-soft); }

.photo-ph {
  margin: 0;
  height: 520px;
  background: var(--stone);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  text-align: center;
  font-size: 14px; text-transform: uppercase; letter-spacing: .2em;
  color: var(--ink-soft);
}
.source__photo img { width: 100%; height: 520px; object-fit: cover; object-position: 50% 60%; }

@media (max-width: 600px) {
  .photo-ph, .source__photo img { height: 380px; }
  .source__grid { gap: 2.5rem; }
}

/* ---------- Range (home shop) ---------- */

.range { padding: var(--section-y) 0; }
.range .container { display: flex; flex-direction: column; gap: 3rem; }
.range__head { display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; }

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--card-forest);
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  text-align: center;
}
.product-card__media {
  height: 224px;
  display: flex; align-items: flex-end; justify-content: center;
}
.bottle-frame { aspect-ratio: var(--bottle-ratio); }
.product-card .bottle-slot--card, .product-card .bottle-frame { height: 168px; }
.product-card .bottle-frame--lg { height: 200px; }
.pack {
  --w: 132px; --h: 168px; --d: 74px;
  position: relative;
  width: 210px; height: 224px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 22px;
  perspective: 900px;
}
.pack::after {
  content: ""; position: absolute; left: 50%; bottom: 8px;
  width: 190px; height: 22px; transform: translateX(-46%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  filter: blur(2px);
}
.pack__box {
  position: relative; z-index: 1;
  width: var(--w); height: var(--h);
  transform-style: preserve-3d;
  transform: translateX(-18px) rotateX(-14deg) rotateY(-34deg);
}
.pack__box > div { position: absolute; backface-visibility: hidden; }
.pack__front {
  inset: 0;
  transform: translateZ(calc(var(--d) / 2));
  background: linear-gradient(165deg, #23382d 0%, var(--forest) 55%, #0e1813 100%);
  box-shadow: inset 0 0 0 1px rgba(181, 165, 132, .35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  color: var(--gold);
}
.pack__front::before {
  content: ""; position: absolute; inset: 7px;
  border: 1px solid rgba(181, 165, 132, .55);
  pointer-events: none;
}
.pack__front img { width: 70px; height: auto; }
.pack__rule { width: 22px; height: 1px; background: var(--gold); opacity: .8; }
.pack__name { font-size: 10px; letter-spacing: .34em; margin-right: -.34em; text-transform: uppercase; line-height: 1; }
.pack__size { font-size: 15px; font-weight: 300; letter-spacing: .2em; margin-right: -.2em; line-height: 1; }
.pack__side {
  width: var(--d); height: var(--h);
  left: calc((var(--w) - var(--d)) / 2);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2));
  background: linear-gradient(180deg, #0f1a14 0%, #09110d 100%);
  box-shadow: inset 0 0 0 1px rgba(181, 165, 132, .18);
  display: flex; align-items: center; justify-content: center;
}
.pack__side img { width: 30px; height: auto; opacity: .75; }
.pack__top {
  width: var(--w); height: var(--d);
  top: calc((var(--h) - var(--d)) / 2);
  transform: rotateX(90deg) translateZ(calc(var(--h) / 2));
  background: linear-gradient(90deg, #2c4437 0%, #22362b 100%);
  box-shadow: inset 0 0 0 1px rgba(181, 165, 132, .25);
  display: flex; align-items: center; justify-content: center;
}
.pack__handle {
  width: 44%; height: 18%;
  border-radius: 999px;
  background: #0a120e;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6);
}
.product-card--light .pack::after { background: radial-gradient(closest-side, rgba(19, 32, 26, .35), rgba(19, 32, 26, 0)); }

.product-card h3 { font-weight: 300; font-size: 1.25rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory); }
.product-card .price { color: var(--stone); }
.price__unit { display: block; margin-top: 2px; font-size: 12px; letter-spacing: .08em; opacity: .7; }

/* Light variant used on the shop page */
.product-card--light { background: var(--ivory); border: 1px solid rgba(19, 32, 26, .14); }
.product-card--light h2, .product-card--light h3 { color: var(--forest); }
.product-card--light .price { color: var(--forest); }
.product-card__body { display: flex; flex-direction: column; align-items: center; gap: 1rem; flex: 1; width: 100%; }
.product-card__desc { font-size: .9375rem; color: var(--ink-soft); }
.product-card__meta { font-size: 13px; text-transform: uppercase; letter-spacing: .22em; }
.product-card .btn { margin-top: auto; }

/* ---------- Promise ---------- */

.promise__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 3rem;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.promise__grid .label { margin-bottom: 1rem; color: var(--forest); }
.promise__item {
  display: flex; flex-direction: column; gap: .75rem;
  border-top: 1px solid var(--forest);
  padding-top: 1.5rem;
}
.promise__item h3 { font-weight: 400; font-size: 1.0625rem; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Newsletter ---------- */

.newsletter__inner {
  max-width: 720px;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
  text-align: center;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.newsletter__inner > p:not(.form-status) { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-soft); }
.newsletter__form {
  width: 100%; max-width: 32rem;
  display: flex; flex-wrap: wrap; gap: .75rem;
}
.field {
  flex: 1 1 16rem;
  min-height: 48px;
  padding: 0 1rem;
  font: inherit; font-size: 1rem;
  color: var(--forest);
  background: #FFFFFF;
  border: 1px solid var(--forest);
  border-radius: 0;
}
.field::placeholder { color: rgba(19, 32, 26, .55); }
.form-status { min-height: 1.7em; font-size: .9375rem; }
.form-status:empty { display: none; }
.newsletter__contact { font-size: .9375rem; color: var(--ink-soft); }
.newsletter__contact a { color: var(--forest); }

/* ---------- Footer ---------- */

.site-footer { color: var(--stone); }
.site-footer .container { display: flex; flex-direction: column; gap: 3rem; padding-top: 4rem; padding-bottom: 3rem; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 2.5rem; }
.footer__logo { width: 150px; height: auto; }
.footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto));
  gap: 0 3rem;
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
}
.footer__links a { display: inline-block; padding: .6rem 0; color: var(--stone); text-decoration: none; transition: color .4s var(--ease); }
.footer__links a:hover { color: var(--ivory); }
.footer__credit-link { color: inherit; text-decoration: none; opacity: .75; }
.footer__credit-link:hover { opacity: 1; text-decoration: underline; }
.credits .container { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.25rem; font-weight: 300; letter-spacing: .06em; margin: 2rem 0 .5rem; }
.prose p { color: var(--ink-soft); margin-bottom: .75rem; }
.prose__meta { margin-top: 2rem; font-size: .875rem; }
.credits__list { display: grid; gap: 1.25rem; max-width: 46rem; color: var(--ink-soft); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--line-forest);
  padding-top: 1.5rem;
  font-size: 13px;
  color: var(--gold);
}
@media (max-width: 400px) {
  .footer__links { grid-template-columns: repeat(2, minmax(0, auto)); gap: .75rem 2rem; }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 20px;
  padding: 16px 22px;
  background: var(--forest); color: var(--stone);
  border: 1px solid rgba(181, 165, 132, .4);
  font-size: .9375rem;
  transform: translate(-50%, 20px);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s linear .5s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.toast a { color: var(--ivory); }

/* ---------- Shop page ---------- */

.page-intro .container { display: flex; flex-direction: column; gap: 1.75rem; padding-top: 5rem; padding-bottom: 5rem; }
.page-intro .lead { color: var(--stone); }

.shop-page .container { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.shop-layout { display: grid; gap: 3rem; align-items: start; }
.shop-page .products { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.shop-page .product-card h2 { font-weight: 300; font-size: 1.25rem; letter-spacing: .2em; text-transform: uppercase; }

.cart {
  position: relative;
  background: linear-gradient(170deg, #1C2B23 0%, var(--forest) 60%);
  color: var(--stone);
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 30px 60px -30px rgba(19, 32, 26, .55);
}
.cart::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(181, 165, 132, .28);
  pointer-events: none;
}
.cart__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(181, 165, 132, .3);
}
.cart h2 { font-size: 1.75rem; font-weight: 200; letter-spacing: .06em; color: var(--ivory); margin: 0; }
.cart__count { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }

.cart__empty { display: none; flex-direction: column; align-items: center; gap: 1rem; padding: 2.5rem 0 1rem; text-align: center; }
.cart__empty img { width: 54px; height: auto; opacity: .85; }
.cart__empty p { font-weight: 300; font-size: 1.125rem; color: var(--ivory); }
.cart__empty .link-line { align-self: center; color: var(--gold); }
.cart.is-empty .cart__empty { display: flex; }
.cart.is-empty .cart__list, .cart.is-empty .cart__rows { display: none; }

.cart__list { display: grid; }
.cart-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 1rem; align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(214, 214, 208, .1);
}
.cart-item__thumb {
  width: 56px; height: 76px;
  background: linear-gradient(180deg, var(--ice) 0%, #C9D7DA 100%);
  display: flex; align-items: center; justify-content: center;
}
.cart-item__thumb img { height: 64px; width: auto; }
.cart-item__thumb--pack { background: var(--forest); box-shadow: inset 0 0 0 1px rgba(181, 165, 132, .5); }
.cart-item__thumb--pack img { height: auto; width: 32px; }
.cart-item__info { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.cart-item__name { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory); line-height: 1.3; }
.cart-item__meta { font-size: 13px; color: rgba(214, 214, 208, .7); line-height: 1.3; }
.cart-item__end { display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; align-self: stretch; justify-content: space-between; }
.cart-item__total { font-size: 1rem; color: var(--ivory); letter-spacing: .04em; }
.cart-item__remove {
  border: 0; background: none; padding: .7rem 0 .7rem .75rem; margin: -.7rem 0; cursor: pointer;
  font: inherit; font-size: 11px; text-transform: uppercase; letter-spacing: .22em;
  color: rgba(214, 214, 208, .6);
  transition: color .3s var(--ease);
}
.cart-item__remove:hover { color: var(--gold); }

.qty {
  display: inline-flex; align-items: center; align-self: flex-start;
  margin-top: .4rem;
  border: 1px solid rgba(181, 165, 132, .45);
}
.qty button {
  width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 1rem; color: var(--gold);
  transition: background-color .3s var(--ease);
}
.qty button:hover { background: rgba(181, 165, 132, .14); }
.qty output { min-width: 26px; text-align: center; font-size: .875rem; color: var(--ivory); }

.cart__rows { margin: 1.5rem 0 1.75rem; display: grid; gap: .65rem; font-size: .9375rem; }
.cart__row { display: flex; justify-content: space-between; gap: 16px; }
.cart__row dt, .cart__row dd { margin: 0; }
.cart__row dd { text-align: right; }
.cart__row--total {
  margin-top: .6rem; padding-top: 1.1rem;
  border-top: 1px solid rgba(181, 165, 132, .3);
  align-items: baseline;
}
.cart__row--total dt { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.cart__row--total dd { font-size: 2rem; font-weight: 200; letter-spacing: .02em; color: var(--ivory); line-height: 1; }

.cart .btn { width: 100%; }
.cart .btn[disabled] { opacity: 1; background: transparent; border-color: rgba(181, 165, 132, .45); color: var(--gold); }
.cart__note a, .cart__legal a { color: var(--gold); }
.cart__legal { font-size: 12px; text-align: center; color: rgba(214, 214, 208, .55); margin-top: -.25rem; }
.cart.is-empty .cart__checkout { margin-top: 1.5rem; }
.cart__note { margin-top: .9rem; font-size: .8125rem; line-height: 1.6; color: rgba(214, 214, 208, .65); text-align: center; }
.cart__promise {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.25rem;
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(214, 214, 208, .1);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(214, 214, 208, .55);
}
.cart__promise li::before { content: "·"; margin-right: .6rem; color: var(--gold); }
.cart :focus-visible { outline-color: var(--gold); }
.cart.is-empty .cart__form { display: none; }
.cart.is-done .cart__empty { display: none; }
.cart__form { display: grid; gap: .9rem; margin-top: .25rem; }
.cart__form-title { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: .1rem; }
.field-row { display: grid; gap: .35rem; }
.field-row label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(214, 214, 208, .8); }
.field-row label span { text-transform: none; letter-spacing: .02em; opacity: .7; }
.field-row input, .field-row textarea {
  width: 100%;
  min-height: 44px;
  padding: .6rem .8rem;
  font: inherit; font-size: 1rem;
  color: var(--ivory);
  background: rgba(243, 241, 236, .04);
  border: 1px solid rgba(181, 165, 132, .35);
  border-radius: 0;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.field-row textarea { resize: vertical; min-height: 64px; }
.field-row input::placeholder { color: rgba(214, 214, 208, .4); }
.field-row input:focus, .field-row textarea:focus { outline: none; border-color: var(--gold); background: rgba(243, 241, 236, .07); }
.cart__form.was-validated input:invalid { border-color: #C98B7A; }
.cart__honey { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cart__checkout { margin-top: .5rem; }
.cart__note.is-error { color: #E2A898; }
.cart__done { display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: 2rem 0 1rem; text-align: center; }
.cart__done[hidden] { display: none; }
.cart__done img { width: 54px; height: auto; }
.cart__done-title { font-size: 1.5rem; font-weight: 200; color: var(--ivory); }
.cart__done .link-line { align-self: center; color: var(--gold); }
.cart__ref { font-weight: 400; color: var(--gold); letter-spacing: .06em; white-space: nowrap; }

@media (min-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr 340px; gap: 3rem; }
  .cart { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ---------- Reveal on scroll ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bubbles, .water-fx::before { display: none; }
  html.js .reveal { opacity: 1; transform: none; }
}
