/* ============================================================
   TEMPO STUDIO — Brand Stylesheet
   Wellness tech premium. Dark, editorial, minimal.
   Palette: black (dominant), white (body copy), beige/gold (accent only)
   Typeface: Montserrat (free alternative to Futura Bold)
   ============================================================ */

:root{
  --black: #0a0a0a;
  --black-soft: #121212;
  --panel: #161615;
  --white: #f7f6f2;
  --white-dim: #b9b7ae;
  --gold: #c8a862;
  --gold-dim: #8a7449;
  --line: #2a2a27;
  --max: 1180px;
  --nav-h: 76px;
}

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

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--black);
  color: var(--white);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin:0; padding:0; }

h1,h2,h3,h4{
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0 0 0.6em;
}

h1{ font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: 0; }
h2{ font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3{ font-size: clamp(1.15rem, 2vw, 1.5rem); }

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

.eyebrow{
  display:inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
  font-weight: 600;
}

.accent{ color: var(--gold); }

.divider{
  width: 48px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 1.4rem 0;
}

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.es-sub{
  font-size: 0.82rem;
  color: var(--white-dim);
  font-style: italic;
  font-weight: 300;
  opacity: 0.75;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 0.95rem 1.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-solid{ background: var(--gold); color: var(--black); }
.btn-solid:hover{ background: #ddbd7c; border-color:#ddbd7c; }
.btn-outline{ background: transparent; color: var(--white); border-color: var(--white-dim); }
.btn-outline:hover{ border-color: var(--gold); color: var(--gold); }
.btn-sm{ padding: 0.65rem 1.3rem; font-size: 0.72rem; }
.btn-block{ width:100%; }

/* ---------- Nav ---------- */
.site-nav{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 900;
  height: var(--nav-h);
  display:flex;
  align-items:center;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.25s ease;
}
.site-nav .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
}
.brand-mark{
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}
.brand-mark span{ color: var(--gold); }
.brand-mark img{ height: 26px; width: auto; display: block; }

.nav-links{
  display:flex;
  align-items:center;
  gap: 2.1rem;
}
.nav-links a{
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--white-dim);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active{ color: var(--white); }

.nav-cta{ display:flex; align-items:center; gap:1.4rem; }

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding: 8px;
}
.nav-toggle span{ width:22px; height:2px; background:var(--white); display:block; }

/* ---------- Mobile nav drawer ---------- */
.mobile-drawer{
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--black);
  z-index: 850;
  display:none;
  flex-direction:column;
  padding: 2rem 24px;
  gap: 1.6rem;
  overflow-y:auto;
}
.mobile-drawer.open{ display:flex; }
.mobile-drawer a{
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

/* ---------- Hero ---------- */
.hero{
  min-height: 92vh;
  display:flex;
  align-items:flex-end;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  border-bottom: 1px solid var(--line);
}
.hero-bg-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
  filter: grayscale(1) contrast(1.12) brightness(0.7);
}
.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.55) 45%, rgba(10,10,10,0.96) 100%);
}
.hero-inner{ position: relative; z-index: 2; padding-bottom: 5rem; max-width: 760px; }
.hero-tagline{ font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--white-dim); max-width: 520px; margin-top: 1.2rem; }
.hero-cta-row{ display:flex; gap: 1rem; flex-wrap:wrap; margin-top: 2.2rem; }

/* ---------- Video card (real footage, brand-graded) ---------- */
.video-card{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 220px;
  background: #000;
}
.video-card video{
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.1) brightness(0.82);
}
.video-card .video-caption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
}

/* ---------- Real photo card (brand-graded) ---------- */
.img-card{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 220px;
  background: #000;
}
.img-card img{
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.1) brightness(0.85);
}
.img-card .video-caption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
}

/* ---------- Photo placeholders ---------- */
.photo-ph{
  position: relative;
  background: repeating-linear-gradient(135deg, #1c1c1c 0px, #1c1c1c 2px, #0e0e0e 2px, #0e0e0e 42px);
  border: 1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 220px;
  color: var(--white-dim);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align:center;
  padding: 1rem;
}
.photo-ph span{ opacity:0.6; }

/* ---------- Sections ---------- */
section{ padding: 6rem 0; border-bottom: 1px solid var(--line); }
section:last-of-type{ border-bottom:none; }
.section-head{ max-width: 640px; margin-bottom: 3rem; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

.grid{ display:grid; gap: 2rem; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

/* ---------- Steps (How it works) ---------- */
.steps{ counter-reset: step; }
.step{
  display:flex;
  gap: 1.6rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.step:last-child{ }
.step-num{
  counter-increment: step;
  font-family:'Montserrat',sans-serif;
  font-weight:700;
  font-size: 1.6rem;
  color: var(--gold);
  min-width: 60px;
}
.step-num::before{ content: "0" counter(step); }

/* ---------- Cards ---------- */
.card{
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 2.2rem;
}
.card h3{ margin-bottom: 0.5rem; }

/* ---------- Pricing table ---------- */
.price-table{ width:100%; border-collapse: collapse; margin-top: 1rem; }
.price-table th{
  text-align:left;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  padding: 0.9rem 1rem;
  font-weight: 700;
}
.price-table td{
  padding: 1.3rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.price-table tr:hover td{ background: rgba(255,255,255,0.02); }
.price-cell{ font-size: 1.3rem; font-weight:700; color: var(--white); }
.price-cell small{ display:block; font-size: 0.7rem; color: var(--white-dim); font-weight: 400; text-transform:none; letter-spacing:0; margin-top:2px; }

.price-note{ font-size: 0.82rem; color: var(--white-dim); margin-top: 1.2rem; }

/* Membership cards */
.tier-card{
  border: 1px solid var(--line);
  padding: 2.4rem 2rem;
  text-align:center;
  background: var(--panel);
  display:flex;
  flex-direction:column;
}
.tier-card.featured{ border-color: var(--gold); }
.tier-price{ font-size: 1.9rem; font-weight: 700; color: var(--gold); margin: 0.8rem 0 0.4rem; letter-spacing:0.02em; }
.tier-price small{ font-size: 0.85rem; font-weight: 400; color: var(--white-dim); letter-spacing: 0.04em; text-transform: uppercase; }
.tier-list{ text-align:left; margin: 0 0 1.6rem; flex:1; }
.tier-list li{ font-size: 0.88rem; color: var(--white-dim); padding: 0.5rem 0; border-top: 1px solid var(--line); }
.tier-list li:first-child{ border-top:none; }

/* ---------- FAQ ---------- */
.faq-item{ border-top: 1px solid var(--line); }
.faq-item:last-child{ border-bottom: 1px solid var(--line); }
.faq-q{
  width:100%;
  text-align:left;
  background:none;
  border:none;
  color: var(--white);
  font-family:'Montserrat',sans-serif;
  font-weight:600;
  font-size: 1rem;
  padding: 1.4rem 0;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 1rem;
}
.faq-q .icon{ color: var(--gold); font-size: 1.2rem; transition: transform 0.2s; flex-shrink:0; }
.faq-item.open .faq-q .icon{ transform: rotate(45deg); }
.faq-a{
  max-height:0;
  overflow:hidden;
  transition: max-height 0.25s ease;
  color: var(--white-dim);
  font-size: 0.92rem;
}
.faq-item.open .faq-a{ max-height: 400px; padding-bottom: 1.4rem; }

/* ---------- Booking component (isolated / replaceable) ---------- */
/* NOTE FOR DEV: This block is the single "booking" component used across
   the site. In Mode 1 it is a WhatsApp deep-link. When a third-party booking platform (Mindbody or Fresha — TBD)
   goes live (Mode 2), replace the <a class="booking-cta"> elements and the
   floating widget below with an embedded booking platform iframe/widget. Search the
   codebase for "BOOKING COMPONENT" to find every instance. */
.floating-book{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 800;
}
.floating-book .btn{ box-shadow: 0 8px 24px rgba(0,0,0,0.5); }

/* ---------- Gallery (full-bleed, edge-to-edge photo grid) ---------- */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 3px;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.gallery-tall{ grid-row: span 3; }
.gallery-wide{ grid-column: span 2; grid-row: span 2; }
.gallery-grid .img-card{ border: none; min-height: 0; }

/* ---------- Ritual reel (horizontal video showcase) ---------- */
.reel-frame{
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.reel-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* ---------- Location / map block ---------- */
.map-ph{
  min-height: 340px;
  background: repeating-linear-gradient(45deg, #171716 0px, #171716 1px, #0a0a0a 1px, #0a0a0a 26px);
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--white-dim);
  font-size: 0.75rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
}

/* ---------- Footer ---------- */
footer{
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.footer-grid{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-col h4{
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col a, .footer-col p{ font-size: 0.86rem; color: var(--white-dim); display:block; margin-bottom: 0.5rem; }
.footer-col a:hover{ color: var(--white); }

.footer-logo{
  font-weight:700;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-logo span{ color: var(--gold); }
.footer-logo img{ height: 34px; width: auto; display: block; }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--white-dim);
}

/* Corner brand mark — persistent bottom-left signature per brand guidelines */
.corner-mark{
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 700;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,246,242,0.35);
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0.5;
}
.corner-mark span{ color: var(--gold); }
.corner-mark img{ height: 14px; width: auto; display: block; }

/* ---------- Page header (interior pages) ---------- */
.page-header{
  padding: 9rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

/* ---------- Utility ---------- */
.mt-0{ margin-top:0 }
.center{ text-align:center }
.small{ font-size:0.85rem }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px){
  .nav-links, .nav-cta .btn-outline{ display:none; }
  .nav-toggle{ display:flex; }
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
  section{ padding: 3.6rem 0; }
  .hero{ min-height: 86vh; }
  .footer-grid{ flex-direction:column; }
  .corner-mark{ display:none; }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); grid-auto-rows: 160px; }
  .gallery-wide{ grid-column: span 2; grid-row: span 2; }
  .gallery-tall{ grid-row: span 2; }
}
