/* === COMPONENTS — The Boba Co. === */

/* ----------------------------------------
   Header / Nav
   ---------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: var(--z-header);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-base);
}

.home .nav {
  background: transparent;
  border-color: transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  border-radius: var(--radius-full);
}

.logo:hover {
  color: var(--text);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-sm);
  color: #FFFFFF;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-weight: var(--weight-medium);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text);
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  background: #FFFFFF;
  color: #0A0A0A;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: #E0E0E0;
  color: #0A0A0A;
  box-shadow: 0 8px 40px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: #FFFFFF;
  color: #0A0A0A;
  border-color: #FFFFFF;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* ----------------------------------------
   Hero
   ---------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  padding: calc(var(--header-height) + var(--space-16)) var(--content-padding) var(--space-20);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: var(--z-behind);
}

/* Bottom gradient fade — keeps video bright at top, readable text at bottom */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 30%,
    rgba(5, 5, 5, 0.3) 60%,
    rgba(5, 5, 5, 0.7) 100%
  );
  z-index: 1;
}

/* Subtle vignette around edges */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video + .hero-overlay {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.05);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #FFFFFF;
  margin-bottom: var(--space-8);
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------------------
   Section Labels
   ---------------------------------------- */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: var(--tracking-editorial);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------
   Drink Cards
   ---------------------------------------- */
.drink-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.drink-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
}

.drink-card-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  overflow: hidden;
}

.drink-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.drink-card:hover .drink-card-img img {
  transform: scale(1.05);
}

.drink-card-body {
  padding: var(--space-4);
}

.drink-card-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.drink-card-price {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--accent);
  margin-top: var(--space-1);
}

.drink-card-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* ----------------------------------------
   Category Filter
   ---------------------------------------- */
.category-filter {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-filter::-webkit-scrollbar {
  display: none;
}

.category-pill {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-pill:hover,
.category-pill.active {
  color: var(--text);
  background: var(--accent);
  border-color: var(--accent);
}

/* ----------------------------------------
   Sticky Order Bar
   ---------------------------------------- */
.sticky-order {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--space-3) var(--content-padding);
  z-index: var(--z-sticky);
  display: flex;
  justify-content: center;
  backdrop-filter: blur(20px);
}

/* ----------------------------------------
   Square Embed Container
   ---------------------------------------- */
.square-embed {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  min-height: 600px;
}

.square-embed iframe {
  width: 100%;
  min-height: 500px;
  border: none;
}

/* ----------------------------------------
   Mobile Menu
   ---------------------------------------- */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  z-index: var(--z-overlay);
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: var(--bg);
  z-index: var(--z-overlay);
  padding: calc(var(--header-height) + var(--space-8)) var(--space-8) var(--space-8);
  transition: right var(--transition-base);
}

.mobile-menu.active {
  right: 0;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-heavy);
  z-index: calc(var(--z-overlay) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-link {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-link:hover {
  color: var(--accent);
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
  padding: var(--section-padding) 0 var(--space-8);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.footer-logo:hover {
  color: var(--text);
}

.footer-tagline {
  color: var(--text-muted);
  margin-top: var(--space-2);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: var(--tracking-editorial);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.footer-link {
  display: block;
  color: var(--text-muted);
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.social-links {
  display: flex;
  gap: var(--space-4);
}

.social-link {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.social-link:hover {
  color: var(--accent);
}

/* ----------------------------------------
   Scroll Reveal
   ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-group.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-group.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-group.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-group.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-group.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-group.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.reveal-group.visible > *:nth-child(n+7) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* ----------------------------------------
   Instagram Grid
   ---------------------------------------- */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.ig-grid {
  text-decoration: none;
  color: inherit;
}

.ig-tile {
  aspect-ratio: 1;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.ig-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.ig-tile:hover img {
  transform: scale(1.08);
  opacity: 0.85;
}

/* ----------------------------------------
   Info Grid (Location / Hours)
   ---------------------------------------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.info-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: var(--tracking-editorial);
  margin-bottom: var(--space-3);
}

.hours-list dt {
  font-weight: var(--weight-medium);
}

.hours-list dd {
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.map-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ----------------------------------------
   Utility Overrides
   ---------------------------------------- */
.img-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
}

.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
