/* ==========================
   Stylists: Hours + Contact
   ========================== */

.hours-content {
  /* Treat hours like structured info, not just another paragraph */
  background: rgba(0, 0, 0, 0.04);
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.stylist-contact-actions .btn {
  /* Keep contact actions visually compact and consistent */
  padding: 0.35rem 0.6rem;
  line-height: 1.2;
}

/*
 * Plaza Salon Bellevue — main.css
 * Minimal layout + motion utilities (colors live in brand.css)
 */

/* ---------------------------------
   Layout primitives
---------------------------------- */
* {
  box-sizing: border-box;
}

/* Kill accidental horizontal scroll on mobile */
html,
body {
  overflow-x: hidden;
}

/* Measured offsets for fixed navbar/footer (set via JS in base templates) */
:root {
  --fixed-nav-h: 0px;
  --fixed-footer-h: 0px;
}

body {
  line-height: 1.7;
  padding-top: var(--fixed-nav-h);
  padding-bottom: var(--fixed-footer-h);
}

/* Fixed navbar edge safety (prevents hamburger border clipping on mobile) */
#site-navbar {
  left: 0;
  right: 0;
  padding-left: max(0.5rem, env(safe-area-inset-left));
  padding-right: max(0.5rem, env(safe-area-inset-right));
}

a {
  text-decoration: none !important;
}
/* ---------------------------------
   Hero + sections
---------------------------------- */
.hero-section {
  min-height: 100vh;
}

/* Subtitle tone (avoid Bootstrap opacity utilities because they use !important) */
.hero-subtitle-muted {
  opacity: 0.75;
}

/* ---------------------------------
   Hero parallax (centralized)
---------------------------------- */
.hero-section[data-parallax-hero] {
  isolation: isolate; /* ensures overlay stacks cleanly */
}

.hero-parallax-bg,
.hero-parallax-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-parallax-bg {
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: transform, filter;
  filter: saturate(1.05) contrast(1.05);
}

.hero-parallax-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2; /* above bg + overlay */
}

/* Respect reduced motion (both site flag + user preference) */
@media (prefers-reduced-motion: reduce) {
  .hero-parallax-bg {
    transform: none !important;
    will-change: auto;
    filter: none;
  }
}

html[data-reduced-motion="1"] .hero-parallax-bg {
  transform: none !important;
  will-change: auto;
  filter: none;
}

/* Placeholder image styling */
.placeholder-image {
  background-color: var(--brand-green-soft);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------
   Interactions
---------------------------------- */
.btn {
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-link {
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--brand-green) !important;
}

/* ---------------------------------
   Motion & accessibility
---------------------------------- */
[data-aos] {
  pointer-events: auto;
}

/* Respect reduced-motion preferences */
html[data-reduced-motion="1"] * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* ---------------------------------
   Stylist bio truncation (pure CSS)
---------------------------------- */
.bio-wrapper {
  position: relative;
}

.bio-checkbox {
  position: absolute;
  left: -9999px;
}

.bio-content {
  overflow: hidden;
  max-height: 5.1em;
  padding-right: 10px;
  transition: max-height 0.45s cubic-bezier(0.44, 0.99, 0.48, 1);
}

.bio-content p {
  margin: 0;
  white-space: pre-line;
}

.bio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.8rem;
  margin-top: 0.5rem;
  color: var(--brand-green);
  background: rgba(47, 93, 80, 0.08);
  border-radius: 2rem;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.bio-toggle:hover {
  background: rgba(47, 93, 80, 0.15);
  color: var(--brand-green-deep);
  transform: translateY(-1px);
}

.bio-toggle:active {
  transform: translateY(0);
}

.bio-toggle::before {
  content: "+ Show more";
}

/* Checked/expanded state */
.bio-checkbox:checked ~ .bio-content {
  max-height: 250px;
  overflow-y: auto;
}

.bio-checkbox:checked ~ .bio-toggle::before {
  content: "− Show less";
}

/* Hide toggle if bio is short (JS adds this class) */
.bio-wrapper.no-truncate .bio-toggle {
  display: none;
}

.bio-wrapper.no-truncate .bio-content {
  max-height: none;
}

.bio-content::after {
  content: "";
  position: sticky;
  bottom: 0;
  display: block;
  height: 2em;
  margin-top: -2em;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--surface-quiet, #fff)
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bio-checkbox:checked ~ .bio-content::after {
  opacity: 0;
}

.bio-wrapper.no-truncate .bio-content::after {
  display: none;
}

/* ---------------------------------
   Gallery — slideshow + lightbox
---------------------------------- */
.psb-review-note {
  /* migrated from inline style in leave_review.html */
  background-color: rgba(47, 93, 80, 0.08);
}

.gallery-slideshow {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.gallery-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.06);
}

.gallery-slide {
  display: none;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.gallery-slide.is-active {
  display: block;
}

.gallery-slide-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-slide-button:focus-visible {
  outline: 3px solid rgba(47, 93, 80, 0.45);
  outline-offset: 4px;
  border-radius: 16px;
}

.gallery-slide-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.gallery-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.gallery-nav-btn {
  min-width: 96px;
  white-space: nowrap;
}

.gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  padding: 0.25rem 0 0.4rem;
  scrollbar-width: thin;
}

.gallery-dots::-webkit-scrollbar {
  height: 6px;
}

.gallery-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(47, 93, 80, 0.25);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    opacity 0.2s ease;
  opacity: 0.8;
}

.gallery-dot:hover,
.gallery-dot:focus-visible {
  background: rgba(47, 93, 80, 0.55);
  transform: scale(1.08);
}

.gallery-dot.is-active {
  background: var(--brand-green);
  opacity: 1;
  transform: scale(1.12);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.gallery-lightbox.is-open {
  display: block;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
}

.gallery-lightbox-content {
  position: relative;
  z-index: 1;
  width: min(92vw, 1200px);
  max-height: 92vh;
  margin: 4vh auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  background: #000;
}

.gallery-lightbox-close {
  position: absolute;
  top: -0.5rem;
  right: -0.25rem;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
  opacity: 0.78;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .gallery-controls {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-dots {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
/* ---------------------------------
   Home auto-switching gallery
---------------------------------- */
.home-gallery-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--brand-green-soft, #eef3f1);
}

.home-gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.home-gallery-slide.active {
  opacity: 1;
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .home-gallery-slide {
    transition: none;
  }
}

html[data-reduced-motion="1"] .home-gallery-slide {
  transition: none;
}

/* ---------------------------------
   Media Querys
---------------------------------- */

/* Extra nudge on small screens where rounding issues show up most */
@media (max-width: 991.98px) {
  #site-navbar .navbar-toggler {
    margin-right: 2px;
  }
}

/* ==========================
   Stylists: grouping + hours
   ========================== */

.artist-group-section {
  margin-bottom: 3rem;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow:
    rgba(6, 24, 44, 0.4) 0px 0px 0px 2px,
    rgba(6, 24, 44, 0.65) 0px 4px 6px -1px,
    rgba(255, 255, 255, 0.08) 0px 1px 0px inset;
}

.artist-group-title {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.artist-group-title h2 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  padding: 0.85rem 2rem !important;
}

.artist-group-title::before,
.artist-group-title::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 2px;
  background: var(--brand-green);
  opacity: 0.4;
}

.artist-group-img {
  max-height: 250px;
  max-width: 70vw;
  object-fit: contain;
}
