/* ==========================================================================
   UPGRADE MOBILES. — Apple / Nothing / Tesla Design System
   With Rich Bento Card Photography Backgrounds & Instagram Integration
   ========================================================================== */

:root {
  --bg-black: #000000;
  --card-bg: #111111;
  --text-white: #ffffff;
  --text-muted: #a1a1a6;
  --text-dim: #6e6e73;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.3);
  --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-boutique: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-black);
  color: var(--text-white);
  min-height: 100vh;
  position: relative;
}

/* ==========================================================================
   Preloader Screen
   ========================================================================== */
.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s var(--ease-boutique), visibility 0.8s var(--ease-boutique);
}

.preloader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 90%;
  max-width: 380px;
}

.brand-logo-glow {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.loader-bar-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  transition: width 0.15s ease-out;
}

.loader-text-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.loader-percent {
  font-weight: 600;
  color: var(--text-white);
  font-family: monospace;
}

/* ==========================================================================
   Transparent Navigation Header (No Background)
   ========================================================================== */
.navbar.transparent-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  padding: 12px 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--text-white);
  text-decoration: none;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-white);
}

.nav-ig {
  color: #e1306c !important;
  font-weight: 600 !important;
}

.btn-call-nav {
  background: var(--text-white);
  color: var(--bg-black);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
}

.btn-call-nav:hover {
  transform: scale(1.03);
  background: #f0f0f0;
}

/* ==========================================================================
   Fixed Canvas Container
   ========================================================================== */
.canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   Hero Canvas Zone
   ========================================================================== */
.scroll-storyline {
  position: relative;
  z-index: 10;
}

.scroll-zone {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  position: relative;
}

.hero-zone {
  height: 100vh;
}

.canvas-scrub-track {
  height: 200vh;
  width: 100%;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 8.5vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-white);
  text-shadow: 0 10px 40px rgba(0,0,0,0.95);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 650px;
}

.scroll-indicator {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--text-muted) 0%, rgba(255,255,255,0) 100%);
  animation: pulseLine 2s infinite ease-in-out;
}

@keyframes pulseLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ==========================================================================
   Boutique Content Sections Below Hero (Extreme Whitespace: 15vh 0)
   ========================================================================== */
.boutique-content-wrapper {
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, #000000 8%, #000000 100%);
  position: relative;
  z-index: 20;
}

.boutique-section {
  padding: 15vh 32px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.section-container {
  max-width: 960px;
}

.section-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-left {
  text-align: left;
}

.eyebrow-tag {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.massive-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-white);
  margin-bottom: 20px;
}

.muted-subtitle {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  color: var(--text-muted);
  line-height: 1.45;
  letter-spacing: -0.02em;
  font-weight: 400;
}

/* ==========================================================================
   Section 3: The Bento Box Grid with Background Photography
   ========================================================================== */
.bento-section {
  padding: 15vh 32px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
  width: 100%;
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color 0.4s ease, transform 0.4s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

/* Background Photography Wrapper */
.bento-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-boutique), filter 0.6s var(--ease-boutique);
  filter: brightness(0.65) contrast(1.1);
  z-index: 1;
}

.bento-card:hover .bento-bg-img {
  transform: scale(1.08);
  filter: brightness(0.75) contrast(1.15);
}

/* Gradient Overlay for Text Readability */
.bento-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(5,5,8,0.92) 100%);
  z-index: 2;
  pointer-events: none;
}

.card-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 480px;
}

.card-square {
  grid-column: span 1;
  grid-row: span 1;
  min-height: 240px;
}

.card-wide {
  grid-column: span 3;
  min-height: 240px;
}

.bento-card-inner {
  z-index: 3;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
}

.bento-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-white);
}

.bento-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 520px;
}

.visit-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.address-text {
  color: var(--text-white) !important;
  font-size: 1.15rem !important;
  margin-top: 4px;
}

.contact-badges {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.c-badge {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.84rem;
  color: var(--text-white);
  backdrop-filter: blur(10px);
}

.ig-badge {
  background: rgba(225, 48, 108, 0.2) !important;
  border-color: rgba(225, 48, 108, 0.4) !important;
  color: #ffffff !important;
  text-decoration: none;
}

.bento-action {
  margin-top: 20px;
}

.btn-bento-action {
  display: inline-block;
  background: var(--text-white);
  color: var(--bg-black);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 0.3s ease;
}

.btn-bento-action:hover {
  transform: scale(1.04);
}

/* ==========================================================================
   Minimalist Boutique Footer
   ========================================================================== */
.boutique-footer {
  background: #000000;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 32px 40px;
  position: relative;
  z-index: 20;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.g-rating-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  padding: 8px 18px;
  border-radius: 20px;
}

.stars {
  color: var(--text-white);
  letter-spacing: 2px;
}

.g-score {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-address {
  color: var(--text-muted);
  font-size: 1rem;
}

.footer-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn-footer-call {
  display: inline-block;
  background: var(--text-white);
  color: var(--bg-black);
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  transition: transform 0.3s ease;
}

.btn-footer-call:hover {
  transform: scale(1.03);
}

.btn-footer-ig {
  display: inline-block;
  background: rgba(225, 48, 108, 0.15);
  color: #ffffff;
  border: 1px solid rgba(225, 48, 108, 0.4);
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  transition: transform 0.3s ease;
}

.btn-footer-ig:hover {
  transform: scale(1.03);
  background: rgba(225, 48, 108, 0.3);
}

.footer-copyright {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 20px;
}

/* Responsive Layout */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .card-large, .card-square, .card-wide {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .boutique-section {
    padding: 10vh 20px;
  }

  .footer-cta-row {
    flex-direction: column;
  }

  .btn-footer-call, .btn-footer-ig {
    width: 100%;
    text-align: center;
  }
}
