/* =====================================================================
   SMELL A SAMPLE — Design System
   A groovy 70s-sticker aesthetic pulled from the SAS badge logo.
   Author: crafted by hand, no templates.
   ===================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Bagel+Fat+One&family=Fredoka:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette — sampled from the logo */
  --orange:    #F0782F;
  --orange-dk: #E0611B;
  --gold:      #F5A81C;
  --pink:      #E01E68;
  --magenta:   #D81860;
  --raspberry: #A81848;
  --teal:      #2FA6A6;
  --teal-dk:   #1E8383;
  --lime:      #B8C22E;
  --cream:     #F8ECCB;
  --cream-dk:  #F2DFAC;
  --paper:     #FBF4E1;
  --ink:       #43202C;   /* deep plum-brown — used instead of black */
  --ink-soft:  #6B3A44;

  /* Semantic */
  --bg:        var(--paper);
  --text:      var(--ink);

  /* Structure */
  --line:      3px;                 /* default outline weight */
  --line-hair: 2px;
  --radius:    22px;
  --radius-lg: 34px;
  --radius-pill: 999px;
  --shadow:    6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);

  --maxw: 1200px;
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);

  /* Fonts */
  --font-display: 'Bagel Fat One', system-ui, sans-serif;
  --font-head: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  /* subtle warm gradient wash */
  background-image:
    radial-gradient(1200px 700px at 100% -10%, rgba(47,166,166,.10), transparent 60%),
    radial-gradient(1100px 700px at -10% 20%, rgba(224,30,104,.08), transparent 55%),
    radial-gradient(900px 900px at 50% 120%, rgba(245,168,28,.12), transparent 60%);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Riso-style grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.02; margin: 0 0 .4em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.display { font-family: var(--font-display); font-weight: 400; line-height: .98; letter-spacing: .5px; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: .5em;
}
.eyebrow::before { content: "❋"; color: var(--pink); font-size: 1em; }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; }

/* Fluid heading scale */
.h-hero  { font-size: clamp(2.9rem, 8.5vw, 6.8rem); }
.h-xl    { font-size: clamp(2.2rem, 5vw, 4rem); }
.h-lg    { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
.h-md    { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

/* Colour helpers */
.c-orange { color: var(--orange); }
.c-gold   { color: var(--gold); }
.c-pink   { color: var(--pink); }
.c-teal   { color: var(--teal); }
.c-lime   { color: var(--lime); }
.c-cream  { color: var(--cream); }

/* Sticker-outline text (chunky) */
.tx-stroke {
  -webkit-text-stroke: 2.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 5px 0 var(--ink);
}

/* Highlight marker behind text */
.mark {
  position: relative;
  white-space: nowrap;
  padding: 0 .12em;
}
.mark::before {
  content: "";
  position: absolute;
  inset: 12% -.06em 6% -.06em;
  background: var(--gold);
  transform: rotate(-1.4deg);
  border-radius: 6px;
  z-index: -1;
}
.mark.pink::before { background: var(--pink); }
.mark.teal::before { background: var(--teal); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; position: relative; }
.center { text-align: center; }
.stack > * + * { margin-top: 1.1rem; }
.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Hero ---------- */
.hero-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.hero-grid .hero__copy { order: 1; }
.hero-grid .hero__art  { order: 2; }
.hero__bottle {
  display: block; width: auto; height: auto;
  max-width: min(72%, 280px); margin-inline: auto;
  filter: drop-shadow(5px 9px 0 rgba(67, 32, 44, .13));
}
@media (min-width: 940px) {
  .hero-grid {
    grid-template-columns: 1.15fr minmax(240px, .85fr);
    gap: clamp(1.5rem, 3.5vw, 3.5rem);
    align-items: center;
  }
  .hero-grid .hero__copy { order: 1; }
  .hero-grid .hero__art  { order: 2; align-self: center; }
  .hero__bottle { max-width: 100%; max-height: clamp(420px, 52vh, 560px); }
}

/* Sample hero: wide copy column + a snug image column so the machine hugs the right
   without leaving a big void between the text and the illustration */
@media (min-width: 760px) {
  .grid.sample-hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  padding: .85em 1.5em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: transform .12s var(--ease-back), box-shadow .12s ease, background .2s ease;
  will-change: transform;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btn .arw { transition: transform .2s var(--ease-back); }
.btn:hover .arw { transform: translateX(4px) rotate(-8deg); }

.btn-orange { --btn-bg: var(--orange); --btn-fg: var(--ink); }
.btn-pink   { --btn-bg: var(--pink);   --btn-fg: #fff; }
.btn-teal   { --btn-bg: var(--teal);   --btn-fg: var(--ink); }
.btn-gold   { --btn-bg: var(--gold);   --btn-fg: var(--ink); }
.btn-cream  { --btn-bg: var(--cream);  --btn-fg: var(--ink); }
.btn-ghost  { --btn-bg: transparent;   --btn-fg: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

.btn-lg { font-size: 1.15rem; padding: 1em 1.8em; box-shadow: var(--shadow); }
.btn-lg:hover { box-shadow: 10px 10px 0 var(--ink); }

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  padding: .4em .9em;
  border: var(--line-hair) solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
}
.chip-dot { width: .55em; height: .55em; border-radius: 50%; background: var(--pink); border: 1.5px solid var(--ink); }

/* ---------- Sticker cards ---------- */
.card {
  background: var(--cream);
  color: var(--ink);            /* keep text readable even inside dark sections */
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  position: relative;
  transition: transform .18s var(--ease-back), box-shadow .18s ease;
}
.card.lift:hover { transform: translate(-3px,-4px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.card .num {
  font-family: var(--font-display);
  font-size: 1.4rem; line-height: 1;
  width: 2.1em; height: 2.1em; display: grid; place-items: center;
  border-radius: 50%; border: var(--line) solid var(--ink);
  background: var(--gold); color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.card-icon {
  width: 62px; height: 62px; display: grid; place-items: center;
  border-radius: 16px; border: var(--line) solid var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
}
.card-icon .ico { width: 30px; height: 30px; }
.ico { display: block; fill: none; stroke: var(--ink); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Two-sides chooser cards ---------- */
.side-card { display: flex; align-items: stretch; gap: 1rem; overflow: hidden; }
.side-card__body { flex: 1 1 auto; min-width: 0; position: relative; z-index: 1; }
.side-card__img {
  flex: 0 0 auto;
  align-self: flex-end;
  margin: 0 -.5rem -1.3rem 0;      /* let the art stand into the bottom-right corner */
  display: flex; align-items: flex-end;
  pointer-events: none;
}
.side-card__img img {
  display: block; width: auto;
  filter: drop-shadow(4px 6px 0 rgba(67, 32, 44, .13));
}
@media (max-width: 540px) {
  .side-card { flex-direction: column; }
  .side-card__img { align-self: center; margin: .3rem 0 -1.3rem; }
}
/* Hide the chooser-card art on phones — text only */
@media (max-width: 767px) {
  .side-card__img { display: none; }
}

/* Hero illustration on mobile: smaller, cropped at the bottom so it sits on the ticker line */
@media (max-width: 760px) {
  .hero-band { padding-bottom: 0 !important; }
  .hero-illus {
    width: 100%;
    height: 190px;
    margin-top: .6rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  .hero-illus > img {
    height: 300px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    filter: none !important;
  }
}

/* Home hero: show the bottle in full on mobile, with breathing room (not cropped onto the ticker) */
@media (max-width: 760px) {
  .hero-illus--full { display: flex; justify-content: center; margin: .5rem 0 1.4rem; }
  .hero-illus--full > img {
    height: auto !important;
    width: auto !important;
    max-height: 270px !important;
    max-width: 58% !important;
    margin: 0 auto !important;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: var(--line) solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: .7rem 0;
}
.marquee.on-gold  { background: var(--gold);  color: var(--ink); }
.marquee.on-teal  { background: var(--teal);  color: var(--ink); }
.marquee.on-pink  { background: var(--pink);  color: #fff; }
.marquee__track {
  display: inline-flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: scroll-x 26s linear infinite;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: .5px;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 2.5rem; }
.marquee__track span::after { content: "✺"; color: currentColor; opacity: .7; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Forms ---------- */
.sas-form { max-width: 560px; margin: 2rem auto 0; text-align: left; display: flex; flex-direction: column; gap: 1.1rem; }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field > span { font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%;
  padding: .8em 1em;
  font-family: inherit; font-size: 1rem; line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 rgba(67, 32, 44, .16);
  transition: box-shadow .12s ease, transform .12s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); opacity: .6; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: 5px 5px 0 var(--ink); transform: translate(-1px, -1px); }
.field textarea { resize: vertical; min-height: 104px; }
.sas-form .btn { justify-content: center; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,244,225,.82);
  backdrop-filter: blur(9px);
  border-bottom: var(--line-hair) solid var(--ink);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.nav__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.15rem; }
.nav__brand img { width: 46px; height: 46px; }
.nav__links { display: none; align-items: center; gap: .3rem; }
.nav__links a {
  font-family: var(--font-head); font-weight: 500; font-size: .98rem;
  padding: .45em .72em; border-radius: var(--radius-pill);
  border: 2px solid transparent; transition: .15s ease;
  white-space: nowrap;
}
.nav__links a:hover { background: var(--cream); border-color: var(--ink); }
.nav__links a.active { background: var(--ink); color: var(--cream); }
.nav__cta { display: none; }
.nav__burger {
  display: grid; place-items: center; width: 46px; height: 46px;
  background: var(--gold); border: var(--line) solid var(--ink);
  border-radius: 14px; box-shadow: 3px 3px 0 var(--ink);
}
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content:""; display:block; width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; position: relative;
}
.nav__burger span::before { position:absolute; top:-6px; }
.nav__burger span::after  { position:absolute; top:6px; }
@media (min-width: 1080px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__burger { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--paper);
  display: grid; place-content: center; gap: 1rem; text-align: center;
  transform: translateY(-100%); transition: transform .4s var(--ease-back);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: var(--font-display); font-size: 2rem; }
.mobile-menu .close { position: absolute; top: 1.2rem; right: 1.2rem; font-size: 2rem; background: none; border: none; color: var(--ink); }

/* ---------- Wave / scallop dividers ---------- */
.edge { display: block; width: 100%; height: auto; }
.edge svg { display: block; width: 100%; height: 100%; }

/* ---------- Scent mist animation ---------- */
.mist span {
  position: absolute; border-radius: 50%;
  filter: blur(1px);
  opacity: 0; animation: mist-rise 4.5s ease-in infinite;
}
@keyframes mist-rise {
  0%   { transform: translateY(0) scale(.4); opacity: 0; }
  20%  { opacity: .8; }
  100% { transform: translateY(-120px) scale(1.6) translateX(30px); opacity: 0; }
}

/* Floating blobs */
.float { animation: floaty 7s ease-in-out infinite; }
.float.d1 { animation-delay: -1.5s; }
.float.d2 { animation-delay: -3s; }
.float.d3 { animation-delay: -4.5s; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(4deg); } }

.spin-slow { animation: spin 22s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s var(--ease-back); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding: clamp(3rem,6vw,5rem) 0 2rem; position: relative; }
.footer a { color: var(--cream); opacity: .82; transition: opacity .15s ease; }
.footer a:hover { opacity: 1; color: var(--gold); }
.footer h4 { color: var(--gold); font-family: var(--font-display); font-weight: 400; }
.footer .fine { opacity: .55; font-size: .85rem; }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

/* ---------- Misc utility ---------- */
.badge-spin { display: inline-grid; place-items: center; }
.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.hr-dots { height: 2px; background-image: radial-gradient(var(--ink) 1.4px, transparent 1.5px); background-size: 12px 12px; border: 0; opacity: .35; }
.rot-1 { transform: rotate(-1.5deg); } .rot2 { transform: rotate(1.5deg); }
.relative { position: relative; }
.z1 { position: relative; z-index: 1; }

/* Accessibility */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
