/* ========================================================
   Elev8 — base styles
   ======================================================== */

:root {
  --bg: #1d1d1b;
  --bg-alt: #161615;
  --fg: #f4f2f0;
  --fg-dim: #b9b6b2;
  --accent: #c14cf2;
  --accent-dim: #7a2f99;
  --border: rgba(244, 242, 240, 0.12);

  --font-main: "Helvetica Neue", Arial, "Segoe UI", sans-serif;

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.4em;
  text-transform: uppercase;
}

h2 { font-size: clamp(2rem, 5vw, 3.4rem); }

p { margin: 0 0 1em; color: var(--fg-dim); }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.8em;
}

.center { text-align: center; }

section { position: relative; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9em 2em;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-solid {
  background: var(--accent);
  color: #100112;
}
.btn-solid:hover { transform: translateY(-2px); background: #d873f7; }

.btn-outline {
  border: 1.5px solid var(--fg);
  color: var(--fg);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ========================================================
   Header
   ======================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(29, 29, 27, 0.85);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}

.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo img { height: 34px; width: auto; }

/* Transparent wrapper on desktop — nav & socials behave as direct flex
   children of .header-inner. Only becomes a real element on mobile. */
.mobile-menu {
  display: contents;
}

.main-nav {
  display: flex;
  gap: 2.4rem;
  margin-left: auto;
  margin-right: 2.4rem;
}

.main-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}

.main-nav a:hover::after { width: 100%; }

.header-socials { display: flex; gap: 1rem; }
.header-socials svg { width: 20px; height: 20px; color: var(--fg); transition: color 0.25s var(--ease); }
.header-socials a:hover svg { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  height: 2px; width: 100%;
  background: var(--fg);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

/* ========================================================
   Hero
   ======================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image, .hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(29,29,27,0.55) 0%, rgba(29,29,27,0.35) 40%, rgba(29,29,27,0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-logo {
  width: min(420px, 70vw);
  margin: 0 auto 1.2rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  letter-spacing: 0.05em;
  color: var(--fg);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2.2rem;
}

.scroll-cue { animation: pulse 2.6s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ========================================================
   About
   ======================================================== */
.about {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.2rem, 4vw, 3rem);
  max-width: 1400px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-media img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 4px;
}

.about-copy p { font-size: 1.05rem; max-width: 46ch; }

/* ========================================================
   Vibe strips (natural photo/video weaving)
   ======================================================== */
.vibe-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.vibe-strip-reverse { direction: rtl; }
.vibe-strip-reverse .vibe-panel { direction: ltr; }

.vibe-panel {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}

.vibe-panel img,
.vibe-panel video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.vibe-panel:hover img,
.vibe-panel:hover video { transform: scale(1.04); }

.vibe-text {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.vibe-line {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--fg);
  margin: 0;
}

.full-media {
  position: relative;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
}

.full-media .parallax-img {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  will-change: transform;
}

.full-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29,29,27,0.35) 0%, rgba(29,29,27,0.25) 50%, rgba(29,29,27,0.65) 100%);
}

.full-media-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.full-media-heading {
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--fg);
  max-width: 20ch;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .full-media .parallax-img { transform: none !important; }
}

/* ========================================================
   Social feed
   ======================================================== */
.social-feed {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.2rem, 4vw, 3rem);
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.feed-embed-placeholder {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 4rem 2rem;
  margin: 2.5rem 0;
  background: var(--bg-alt);
}

.feed-embed-placeholder p { margin: 0; }
.feed-note { font-size: 0.8rem; margin-top: 0.6em !important; color: var(--fg-dim); opacity: 0.7; }

.feed-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================================
   Find us
   ======================================================== */
.find-us {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.2rem, 4vw, 3rem);
  background: var(--bg-alt);
}

.find-us-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.find-us-detail { font-size: 1.1rem; color: var(--fg); }
.find-us-detail a:hover { color: var(--accent); }
.find-us-hours {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.find-us-map {
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  filter: grayscale(0.4) invert(0.92) contrast(0.9);
}

.find-us-map iframe {
  width: 100%; height: 100%; border: 0;
}

/* ========================================================
   Contact
   ======================================================== */
.contact {
  padding: clamp(4rem, 12vw, 10rem) clamp(1.2rem, 4vw, 3rem);
  text-align: center;
}

.contact-inner { max-width: 640px; margin: 0 auto; }

.contact-sub { max-width: 40ch; margin-left: auto; margin-right: auto; }

.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ========================================================
   Footer
   ======================================================== */
.site-footer {
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-logo { height: 26px; margin: 0 auto 1.2rem; }

.footer-socials {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.footer-socials svg { width: 20px; height: 20px; color: var(--fg-dim); }
.footer-socials a:hover svg { color: var(--accent); }

.footer-copy {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
  margin: 0;
}

/* ========================================================
   Reveal animation
   ======================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
}

/* ========================================================
   Text stagger — word-by-word rise + fade
   ======================================================== */
.text-stagger .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.text-stagger.in-view .word {
  opacity: 1;
  transform: translateY(0);
}

/* Hero tagline plays on page load rather than waiting for scroll */
.text-stagger-instant .word {
  transition-delay: calc(var(--word-index, 0) * 60ms + 0.3s);
}

.text-stagger:not(.text-stagger-instant) .word {
  transition-delay: calc(var(--word-index, 0) * 60ms);
}

@media (prefers-reduced-motion: reduce) {
  .text-stagger .word { opacity: 1; transform: none; transition: none; }
}

/* ========================================================
   Responsive
   ======================================================== */
@media (max-width: 900px) {
  .about-grid,
  .find-us-grid { grid-template-columns: 1fr; }

  .vibe-strip { grid-template-columns: 1fr; }
  .vibe-strip-reverse { direction: ltr; }
  .vibe-panel { aspect-ratio: 16/10; }
}

@media (max-width: 720px) {
  /* Socials live in the footer on mobile — keep the header lean. */
  .header-socials { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open { background: var(--bg); border-bottom-color: var(--border); }

  /* .mobile-menu stays `display: contents` (inherited from base rule)
     until opened, so it never affects layout when closed. */
  .mobile-menu.open {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .mobile-menu.open .main-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    box-sizing: border-box;
  }
}
