/* Kalaghoda Spirits — shared styles (every page)
   reset · header/nav · bag badge · footer · mobile menu.
   Page-specific styles: cart.css, checkout.css, account.css, or inline on the home/product pages. */

/* moving between pages of the site: the header stays put instead of fading out and dropping in again */
html.kg-nav-static .nav > a, html.kg-nav-static .nav > .nav__toggle, html.kg-nav-static .nav__right > * { animation: none !important; opacity: 1 !important; }
html.kg-nav-static:not(.hero-in) .nav > a:not(:hover), html.kg-nav-static:not(.hero-in) .nav > .nav__toggle,
html.kg-nav-static:not(.hero-in) .nav__right > *:not(:hover) { translate: none !important; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* optional features (promo codes) stay out of sight until the API says they're on — js/account-nav.js */
[data-promo][hidden] { display: none !important; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.nav > * { position: absolute; }
.nav__link {
  top: calc(87 * var(--s));
  font-size: calc(16 * var(--s));
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__link--vodkas    { left: calc(592 * var(--s)); }
.nav__link--story     { left: calc(740 * var(--s)); }
.nav__link--cocktails { left: calc(1086 * var(--s)); }
.nav__link--partners  { left: calc(1261 * var(--s)); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-9 * var(--s));
  height: max(1px, calc(1.5 * var(--s)));
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .55s var(--ease-out);
}
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }
.nav__logo { left: calc(920 * var(--s)); top: calc(52 * var(--s)); width: calc(78 * var(--s)); height: calc(87 * var(--s)); }
.nav__logo img { width: 100%; height: 100%; display: block; }
.nav__bag:hover { translate: 0 -2px; }
.nav__bag svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* account — beside the bag on the desktop header (between it and Get Notified); on ≤900px it is in the mobile menu.
   href / label follow the session (js/account-nav.js): /account when signed in, /account/login when not. */
.nav__account { display: none; }
@media (min-width: 901px) {
  .nav__account {
    display: block;
    position: absolute;
    left: calc(1471 * var(--s));
    top: calc(84 * var(--s));
    width: calc(22 * var(--s));
    height: calc(22 * var(--s));
    transition: translate .45s var(--ease-out);
  }
}
.nav__account:hover { translate: 0 -2px; }
.nav__account svg { width: 100%; height: 100%; display: block; overflow: visible; }
@media (prefers-reduced-motion: reduce) { .nav__account:hover { translate: none; } }
.btn-outline {
  left: calc(1520 * var(--s));
  top: calc(71 * var(--s));
  width: calc(160 * var(--s));
  height: calc(48 * var(--s));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(1 * var(--s));
  border: calc(1.5 * var(--s)) solid #fff;
  font-size: calc(16 * var(--s));
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .45s ease, border-color .45s ease, translate .45s var(--ease-out);
}
.btn-outline:hover { background: rgba(255, 255, 255, .07); border-color: var(--accent); translate: 0 -2px; }
.nav__toggle { display: none; }
/* bag badge — filled in by js/kalaghoda-cart.js; the original pink dot shows while the bag is empty */
.nav__count {
  position: absolute;
  left: 62%;
  top: -42%;
  min-width: 1.6em;
  height: 1.6em;
  padding: 0 .35em;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: max(10px, calc(12 * var(--s)));
  font-weight: 600;
  line-height: 1.68em;
  letter-spacing: 0;
  text-align: center;
  opacity: 0;
  scale: .6;
  pointer-events: none;
  transition: opacity .3s ease, scale .45s var(--ease-out);
}
.nav__bag.has-items .nav__count { opacity: 1; scale: 1; }
.nav__bag svg circle { transition: opacity .3s ease; }
.nav__bag.has-items svg circle { opacity: 0; }
@keyframes kg-bump { 40% { scale: 1.3; } }
.nav__count.is-bump { animation: kg-bump .5s var(--ease-out); }
/* ═════════════════════════ FOOTER (same as homepage) ═════════════════════════ */
.site-footer {
  /* 1 design px on the 1920-wide reference */
  --u: calc(100vw / 1920);
  --muted: #767676;

  position: relative;
  /* 80 design px taller than the original 480: room for the fifth Legal link ("Responsible drinking") above the rule,
     also at narrow desktop widths where the links' minimum font size stops them shrinking */
  height: calc(560 * var(--u));
  background: #121212;
  color: #fff;
  text-transform: uppercase;
}
.site-footer > * { position: absolute; }
.site-footer__brand { left: calc(240 * var(--u)); top: calc(123 * var(--u)); }
.site-footer__logo {
  display: block;
  width: calc(114 * var(--u));
  min-width: 72px;
  height: auto;
  margin-left: calc(10 * var(--u));
}
.site-footer__tagline {
  margin-top: calc(31 * var(--u));
  font-size: max(13px, calc(20.5 * var(--u)));
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.035em;
  white-space: nowrap;
}
.site-footer__nav {
  /* aligned to the right margin (like the rule and social icons), so the longest link stays inside the page edges */
  right: calc(240 * var(--u));
  top: calc(121 * var(--u));
  display: flex;
  gap: calc(115 * var(--u));
}
.site-footer__col { width: calc(150 * var(--u)); }
.site-footer__col:last-child { width: auto; }
.site-footer__heading {
  font-size: max(12px, calc(17.5 * var(--u)));
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
}
.site-footer__links { margin-top: calc(56 * var(--u)); list-style: none; }
.site-footer__links li + li { margin-top: calc(26 * var(--u)); }
.site-footer__links a {
  display: inline-block;
  font-size: max(12px, calc(17.5 * var(--u)));
  line-height: calc(18 * var(--u));
  letter-spacing: 0.06em;
  color: var(--muted);
  position: relative;
  transition: color .4s ease;
}
.site-footer__links a:hover,
.site-footer__links a:focus-visible { color: #fff; }
.site-footer__rule {
  left: calc(240 * var(--u));
  right: calc(240 * var(--u));
  top: calc(460 * var(--u));
  height: 1px;
  background: #313131;
}
.site-footer__copy {
  left: calc(240 * var(--u));
  top: calc(503 * var(--u));
  font-size: max(11px, calc(17.5 * var(--u)));
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.site-footer__social {
  right: calc(240 * var(--u));
  top: calc(491 * var(--u));
  display: flex;
  gap: calc(30 * var(--u));
  list-style: none;
}
.site-footer__social[hidden] { display: none; }   /* until the real profile URLs are confirmed */
.site-footer__social a {
  display: block;
  width: calc(40 * var(--u));
  height: calc(40 * var(--u));
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  transition: transform .45s var(--ease-out), opacity .3s ease;
}
.site-footer__social a:hover { transform: translateY(-2px) scale(1.06); }
.site-footer__social a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.site-footer__social svg { display: block; width: 100%; height: 100%; }
.site-footer__rule { transform-origin: left center; }
.site-footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s var(--ease-out);
}
.site-footer__links a:hover::after,
.site-footer__links a:focus-visible::after { transform: scaleX(1); }
/* ═════════════════════════ MOBILE MENU (same as homepage) ═════════════════════════ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
  padding: 88px 24px 56px;
  overflow-y: auto;
  background: #121212 url("/images/world-map.png") center / auto 100% no-repeat;
  color: #fff;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .45s var(--ease-editorial);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__close {
  position: absolute;
  top: 24px;
  left: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  cursor: pointer;
}
.mobile-menu__close span {
  position: absolute;
  left: 9px;
  top: 19px;
  width: 22px;
  height: 1.5px;
  background: #fff;
}
.mobile-menu__close span:first-child { transform: rotate(45deg); }
.mobile-menu__close span:last-child { transform: rotate(-45deg); }
.mobile-menu__logo { width: 64px; height: auto; }
.mobile-menu__links { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mobile-menu__links a {
  position: relative;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.08em;
  opacity: 0;
  translate: 0 12px;
  transition: opacity .6s var(--ease-editorial) var(--d, 0s), translate .7s var(--ease-out) var(--d, 0s);
}
.mobile-menu__links a:nth-child(2) { --d: .07s; }
.mobile-menu__links a:nth-child(3) { --d: .14s; }
.mobile-menu__links a:nth-child(4) { --d: .21s; }
.mobile-menu.is-open .mobile-menu__links a { opacity: 1; translate: none; }
.mobile-menu__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.08em;
  bottom: -8px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s var(--ease-out);
}
.mobile-menu__links a:hover::after,
.mobile-menu__links a:focus-visible::after { transform: scaleX(1); }
.mobile-menu__cta {
  padding: 14px 24px 12px;
  border: 1.5px solid #fff;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: background-color .45s ease, border-color .45s ease;
}
.mobile-menu__cta:hover { background: rgba(255, 255, 255, .07); border-color: var(--accent); }
html.menu-open, html.menu-open body { overflow: hidden; }

/* ═════════ Carrier tracking (order details, /track-order — js/tracking-timeline.js) ═════════
   The parcel's status in words, the expected delivery date, then Canada Post's scans newest first on a thin rail. */
.kg-track { margin-top: 18px; padding-top: 16px; border-top: 1px solid #2a2a2a; text-transform: none; }
.kg-track[hidden] { display: none; }
.kg-track__state { font-size: 15px; line-height: 1.5; letter-spacing: 0.02em; color: #fff; }
.kg-track__state.is-attempted, .kg-track__state.is-returning { padding-left: 12px; border-left: 2px solid #f6c24d; }
.kg-track__state.is-delivered { color: #9fe0bd; }
.kg-track__expected { margin-top: 6px; font-size: 14px; letter-spacing: 0.02em; color: #f6c24d; }
.kg-track__events { position: relative; margin: 16px 0 0; padding: 0 0 0 18px; list-style: none; }
.kg-track__events::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: #333; }
.kg-track__event { position: relative; display: grid; gap: 2px; padding: 0 0 14px; }
.kg-track__event[hidden] { display: none; }
.kg-track__event::before { content: ""; position: absolute; left: -18px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #121212; box-shadow: inset 0 0 0 1.5px #555; }
.kg-track__event.is-latest::before { background: #e91e63; box-shadow: 0 0 0 3px rgba(233, 30, 99, .2); }
.kg-track__when { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8a8a; font-variant-numeric: tabular-nums; }
.kg-track__what { font-size: 14px; line-height: 1.45; letter-spacing: 0.02em; color: #e6e6e6; }
.kg-track__event.is-latest .kg-track__what { color: #fff; font-weight: 500; }
.kg-track__where { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8a8a; }
.kg-track__more { padding: 0 0 2px; border: 0; border-bottom: 1px solid #555; background: none; color: #fff; font: inherit; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.kg-track__more:hover { border-color: #e91e63; }
.kg-track__more:focus-visible { outline: 2px solid #e91e63; outline-offset: 3px; }
