/* ============================================================
   SALON HANSI — Premium Beauty & Hair Studio
   Dark theme · Pink & White · Gradients · Scroll animations
   ============================================================ */

:root {
  --bg: #0d0a0f;
  --bg-2: #140f18;
  --bg-3: #1a1320;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f7f2f5;
  --text-dim: #c9bcc4;
  --muted: #9a8b94;
  --pink: #ff5fa2;
  --pink-light: #ff9ec4;
  --pink-soft: #ffd3e4;
  --pink-deep: #e84393;
  --pink-dark: #c2185b;
  --white: #ffffff;
  /* Gradient for clipped text (headings) — can include white */
  --grad: linear-gradient(120deg, #ff5fa2 0%, #ff9ec4 45%, #ffffff 100%);
  /* Solid gradient for backgrounds with white text — no white end */
  --grad-solid: linear-gradient(120deg, #ff5fa2 0%, #e84393 100%);
  --grad-soft: linear-gradient(120deg, rgba(255,95,162,.95), rgba(232,67,147,.95));
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Jost', sans-serif;
  --shadow: 0 30px 60px rgba(0,0,0,.5);
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: min(1200px, 92%); margin: 0 auto; }

.section { padding: 120px 0; position: relative; }

/* ---------- Gradient text ---------- */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--pink-light);
  margin-bottom: 18px;
  position: relative;
  padding-left: 42px;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 30px; height: 1px;
  background: var(--grad);
}

/* ---------- Section titles ---------- */
.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 20px;
}
.section-head.center { text-align: center; }
.section-head.center .eyebrow { padding-left: 0; padding-right: 42px; }
.section-head.center .eyebrow::before { left: auto; right: 0; }
.section-sub { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .8s ease, visibility .8s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  animation: pulse 1.6s ease-in-out infinite;
}
.preloader-text {
  display: block; margin-top: 6px;
  letter-spacing: .4em; text-transform: uppercase;
  font-size: .8rem; color: var(--text-dim);
}
.preloader-bar {
  width: 160px; height: 2px; background: var(--border);
  margin: 22px auto 0; border-radius: 2px; overflow: hidden;
}
.preloader-bar span {
  display: block; height: 100%; width: 40%;
  background: var(--grad); border-radius: 2px;
  animation: load 1.2s ease-in-out infinite;
}
@keyframes load { 0%{transform:translateX(-100%)} 100%{transform:translateX(400%)} }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--pink);
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,95,162,.6);
  transition: width .25s, height .25s, border-color .25s, background .25s;
}
.cursor-ring.grow {
  width: 64px; height: 64px;
  border-color: var(--pink);
  background: rgba(255,95,162,.12);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 22px 0;
  transition: padding .4s ease, background .4s ease, box-shadow .4s ease;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(13,10,15,.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.nav-inner {
  width: min(1200px, 92%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-solid);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 1.4rem; font-weight: 700; color: #fff;
  box-shadow: 0 0 24px rgba(255,95,162,.5);
}
.brand-text {
  font-family: var(--font-serif);
  font-size: 1.4rem; font-weight: 600; letter-spacing: .02em;
}
.brand-text em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; gap: 34px; }
.nav-link {
  font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); position: relative; padding: 4px 0;
  transition: color .3s;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--grad);
  transition: width .35s ease;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); transition: .3s; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 50px;
  font-family: var(--font-sans); font-size: .9rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .3s, box-shadow .3s, background .3s, color .3s;
  position: relative; overflow: hidden;
}
.btn .icon { width: 18px; height: 18px; fill: currentColor; }
.btn-primary {
  background: var(--grad-solid);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255,95,162,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(255,95,162,.5); }
.btn-ghost { border-color: var(--border); color: var(--white); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--pink); color: var(--pink-light); transform: translateY(-3px); }
.btn-book { background: var(--grad-solid); color: #fff; padding: 12px 24px; box-shadow: 0 8px 24px rgba(255,95,162,.3); }
.btn-book:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255,95,162,.45); }
.btn-whatsapp {
  background: linear-gradient(120deg, #25d366, #128c7e);
  color: #fff; font-size: 1rem; padding: 18px 40px;
  box-shadow: 0 14px 36px rgba(37,211,102,.35);
}
.btn-whatsapp:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 46px rgba(37,211,102,.5); }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(13,10,15,.97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  opacity: 0; visibility: hidden; transition: .4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.m-link {
  font-family: var(--font-serif); font-size: 1.8rem; color: var(--text-dim);
  transition: color .3s;
}
.m-link:hover { color: var(--pink-light); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.15);
  animation: heroZoom 8s ease forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13,10,15,.95) 0%, rgba(13,10,15,.7) 45%, rgba(13,10,15,.35) 100%),
    linear-gradient(0deg, rgba(13,10,15,.9) 0%, transparent 50%);
}
.hero-content {
  position: relative; z-index: 2;
  width: min(1200px, 92%); margin: 0 auto;
  padding-top: 80px;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.05;
  margin: 10px 0 24px;
}
.hero-title .line { display: block; }
.hero-sub {
  max-width: 520px; color: var(--text-dim);
  font-size: 1.1rem; font-weight: 300; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 60px; }

.hero-stats {
  display: flex; gap: 50px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 30px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-serif); font-size: 2.4rem; font-weight: 600;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.mouse {
  width: 26px; height: 42px; border: 2px solid var(--text-dim);
  border-radius: 14px; display: block; position: relative;
}
.wheel {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: var(--pink);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0%{opacity:1; top:8px} 100%{opacity:0; top:22px} }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center;
}
.about-media { position: relative; height: 560px; }
.about-img { position: absolute; background-size: cover; background-position: center; border-radius: var(--radius); }
.about-img.main { inset: 0 0 0 0; box-shadow: var(--shadow); }
.about-img.accent {
  width: 55%; height: 55%; bottom: -40px; right: -30px;
  border: 6px solid var(--bg-2);
  box-shadow: var(--shadow);
}
.about-badge {
  position: absolute; top: -30px; left: -30px;
  background: var(--grad-solid);
  border-radius: 50%; width: 130px; height: 130px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  box-shadow: 0 16px 40px rgba(255,95,162,.5);
  animation: float 4s ease-in-out infinite;
}
.badge-num { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; line-height: 1; }
.badge-text { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

.about-content p { color: var(--text-dim); margin-bottom: 18px; font-weight: 300; }
.about-list { margin: 26px 0 34px; display: grid; gap: 14px; }
.about-list li { display: flex; align-items: center; gap: 14px; color: var(--text); }
.tick {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--pink); font-size: .8rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--bg-2); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 60px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  position: relative; overflow: hidden;
  transition: transform .4s, border-color .4s, background .4s;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .5s ease;
}
.service-card:hover { transform: translateY(-10px); border-color: rgba(255,95,162,.4); background: var(--surface-2); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--grad-soft);
  display: grid; place-items: center;
  font-size: 1.6rem; color: #fff; margin-bottom: 24px;
  box-shadow: 0 10px 26px rgba(255,95,162,.3);
}
.service-card h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: .95rem; font-weight: 300; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px;
}
.gallery-item {
  height: 340px; border-radius: var(--radius);
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
  cursor: pointer;
}
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,10,15,.85) 0%, transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.gallery-item:hover::after { opacity: 1; }
.g-cap {
  position: absolute; bottom: 20px; left: 24px; z-index: 2;
  font-family: var(--font-serif); font-size: 1.3rem;
  color: var(--white); opacity: 0; transform: translateY(20px);
  transition: .4s;
}
.gallery-item:hover .g-cap { opacity: 1; transform: translateY(0); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--bg); }
.testi-track {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 60px;
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .4s, border-color .4s;
}
.testi-card:hover { transform: translateY(-8px); border-color: rgba(255,95,162,.4); }
.stars { color: var(--pink); letter-spacing: 3px; }
.testi-card p { color: var(--text-dim); font-weight: 300; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-solid); display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.3rem; color: #fff;
}
.testi-author strong { display: block; font-weight: 500; }
.testi-author span { color: var(--muted); font-size: .8rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.contact-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 80px 60px;
  text-align: center;
  overflow: hidden;
}
.contact-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(circle, rgba(255,95,162,.35), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.contact-card .eyebrow { padding-left: 0; padding-right: 42px; }
.contact-card .eyebrow::before { left: auto; right: 0; }
.contact-card p { color: var(--text-dim); max-width: 520px; margin: 0 auto 36px; font-weight: 300; }
.contact-meta {
  display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; margin-top: 50px;
}
.meta-item { display: flex; align-items: center; gap: 16px; text-align: left; }
.meta-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--pink); font-size: 1.2rem;
}
.meta-item strong { display: block; font-weight: 500; }
.meta-item span { color: var(--muted); font-size: .85rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-3); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-top { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-top p { color: var(--muted); max-width: 400px; }
.footer-social { display: flex; gap: 16px; }
.social {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; color: var(--text-dim);
  transition: .3s;
}
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social:hover { background: var(--grad-solid); color: #fff; border-color: transparent; transform: translateY(-4px); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: var(--muted); font-size: .85rem;
}
.heart { color: var(--pink); }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(120deg, #25d366, #128c7e);
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(37,211,102,.4);
  transition: transform .3s;
}
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp-float:hover { transform: scale(1.1) translateY(-3px); }
.whatsapp-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: ripple 2s ease-out infinite;
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}
.wa-tooltip {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 8px; font-size: .8rem; white-space: nowrap;
  opacity: 0; visibility: hidden; transition: .3s;
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; visibility: visible; }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal, .reveal-left {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal-left { transform: translateX(-60px); }
.reveal.visible, .reveal-left.visible {
  opacity: 1; transform: translate(0,0);
}

/* Stagger delays */
.services-grid .reveal:nth-child(2), .gallery-grid .reveal:nth-child(2), .testi-track .reveal:nth-child(2) { transition-delay: .1s; }
.services-grid .reveal:nth-child(3), .gallery-grid .reveal:nth-child(3), .testi-track .reveal:nth-child(3) { transition-delay: .2s; }
.services-grid .reveal:nth-child(4), .gallery-grid .reveal:nth-child(4) { transition-delay: .3s; }
.services-grid .reveal:nth-child(5), .gallery-grid .reveal:nth-child(5) { transition-delay: .4s; }
.services-grid .reveal:nth-child(6), .gallery-grid .reveal:nth-child(6) { transition-delay: .5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; gap: 80px; }
  .about-media { height: 480px; }
  .services-grid, .gallery-grid, .testi-track { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .services-grid, .gallery-grid, .testi-track { grid-template-columns: 1fr; }
  .about-media { height: 380px; }
  .about-img.accent { right: 0; }
  .about-badge { left: -10px; top: -20px; width: 110px; height: 110px; }
  .contact-card { padding: 50px 24px; }
  .hero-stats { gap: 30px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
