/* ============================================
   BLOOM SALON — Shared Stylesheet
   ============================================ */

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ---- VARIABLES ---- */
:root {
  --bg: #121015;
  --bg-light: #1a171f;
  --surface: #231f2a;
  --accent: #e8a598;
  --accent2: #c084fc;
  --accent3: #f0abfc;
  --text: #faf5ff;
  --text-muted: #c4b5d4;
  --text-dim: #7a6b8a;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---- GRAIN OVERLAY ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* ---- GLOW ORBS ---- */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: .18;
}
.glow-orb--blush {
  width: 420px; height: 420px;
  background: var(--accent);
  top: 10%; left: -100px;
}
.glow-orb--purple {
  width: 360px; height: 360px;
  background: var(--accent2);
  bottom: 20%; right: -80px;
}
.glow-orb--pink {
  width: 280px; height: 280px;
  background: var(--accent3);
  top: 55%; left: 30%;
}

/* ---- GSAP REVEAL ---- */
.reveal { opacity: 0; }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  transition: background .4s, backdrop-filter .4s, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(18,16,21,.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(192,132,252,.08);
}
.nav__inner {
  width: 100%; max-width: 1200px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 32px;
  position: relative;
}
.nav__logo {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 1.35rem;
  letter-spacing: .12em;
  color: var(--text);
  text-decoration: none;
  position: absolute; left: 32px;
}
.nav__logo span { color: var(--accent); }
.nav__links {
  display: flex; gap: 36px; list-style: none;
}
.nav__links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .3s;
}
.nav__links a:hover { color: var(--accent); }
.nav__links a.active { color: var(--accent); }
.nav__links .cta-link {
  color: var(--accent);
  border: 1px solid rgba(232,165,152,.25);
  padding: 6px 16px;
  border-radius: 20px;
  transition: background .3s, color .3s;
}
.nav__links .cta-link:hover {
  background: var(--accent);
  color: var(--bg);
}
.nav__links .cta-link.active {
  background: var(--accent);
  color: var(--bg);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  position: absolute; right: 32px;
}
.nav__toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-muted);
  margin: 5px 0;
  transition: .3s;
}

/* ---- SECTION DEFAULTS ---- */
section {
  position: relative;
  z-index: 1;
}
.section-pad {
  padding: 100px 32px;
}
.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text);
  margin-bottom: 50px;
}
.section-title em {
  font-style: normal;
  color: var(--accent);
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: var(--bg);
  cursor: pointer;
  text-decoration: none;
  transition: transform .3s, box-shadow .3s;
  font-weight: 500;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,165,152,.25);
}
.btn-primary svg { width: 16px; height: 16px; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 1px solid rgba(232,165,152,.3);
  border-radius: 40px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  transition: background .3s, color .3s, transform .3s;
  font-weight: 500;
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

/* ---- GLASSMORPHISM CARD ---- */
.glass-card {
  background: rgba(35,31,42,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(192,132,252,.1);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(232,165,152,.2), rgba(192,132,252,.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---- PAGE HEADER (inner pages) ---- */
.page-header {
  padding: calc(var(--nav-h) + 60px) 32px 60px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(35,31,42,.4) 0%, transparent 100%);
}
.page-header .section-tag { margin-bottom: 16px; }
.page-header .section-title { margin-bottom: 20px; }
.page-header__sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid rgba(192,132,252,.08);
  padding: 64px 32px 32px;
  position: relative;
  z-index: 1;
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer__logo {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 1.2rem;
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.footer__logo span { color: var(--accent); }
.footer__tagline {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.footer__heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.footer__list {
  list-style: none;
}
.footer__list li { margin-bottom: 10px; }
.footer__list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .88rem;
  transition: color .3s;
}
.footer__list a:hover { color: var(--accent); }
.footer__hours {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.footer__socials {
  display: flex; gap: 16px;
  margin-top: 4px;
}
.footer__socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(192,132,252,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color .3s, color .3s;
}
.footer__socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.footer__socials svg { width: 18px; height: 18px; }
.footer__bar {
  max-width: 1100px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(192,132,252,.06);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer__copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  color: var(--text-dim);
  letter-spacing: .04em;
}
.footer__credit {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  color: var(--text-dim);
  letter-spacing: .04em;
}
.footer__credit a {
  color: var(--accent);
  text-decoration: none;
}

/* ---- BLOB KEYFRAMES ---- */
@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(.95); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 20px) scale(1.08); }
  66% { transform: translate(15px, -25px) scale(.92); }
}
@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 20px) scale(1.1); }
}
@keyframes borderSpin {
  to { transform: rotate(360deg); }
}

/* ---- UTILITY ---- */
.max-w-1200 { max-width: 1200px; margin-left: auto; margin-right: auto; }
.max-w-1100 { max-width: 1100px; margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.max-w-600 { max-width: 600px; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

a { color: inherit; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(18,16,21,.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 999;
  }
  .nav__links.open a {
    font-size: .9rem;
  }
  .nav__toggle { display: block; z-index: 1001; }
  .nav__logo { position: static; }
  .nav__inner { justify-content: space-between; }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .footer__inner { grid-template-columns: 1fr; }
}
