/*
Theme Name: Airport Way Best Bud
Theme URI: https://airportwaybestbud.com
Author: Airport Way Best Bud — Fairbanks, AK
Author URI: https://www.leafly.com/dispensary-info/airport-way-best-bud
Description: Custom Fairbanks, Alaska dispensary WordPress theme for Airport Way Best Bud with automatic page & menu setup, bundled photography assets, official Leafly Website Menu integration, built-in 21+ Age Gate, Mon–Sun weekly deals, and Alaska 21+ compliance warnings.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: airport-way-best-bud
*/

:root {
  --awbb-obsidian: #111211;
  --awbb-ink: #141514;
  --awbb-gold: #E5B82E;
  --awbb-gold-hover: #D4A61E;
  --awbb-gold-text: #8E6506;
  --awbb-ember: #B2341D;
  --awbb-canvas: #F6F5F0;
  --awbb-surface: #ECE9E0;
  --awbb-white: #FFFFFF;
  --awbb-border: #DFDBD1;
  --awbb-muted: #575650;
  --awbb-dark-border: #262825;
  --awbb-dark-muted: #C8C5BC;
  --font-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--awbb-canvas);
  color: var(--awbb-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; }
section[id] { scroll-margin-top: 84px; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.tabular-nums { font-variant-numeric: tabular-nums; font-family: var(--font-mono); }

.awbb-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Header — 3-Zone Contract */
.awbb-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(17, 18, 17, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--awbb-dark-border);
  color: var(--awbb-canvas);
}
.awbb-header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.awbb-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.awbb-brand span { color: var(--awbb-gold); }
.awbb-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.awbb-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--awbb-dark-muted);
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
.awbb-nav a:hover, .awbb-nav .current-menu-item > a {
  color: var(--awbb-canvas);
  border-bottom-color: var(--awbb-gold);
}
.awbb-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--awbb-gold);
  color: var(--awbb-obsidian);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease;
}
.awbb-btn-gold:hover { background: var(--awbb-gold-hover); }
.awbb-btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  color: var(--awbb-canvas);
  border: 1px solid #3C3F3B;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 6px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}
.awbb-btn-outline-dark:hover { border-color: var(--awbb-gold); color: var(--awbb-gold); }
.awbb-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--awbb-ink);
  color: var(--awbb-canvas);
  font-weight: 600;
  font-size: 0.825rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.awbb-btn-dark:hover { background: #2B2D2A; }
.awbb-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid #3C3F3B;
  color: var(--awbb-canvas);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* Hero */
.awbb-hero {
  background: var(--awbb-obsidian);
  color: var(--awbb-canvas);
  border-bottom: 1px solid var(--awbb-dark-border);
  padding: 48px 0 56px;
}
.awbb-hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 44px;
  align-items: stretch;
}
.awbb-hero-copy { display: flex; flex-direction: column; justify-content: space-between; }
.awbb-badge-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.awbb-hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-bottom: 18px;
}
.awbb-hero-lead { color: var(--awbb-dark-muted); font-size: 1rem; margin-bottom: 28px; max-width: 52ch; }
.awbb-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.awbb-hero-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #2B2E2A;
  min-height: 360px;
}
.awbb-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.awbb-hero-scrim {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(13,14,13,0.92), rgba(13,14,13,0.45) 60%, transparent);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.awbb-vitals {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--awbb-dark-border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.awbb-vital-label { font-size: 0.75rem; color: #9D9A91; margin-bottom: 4px; }
.awbb-vital-value { font-size: 0.92rem; font-weight: 700; color: var(--awbb-canvas); }
.awbb-vital-sub { font-size: 0.78rem; color: var(--awbb-dark-muted); margin-top: 2px; }

/* Sections & Cards */
.awbb-section { padding: 64px 0; }
.awbb-section-alt { background: var(--awbb-surface); border-top: 1px solid #DCD8CD; border-bottom: 1px solid #DCD8CD; }
.awbb-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--awbb-border);
  margin-bottom: 32px;
}
.awbb-kicker { font-size: 0.78rem; font-weight: 600; color: var(--awbb-gold-text); margin-bottom: 6px; }
.awbb-section h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }

.awbb-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #E8E4DA; border: 1px solid #D8D3C7; border-radius: 8px; }
.awbb-tab {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #474641;
  border-radius: 6px;
  cursor: pointer;
}
.awbb-tab.is-active { background: var(--awbb-ink); color: var(--awbb-canvas); }

.awbb-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.awbb-filter-btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--awbb-border);
  background: var(--awbb-white);
  font-size: 0.85rem;
  font-weight: 600;
  color: #3B3B37;
  cursor: pointer;
}
.awbb-filter-btn.is-active { background: var(--awbb-ink); color: var(--awbb-gold); border-color: var(--awbb-ink); }

.awbb-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.awbb-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.awbb-card {
  background: var(--awbb-white);
  border: 1px solid var(--awbb-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.awbb-card-media { aspect-ratio: 4 / 3; background: var(--awbb-surface); overflow: hidden; }
.awbb-card-media img { width: 100%; height: 100%; object-fit: cover; }
.awbb-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.awbb-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--awbb-muted);
  margin-bottom: 6px;
}
.awbb-card-title { font-size: 1.12rem; font-weight: 700; margin-bottom: 6px; }
.awbb-card-desc { font-size: 0.84rem; color: var(--awbb-muted); margin-bottom: 16px; }
.awbb-card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #EFECE4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.awbb-deal-note { font-size: 0.75rem; font-weight: 700; color: var(--awbb-ember); margin-bottom: 2px; }
.awbb-price { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; }

/* Weekly Deals Table */
.awbb-schedule { background: var(--awbb-white); border: 1px solid var(--awbb-border); border-radius: 12px; overflow: hidden; }
.awbb-schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid #EFECE4;
  font-size: 0.9rem;
}
.awbb-schedule-row:last-child { border-bottom: none; }
.awbb-schedule-row.is-today { background: var(--awbb-ink); color: var(--awbb-canvas); }
.awbb-schedule-row.is-today .awbb-schedule-deal { color: var(--awbb-gold); font-weight: 700; }

/* FAQ Accordion */
.awbb-faq-list { background: var(--awbb-white); border: 1px solid var(--awbb-border); border-radius: 12px; overflow: hidden; }
.awbb-faq-item { border-bottom: 1px solid #EFECE4; }
.awbb-faq-item:last-child { border-bottom: none; }
.awbb-faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.awbb-faq-item summary::-webkit-details-marker { display: none; }
.awbb-faq-item p { padding: 0 20px 18px; font-size: 0.9rem; color: #474641; }

/* Footer */
.awbb-footer {
  background: var(--awbb-obsidian);
  color: #D7D4CC;
  border-top: 1px solid var(--awbb-dark-border);
  padding: 52px 0 40px;
}
.awbb-footer-grid { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--awbb-dark-border); }
.awbb-warnings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 28px;
  list-style: none;
  padding: 24px 0 0;
  margin: 0 0 20px;
  font-size: 0.76rem;
  color: #8E8B83;
}

@media (max-width: 960px) {
  .awbb-hero-grid, .awbb-grid-3, .awbb-vitals, .awbb-footer-grid { grid-template-columns: 1fr; }
  .awbb-grid-2, .awbb-warnings { grid-template-columns: 1fr; }
  .awbb-nav { display: none; }
  .awbb-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--awbb-obsidian);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--awbb-dark-border);
    gap: 14px;
  }
  .awbb-mobile-toggle { display: inline-flex; }
}

/* 21+ Age Verification Gate */
body.awbb-age-locked { overflow: hidden; }
.awbb-age-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 12, 11, 0.94);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}
.awbb-age-gate.is-hidden { display: none !important; }
.awbb-age-card {
  width: 100%;
  max-width: 440px;
  background: #141514;
  color: #F6F5F0;
  border: 1px solid #2C2F2B;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  text-align: center;
}
.awbb-age-accent { height: 6px; background: var(--awbb-gold); }
.awbb-age-body { padding: 30px 28px 26px; }
.awbb-age-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--awbb-gold);
  margin: 14px 0 8px;
}
.awbb-age-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 10px;
}
.awbb-age-copy {
  font-size: 0.9rem;
  color: #C8C5BC;
  line-height: 1.55;
  margin: 0 0 22px;
}
.awbb-age-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 460px) {
  .awbb-age-actions { grid-template-columns: 1fr; }
}
.awbb-age-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  background: #1C1E1C;
  color: #E2DFD6;
  border: 1px solid #343733;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.awbb-age-no:hover { background: #262926; border-color: #525650; }
.awbb-age-remember {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #A8A59C;
  cursor: pointer;
  user-select: none;
}
.awbb-age-remember input { width: 16px; height: 16px; accent-color: var(--awbb-gold); cursor: pointer; }
.awbb-age-legal {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #242723;
  font-size: 0.7rem;
  color: #8E8B83;
  line-height: 1.5;
}
.awbb-age-denied[hidden] { display: none; }
.awbb-age-prompt[hidden] { display: none; }
