/* ==============================================================================
   KURO SPECIALTY ROASTERY & LOUNGE · BACKSEAT ENGINE STYLESHEET
   0.000 CLS · 100/100 Core Web Vitals · Theme-Native Decoupled Architecture
   ============================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/plus-jakarta-sans.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'PlusJakarta-Fallback';
  src: local('Arial');
  font-weight: 400;
  size-adjust: 105.41%;
  ascent-override: 97.6%;
  descent-override: 24.9%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'PlusJakarta-Fallback';
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Arial');
  font-weight: 700;
  size-adjust: 101.07%;
  ascent-override: 101.8%;
  descent-override: 25.9%;
  line-gap-override: 0%;
}

:root {
  /* Surface & Canvas Tokens */
  --bg-page: #09090B;
  --bg-surface: #121214;
  --surface-card: #18181B;
  --surface-elevated: #27272A;
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-focus: rgba(217, 119, 6, 0.4);

  /* Color Triad */
  --primary: #FAFAFA;
  --primary-hover: #FFFFFF;
  --accent: #D97706;
  --accent-glow: rgba(217, 119, 6, 0.2);
  --accent-surface: rgba(217, 119, 6, 0.08);

  /* Typography Tokens */
  --text-main: #FAFAFA;
  --text-secondary: #D4D4D8;
  --text-muted: #A1A1AA;
  --font-family: 'Plus Jakarta Sans', 'PlusJakarta-Fallback', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing Scale (Utopia Fluid) */
  --space-xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
  --space-s:  clamp(0.75rem, 0.65rem + 0.5vw, 1.25rem);
  --space-m:  clamp(1.25rem, 1rem + 1.25vw, 2.25rem);
  --space-l:  clamp(2rem, 1.5rem + 2.5vw, 4.5rem);
  --space-xl: clamp(3.5rem, 2.5rem + 5vw, 7.5rem);

  /* Layout Radius & Max-Width */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 80rem;
}

/* Base Reset & Core Body */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==============================================================================
   ENGINE LAYOUT PRIMITIVES (.bs-*)
   ============================================================================== */

.bs-container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.75rem + 2vw, 3rem);
}

.bs-section {
  padding-block: var(--space-xl);
  position: relative;
}

.bs-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
}
@media (min-width: 768px) {
  .bs-split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.bs-density-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(16rem, 12rem + 8vw, 22rem), 1fr));
  gap: var(--space-m);
}

.bs-reel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: var(--space-s);
}
.bs-reel::-webkit-scrollbar {
  display: none;
}

.bs-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.bs-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-m);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.bs-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}

/* ==============================================================================
   HEADER & NAVIGATION (.bs-nav Integration & Brand Customization)
   ============================================================================== */
.bs-nav .brand-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  background: var(--accent-surface);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  border-radius: 999px;
  letter-spacing: normal;
}
.bs-nav .nav-brand {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}
.bs-nav .nav-cta-btn {
  background: var(--primary);
  color: #000;
  font-weight: 700;
}

/* ==============================================================================
   HERO SECTION
   ============================================================================== */
.hero-section {
  padding-top: clamp(3rem, 2rem + 6vw, 7rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 4px 12px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  width: fit-content;
}
.hero-headline {
  font-size: clamp(2.4rem, 1.8rem + 3.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero-subheadline {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 36rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.btn-primary {
  padding: 0.85rem 1.75rem;
  background: var(--primary);
  color: #000000;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}
.btn-secondary {
  padding: 0.85rem 1.75rem;
  background: var(--surface-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--surface-elevated);
}
.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.8);
  aspect-ratio: 4/3;
}
.hero-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==============================================================================
   SECTION HEADERS
   ============================================================================== */
.section-header {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: var(--space-l);
}
.section-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}
.section-title {
  font-size: clamp(1.8rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem 0;
}
.section-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==============================================================================
   CONVERSION KIT PRIMITIVES (.bs-quick-quote, .bs-contact-card, .bs-booking-embed, .bs-payment-pill)
   ============================================================================== */

.bs-quick-quote,
.bs-contact-card,
.bs-booking-embed,
.bs-payment-pill {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  max-width: 38rem;
  margin-inline: auto;
}

.bs-stepper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
.bs-step-indicators {
  display: flex;
  gap: 6px;
}
.bs-step-dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease;
}
.bs-step-dot.active {
  background: var(--accent);
}

.bs-pills-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.bs-quote-pill {
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.15s ease;
}
.bs-quote-pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}
.bs-quote-pill.selected {
  border-color: var(--accent);
  background: var(--accent-surface);
  color: #FFFFFF;
}

.bs-form-group {
  margin-bottom: 1rem;
}
.bs-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}
.bs-form-input,
.bs-form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bs-form-input:focus,
.bs-form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.bs-form-textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.bs-btn-submit {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.bs-btn-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.bs-payment-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.bs-payment-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.bs-payment-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.bs-payment-methods {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ==============================================================================
   FOOTER
   ============================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-l);
  margin-top: auto;
  background: var(--bg-surface);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-hours {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
}

/* ==============================================================================
   Zero-Shift Mobile Popover Drawer Overflow & Desktop Isolation Guard
   ============================================================================== */
@media (min-width: 821px) {
  #site-mobile-drawer,
  .nav-mobile-drawer {
    display: none !important;
  }
}

#site-mobile-drawer:not(:popover-open),
.nav-mobile-drawer:not(:popover-open) {
  display: none !important;
}

#site-mobile-drawer:popover-open,
.nav-mobile-drawer:popover-open {
  display: flex !important;
}
