/* ==========================================================
   Modern Image Barber & Stylist
   Editorial monochrome aesthetic: bright white/grey studio
   sections bookended by a black header + hero, echoing the
   brand's black-and-white circular logo.
   ========================================================== */

:root {
  --black: #0a0a0a;
  --near-black: #141414;
  --white: #ffffff;
  --off-white: #f6f5f3;
  --panel: #ffffff;
  --line: rgba(0, 0, 0, 0.1);
  --line-soft: rgba(0, 0, 0, 0.06);
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-dark-strong: rgba(255, 255, 255, 0.3);
  --ink: #141414;
  --muted: #6f6f6f;
  --muted-light: #9a9a9a;
  --display: 'Tenor Sans', 'Jost', sans-serif;
  --sans: 'Jost', 'Helvetica Neue', sans-serif;
  --header-h: 78px;

  /* ---- Editable typography (set live via admin.html Typography panel) ---- */
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;
  --font-heading: 'Tenor Sans', 'Jost', sans-serif;
  --font-hero-title: 'Tenor Sans', 'Jost', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 38px); /* header + Next Available bar */ }

body {
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.04em;
}
h2 em, h1 em { font-style: normal; color: var(--muted); }

/* Subtle grain overlay for a filmic, editorial texture */
#noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 2.3rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.64rem; letter-spacing: 0.14em; }

/* Buttons on dark backgrounds (hero) */
.on-dark .btn-primary { background: var(--white); color: var(--black); border-color: var(--white); }
.on-dark .btn-primary:hover { background: transparent; color: var(--white); }
.on-dark .btn-ghost { color: var(--white); border-color: var(--line-dark-strong); }
.on-dark .btn-ghost:hover { background: var(--white); color: var(--black); }

/* ==========================================================
   HEADER (dark, bookends the hero)
   ========================================================== */
#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(rgba(8,8,8,0.92), rgba(8,8,8,0.72));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-mark-img { width: 46px; height: 46px; object-fit: contain; }
.brand-text {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  line-height: 1.3;
  display: flex; flex-direction: column;
  color: var(--white);
}
.brand-sub {
  font-size: 0.52rem;
  letter-spacing: 0.32em;
  color: var(--muted-light);
  font-weight: 300;
}

#main-nav { display: flex; gap: 2.25rem; }
#main-nav a {
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
  transition: color 0.25s;
  position: relative;
}
#main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--white);
  transition: width 0.3s;
}
#main-nav a:hover { color: var(--white); }
#main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1.1rem; }

.social-icons { display: flex; gap: 0.35rem; }
.social-icons a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--muted-light);
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: all 0.3s;
}
.social-icons a:hover { color: var(--white); border-color: var(--line-dark-strong); }

.call-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(255,255,255,0.15);
  transition: all 0.3s;
  white-space: nowrap;
}
.call-bubble:hover { background: #d8d8d8; transform: translateY(-1px); }

#nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--white);
  width: 42px; height: 42px;
  font-size: 1rem;
  cursor: pointer;
}

/* ==========================================================
   NEXT AVAILABLE BAR — slim clickable announcement strip
   pinned just under the header. Text + link are editable in
   admin.html → Hero & Text; leave the text empty to hide it.
   ========================================================== */
#next-available-bar {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}
#next-available-bar:hover { background: #ebebeb; }
#next-available-bar i {
  font-size: 0.8rem;
  transition: transform 0.25s;
}
#next-available-bar:hover i { transform: translateX(5px); }
#next-available-bar[hidden] { display: none; }
.next-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2fae4e;
  flex-shrink: 0;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47,174,78,0.55); }
  55% { box-shadow: 0 0 0 6px rgba(47,174,78,0); }
}
@media (max-width: 640px) {
  #next-available-bar { font-size: 0.58rem; letter-spacing: 0.14em; gap: 0.5rem; }
}

/* ==========================================================
   HERO — 3D parallax stage, text bottom-left
   ========================================================== */
#hero-section {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  perspective: 1200px;
  background: var(--black);
}
#hero-stage {
  position: absolute;
  inset: -3% -3%;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out;
  /* A single guaranteed hero photo — admin-editable via admin.html → Hero
     Banner. Set once via the --hero-image CSS custom property; nothing
     else ever touches it, so it is 100% guaranteed to stay on screen. */
  background-image: var(--hero-image, url("images/hero-fallback.png"));
  background-size: cover;
  background-position: center 22%;
  filter: saturate(1.1) contrast(1.06) brightness(1.01);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(6,6,6,0.96) 0%, rgba(6,6,6,0.5) 32%, rgba(6,6,6,0.1) 58%, rgba(6,6,6,0.45) 100%),
    linear-gradient(90deg, rgba(6,6,6,0.55) 0%, rgba(6,6,6,0) 45%);
  pointer-events: none;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 180px 60px rgba(0,0,0,0.85);
  pointer-events: none;
}
.hero-content {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  padding: 0 1.75rem 5.5rem;
  max-width: 760px;
  text-align: left;
  color: var(--white);
}
.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 1.2rem;
}
.hero-content h1 {
  font-family: var(--font-hero-title);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--white);
}
.accent-text { color: var(--muted-light); font-style: italic; }
.hero-tagline {
  margin: 1.4rem 0 2.2rem;
  max-width: 460px;
  color: var(--muted-light);
  font-size: 1rem;
  font-weight: 300;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================
   WALK-INS / APPOINTMENTS PROMO BANNER
   Sits in the natural gap between the hero and the team
   section — a bold, high-contrast strip that fills what would
   otherwise be blank space, while flowing visually out of the
   hero (dark) into the bright body sections below.
   ========================================================== */
#promo-banner {
  background: var(--ink);
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
}
#promo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.03) 100%);
  pointer-events: none;
}
.promo-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.promo-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}
.promo-item i {
  color: #7fd992;
  font-size: 1.15em;
  flex-shrink: 0;
}
.promo-item span { line-height: 1.2; }
.promo-divider {
  width: 1px;
  height: 2rem;
  background: var(--line-dark-strong);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .promo-inner { gap: 1.1rem; }
  .promo-divider { display: none; }
  .promo-item { font-size: 1rem; }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem; right: 2rem;
  z-index: 2;
  color: var(--muted-light);
  font-size: 1.1rem;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ==========================================================
   SECTION HEADINGS (bright content sections)
   ========================================================== */
main > section { padding: 6rem 1.5rem; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.25rem; }
.section-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 0.9rem;
}
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3rem); color: var(--ink); }
.section-lede { color: var(--muted); margin-top: 1rem; font-weight: 300; }

/* ==========================================================
   TEAM TIERS — compact cards, more visible at once
   ========================================================== */
#team-section { background: var(--off-white); max-width: 100%; }
.tier { max-width: 1280px; margin: 0 auto 3.75rem; }
.tier:last-child { margin-bottom: 0; }

.tier-head {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}
.tier-line { flex: 1; height: 1px; background: var(--line); }
.tier-head h3 {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex; align-items: center; gap: 0.65rem;
  font-weight: 400;
  color: var(--ink);
}
.tier-icon { color: var(--muted-light); font-size: 0.85em; }
.tier-desc { text-align: center; color: var(--muted); font-size: 0.85rem; margin-bottom: 1.75rem; }

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.1rem;
}
.tier-master-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* Fixed 3-column layout so barbers line up neatly in three columns
   across each tier (falls back responsively on smaller screens). */
.staff-grid-3col { grid-template-columns: repeat(3, 1fr); }

.staff-card {
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.staff-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }

.staff-photo {
  position: relative;
  aspect-ratio: 3 / 3.4;
  overflow: hidden;
  background: var(--off-white);
}
.staff-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
  transition: filter 0.4s, transform 0.6s;
}
.staff-card:hover .staff-photo img { filter: saturate(1.15) contrast(1.05); transform: scale(1.05); }

.staff-price {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* Bio surfaces on hover instead of taking permanent space -> keeps cards compact */
.staff-hover-bio {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 0.85rem 0.85rem;
  background: linear-gradient(transparent, rgba(6,6,6,0.88) 55%);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s;
  font-size: 0.75rem;
  color: #e4e4e4;
  max-height: 100%;
  overflow: hidden;
}
.staff-hover-bio p { color: #ececec; line-height: 1.5; }
.staff-card:hover .staff-hover-bio { opacity: 1; transform: translateY(0); }

.staff-body { padding: 0.85rem 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.staff-id { min-height: 2.6rem; }
.staff-name { font-family: var(--font-heading); font-size: 0.98rem; font-weight: 400; line-height: 1.3; color: var(--ink); }
.staff-tier-label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}
.staff-actions { display: flex; align-items: center; gap: 0.5rem; }
.staff-actions .btn { flex: 1; }
.staff-ig {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.3s;
}
.staff-ig:hover { color: var(--ink); border-color: var(--ink); }

/* Master tier: slightly stronger border presence but still compact */
#tier-master .staff-card { border-color: rgba(0,0,0,0.22); }

.tier-empty, .tier-loading { text-align: center; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.1em; grid-column: 1 / -1; }

/* ==========================================================
   GALLERY
   ========================================================== */
#gallery-section { background: var(--white); }

/* ---- Gallery as a horizontal slide/carousel ---- */
.gallery-slider {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.gallery-track {
  flex: 1;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 0.25rem 1rem;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { height: 6px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--line-dark-strong); }
.gallery-track::-webkit-scrollbar-track { background: transparent; }

.gallery-nav {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s;
  z-index: 2;
}
.gallery-nav:hover { background: var(--ink); color: var(--white); }

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--line);
  flex: 0 0 auto;
  width: min(320px, 78vw);
  scroll-snap-align: start;
}
.gallery-item img {
  height: 380px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s;
  filter: saturate(1.08) contrast(1.03);
}
.gallery-item:hover img { transform: scale(1.05); filter: saturate(1.18) contrast(1.05); }
.gallery-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(6,6,6,0.85));
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s;
}
.gallery-item:hover .gallery-cap { opacity: 1; transform: translateY(0); }
.gallery-cap small { display: block; color: var(--muted-light); font-size: 0.6rem; letter-spacing: 0.22em; margin-top: 0.15rem; }

/* Lightbox (stays dark for image focus regardless of page theme) */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4,4,4,0.96);
  display: grid;
  place-items: center;
  padding: 2rem;
}
.lightbox img { max-width: min(92vw, 1000px); max-height: 80vh; object-fit: contain; border: 1px solid var(--line-dark); filter: saturate(1.08) contrast(1.03); }
.lightbox p { margin-top: 1rem; color: var(--muted-light); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.75rem; text-align: center; }
#lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--white);
  width: 48px; height: 48px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
}
#lightbox-close:hover { border-color: var(--white); }

/* ==========================================================
   REVIEWS
   ========================================================== */
#reviews-section { background: var(--off-white); padding-bottom: 4rem; }
.rating-summary {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.rating-summary-stars { color: var(--ink); letter-spacing: 0.2em; font-size: 0.8rem; }
.rating-summary strong { color: var(--ink); font-weight: 500; }
.reviews-cta { text-align: center; margin-top: 2.75rem; }

.reviews-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.review-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.review-card::before {
  content: "\201C";
  position: absolute;
  top: 0.2rem; right: 1.2rem;
  font-family: var(--display);
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(0,0,0,0.05);
}
.review-stars { color: var(--ink); font-size: 0.8rem; letter-spacing: 0.25em; }
.review-quote {
  color: #333;
  font-size: 0.98rem;
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  flex: 1;
}
.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}
.review-author { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.review-source { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.review-source-link { display: inline-flex; align-items: center; gap: 0.35rem; transition: color 0.25s; }
.review-source-link:hover { color: var(--ink); }
.review-source-link i { font-size: 0.6rem; }

/* ==========================================================
   LOCATION
   ========================================================== */
#location-section { background: var(--white); }
.location-wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 2rem;
  align-items: stretch;
}
.location-info {
  background: var(--off-white);
  border: 1px solid var(--line);
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.location-info h3 { font-size: 1.5rem; line-height: 1.4; color: var(--ink); }
.location-tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.3rem 0.75rem;
  background: var(--white);
}
.location-info address { font-style: normal; display: flex; flex-direction: column; gap: 0.7rem; color: var(--muted); }
.location-info address i { color: var(--ink); width: 20px; margin-right: 0.5rem; }
.location-info address a:hover { color: var(--ink); }
.hours h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.hours li {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.location-info .btn { justify-content: center; margin-top: auto; }
.location-map { min-height: 420px; border: 1px solid var(--line); }
.location-map iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================
   FOOTER (dark, bookends the page)
   ========================================================== */
#site-footer { border-top: 1px solid var(--line-dark); padding: 3.5rem 1.5rem; background: var(--black); }
.footer-inner { max-width: 1180px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.footer-logo-wrap { background: var(--white); padding: 1.5rem 2.25rem; border: 1px solid var(--line-dark); }
.footer-logo-img { height: 56px; width: auto; }
.footer-social { justify-content: center; }
.footer-social a { color: var(--muted-light); }
.footer-social a:hover { color: var(--white); border-color: var(--line-dark-strong); }
.footer-note { color: var(--muted-light); font-size: 0.76rem; letter-spacing: 0.06em; }
.footer-note a { color: var(--white); }
.footer-admin a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-light);
  opacity: 0.55;
  transition: opacity 0.25s, color 0.25s;
}
.footer-admin a:hover { opacity: 1; color: var(--white); }

/* Floating call bubble (mobile) */
#floating-call {
  display: none;
  position: fixed;
  bottom: 1.4rem; right: 1.4rem;
  z-index: 150;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 1.3rem;
  place-items: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(20,20,20,0.4); }
  70% { box-shadow: 0 0 0 18px rgba(20,20,20,0); }
  100% { box-shadow: 0 0 0 0 rgba(20,20,20,0); }
}

/* ==========================================================
   STUDIO ASSISTANT — floating chat + voice widget
   ========================================================== */
#chat-toggle {
  position: fixed;
  bottom: 1.4rem; right: 1.4rem;
  z-index: 160;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 26px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, background 0.25s ease;
}
#chat-toggle:hover { transform: translateY(-2px) scale(1.04); }
#chat-toggle::after {
  content: "";
  position: absolute;
  top: 4px; right: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #4CD964;
  border: 2px solid var(--ink);
}

#chat-panel {
  position: fixed;
  bottom: 6rem; right: 1.4rem;
  z-index: 160;
  width: min(370px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - 8rem));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#chat-panel[hidden] { display: none; }

#chat-header {
  background: var(--ink);
  color: var(--white);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
}
.chat-header-id { display: flex; align-items: center; gap: 0.7rem; }
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--white); object-fit: contain; padding: 3px; }
#chat-header strong { font-family: var(--font-heading); font-size: 0.86rem; letter-spacing: 0.05em; display: block; }
#chat-status { font-size: 0.66rem; color: var(--muted-light); letter-spacing: 0.04em; }
#chat-close { background: none; border: none; color: var(--white); font-size: 1rem; cursor: pointer; opacity: 0.8; }
#chat-close:hover { opacity: 1; }

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--off-white);
}
.chat-msg {
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.5;
}
.chat-msg-bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.chat-msg-user { align-self: flex-end; background: var(--ink); color: var(--white); border-bottom-right-radius: 4px; }
.chat-msg .chat-list { margin: 0.5rem 0 0.2rem 1.1rem; }
.chat-msg .chat-list li { margin-bottom: 0.25rem; }
.chat-typing { display: flex; gap: 4px; align-items: center; padding: 0.85rem 1rem; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: chatTypingBounce 1.1s infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTypingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

#chat-quick-replies { display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 0 1rem; background: var(--off-white); }
#chat-quick-replies:empty { padding: 0; }
.quick-reply {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 0.7rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 0.6rem;
  transition: all 0.25s;
}
.quick-reply:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

#chat-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  background: var(--white);
  flex-shrink: 0;
}
#chat-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  outline: none;
}
#chat-input:focus { border-color: var(--ink); }
#chat-mic, #chat-send {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--off-white);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s;
}
#chat-send { background: var(--ink); color: var(--white); border-color: var(--ink); }
#chat-mic:hover, #chat-send:hover { transform: scale(1.06); }
#chat-mic.listening { background: #d43b3b; color: var(--white); border-color: #d43b3b; animation: pulse 1.4s infinite; }
#chat-mic[hidden] { display: none; }

#chat-voice-hint {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d43b3b;
  padding: 0 0 0.65rem;
  background: var(--white);
}
#chat-voice-hint[hidden] { display: none; }
#chat-voice-hint i { font-size: 0.5rem; animation: pulse 1.2s infinite; margin-right: 0.35rem; }

/* ==========================================================
   OWNER EDIT MODE (visible only after admin login)
   ========================================================== */
.owner-bar {
  position: fixed;
  top: calc(var(--header-h) + 48px); /* clears the Next Available bar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 170;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--ink);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.5rem 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.35);
  max-width: calc(100vw - 2rem);
}
.owner-bar i { color: #7fd992; }
.owner-bar-link,
.owner-bar-exit {
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.owner-bar-link:hover,
.owner-bar-exit:hover { background: var(--white); color: var(--black); }

.owner-edit-hint {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(10,10,10,0.82);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s, background 0.25s;
}
.owner-mode .staff-photo:hover .owner-edit-hint,
.owner-mode .gallery-item:hover .owner-edit-hint,
.owner-edit-hint:focus { opacity: 1; }
.owner-edit-hint:hover { background: var(--black); }
.owner-hero-hint {
  top: auto;
  bottom: 5.5rem;
  right: 2rem;
  opacity: 1;
  z-index: 6;
}
/* Touch devices have no hover — keep hints visible */
@media (hover: none) {
  .owner-mode .owner-edit-hint { opacity: 1; }
}

.owner-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  z-index: 210;
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.3s ease;
}
.owner-toast.show { transform: translateX(-50%) translateY(0); }
.owner-toast.err { background: #c0392b; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  #main-nav { display: none; }
  .header-inner .social-icons { display: none; }
  #nav-toggle { display: grid; place-items: center; }
  #site-header.nav-open #main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(8,8,8,0.98);
    border-bottom: 1px solid var(--line-dark);
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .staff-grid, .tier-master-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .brand-text { display: none; }
  .call-bubble span { display: none; }
  .call-bubble { padding: 0.6rem 0.8rem; }
  main > section { padding: 3.75rem 1rem; }
  .hero-content { padding: 0 1.25rem 3.5rem; text-align: left; }
  .hero-cta { justify-content: flex-start; }
  .location-wrap { grid-template-columns: 1fr; }
  .location-map { min-height: 320px; }
  #floating-call { display: grid; bottom: 1.2rem; right: 5.6rem; width: 52px; height: 52px; font-size: 1.15rem; }
  #chat-toggle { bottom: 1.2rem; right: 1.2rem; width: 54px; height: 54px; font-size: 1.25rem; }
  #chat-panel { bottom: 5.6rem; right: 0.75rem; width: min(360px, calc(100vw - 1.5rem)); }
  .staff-grid, .tier-master-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .tier-head { gap: 0.85rem; }
  .staff-actions { flex-wrap: wrap; }

  /* On narrow/portrait phones the hero photo is a wide landscape shot —
     switch from "cover" (which crops heavily) to "contain" so the whole
     image is always visible, letterboxed on a solid dark background
     instead of being cropped away. */
  #hero-stage {
    background-size: contain;
    background-position: center center;
    background-color: var(--black);
    background-repeat: no-repeat;
  }
}

@media (max-width: 420px) {
  .staff-grid, .tier-master-grid { grid-template-columns: repeat(2, 1fr); }
}
