/* ==========================================================================
   CookSmart — global styles
   Tokens · base · layout · header · footer · buttons · shared components
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --cs-red: #F20000;          /* logo banner red: large surfaces, big headings */
  --cs-red-strong: #C3161A;   /* buttons, links, small text on white */
  --cs-red-deep: #A8161A;     /* logo swoosh shadow */
  --cs-maroon: #6E0B0E;
  --cs-maroon-dark: #4A070A;
  --cs-green: #319847;
  --cs-green-dark: #1F6E33;
  --cs-green-mid: #64B741;
  --cs-lime: #A8E13C;
  --cs-white: #FFFFFF;
  --cs-cream: #FFF8F0;
  --cs-cream-2: #FCEFE1;
  --cs-ink: #1F1A17;
  --cs-muted: #6B605A;
  --cs-line: #EEE2D4;

  --cs-swoosh: linear-gradient(90deg, #319847 0%, #64B741 50%, #A8E13C 100%);
  --cs-red-grad: linear-gradient(120deg, #7A0B0F 0%, #C3161A 48%, #F20000 100%);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Kaushan Script", "Brush Script MT", cursive;
  --font-bn: "Hind Siliguri", var(--font-body);
  --font-hi: "Hind", var(--font-body);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 6px 18px -8px rgba(74, 7, 10, .18);
  --shadow: 0 18px 40px -18px rgba(74, 7, 10, .28);
  --shadow-lg: 0 40px 80px -30px rgba(74, 7, 10, .35);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .18, 1);

  --topbar-h: 0px;
  --header-h: 84px;
  --page-bg: #FFFFFF;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cs-ink);
  background: var(--cs-white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cs-red-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  color: var(--cs-ink);
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[lang="bn"] { font-family: var(--font-bn); letter-spacing: 0; }
[lang="hi"] { font-family: var(--font-hi); letter-spacing: 0; }
::selection { background: var(--cs-red); color: #fff; }
:focus-visible { outline: 3px solid var(--cs-green-mid); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 10000;
  background: var(--cs-ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

#main { overflow-x: clip; } /* hide slide-in offsets without breaking position: sticky */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.section { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.section--cream { background: var(--cs-cream); }
.section--pattern::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../images/pattern-dark.svg") 0 0 / 240px 240px;
  opacity: .05;
}
.section > .container { position: relative; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-script);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.2;
  color: var(--cs-red-strong);
  margin: 0 0 .35em;
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before, .section-heading--center .eyebrow::after {
  content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--cs-swoosh);
}
.eyebrow--light { color: #FFE9C9; }

.section-heading { margin-bottom: clamp(36px, 5vw, 60px); }
.section-heading--center { text-align: center; }
.section-heading--center .section-lead { margin-inline: auto; }
.section-title { font-size: clamp(2rem, 3.6vw, 3.15rem); margin-bottom: .1em; }
.section-title em, .hero em, .page-hero__title em { font-style: normal; color: var(--cs-red-strong); }
.section-heading--light .section-title { color: #fff; }
.section-heading--light .section-title em { color: var(--cs-lime); }
.section-heading--light .section-lead { color: rgba(255, 255, 255, .82); }
.section-lead { max-width: 640px; color: var(--cs-muted); font-size: 1.1rem; margin-top: 18px; }

.swoosh-line { width: 150px; height: 16px; margin-top: 12px; overflow: visible; }
.section-heading--center .swoosh-line { margin-inline: auto; }
.swoosh-line path { fill: none; stroke-linecap: round; stroke-dasharray: 240; stroke-dashoffset: 0; }
.swoosh-line__red { stroke: var(--cs-red); stroke-width: 5; }
.swoosh-line__green { stroke-width: 4; }

.marker {
  background: linear-gradient(transparent 58%, rgba(168, 225, 60, .55) 58%) no-repeat 0 0 / 0% 100%;
  color: inherit; padding: 0 .1em;
  transition: background-size 1.2s var(--ease-out) .2s;
}
.marker.is-marked, html:not(.js) .marker { background-size: 100% 100%; }

/* ---------- Buttons ---------- */
.btn, .btn-shop {
  --btn-pad: 14px 26px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: var(--btn-pad);
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s, color .3s, border-color .3s;
}
.btn .icon, .btn-shop .icon { width: 1.15em; height: 1.15em; transition: transform .35s var(--ease-out); }
.btn:hover .icon-arrow-right { transform: translateX(4px); }
.btn:hover, .btn-shop:hover { transform: translateY(-3px); }

.btn--primary { background: var(--cs-red-strong); color: #fff; box-shadow: 0 12px 24px -12px rgba(195, 22, 26, .7); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--cs-red-deep); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.btn--primary:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--primary:hover { box-shadow: 0 18px 30px -12px rgba(195, 22, 26, .75); }

.btn--outline { border-color: var(--cs-red-strong); color: var(--cs-red-strong); background: transparent; }
.btn--outline:hover { background: var(--cs-red-strong); color: #fff; }

.btn--ghost-light { border-color: rgba(255, 255, 255, .6); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn--ghost-light:hover { background: #fff; color: var(--cs-red-strong); border-color: #fff; }

.btn-shop {
  --btn-pad: 11px 20px;
  background: var(--cs-swoosh); color: #0D3B1A;
  box-shadow: 0 10px 22px -10px rgba(49, 152, 71, .8), inset 0 -2px 0 rgba(0, 0, 0, .08);
}
.btn-shop::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: skewX(-20deg);
  animation: shine 4.5s var(--ease-in-out) infinite;
}
.btn-shop:hover { box-shadow: 0 16px 30px -10px rgba(49, 152, 71, .9), 0 0 0 4px rgba(168, 225, 60, .25); }
.btn-shop:hover .icon { transform: translateX(2px) rotate(-8deg); }
.btn-shop--lg { --btn-pad: 15px 28px; font-size: 1.05rem; }
@keyframes shine { 0%, 65% { left: -60%; } 100% { left: 130%; } }

.chip {
  display: inline-flex; align-items: center; gap: .4em;
  padding: 5px 12px; border-radius: 999px;
  background: var(--cs-cream-2); color: var(--cs-maroon);
  font-size: .85rem; font-weight: 700;
}

/* ---------- Top strip ---------- */
.topbar {
  display: none !important;
}
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; opacity: .92; transition: opacity .2s; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar .icon { width: 15px; height: 15px; }
.topbar__contact { display: flex; gap: 26px; }
.topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__tagline { margin: 0; display: inline-flex; align-items: center; gap: 8px; color: #FFE9C9; font-weight: 500; letter-spacing: .01em; }
.topbar__tagline .icon { color: var(--cs-lime); }
.topbar__social { list-style: none; display: flex; gap: 6px; }
.topbar__social a { width: 28px; height: 28px; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.topbar__social a:hover { background: var(--cs-lime); color: var(--cs-ink); }

/* ---------- Header (centred hanging logo) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 8px 24px -16px rgba(74, 7, 10, .35);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  transition: transform .45s var(--ease-out), background-color .3s;
}
/* The bar keeps the SAME height when scrolled: shrinking it moved the page under the pointer, which toggled the
   state again around 20px of scroll and made the header flicker. Only the colour, blur and logo size change. */
.site-header.is-scrolled { background: rgba(255, 255, 255, .95); }
.site-header.is-hidden { transform: none; }
.site-header__inner {
  height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.main-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(18px, 2.6vw, 42px); }
.main-nav--left ul { justify-content: flex-end; padding-right: clamp(28px, 3.5vw, 56px); }
.main-nav--right ul { justify-content: flex-start; padding-left: clamp(28px, 3.5vw, 56px); }
.main-nav--right li:last-child { margin-left: auto; }

.nav-link {
  position: relative; display: inline-block; padding: 8px 0;
  color: var(--cs-ink); text-decoration: none; font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: color .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--cs-swoosh); transform: scaleX(0); transition: transform .4s var(--ease-out);
}
.nav-link::before {
  content: ""; position: absolute; left: 50%; top: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cs-red); transform: translate(-50%, 6px) scale(0); opacity: 0; transition: .35s var(--ease-out);
}
/* Six links + Shop Now: keep them on one line, tighter between 1024 and 1279px */
.nav-link { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .main-nav ul { gap: 14px; }
  .main-nav--left ul { padding-right: 18px; }
  .main-nav--right ul { padding-left: 18px; }
  .nav-link { font-size: .9rem; }
  .main-nav--right .btn-shop { --btn-pad: 9px 15px; font-size: .9rem; }
}
.nav-link:hover, .nav-link.is-active { color: var(--cs-red-strong); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active::before { transform: translate(-50%, 0) scale(1); opacity: 1; }

.brand-badge {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  align-self: start;
  width: clamp(170px, 16vw, 214px);
  margin-top: -8px;
  padding: 14px 14px 18px;
  text-decoration: none;
  transform-origin: 50% 0;
  transition: transform .4s var(--ease-out);
}
.brand-badge__plate {
  position: absolute; inset: 0 -18px -10px; z-index: -1;
  background: #fff;
  border-radius: 0 0 50% 50% / 0 0 34% 34%;
  box-shadow: 0 18px 30px -14px rgba(74, 7, 10, .35), 0 2px 0 rgba(255, 255, 255, 1) inset;
}
.brand-badge__plate::after { display: none; }
.brand-badge__logo { width: 100%; height: auto; transition: transform .5s var(--ease-out); }
.brand-badge:hover .brand-badge__logo { transform: scale(1.04) rotate(-1deg); }
.brand-badge__sub {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.62rem, 0.7vw, 0.72rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cs-red-strong);
  margin-top: 3px;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-badge__line {
  display: block;
  width: 96px;
  height: 3px;
  border-radius: 3px;
  background: var(--cs-swoosh);
  margin-top: 5px;
  opacity: .95;
}
.site-header.is-scrolled .brand-badge { transform: translateY(8px) scale(.78); }

.header-cart, .burger { display: none; }

/* ---------- Mobile header & menu ---------- */
@media (max-width: 1023.98px) {
  :root { --header-h: 68px; }
  .topbar__contact a:nth-child(2), .topbar__tagline { display: none; }
  .site-header__inner { grid-template-columns: 48px 1fr 48px; }
  .main-nav { display: none; }
  .brand-badge { justify-self: center; width: 148px; padding: 10px 12px 14px; margin-top: -6px; }
  .brand-badge__sub { font-size: 0.58rem; letter-spacing: 0.14em; margin-top: 2px; }
  .brand-badge__line { width: 78px; height: 2.5px; margin-top: 4px; }
  .brand-badge__plate { inset: 0 -14px -8px; }
  .site-header.is-scrolled .brand-badge { transform: scale(.86); }
  .header-cart {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--cs-swoosh); color: #0D3B1A; box-shadow: 0 8px 18px -8px rgba(49, 152, 71, .8);
  }
  .header-cart .icon { width: 20px; height: 20px; }
  .burger {
    display: grid; align-content: center; gap: 5px; justify-self: end;
    width: 46px; height: 46px; padding: 0 11px; border: 0; border-radius: 50%;
    background: var(--cs-red-strong); position: relative; z-index: 80;
  }
  .burger span { display: block; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .4s var(--ease-out), opacity .3s; }
  .burger span:nth-child(2) { width: 70%; justify-self: end; }
  .burger[aria-expanded="true"] { background: #fff; }
  body.menu-open .site-header { z-index: 80; transform: none; background: transparent; box-shadow: none; backdrop-filter: none; }
  body.menu-open .header-cart { visibility: hidden; }
  .burger[aria-expanded="true"] span { background: var(--cs-red-strong); }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translateX(10px); }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 479.98px) {
  .topbar { font-size: .8rem; }
  .topbar__inner { justify-content: center; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 150px var(--gutter) 32px;
  color: #fff;
  visibility: hidden;
  clip-path: circle(0 at calc(100% - 44px) 34px);
  transition: clip-path .7s var(--ease-in-out), visibility 0s linear .7s;
  overflow-y: auto;
}
.mobile-menu.is-open { visibility: visible; clip-path: circle(150% at calc(100% - 44px) 34px); transition: clip-path .8s var(--ease-in-out); }
.mobile-menu__bg { position: absolute; inset: 0; z-index: -1; background: var(--cs-red-grad); }
.mobile-menu__bg::after { content: ""; position: absolute; inset: 0; background: url("../images/pattern-light.svg") 0 0 / 220px; opacity: .08; }
.mobile-menu__nav ul { list-style: none; }
.mobile-menu__nav a {
  display: flex; align-items: baseline; gap: 14px; padding: 10px 0;
  color: #fff; text-decoration: none;
  font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 800; font-size: clamp(1.9rem, 8vw, 2.6rem); line-height: 1.15;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  opacity: 0; transform: translateX(-40px);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), color .2s;
}
.mobile-menu__nav a.is-active, .mobile-menu__nav a:hover { color: var(--cs-lime); }
.mobile-menu__num { font-family: var(--font-body); font-size: .85rem; font-weight: 700; color: rgba(255, 255, 255, .6); }
.mobile-menu.is-open .mobile-menu__nav a { opacity: 1; transform: none; }
.mobile-menu.is-open li:nth-child(1) a { transition-delay: .25s; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .31s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .37s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .43s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: .49s; }
.mobile-menu__footer { display: grid; gap: 14px; justify-items: start; margin-top: 32px; opacity: 0; transition: opacity .5s .55s; }
.mobile-menu.is-open .mobile-menu__footer { opacity: 1; }
.mobile-menu__footer > a:not(.btn-shop) { color: #fff; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.mobile-menu__footer .icon { width: 18px; height: 18px; }
body.menu-open { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 40px; color: rgba(255, 255, 255, .86); }
.site-footer__wave { width: 100%; height: clamp(60px, 8vw, 120px); margin-bottom: -1px; }
.site-footer__body {
  position: relative;
  background: linear-gradient(180deg, #7A0D11 0%, var(--cs-maroon) 45%, var(--cs-maroon-dark) 100%);
  padding-top: clamp(30px, 5vw, 60px);
}
.site-footer__body::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../images/pattern-light.svg") 0 0 / 240px; opacity: .05;
}
.site-footer__grid {
  position: relative;
  display: grid; gap: 40px;
  grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
  padding-bottom: 48px;
}
.footer-brand__badge {
  display: inline-block; padding: 14px 18px 20px; border-radius: 18px 18px 50% 50% / 18px 18px 30% 30%;
  background: #fff; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .6);
}
.footer-brand__badge img { width: 180px; }
.footer-brand__quote { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.3rem; line-height: 1.3; color: #fff; margin: 22px 0 6px; }
.footer-brand__since { font-size: .95rem; margin-bottom: 20px; }
.footer-col__title {
  font-family: var(--font-display); font-size: 1.25rem; color: #fff; margin-bottom: 18px;
  display: inline-block; padding-bottom: 8px; position: relative;
}
.footer-col__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; border-radius: 3px; background: var(--cs-swoosh); }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a {
  color: rgba(255, 255, 255, .86); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: color .2s, transform .3s var(--ease-out);
}
.footer-links .icon { width: 14px; height: 14px; color: var(--cs-lime); transition: transform .3s var(--ease-out); }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-address { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-address .icon { flex: none; width: 20px; height: 20px; color: var(--cs-lime); margin-top: 3px; }
.footer-address p { margin: 0; font-size: .95rem; line-height: 1.55; }
.footer-address strong { color: #fff; }
.footer-contact { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-top: 8px; font-weight: 600; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--cs-lime); }
.footer-contact:hover { color: var(--cs-lime); }
.footer-social { list-style: none; display: flex; gap: 8px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
.footer-social a:hover { background: var(--cs-lime); color: var(--cs-ink); }
.footer-social .icon { width: 18px; height: 18px; }
.site-footer__bottom {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 20px 26px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .875rem; color: rgba(255, 255, 255, .7);
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom-left { display: flex; flex-direction: column; gap: 4px; }
.site-footer__crafted { font-size: .82rem; color: rgba(255, 255, 255, .65); letter-spacing: .02em; }
@media (max-width: 1023.98px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767.98px) { .site-footer__bottom { padding-right: 64px; } }
@media (max-width: 599.98px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Floating actions & back to top ---------- */
.fab {
  position: fixed; right: 14px; top: 50%; z-index: 40;
  display: grid; gap: 10px; transform: translateY(-50%);
}
.fab__btn {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; text-decoration: none;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .45);
  transition: transform .35s var(--ease-out);
}
.fab__btn .icon { width: 21px; height: 21px; }
.fab__btn:hover { transform: scale(1.08); }
.fab__btn--call { background: var(--cs-green); }
.fab__btn--call::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cs-green);
  animation: pulse-ring 2.2s var(--ease-out) infinite;
}
.fab__btn--wa { background: #25A244; }
.fab__btn--mail { background: var(--cs-red-strong); }
.fab__btn--shop { background: var(--cs-swoosh); color: #0D3B1A; }
.fab__label {
  position: absolute; right: calc(100% + 10px); top: 50%;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--cs-ink); color: #fff; font-size: .82rem; font-weight: 600;
  opacity: 0; transform: translate(8px, -50%); pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease-out);
}
.fab__btn:hover .fab__label, .fab__btn:focus-visible .fab__label { opacity: 1; transform: translate(0, -50%); }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@media (max-width: 767.98px) {
  .fab { top: auto; bottom: 86px; right: 12px; transform: none; gap: 8px; }
  .fab__btn { width: 44px; height: 44px; }
  .fab__btn--shop { display: none; }
}

.to-top {
  position: fixed; right: 12px; bottom: 20px; z-index: 40;
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--cs-red-strong);
  box-shadow: 0 12px 26px -12px rgba(74, 7, 10, .5);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .35s, transform .45s var(--ease-out);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--cs-green-dark); }
.to-top > .icon { width: 20px; height: 20px; position: relative; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__track { fill: none; stroke: var(--cs-line); stroke-width: 3; }
.to-top__progress { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  max-width: min(92vw, 460px); padding: 14px 20px; border-radius: 16px;
  background: var(--cs-ink); color: #fff; font-weight: 500; text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translate(-50%, 20px); pointer-events: none;
  transition: opacity .3s, transform .45s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Preloader ---------- */
.preloader { display: none; }
html.js.is-first-visit .preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--cs-cream) 70%);
  transition: clip-path .9s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
html.js.is-first-visit .preloader.is-done { clip-path: inset(0 0 100% 0); }
.preloader__inner { display: grid; justify-items: center; gap: 6px; padding: 24px; }
.preloader__logo { width: min(260px, 64vw); animation: pre-logo 1s var(--ease-out) both; }
.preloader__swoosh { width: min(260px, 64vw); height: 30px; }
.preloader__line { fill: none; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw .9s var(--ease-out) .35s forwards; }
.preloader__line--red { stroke: var(--cs-red); stroke-width: 6; }
.preloader__line--green { stroke-width: 5; animation-delay: .5s; }
.preloader__text { margin: 6px 0 0; font-family: var(--font-script); font-size: 1.2rem; color: var(--cs-red-strong); opacity: 0; animation: fade-in .6s .8s forwards; }
@keyframes pre-logo { from { opacity: 0; transform: scale(.82) translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* ---------- Page curtain (between pages) ---------- */
.curtain { position: fixed; inset: 0; z-index: 9990; pointer-events: none; }
.curtain__panel { position: absolute; inset: 0; transform: translateY(101%); transition: transform .55s var(--ease-in-out); }
.curtain__panel--green { background: var(--cs-swoosh); }
.curtain__panel--red { background: var(--cs-red-grad); display: grid; place-items: center; transition-delay: .07s; }
.curtain__logo { width: 180px; background: #fff; padding: 12px 16px 16px; border-radius: 16px 16px 50% 50% / 16px 16px 30% 30%; box-shadow: var(--shadow); }
html.curtain-in .curtain { pointer-events: auto; }
html.curtain-in .curtain__panel { transform: translateY(0); }
html.js.is-entering .curtain__panel { transform: translateY(0); transition: none; }
html.js.is-entering.curtain-out .curtain__panel { transform: translateY(-101%); transition: transform .65s var(--ease-in-out); }
html.js.is-entering.curtain-out .curtain__panel--green { transition-delay: .09s; }
/* Putting the panels back below the screen must be instant, never a slide down across the page. */
html.curtain-reset .curtain__panel { transition: none !important; }


/* ---------- Inner page hero ---------- */
.page-hero {
  --hero-accent: var(--cs-red);
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  background: var(--cs-red-grad);
  padding: clamp(70px, 9vw, 120px) 0 clamp(110px, 12vw, 160px);
}
.page-hero[style*="--hero-accent"] {
  background: linear-gradient(120deg,
    color-mix(in srgb, var(--hero-accent) 45%, #1A0705) 0%,
    color-mix(in srgb, var(--hero-accent) 70%, #1A0705) 55%,
    color-mix(in srgb, var(--hero-accent) 88%, #1A0705) 100%);
}
.page-hero__pattern { position: absolute; inset: 0; z-index: -1; background: url("../images/pattern-light.svg") 0 0 / 240px; opacity: .08; }
.page-hero::after {
  content: ""; position: absolute; z-index: -1; width: 60vw; aspect-ratio: 1; right: -18vw; top: -30vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 120, .28), transparent 65%);
}
.page-hero__inner { position: relative; display: grid; grid-template-columns: 1fr; align-items: center; gap: 30px; }
.page-hero--with-media .page-hero__inner { grid-template-columns: 1.2fr .8fr; }
.page-hero__title { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 14px; }
.page-hero__lead { font-size: 1.15rem; max-width: 560px; color: rgba(255, 255, 255, .88); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-weight: 600; font-size: .95rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cs-lime); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #FFE9C9; }
.page-hero__media { position: relative; height: clamp(220px, 26vw, 330px); }
.page-hero__pack {
  position: absolute; bottom: 0; height: 100%; width: auto;
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, .35));
  animation: bob 6s ease-in-out infinite;
}
.page-hero__media--1 .page-hero__pack--1 { left: 50%; translate: -50% 0; }
.page-hero__media--2 .page-hero__pack--1, .page-hero__media--3 .page-hero__pack--1 { left: 4%; height: 82%; rotate: -10deg; animation-delay: -1.5s; }
.page-hero__media--2 .page-hero__pack--2 { right: 4%; height: 92%; rotate: 8deg; animation-delay: -3s; }
.page-hero__media--3 .page-hero__pack--2 { left: 50%; translate: -50% 0; z-index: 2; animation-delay: -3s; }
.page-hero__media--3 .page-hero__pack--3 { right: 2%; height: 80%; rotate: 10deg; animation-delay: -4.5s; }
.page-hero__edge { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: calc(clamp(50px, 6vw, 90px) + 2px); }
.page-hero__edge-fill { fill: var(--page-bg); }
@media (max-width: 767.98px) {
  .page-hero--with-media .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__media { height: 200px; max-width: 360px; width: 100%; justify-self: center; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Product card ---------- */
.product-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--cs-line);
  box-shadow: var(--shadow-sm);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
  will-change: transform;
}
.product-card:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: 0 34px 60px -26px color-mix(in srgb, var(--accent) 70%, transparent); }
.product-card__link { display: flex; flex-direction: column; height: 100%; padding: 14px 14px 20px; color: inherit; text-decoration: none; border-radius: inherit; }
.product-card__media {
  position: relative; aspect-ratio: 1 / 1.08; display: grid; place-items: center; overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
  background: radial-gradient(circle at 50% 60%, #fff 0%, var(--accent-soft) 70%);
}
.product-card__blob {
  position: absolute; width: 72%; aspect-ratio: 1; background: var(--accent); opacity: .16;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: blob-morph 14s ease-in-out infinite, spin 40s linear infinite;
  transition: opacity .4s, transform .6s var(--ease-out);
}
.product-card__ring {
  position: absolute; width: 84%; aspect-ratio: 1; border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--accent) 35%, transparent);
  animation: spin 50s linear infinite;
}
.product-card__img {
  position: absolute; left: 0; top: 6%; width: 100%; height: 88%; object-fit: contain;
  filter: drop-shadow(0 18px 16px rgba(30, 10, 5, .22));
  transition: transform .7s var(--ease-out);
}
.product-card:hover .product-card__img { transform: translateY(-10px) rotate(-3deg) scale(1.05); }
.product-card:hover .product-card__blob { opacity: .28; transform: scale(1.15); }
.product-card__body { padding: 16px 6px 0; display: grid; gap: 2px; flex: 1; align-content: start; }
.product-card__range { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); filter: brightness(.82); }
.product-card__name { font-size: 1.45rem; margin: 2px 0 0; }
.product-card__hi { margin: 0 0 12px; color: var(--cs-muted); font-size: 1rem; }
.product-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 6px; margin-top: auto; }
.product-card__meta .chip { background: var(--accent-soft); color: var(--cs-ink); }
.product-card__meta .chip--price { background: var(--cs-red-strong); color: #fff; box-shadow: 0 6px 12px -6px rgba(195, 22, 26, .8); }
.product-card__meta .product-card__more { margin-left: auto; }
.product-card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--cs-red-strong); }
.product-card__more .icon { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.product-card:hover .product-card__more .icon { transform: translateX(5px); }

/* ---------- Counters ---------- */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.counter {
  position: relative; padding: 26px 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--cs-line); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.counter::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--cs-swoosh); transform: scaleX(.25); transform-origin: left; transition: transform .6s var(--ease-out); }
.counter:hover::after { transform: scaleX(1); }
.counter__value { margin: 0; font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 900; font-size: clamp(2.4rem, 4vw, 3.3rem); line-height: 1; color: var(--cs-red-strong); white-space: nowrap; }
.counter__prefix, .counter__suffix { font-size: .62em; }
.counter__label { margin: 10px 0 0; font-weight: 700; line-height: 1.35; }
.counter__label small { display: block; font-weight: 500; color: var(--cs-muted); font-size: .85rem; }
.counters--light .counter { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.counters--light .counter__value { color: #fff; }
.counters--light .counter__label { color: #fff; }
.counters--light .counter__label small { color: rgba(255, 255, 255, .7); }
@media (max-width: 899.98px) { .counters { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(40px, 6vw, 80px) 0; }
.cta-band__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 30px;
  padding: clamp(36px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--cs-red-grad); color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../images/pattern-light.svg") 0 0 / 220px; opacity: .08; }
.cta-band__card::after {
  content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; bottom: -55%; height: 80%;
  border-radius: 50%; border-top: 14px solid var(--cs-green); box-shadow: 0 -10px 0 0 var(--cs-lime);
  opacity: .9;
}
.cta-band__title { color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 10px; }
.cta-band__text p:not(.eyebrow) { color: rgba(255, 255, 255, .88); max-width: 520px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.cta-band__packs { position: relative; height: 260px; }
.cta-band__pack { position: absolute; bottom: 10px; height: 200px; width: auto; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .35)); animation: bob 6s ease-in-out infinite; }
.cta-band__pack--1 { left: 0; rotate: -12deg; animation-delay: -1s; }
.cta-band__pack--2 { left: 50%; translate: -50% 0; height: 240px; z-index: 2; animation-delay: -2.5s; }
.cta-band__pack--3 { right: 0; rotate: 12deg; animation-delay: -4s; }
@media (max-width: 767.98px) {
  .cta-band__card { grid-template-columns: 1fr; }
  .cta-band__packs { height: 200px; max-width: 320px; }
  .cta-band__pack { height: 150px; }
  .cta-band__pack--2 { height: 180px; }
}

/* ---------- Generic keyframes ---------- */
@keyframes spin { to { rotate: 360deg; } }
@keyframes blob-morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  33% { border-radius: 63% 37% 41% 59% / 55% 62% 38% 45%; }
  66% { border-radius: 37% 63% 52% 48% / 38% 45% 55% 62%; }
}
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Animation initial states (only while the engine runs) ---------- */
html.js [data-anim]:not(.is-in), html.js [data-anim-stagger]:not(.is-in) > * { opacity: 0; }
html.js [data-anim="split-up"]:not(.is-in) { opacity: 1; }
html.js [data-anim="split-up"]:not(.is-split) { opacity: 0; }
.split-word { display: inline-block; overflow: clip; overflow-clip-margin: .12em; vertical-align: top; padding: 0 .04em .2em; margin: 0 -.04em -.2em; }
.split-word__inner { display: inline-block; will-change: transform; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html.js [data-anim], html.js [data-anim-stagger] > * { opacity: 1 !important; transform: none !important; }
  .preloader, .curtain { display: none !important; }
}
