/* ============================================================
   Fit Sran Supplements & Nutrition — design tokens & signature
   elements layered on top of Tailwind CDN utilities.
   Colors sourced from the real logo (brand_assets/logo.png):
     yellow  #FDE23A   badge grey #393E44   cream #D1D0C9
   plus supporting neutrals from Fit Sran BRAND_GUIDELINES.md.
   ============================================================ */

:root {
  --bg: #121116;
  --bg-deep: #0a0a0c;
  --panel: #393E44;
  --panel-deep: #2E2B2B;
  --accent: #FDE23A;
  --accent-dim: #C9AC1E;
  --slate: #6A6E79;
  --silver: #D1D0C9;
  --marble: #F5F5F3;

  --font-display: 'Anton', 'Archivo Black', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-label: 'Barlow Semi Condensed', sans-serif;

  /* Spring-style easing for interactive transitions — a slight
     overshoot instead of a flat ease curve. */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
}

/* Clips decorative glows/blobs sideways without creating a scroll
   container, so position: fixed/sticky keeps working. */
.clip-x {
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background-color: var(--bg);
  color: var(--marble);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.font-display { font-family: var(--font-display); letter-spacing: -0.03em; }
.font-label { font-family: var(--font-label); }

.text-accent { color: var(--accent); }
.bg-accent { background-color: var(--accent); }
.bg-panel { background-color: var(--panel); }
.bg-panel-deep { background-color: var(--panel-deep); }
.bg-bg-deep { background-color: var(--bg-deep); }
.text-silver { color: var(--silver); }
.text-slate { color: var(--slate); }
.border-slate\/40 { border-color: rgb(106 110 121 / 0.4); }

/* Eyebrow / tracked-out label treatment (echoes the logo's
   "SUPPLEMENTS & NUTRITION" tracked caps) */
.eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
}

/* Grain texture for the dark hero field, subtle */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Decorative hero shape: soft dumbbell/blob glow, low opacity */
.hero-glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  background: radial-gradient(circle, rgba(253,226,58,0.35) 0%, rgba(253,226,58,0) 70%);
  pointer-events: none;
}

/* Signature divider: dumbbell glyph flanked by hairlines.
   Used sparingly between a few key sections — the one recurring
   graphic idea unique to Fit Sran, echoing the dumbbell-as-"I"
   motif from the real logo. */
.dumbbell-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 22rem;
  margin: 0 auto;
}
.dumbbell-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(253 226 58 / 0.5), transparent);
}
.dumbbell-divider svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* Layered, color-tinted shadow system (base -> elevated -> floating) */
.shadow-elevated {
  box-shadow: 0 8px 24px -8px rgb(0 0 0 / 0.5), 0 2px 8px -2px rgb(253 226 58 / 0.06);
}
.shadow-floating {
  box-shadow: 0 20px 48px -12px rgb(0 0 0 / 0.6), 0 4px 16px -4px rgb(253 226 58 / 0.1);
}

/* Category / benefit cards */
.card {
  background-color: var(--panel);
  border: 1px solid rgb(255 255 255 / 0.06);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--spring), border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgb(253 226 58 / 0.35);
}
.card:active {
  transform: translateY(-1px) scale(0.99);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.875rem;
  padding: 0.85rem 1.75rem;
  border-radius: 0.25rem;
  transition: transform 0.25s var(--spring), box-shadow 0.25s var(--spring), background-color 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background-color: var(--accent);
  color: #121116;
}
.btn-primary:hover {
  background-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgb(253 226 58 / 0.4);
}
.btn-primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 4px 12px -6px rgb(253 226 58 / 0.4);
}
.btn-secondary {
  background-color: transparent;
  color: var(--marble);
  border: 1.5px solid rgb(255 255 255 / 0.25);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-secondary:active {
  transform: translateY(0) scale(0.97);
}

/* Focus visibility (accessibility floor) */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Active/pressed-state fallback for any plain link or button that
   doesn't have a more specific :active rule of its own below. */
a:active,
button:active {
  opacity: 0.7;
}

/* Nav link underline-on-hover */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--spring);
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="true"]::after {
  transform: scaleX(1);
}
.nav-link[aria-current="true"] {
  color: var(--accent);
}
.nav-link:active {
  opacity: 0.7;
}

/* Disclosure widgets (FAQ accordion + mobile menu): hide the native
   triangle marker cross-browser (list-style covers modern engines,
   the webkit pseudo covers older Safari). */
summary {
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary:active { opacity: 0.85; }

/* FAQ accordion */
.faq-item .faq-icon {
  transition: transform 0.3s var(--spring);
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

/* Entrance animation: pure CSS, plays once on load. Deliberately not
   scroll-triggered — a JS/IntersectionObserver-gated opacity:0 default
   would leave content permanently invisible if the script ever failed
   to run. This degrades safely: with animations disabled it simply
   renders in its final (fully visible) state. */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Reveal runs only when JS confirmed it can add .js to <html>; with JS off
   (or blocked) the content renders plainly instead of staying hidden. */
.js .reveal {
  animation: reveal-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { animation: none; }
}

/* 2:3 portrait slide — the exact shape of the poster in slide 1, so the
   photo fills the card edge to edge with no bars. */
.collection-tile {
  aspect-ratio: 2 / 3;
}

/* Hero in-store collection slideshow */
.collection-carousel {
  border: 1px solid rgb(255 255 255 / 0.08);
  touch-action: pan-y;
}
.collection-track {
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.collection-slide img {
  user-select: none;
}
@media (prefers-reduced-motion: reduce) {
  .collection-track { transition: none; }
}

.carousel-arrow {
  position: absolute;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(18 17 22 / 0.55);
  color: var(--marble);
  border: 1px solid rgb(255 255 255 / 0.15);
  backdrop-filter: blur(4px);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s var(--spring);
}
.carousel-arrow:hover {
  background-color: var(--accent);
  color: #121116;
  transform: translateY(-50%) scale(1.06);
}
.carousel-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

.carousel-dot {
  position: relative;
  height: 1.75rem;
  width: 1.75rem;
  border-radius: 9999px;
}
.carousel-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background-color: rgb(255 255 255 / 0.3);
  transition: background-color 0.2s ease, transform 0.25s var(--spring);
}
.carousel-dot:hover::before {
  background-color: rgb(255 255 255 / 0.6);
}
.carousel-dot.is-active::before {
  background-color: var(--accent);
  transform: scale(1.25);
}
.carousel-dot:active::before {
  transform: scale(0.85);
}

/* Sticky phone action bar — clears the iOS home indicator and fades the
   page out behind it so text never collides with the buttons. */
.order-bar {
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--bg) 62%, rgb(0 0 0 / 0));
}
@media (max-width: 639px) {
  body { padding-bottom: 4.5rem; }
}

/* ============================================================
   Header lockup — the real logo split into figure + wordmark.
   Stacked while the page is at the top, compact row once scrolled.
   Only opacity and transform animate.
   ============================================================ */
.site-header {
  background-color: rgb(18 17 22 / 0.85);
  backdrop-filter: blur(12px);
}

.lockup-link {
  display: block;
  line-height: 0;
}
.lockup-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 6px;
}

.lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.35s var(--spring);
}
.lockup-figure,
.lockup-word {
  width: auto;
  display: block;
  flex: none;            /* never let the flex row squash the artwork */
  max-width: none;       /* Tailwind preflight caps img at 100% of a 0-width
                            absolutely positioned parent — opt out */
}
.lockup-caption {
  color: var(--silver);
  letter-spacing: 0.34em;
  font-size: 0.625rem;
  line-height: 1;
  padding-left: 0.34em;
}

/* stacked: figure over wordmark over caption */
.lockup-stack {
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.85rem;
}
.lockup-stack .lockup-figure { height: 104px; }
.lockup-stack .lockup-word { height: 68px; }

/* compact: side by side, fits the 4.5rem bar */
.lockup-row {
  position: absolute;
  top: 0;
  left: 50%;
  height: 4.5rem;
  gap: 0.7rem;
  transform: translateX(-50%) scale(0.86);
  opacity: 0;
  pointer-events: none;
}
.lockup-row .lockup-figure { height: 44px; }
.lockup-row .lockup-word { height: 32px; }

/* state swap on scroll (desktop) */
.site-header.is-compact .lockup-stack {
  opacity: 0;
  transform: scale(0.82);
  pointer-events: none;
}
.site-header.is-compact .lockup-row {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

/* phones and tablets: always the compact row, a little larger than the
   old badge image it replaces */
@media (max-width: 1023px) {
  .site-header .lockup-stack { display: none; }
  .site-header .lockup-row {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
  }
  .site-header .lockup-row .lockup-figure { height: 38px; }
  .site-header .lockup-row .lockup-word { height: 28px; }
  .site-header .lockup-row { gap: 0.55rem; }
}

/* footer: stacked lockup at a calmer size */
.lockup-footer {
  align-items: flex-start;
  padding-top: 0;
  gap: 0.5rem;
}
.lockup-footer .lockup-figure { height: 60px; }
.lockup-footer .lockup-word { height: 38px; }
.lockup-footer .lockup-caption { font-size: 0.5625rem; letter-spacing: 0.3em; }

@media (prefers-reduced-motion: reduce) {
  .lockup { transition: none; }
}

/* ============================================================
   UX pass (UI UX Pro Max checklist): skip link, anchor offsets,
   touch targets, pause control.
   ============================================================ */

/* Anchored sections and focused elements land below the fixed header */
html {
  scroll-padding-top: 5.5rem;
}

a, button, summary {
  touch-action: manipulation;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  background: var(--accent);
  color: #121116;
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 2px;
}

/* every button is at least 44px tall */
.btn {
  min-height: 2.75rem;
}

/* mobile menu rows: full-width, 44px tall */
.menu-link {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  transition: color 0.2s ease;
}
.menu-link:hover { color: var(--accent); }
.menu-link:active { opacity: 0.7; }

/* footer links: comfortable 32px targets */
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  transition: color 0.2s ease;
}
.footer-link:hover { color: var(--accent); }
.footer-link:active { opacity: 0.7; }

/* slideshow pause / play */
.carousel-pause {
  height: 1.75rem;
  width: 1.75rem;
  margin-left: 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  border: 1px solid rgb(255 255 255 / 0.2);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--spring);
}
.carousel-pause:hover { color: var(--accent); border-color: var(--accent); }
.carousel-pause:active { transform: scale(0.9); }
.carousel-pause .icon-play { display: none; }
.carousel-pause.is-paused .icon-play { display: block; }
.carousel-pause.is-paused .icon-pause { display: none; }
.footer-link-accent { color: var(--accent); }
.footer-link-accent:hover { color: var(--marble); }
