/* ============================================================
   April's Braids & Beads For Children — styles.css
   ============================================================ */

/* ─── Google Fonts ─────────────────────────────────────────── */
/* Fonts are loaded via <link> in the HTML head (Abhaya Libre, Cinzel Decorative, Dancing Script) */

/* ─── Custom Fonts (user-supplied) ─────────────────────────── */
@font-face {
  font-family: 'White Star';
  src: url('../fonts/WhiteStar.woff2') format('woff2'),
       url('../fonts/WhiteStar.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'One Little Font';
  src: url('../fonts/OneLittleFont.woff2') format('woff2'),
       url('../fonts/OneLittleFont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─── Brand Tokens ──────────────────────────────────────────── */
:root {
  --color-hot-pink:   #FD15BB;
  --color-purple:     #982FFD;
  --color-magenta:    #D027D5;
  --color-lavender:   #E1D4FC;
  --color-deep-pink:  #C60E99;
  --color-blush:      #FFBAEC;
  --color-dark:       #1A0030;
  --color-dark-mid:   #2D0050;
  --color-white:      #FFFFFF;
  --color-off-white:  #FAF7FF;

  --font-display: 'White Star', 'Cinzel Decorative', cursive;
  --font-accent:  'One Little Font', 'Dancing Script', cursive;
  --font-body:    'Abhaya Libre', Georgia, serif;
  /* Note: White Star & One Little Font load from ../fonts/ if supplied.
     Cinzel Decorative & Dancing Script are loaded via Google Fonts as reliable fallbacks. */

  --gradient-hero:  linear-gradient(135deg, #1A0030 0%, #3D1070 30%, #982FFD 65%, #FD15BB 100%);
  --gradient-brand: linear-gradient(90deg, #FD15BB, #982FFD, #D027D5, #FD15BB);
  --gradient-card:  linear-gradient(135deg, rgba(253,21,187,0.15), rgba(152,47,253,0.15));

  --shadow-glow-pink:   0 0 30px rgba(253, 21, 187, 0.4);
  --shadow-glow-purple: 0 0 30px rgba(152, 47, 253, 0.4);

  --radius-card: 20px;
  --radius-pill: 50px;
  --radius-sm:   10px;

  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles this */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-dark);
  color: var(--color-white);
  overflow-x: clip;
  line-height: 1.7;
  width: 100%;
  max-width: 100%;
}

/* Extra safeguard — clip overflow on all major containers */
html, body, section {
  overflow-x: clip;
}

body.loading {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ─── Loading Screen ────────────────────────────────────────── */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.loading-logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  text-align: center;
  line-height: 1.2;
  background: var(--gradient-brand);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2s linear infinite;
  opacity: 0;
}

.loading-tagline {
  font-family: var(--font-accent);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--color-blush);
  letter-spacing: 0.1em;
  min-height: 2em;
  text-align: center;
}

.loading-bar-track {
  width: min(320px, 80vw);
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-brand);
  background-size: 200% auto;
  border-radius: 99px;
  animation: shimmer 1.5s linear infinite;
  transition: width 0.1s linear;
}

.loading-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes sparkle-float {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-120vh) rotate(720deg); opacity: 0; }
}

/* ─── Navigation ────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 1000;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-base), backdrop-filter var(--transition-base), padding var(--transition-base);
}

#nav.scrolled {
  background: rgba(26, 0, 48, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(253, 21, 187, 0.15);
  padding: 0.8rem 2rem;
}

#nav.light-text .nav-link {
  color: var(--color-white);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 118px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(253, 21, 187, 0.35));
  transition: filter var(--transition-base), transform var(--transition-bounce);
}

.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 14px rgba(253, 21, 187, 0.65));
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width var(--transition-base);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--color-hot-pink);
}

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

.nav-apply {
  padding: 0.55rem 1.4rem;
  border: 2px solid rgba(152, 47, 253, 0.6);
  border-radius: var(--radius-pill);
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: var(--color-lavender) !important;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-bounce) !important;
}

.nav-apply:hover {
  border-color: var(--color-purple);
  background: rgba(152, 47, 253, 0.15);
  box-shadow: var(--shadow-glow-purple);
  transform: translateY(-2px);
  color: var(--color-white) !important;
}

.nav-apply::after {
  display: none !important;
}

.nav-cta {
  padding: 0.55rem 1.4rem;
  background: var(--gradient-brand);
  background-size: 200% auto;
  border-radius: var(--radius-pill);
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: var(--color-white) !important;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: box-shadow var(--transition-base), transform var(--transition-bounce), background-position var(--transition-base) !important;
  animation: shimmer 3s linear infinite;
}

.nav-cta:hover {
  box-shadow: var(--shadow-glow-pink);
  transform: translateY(-2px);
  background-position: 100% center;
}

.nav-cta::after {
  display: none !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  position: relative;
  z-index: 1001;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  pointer-events: none;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(26, 0, 48, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 5rem 2rem 3rem;
  gap: 1.5rem;
  /* clip-path instead of translateX — layout box stays inside viewport
     so Chrome never counts it in scrollWidth */
  clip-path: inset(0 0 0 100%);
  visibility: hidden;
  transition: clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 0.4s;
}

.mobile-nav.open {
  clip-path: inset(0 0 0 0%);
  visibility: visible;
  transition: clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 0s;
}

.mobile-nav .nav-link {
  font-size: 1.4rem;
  color: var(--color-white);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
  width: 100%;
  max-width: 100%;
  word-break: break-word;
  display: block;
}

.mobile-nav .nav-apply {
  font-size: 1rem;
  padding: 0.65rem 1.5rem;
  width: auto;
  max-width: calc(100% - 4rem);
  text-align: center;
  white-space: normal;
  word-break: break-word;
}

.mobile-nav .nav-cta {
  font-size: 1rem;
  padding: 0.75rem 2rem;
  margin-top: 0.5rem;
  width: auto;
  max-width: calc(100% - 4rem);
  text-align: center;
  white-space: normal;
}

/* Show hamburger + mobile nav on tablet & mobile; hide desktop links */
@media (max-width: 1024px) {
  /* Only hide logo inside the main nav, not in the footer */
  #nav .nav-logo-img {
    display: none;
  }
  #nav .nav-logo {
    display: none;
  }
  .nav-links {
    display: none !important;
  }
  .hamburger {
    display: flex;
    margin-left: auto;
  }
  .mobile-nav {
    display: flex;
  }
  #nav {
    position: relative;
    padding: 0.9rem 1.25rem;
    justify-content: flex-end;
  }
}

/* ─── Hero Section ──────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-crown {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 20px rgba(253,21,187,0.6));
  animation: crown-float 3s ease-in-out infinite;
}

@keyframes crown-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-12px) rotate(3deg); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 60px rgba(253,21,187,0.3);
}

.hero-title .line-1 { color: var(--color-white); }
.hero-title .line-2 {
  background: var(--gradient-brand);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--color-lavender);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.hero-location {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 0.9rem 2.2rem;
  background: var(--gradient-brand);
  background-size: 200% auto;
  border-radius: var(--radius-pill);
  font-family: var(--font-accent);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.07em;
  box-shadow: var(--shadow-glow-pink);
  transition: transform var(--transition-bounce), box-shadow var(--transition-base), background-position 0.5s;
  animation: shimmer 3s linear infinite;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 50px rgba(253,21,187,0.6);
}

.btn-outline {
  padding: 0.9rem 2.2rem;
  border: 2px solid rgba(253,21,187,0.6);
  border-radius: var(--radius-pill);
  font-family: var(--font-accent);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.07em;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-bounce), background var(--transition-base);
}

.btn-outline:hover {
  border-color: var(--color-hot-pink);
  background: rgba(253,21,187,0.1);
  box-shadow: var(--shadow-glow-pink);
  transform: translateY(-4px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  animation: bounce-down 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-blush);
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─── Mobile hardening — prevent any grid/flex child from blowing out width ── */
.section-inner,
.about-grid,
.services-grid,
.gallery-grid,
.hero-content {
  max-width: 100%;
  min-width: 0;
}

/* ─── Section Shared Styles ─────────────────────────────────── */
section {
  position: relative;
  max-width: 100%;
  overflow-x: clip;
}

.section-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 6rem 2rem;
  box-sizing: border-box;
}

.section-label {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-hot-pink);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.section-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
  max-width: 65ch;
}

/* Reveal animations — set initial states */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

/* On mobile: slide up, not sideways — prevents horizontal overflow */
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(40px);
}

/* On desktop only: restore the lateral slide-in */
@media (min-width: 768px) {
  .reveal-left {
    transform: translateX(-60px);
  }

  .reveal-right {
    transform: translateX(60px);
  }
}

/* ─── Services Ticker ───────────────────────────────────────── */
#ticker {
  background: var(--color-dark-mid);
  border-top: 1px solid rgba(253,21,187,0.2);
  border-bottom: 1px solid rgba(253,21,187,0.2);
  overflow: clip;
  padding: 1rem 0;
  max-width: 100%;
  contain: layout;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0 2.5rem;
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--color-lavender);
  letter-spacing: 0.05em;
}

.ticker-item .ticker-dot {
  color: var(--color-hot-pink);
  font-size: 1.4rem;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── About Section ─────────────────────────────────────────── */
#about {
  background: var(--color-off-white);
  color: var(--color-dark);
}

#about .section-label {
  color: var(--color-deep-pink);
}

#about .section-body {
  color: rgba(26, 0, 48, 0.75);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;
}

.about-text .section-title {
  color: var(--color-dark);
}

.about-stat-row {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.about-stat {
  text-align: center;
}

.about-stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  background: var(--gradient-brand);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  line-height: 1;
}

.about-stat-label {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(26, 0, 48, 0.6);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(208,39,213,0.3);
  box-shadow: var(--shadow-glow-purple);
}

.about-image-wrap img,
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.about-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--color-purple);
  opacity: 0.5;
}

.about-placeholder svg {
  width: 80px;
  height: 80px;
}

.about-placeholder p {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* Clickable about image */
.about-image-wrap--clickable {
  cursor: pointer;
}

.about-image-wrap--clickable:focus-visible {
  outline: 2px solid var(--color-hot-pink);
  outline-offset: 4px;
}

.about-image-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(to top, rgba(26,0,48,0.92) 0%, rgba(26,0,48,0.6) 60%, transparent 100%);
  color: #fff;
  font-family: var(--font-accent);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  z-index: 2;
}

/* Decorative blob behind about image */
.about-image-wrap::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: var(--gradient-brand);
  opacity: 0.08;
  border-radius: 50%;
  z-index: 0;
}

/* ─── Car Divider ───────────────────────────────────────────── */
.car-divider {
  position: relative;
  height: 210px;
  background: var(--color-dark);
  overflow: hidden;
}

.car-road-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(253,21,187,0.55) 20%, rgba(152,47,253,0.55) 80%, transparent 100%);
}

.car-road-dashes {
  position: absolute;
  bottom: 10px;
  left: -52px;
  right: 0;
  height: 2px;
  overflow: hidden;
}

.car-road-dashes::before {
  content: '';
  display: block;
  width: calc(100% + 104px);
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.2) 0px,
    rgba(255,255,255,0.2) 24px,
    transparent 24px,
    transparent 52px
  );
  animation: road-scroll 0.45s linear infinite;
  will-change: transform;
}

@keyframes road-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(52px); }
}

.car-wrapper {
  position: absolute;
  bottom: 4px;
  animation: car-drive 13s linear infinite;
  will-change: transform;
}

.car-img {
  height: 180px;
  width: auto;
  display: block;
  animation: car-bob 0.55s ease-in-out infinite;
}

@keyframes car-drive {
  from { transform: translateX(calc(100vw + 60px)); }
  to   { transform: translateX(-320px); }
}

@keyframes car-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}

/* ─── Services Section ──────────────────────────────────────── */
#services {
  background: var(--color-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  max-width: 100%;
  box-sizing: border-box;
}

.service-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(152,47,253,0.12), rgba(253,21,187,0.08));
  border: 1px solid rgba(253,21,187,0.2);
  padding: 2.5rem;
  transition: transform var(--transition-bounce), box-shadow var(--transition-base), border-color var(--transition-base);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(253,21,187,0.25), 0 0 0 1px rgba(253,21,187,0.4);
  border-color: rgba(253,21,187,0.5);
}

.service-card:hover::before {
  opacity: 0.05;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--color-white);
}

.service-card-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-family: var(--font-accent);
  letter-spacing: 0.05em;
  background: rgba(255,186,236,0.12);
  border: 1px solid rgba(255,186,236,0.25);
  color: var(--color-blush);
}

.service-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: var(--color-hot-pink);
  letter-spacing: 0.05em;
  transition: gap var(--transition-base), color var(--transition-base);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.service-card-more:hover {
  color: var(--color-blush);
  gap: 0.8rem;
}

.service-card-more .plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform var(--transition-bounce), background var(--transition-base);
}

.service-card-more:hover .plus {
  transform: rotate(45deg);
  background: var(--color-hot-pink);
  border-color: var(--color-hot-pink);
  color: white;
}

/* Booking Policy card */
.policy-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-card);
  background: linear-gradient(90deg, rgba(253,21,187,0.08), rgba(152,47,253,0.08));
  border: 1px solid rgba(253,21,187,0.15);
}

.policy-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.policy-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.policy-text strong {
  color: var(--color-blush);
}

/* ─── Service Showcase Cards ───────────────────────────────── */
.services-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-showcase-card {
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(253,21,187,0.15);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
}

.service-showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(253,21,187,0.22);
  border-color: rgba(253,21,187,0.35);
}

.service-showcase-photos {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}

.service-showcase-photos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.service-showcase-photos img.active {
  opacity: 1;
}

.service-placeholder-photo {
  aspect-ratio: 4 / 3;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  opacity: 0.55;
  flex-shrink: 0;
}

.photo-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.photo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.3s, transform 0.3s;
}

.photo-dot.active {
  background: rgba(255,255,255,0.95);
  transform: scale(1.2);
}

.service-showcase-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-showcase-tagline {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--color-hot-pink);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.service-showcase-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  font-kerning: none;
  font-feature-settings: "kern" 0;
}

.service-showcase-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  flex: 1;
}

/* ─── Add-on Services ───────────────────────────────────────── */
.services-addons {
  margin-top: 3.5rem;
}

.services-addons-heading {
  font-family: var(--font-accent);
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--color-lavender);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(253,21,187,0.2);
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1.25rem;
}

.addon-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(152,47,253,0.18);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.addon-card:hover {
  border-color: rgba(253,21,187,0.35);
  box-shadow: 0 8px 28px rgba(253,21,187,0.12);
  transform: translateY(-3px);
}

.addon-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-hot-pink);
  margin-bottom: 0.15rem;
}

.addon-subtitle {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--color-lavender);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.addon-desc {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
}

.addon-desc em {
  color: rgba(255,186,236,0.8);
  font-style: normal;
  font-size: 0.82rem;
}

/* ─── Service Modal ─────────────────────────────────────────── */
#service-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

#service-modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 0, 20, 0.85);
  backdrop-filter: blur(10px);
}

.modal-box {
  position: relative;
  z-index: 1;
  background: var(--color-dark-mid);
  border: 1px solid rgba(253,21,187,0.3);
  border-radius: var(--radius-card);
  padding: 3rem;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), var(--shadow-glow-purple);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-bounce);
}

#service-modal.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(253,21,187,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--color-white);
  /* Solid background so button is always visible over photos */
  background: rgba(26, 0, 48, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  z-index: 10; /* always above photo and content layers */
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-bounce), box-shadow var(--transition-base);
}

.modal-close:hover {
  background: var(--color-hot-pink);
  border-color: var(--color-hot-pink);
  box-shadow: 0 0 16px rgba(253,21,187,0.5);
  transform: rotate(90deg);
}

/* Slightly larger tap target on mobile */
@media (max-width: 768px) {
  .modal-close {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    top: 0.75rem;
    right: 0.75rem;
  }
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
  background: var(--gradient-brand);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.modal-desc {
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.modal-list {
  margin-bottom: 1.5rem;
}

.modal-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}

.modal-list li::before {
  content: '✨';
  flex-shrink: 0;
}

/* ─── Gallery Section ───────────────────────────────────────── */
#gallery {
  background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-dark-mid) 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  grid-auto-rows: minmax(220px, max-content);
  grid-auto-flow: dense;
  gap: 10px;
  margin-top: 3rem;
  max-width: 100%;
  box-sizing: border-box;
}

@keyframes gallery-items-animation {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.gallery-item {
  animation: gallery-items-animation 600ms ease-out both;
  animation-delay: var(--staggered-delay, 100ms);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(253,21,187,0.15);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease, transform 0.3s ease;
}

@media (pointer: fine) {
  .gallery-item img:hover,
  .gallery-item img:focus {
    filter: brightness(0.8);
    transform: scale(0.98);
  }
}

.gallery-item-text {
  display: none;
}

/* ─── Gallery Lightbox ──────────────────────────────────────── */
.lightbox {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 1100; /* above nav (1000) and mobile nav drawer (999) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.preload {
  transition: none !important;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox .lb-content {
  background: var(--color-dark-mid);
  border: 1px solid rgba(253,21,187,0.3);
  border-radius: var(--radius-card);
  box-shadow: 0 0 60px rgba(152,47,253,0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 1em;
  max-height: 90%;
  padding: 1.25rem;
  position: relative;
}

.lightbox .lb-img {
  object-fit: contain;
  margin-bottom: 0.75rem;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  max-height: 70vh;
}

.lightbox .lb-caption {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: var(--color-lavender);
  opacity: 0;
  transition: opacity 0.3s;
}

.lightbox.open .lb-caption {
  opacity: 1;
}

.lightbox .lb-url {
  color: var(--color-hot-pink);
  text-decoration: underline;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.lightbox .lb-url:hover {
  color: var(--color-blush);
}

.lightbox .close {
  background: var(--color-dark-mid);
  border: 1px solid rgba(253,21,187,0.4);
  cursor: pointer;
  color: var(--color-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  line-height: 1;
  position: absolute;
  top: -0.5em;
  right: -0.5em;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  transition: background var(--transition-base), transform var(--transition-bounce);
}

.lightbox .close:hover {
  background: var(--color-hot-pink);
  transform: rotate(90deg) scale(1.1);
}

/* Dark overlay behind lightbox content */
.lightbox .close::before {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  content: "";
  cursor: default;
  position: fixed;
  inset: 0;
  z-index: -1;
}

@media screen and (min-width: 1024px) {
  .lightbox .lb-content {
    flex-direction: row;
    max-width: 900px;
  }
  .lightbox .lb-img {
    margin-bottom: 0;
    max-width: 65%;
    max-height: 80vh;
  }
  .lightbox .lb-caption {
    padding: 0 1.5em;
    justify-content: center;
  }
}


/* ─── Stylists Section ──────────────────────────────────────── */
#stylists {
  background: var(--color-off-white);
  color: var(--color-dark);
}

#stylists .section-label { color: var(--color-deep-pink); }
#stylists .section-title { color: var(--color-dark); }
#stylists .section-body  { color: rgba(26, 0, 48, 0.7); }

.stylists-team-photo-wrap {
  margin: 1.75rem 0 2rem;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(208,39,213,0.18);
  border: 2px solid rgba(208,39,213,0.2);
}

.stylists-team-photo {
  width: 100%;
  height: auto;
  display: block;
  max-height: 630px;
  object-fit: cover;
  object-position: center top;
}

.stylists-grid {
  display: grid;
  /* min(240px, 100%) prevents columns from forcing overflow on very narrow viewports */
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 100%;
  box-sizing: border-box;
}

.stylist-card {
  text-align: center;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: white;
  border: 1px solid rgba(208,39,213,0.15);
  box-shadow: 0 4px 24px rgba(26,0,48,0.06);
  transition: transform var(--transition-bounce), box-shadow var(--transition-base);
}

.stylist-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(208,39,213,0.2);
}

.stylist-photo {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--color-lavender), var(--color-blush));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.stylist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% top;
}

.stylist-avatar-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-purple);
  opacity: 0.6;
  font-size: 3.5rem;
}

.stylist-info {
  padding: 1.25rem;
}

.stylist-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.stylist-title {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: var(--color-deep-pink);
  letter-spacing: 0.08em;
}

/* ─── Booking / Contact Section ─────────────────────────────── */
#booking {
  background: var(--color-dark);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-info .section-title {
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(253,21,187,0.1);
  border: 1px solid rgba(253,21,187,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail-text {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

.contact-detail-text a {
  color: var(--color-blush);
  transition: color var(--transition-base);
}

.contact-detail-text a:hover {
  color: var(--color-hot-pink);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.hours-table caption {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-hot-pink);
  text-align: left;
  margin-bottom: 0.75rem;
  caption-side: top;
  padding-bottom: 0.75rem;
}

.hours-table td {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hours-table td:first-child {
  font-family: var(--font-accent);
  color: var(--color-lavender);
  width: 40%;
  letter-spacing: 0.03em;
}

.hours-table .closed {
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

.booking-cta-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(152,47,253,0.15), rgba(253,21,187,0.1));
  border: 1px solid rgba(253,21,187,0.25);
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.booking-cta-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  padding: 1px;
  background: var(--gradient-brand);
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.booking-cta-panel .crown-deco {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
  filter: drop-shadow(0 0 15px rgba(253,21,187,0.5));
}

.booking-cta-panel h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  /* Increased spacing to prevent Cinzel Decorative's tight "oo" kerning from overlapping */
  letter-spacing: 0.12em;
  font-kerning: none;
  font-variant-ligatures: none;
  font-feature-settings: "kern" 0;
}

.booking-cta-panel p {
  font-family: var(--font-accent);
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.btn-book {
  padding: 1.1rem 3rem;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

/* ─── Footer ────────────────────────────────────────────────── */
#footer {
  background: #0D001F;
  border-top: 1px solid rgba(253,21,187,0.15);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-sizing: border-box;
}

.footer-brand .nav-logo {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}

.footer-tagline {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(253,21,187,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-bounce), box-shadow var(--transition-base);
}

.social-link:hover {
  background: rgba(253,21,187,0.15);
  border-color: var(--color-hot-pink);
  box-shadow: 0 0 15px rgba(253,21,187,0.3);
  transform: translateY(-3px);
}

.footer-nav-col h4 {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-hot-pink);
  margin-bottom: 1rem;
}

.footer-nav-col li {
  margin-bottom: 0.6rem;
}

.footer-nav-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-base);
}

.footer-nav-col a:hover {
  color: var(--color-blush);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer-age-note {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  color: rgba(253,21,187,0.5);
  letter-spacing: 0.05em;
}

/* ─── Stylist Card — Clickable variant ─────────────────────── */
.stylist-card--clickable {
  cursor: pointer;
}

.stylist-click-hint {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-deep-pink);
  margin-top: 0.35rem;
  opacity: 0.75;
  transition: opacity var(--transition-base);
}

.stylist-card--clickable:hover .stylist-click-hint,
.stylist-card--clickable:focus .stylist-click-hint {
  opacity: 1;
}

.stylist-card--clickable:focus-visible {
  outline: 2px solid var(--color-hot-pink);
  outline-offset: 3px;
}

/* ─── Stylist Bio Modal ──────────────────────────────────────── */
#stylist-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#stylist-modal.open {
  opacity: 1;
  pointer-events: all;
}

.stylist-modal-box {
  position: relative;
  z-index: 1;
  max-width: 820px;
  width: 100%;
  padding: 0;
  overflow: hidden;
  max-height: 90vh;
  border-radius: var(--radius-card);
  background: var(--color-dark-mid);
  border: 1px solid rgba(253,21,187,0.3);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), var(--shadow-glow-purple);
  flex-shrink: 0;
}

.stylist-modal-inner {
  display: grid;
  /* Use min() so the photo column never exceeds 35% of the modal width on narrow screens */
  grid-template-columns: min(280px, 35%) 1fr;
  max-width: 100%;
}

.stylist-modal-photo {
  position: relative;
  overflow: hidden;
  background: var(--gradient-card);
  min-height: 400px;
}

.stylist-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.stylist-modal-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  max-height: 90vh;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.stylist-modal-role {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--color-hot-pink);
  margin-bottom: 0.5rem;
}

.stylist-modal-bio {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.85;
  white-space: pre-wrap;
}

/* Stylist modal — mobile */
@media (max-width: 768px) {
  #stylist-modal {
    padding: 0;
    align-items: flex-start;
    /* Remove competing scroll container so only the box scrolls */
    overflow: hidden;
  }

  .stylist-modal-box {
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: unset;
    border-radius: 0;
    /* scroll > auto: more reliable momentum scroll on iOS */
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .stylist-modal-box::-webkit-scrollbar {
    display: none;
  }

  /* Stick the close button to the top of the scroll container
     so it's always reachable without scrolling back up */
  .stylist-modal-box .modal-close {
    position: sticky;
    top: 0.75rem;
    float: right;
    margin: 0.75rem 0.75rem 0 auto;
    /* clear the absolute inset from base styles */
    inset: auto;
    z-index: 20;
  }

  .stylist-modal-inner {
    grid-template-columns: 1fr;
    clear: both;
  }

  .stylist-modal-photo {
    min-height: 280px;
    max-height: 340px;
  }

  .stylist-modal-content {
    padding: 1.5rem;
    max-height: none;
    overflow-y: visible;
  }
}

/* ─── Photo Carousel Section ────────────────────────────────── */
#photo-carousel {
  background: linear-gradient(180deg, var(--color-dark-mid) 0%, var(--color-dark) 100%);
  overflow: clip;
  max-width: 100%;
  contain: layout;
}

#photo-carousel .section-inner {
  padding-bottom: 4rem;
}

.carousel-stage {
  /* perspective depth — smaller = more dramatic 3D tilt */
  perspective: 50em;
  /* fade left/right edges into the background */
  mask: linear-gradient(90deg, transparent, black 18% 82%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, black 18% 82%, transparent);
  overflow: hidden;
  /* Force Chrome into a GPU compositing layer so preserve-3d children
     are clipped by this container rather than escaping to scrollWidth */
  transform: translateZ(0);
  will-change: transform;
  /* enough height for the tallest card + some breathing room */
  height: clamp(340px, 55vw, 520px);
  display: grid;
  place-items: center;
  margin-top: 3rem;
  max-width: 100%;
}

.carousel-3d {
  display: grid;
  place-self: center;
  /* preserve 3D on children */
  transform-style: preserve-3d;
  animation: carousel-spin 40s linear infinite;
}

.carousel-3d:hover {
  animation-play-state: paused;
}

@keyframes carousel-spin {
  to { rotate: y 1turn; }
}

.carousel-card {
  /* card width — clamp for responsiveness */
  --w: clamp(160px, 18vw, 260px);
  /* angle slice per card: 1 full turn ÷ number of cards */
  --ba: 1turn / var(--n);

  grid-area: 1 / 1;
  width: var(--w);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1.2em;
  /* hide the backs of cards that face away */
  backface-visibility: hidden;
  /* border glow matching brand */
  box-shadow:
    0 0 0 2px rgba(253, 21, 187, 0.35),
    0 8px 30px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease;
  /* position around the 3D circle */
  transform:
    rotatey(calc(var(--i) * var(--ba)))
    translatez(calc(-1 * (0.5 * var(--w) + 0.5em) / tan(0.5 * var(--ba))));
}

.carousel-3d:hover .carousel-card {
  box-shadow:
    0 0 0 2px rgba(253, 21, 187, 0.7),
    0 0 25px rgba(253, 21, 187, 0.3),
    0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Slow down for reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .carousel-3d {
    animation-duration: 160s;
  }
}

/* Tighten card size on small screens */
@media (max-width: 640px) {
  .carousel-stage {
    height: clamp(280px, 75vw, 380px);
    perspective: 30em;
    mask: linear-gradient(90deg, transparent, black 10% 90%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, black 10% 90%, transparent);
  }
}

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-dark); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--color-purple), var(--color-hot-pink));
  border-radius: 3px;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  html, body {
    overflow-x: clip;
    overflow-y: auto;
  }
}

@media (max-width: 900px) {
  .about-grid,
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-wrap {
    aspect-ratio: 16/9;
    max-height: 320px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .section-inner {
    padding: 4rem 1.25rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary, .btn-outline {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  /* Reduce service card padding so content isn't squeezed */
  .service-card {
    padding: 1.5rem;
  }

  /* Reduce booking panel padding and remove fixed min-height */
  .booking-cta-panel {
    padding: 2rem 1.25rem;
    min-height: auto;
  }

  .btn-book {
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
  }

  /* Modal padding reduction for narrow screens */
  .modal-box {
    padding: 1.5rem;
  }

  /* Tighten stylist card info padding */
  .stylist-info {
    padding: 0.9rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(180px, max-content);
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .policy-card {
    flex-direction: column;
    text-align: center;
  }

  .about-stat-row {
    justify-content: center;
  }
}

/* ─── Extra-small screens (≤ 400px) ─────────────────────────── */
@media (max-width: 400px) {
  /* Single-column gallery on very narrow screens */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Single-column stylists on very narrow screens */
  .stylists-grid {
    grid-template-columns: 1fr;
  }

  /* Reduce hero title spacing */
  .hero-content {
    padding: 1.25rem;
  }

  /* Tighter modal padding */
  .modal-box {
    padding: 1.25rem;
  }

  /* On mobile: switch away from Cinzel Decorative entirely — its "oo" glyphs
     physically overlap at small sizes regardless of letter-spacing.
     Dancing Script is used instead, which has no overlapping glyph issue. */
  .booking-cta-panel h3 {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    font-kerning: auto;
    font-variant-ligatures: normal;
    font-feature-settings: normal;
  }
}
