/* =========================================================================
   The Fried Hangover 1.2 — shared design system
   Extends the /fried brand (orange #F0453A) with the loyalty gold accent
   (#D4AF37). Loaded on EVERY page alongside brand.css. Owns the shared
   header/nav, the loyalty page shell, and reusable card / star-rating
   components ported from the Expo app's brutalist UI kit.
   ========================================================================= */

:root {
  /* Brand (from /fried style.css) */
  --brand:        #F0453A;
  --brand-2:      #CC2A20;
  --brand-3:      #E5392C;
  --ink:          #000000;
  --ink-2:        #111111;
  --cream:        #FFF5EC;
  --mustard:      #F5B700;

  /* Loyalty sub-palette (from the Expo app Theme.ts) */
  --gold-500:     #D4AF37;
  --gold-600:     #B8962E;
  --vegan-green:  #22C55E;
  --off-black:    #121212;

  /* Typography */
  --font-display: 'Bungee', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --nav-h: 68px;
  --maxw: 1200px;
}

/* ------------------------------------------------------------------ nav -- */
.fh-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 3px solid var(--brand);
  backdrop-filter: saturate(140%) blur(6px);
}
.fh-nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.fh-nav__logo { display: inline-flex; align-items: center; }
.fh-nav__logo img { height: 44px; width: auto; display: block; }
.fh-nav__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.fh-nav__link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  position: relative;
  transition: color 0.18s ease, background 0.18s ease;
}
.fh-nav__link:hover { color: var(--brand); }
.fh-nav__link--active { color: var(--ink); background: var(--gold-500); }
.fh-nav__link--active:hover { color: var(--ink); }

.fh-nav__burger {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  background: transparent;
  border: 2px solid var(--brand);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.fh-nav__burger span {
  display: block;
  width: 20px; height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.fh-nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fh-nav__burger.is-open span:nth-child(2) { opacity: 0; }
.fh-nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.fh-mobile {
  background: rgba(0, 0, 0, 0.98);
  border-bottom: 3px solid var(--gold-500);
}
.fh-mobile__inner { display: flex; flex-direction: column; padding: 8px 20px 16px; }
.fh-mobile__link {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.fh-mobile__link--active { color: var(--gold-500); }

@media (max-width: 860px) {
  .fh-nav__links { display: none; }
  .fh-nav__burger { display: flex; }
}
@media (min-width: 861px) {
  .fh-mobile { display: none !important; }
}

/* --------------------------------------------------------- page shell -- */
.fh-page {
  min-height: 60vh;
  background: radial-gradient(120% 90% at 50% 0%, #141414 0%, #0a0a0a 55%, #000 100%);
  color: #fff;
  font-family: var(--font-body);
  padding: 0 0 80px;
}
.fh-container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.fh-hero {
  padding: 64px 20px 40px;
  text-align: center;
  border-bottom: 2px solid rgba(212, 175, 55, 0.25);
}
.fh-hero__eyebrow {
  font-family: var(--font-display);
  color: var(--gold-500);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 12px;
}
.fh-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.fh-hero__title .accent { color: var(--brand); }
.fh-hero__lead {
  max-width: 60ch;
  margin: 0 auto;
  opacity: 0.82;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.fh-section { padding: 48px 0; }
.fh-section__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  margin: 0 0 6px;
}
.fh-section__title .bar { color: var(--gold-500); }
.fh-section__sub { opacity: 0.7; margin: 0 0 28px; }

/* ------------------------------------------------ brutalist card kit --- */
.fh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.brutalist-card {
  background: var(--off-black);
  border: 2px solid var(--gold-500);
  border-radius: 4px;
  padding: 22px;
  box-shadow: 6px 6px 0 rgba(212, 175, 55, 0.25);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.brutalist-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 rgba(212, 175, 55, 0.35);
}
.brutalist-card__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.05rem;
  margin: 0 0 10px;
  color: #fff;
}
.brutalist-card__meta {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin: 0 0 12px;
}
.brutalist-card p { opacity: 0.85; margin: 0 0 8px; line-height: 1.55; }

.star-rating { color: var(--gold-500); letter-spacing: 2px; font-size: 1.05rem; }

.brutalist-btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  color: var(--ink);
  background: var(--brand);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 11px 18px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.brutalist-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.brutalist-btn--gold { background: var(--gold-500); }
.brutalist-btn[disabled], .brutalist-btn.is-disabled {
  opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none;
}

.fh-note {
  border-left: 4px solid var(--gold-500);
  background: rgba(212, 175, 55, 0.08);
  padding: 14px 18px;
  border-radius: 4px;
  margin: 22px 0;
  font-size: 0.92rem;
}
.fh-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--vegan-green);
  color: #04240f;
  padding: 4px 8px;
  border-radius: 999px;
}
.fh-badge--soon { background: var(--mustard); color: #241c00; }

/* shared footer for loyalty pages */
.fh-footer {
  border-top: 3px solid var(--brand);
  background: #000;
  color: #fff;
  text-align: center;
  padding: 28px 20px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}
/* Underlined so links in text blocks are distinguishable without relying on
   color alone (WCAG 1.4.1 / axe link-in-text-block). */
.fh-footer a { color: var(--gold-500); text-decoration: underline; text-underline-offset: 2px; }
.fh-note a,
.fh-form a { color: var(--gold-500); text-decoration: underline; text-underline-offset: 2px; }
.fh-section__sub a { text-decoration: underline; text-underline-offset: 2px; }

/* form */
.fh-form { display: grid; gap: 14px; max-width: 560px; }
.fh-form label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-500); }
.fh-form input, .fh-form select, .fh-form textarea {
  width: 100%;
  background: #0d0d0d;
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: 4px;
  color: #fff;
  padding: 11px 12px;
  font-family: var(--font-body);
}
.fh-form textarea { min-height: 110px; resize: vertical; }

/* --------------------------------------------------------- a11y (P4) --- */
/* Skip link: off-screen until keyboard-focused, then pinned top-left. */
.fh-skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 2000;
  background: var(--gold-500);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 6px;
  transition: top 0.15s ease;
}
.fh-skip-link:focus { top: 8px; outline: 3px solid #fff; outline-offset: 2px; }

/* Programmatic focus target (main) should not show a persistent outline. */
#main-content:focus { outline: none; }

.fh-nav__logo picture { display: inline-flex; align-items: center; }

/* Visible keyboard focus for all interactive shared components. */
.fh-nav__link:focus-visible,
.fh-mobile__link:focus-visible,
.fh-footer a:focus-visible,
.fh-form a:focus-visible,
.fh-note a:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}
.fh-nav__burger:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}
.brutalist-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.fh-form input:focus-visible,
.fh-form select:focus-visible,
.fh-form textarea:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 1px;
  border-color: var(--gold-500);
}
