/* ============================================================
   Nail Beauty Studio — Stylesheet
   ============================================================ */

:root {
  --rose:        #e8a0a8;
  --rose-deep:   #c97a86;
  --blush:       #fbeef0;
  --cream:       #fdf8f5;
  --gold:        #c9a063;
  --ink:         #3a2e30;
  --muted:       #8a7a7d;
  --white:       #ffffff;
  --shadow:      0 18px 50px -22px rgba(123, 70, 80, 0.45);
  --radius:      18px;
  --radius-sm:   12px;
  --maxw:        1180px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --serif:       "Noto Serif Georgian", Georgia, serif;
  --sans:        "Noto Sans Georgian", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--alt { background: var(--blush); }

/* ---------- Typography helpers ---------- */
.section__head { max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__eyebrow {
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--rose-deep); font-weight: 600; margin-bottom: 0.9rem;
}
.section__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.1; color: var(--ink);
  margin-bottom: 1rem;
}
.section__text { color: var(--muted); font-size: 1.02rem; margin-bottom: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.03em; padding: 0.85rem 1.7rem; border-radius: 100px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: var(--white); box-shadow: 0 12px 28px -12px rgba(201, 122, 134, 0.8);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(201, 122, 134, 0.9); }
.btn--ghost { background: transparent; color: var(--rose-deep); border-color: var(--rose); }
.btn--ghost:hover { background: var(--rose); color: var(--white); transform: translateY(-3px); }
.btn--block { width: 100%; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }
.brand__mark { color: var(--gold); font-size: 1.1em; }
.brand__text em { color: var(--rose-deep); font-style: normal; }
.brand--light { color: var(--white); }
.brand--light .brand__text em { color: var(--rose); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0.5rem 0;
}
.site-header.scrolled {
  background: rgba(253, 248, 245, 0.92);
  box-shadow: 0 6px 24px -16px rgba(123, 70, 80, 0.55);
}
/* blur lives on a pseudo-element so the header doesn't become a
   containing block for the fixed mobile menu (which would clip it) */
.site-header.scrolled::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(12px);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 0.6rem; }
.nav__menu { display: flex; align-items: center; gap: 0.4rem; }
.nav__link {
  position: relative; padding: 0.55rem 0.9rem; font-size: 0.92rem; font-weight: 400;
  border-radius: 100px; transition: color 0.25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.35rem;
  height: 1.5px; background: var(--rose-deep); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--rose-deep); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link--cta {
  margin-left: 0.4rem; background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: var(--white); padding: 0.6rem 1.3rem;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { color: var(--white); transform: translateY(-2px); }

.nav__close-wrap { display: none; }
.nav__close {
  position: absolute; top: 1.2rem; right: 1.2rem; width: 42px; height: 42px;
  display: grid; place-items: center; line-height: 1; font-size: 1.9rem;
  color: var(--ink); background: var(--blush); border: 0; border-radius: 50%;
  cursor: pointer; transition: background 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.nav__close:hover { background: var(--rose); color: var(--white); transform: rotate(90deg); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.25s; }
.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); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 78% 22%, rgba(232, 160, 168, 0.4), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(201, 160, 99, 0.22), transparent 42%),
    linear-gradient(160deg, var(--blush), var(--cream) 60%);
}
.hero__bg::before, .hero__bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.5;
}
.hero__bg::before {
  width: 320px; height: 320px; top: -60px; right: 8%;
  background: radial-gradient(circle, rgba(232,160,168,0.55), transparent 70%);
  animation: float 9s ease-in-out infinite;
}
.hero__bg::after {
  width: 240px; height: 240px; bottom: 6%; left: 4%;
  background: radial-gradient(circle, rgba(201,160,99,0.45), transparent 70%);
  animation: float 11s ease-in-out infinite reverse;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-28px); } }

.hero__inner { text-align: center; padding-top: 6rem; }
.hero__eyebrow {
  font-size: 0.82rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--rose-deep); font-weight: 600; margin-bottom: 1.4rem;
}
.hero__title {
  font-family: var(--serif); font-weight: 700; line-height: 1.04;
  font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -0.5px; color: var(--ink);
}
.hero__title span { color: var(--rose-deep); font-style: italic; }
.hero__sub { max-width: 560px; margin: 1.6rem auto 2.4rem; color: var(--muted); font-size: 1.1rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: clamp(1.5rem, 5vw, 4rem); justify-content: center;
  margin-top: clamp(2.8rem, 6vw, 4.5rem); flex-wrap: wrap;
}
.hero__stats strong { display: block; font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--rose-deep); font-weight: 700; }
.hero__stats span { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; min-height: 460px; }
.about__photo {
  position: absolute; border-radius: var(--radius); box-shadow: var(--shadow);
  background-size: cover; background-position: center;
}
.about__photo--1 {
  width: 70%; height: 78%; top: 0; left: 0; z-index: 2;
  background-image: linear-gradient(135deg, rgba(232,160,168,0.25), rgba(201,160,99,0.2)), url("https://images.unsplash.com/photo-1604654894610-df63bc536371?auto=format&fit=crop&w=700&q=80");
}
.about__photo--2 {
  width: 58%; height: 60%; bottom: 0; right: 0; z-index: 1;
  background-image: linear-gradient(135deg, rgba(201,160,99,0.2), rgba(232,160,168,0.25)), url("https://images.unsplash.com/photo-1632345031435-8727f6897d53?auto=format&fit=crop&w=600&q=80");
}
.about__badge {
  position: absolute; z-index: 3; bottom: 8%; left: -4%;
  background: var(--white); border-radius: var(--radius-sm); padding: 1rem 1.2rem;
  box-shadow: var(--shadow); max-width: 180px; text-align: center;
}
.about__badge strong { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--rose-deep); }
.about__badge span { font-size: 0.78rem; color: var(--muted); }
.about__list { margin: 1.5rem 0 2rem; display: grid; gap: 0.6rem; }
.about__list li { color: var(--ink); font-size: 0.98rem; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 2.2rem 1.9rem;
  box-shadow: 0 14px 40px -28px rgba(123,70,80,0.5);
  border: 1px solid rgba(232,160,168,0.18);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-card__icon {
  width: 62px; height: 62px; display: grid; place-items: center; font-size: 1.7rem;
  border-radius: 16px; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--blush), rgba(201,160,99,0.18));
}
.service-card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Gallery ---------- */
.gallery__filters { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  font-family: var(--sans); font-size: 0.88rem; font-weight: 500; cursor: pointer;
  padding: 0.55rem 1.3rem; border-radius: 100px; border: 1.5px solid rgba(201,122,134,0.4);
  background: transparent; color: var(--muted); transition: all 0.3s var(--ease);
}
.filter-btn:hover { color: var(--rose-deep); border-color: var(--rose-deep); }
.filter-btn.is-active { background: var(--rose-deep); color: var(--white); border-color: var(--rose-deep); }

.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
.gallery__item {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; box-shadow: 0 12px 30px -22px rgba(123,70,80,0.6);
  transition: transform 0.45s var(--ease), opacity 0.4s var(--ease);
}
.gallery__item::after {
  content: "View"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 0.9rem; letter-spacing: 0.15em; text-transform: uppercase;
  background: rgba(123,70,80,0.45); opacity: 0; transition: opacity 0.35s;
}
.gallery__item:hover { transform: scale(1.03); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item .swatch { width: 100%; height: 100%; object-fit: cover; }
.gallery__item.hide { display: none; }

/* ---------- Pricing ---------- */
.pricing__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.6rem; align-items: stretch; max-width: 980px; margin-inline: auto; }
.price-card {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 2.4rem 2rem; text-align: center; box-shadow: 0 14px 40px -28px rgba(123,70,80,0.5);
  border: 1px solid rgba(232,160,168,0.2); display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.price-card--featured {
  background: linear-gradient(165deg, #fff, var(--blush));
  border: 1.5px solid var(--rose); transform: scale(1.04);
}
.price-card--featured:hover { transform: scale(1.04) translateY(-8px); }
.price-card__tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--rose), var(--rose-deep)); color: #fff;
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.35rem 1rem; border-radius: 100px; white-space: nowrap;
}
.price-card__name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 0.6rem; }
.price-card__price { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--rose-deep); line-height: 1; margin-bottom: 1.4rem; }
.price-card__price span { font-size: 1.6rem; margin-left: 0.1em; }
.price-card__price small { font-size: 0.9rem; font-family: var(--sans); color: var(--muted); font-weight: 400; }
.price-card__list { display: grid; gap: 0.7rem; margin-bottom: 1.8rem; flex: 1; }
.price-card__list li { color: var(--muted); font-size: 0.95rem; padding-bottom: 0.7rem; border-bottom: 1px solid rgba(232,160,168,0.18); }
.price-card__list li:last-child { border-bottom: 0; }

/* ---------- Reviews ---------- */
.reviews__slider { max-width: 760px; margin-inline: auto; overflow: hidden; }
.reviews__track { display: flex; transition: transform 0.6s var(--ease); }
.review {
  min-width: 100%; text-align: center; padding: 0 1rem;
}
.review__stars { color: var(--gold); font-size: 1.3rem; letter-spacing: 0.15em; margin-bottom: 1.2rem; }
.review p { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-style: italic; color: var(--ink); line-height: 1.45; }
.review footer { margin-top: 1.4rem; color: var(--rose-deep); font-weight: 500; letter-spacing: 0.05em; }
.reviews__dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2.2rem; }
.reviews__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(201,122,134,0.35); cursor: pointer; transition: all 0.3s; }
.reviews__dots button.active { background: var(--rose-deep); width: 26px; border-radius: 100px; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
.contact__details { display: grid; gap: 0.9rem; margin: 1.6rem 0; }
.contact__details li { display: flex; align-items: center; gap: 0.8rem; color: var(--ink); }
.contact__details span { font-size: 1.2rem; }
.contact__hours { background: var(--white); border-radius: var(--radius-sm); padding: 1.3rem 1.5rem; box-shadow: 0 12px 30px -24px rgba(123,70,80,0.5); margin-bottom: 1.6rem; }
.contact__hours h4 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.6rem; }
.contact__hours p { color: var(--muted); font-size: 0.94rem; display: flex; justify-content: space-between; max-width: 240px; }
.contact__social { display: flex; gap: 1.2rem; }
.contact__social a { font-size: 0.9rem; font-weight: 500; color: var(--rose-deep); position: relative; }
.contact__social a:hover { color: var(--gold); }

.contact__form { background: var(--white); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.6rem); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.05em; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 0.95rem; padding: 0.75rem 0.9rem; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(201,122,134,0.25); background: var(--cream); color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--rose-deep); box-shadow: 0 0 0 3px rgba(232,160,168,0.2);
}
.field textarea { resize: vertical; }
.field--invalid input, .field--invalid select { border-color: #d9534f; }
.field__error { color: #d9534f; font-size: 0.78rem; min-height: 0.9rem; }
.contact__form .btn--block { grid-column: 1 / -1; }
.form__feedback { grid-column: 1 / -1; text-align: center; font-size: 0.92rem; font-weight: 500; min-height: 1.2rem; }
.form__feedback.success { color: #2e8b57; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.8); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; text-align: center; }
.footer__inner { display: grid; gap: 1.2rem; justify-items: center; }
.footer__tag { color: rgba(255,255,255,0.6); }
.footer__nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer__nav a { font-size: 0.92rem; color: rgba(255,255,255,0.75); transition: color 0.25s; }
.footer__nav a:hover { color: var(--rose); }
.footer__copy { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-top: 0.8rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  background: rgba(58,46,48,0.85); backdrop-filter: blur(6px); padding: 2rem;
}
.lightbox.open { display: grid; }
.lightbox__content { width: min(80vw, 460px); aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); animation: pop 0.4s var(--ease); }
.lightbox__content .swatch { width: 100%; height: 100%; object-fit: cover; }
.lightbox__close { position: absolute; top: 1.4rem; right: 1.8rem; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }
@keyframes pop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 90;
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep)); color: #fff; font-size: 1.3rem;
  box-shadow: 0 12px 26px -12px rgba(201,122,134,0.9);
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: all 0.4s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; height: 100vh;
    height: 100dvh; width: min(80vw, 320px); z-index: 110;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 0.35rem;
    background: var(--cream); padding: 6rem 1.75rem 2.5rem;
    box-shadow: -10px 0 40px -20px rgba(123,70,80,0.6);
    transform: translateX(100%); transition: transform 0.45s var(--ease);
  }
  .nav__menu.open { transform: translateX(0); }
  .nav__close-wrap { display: block; position: absolute; inset: 0 0 auto auto; }
  .nav__menu li { width: 100%; }
  .nav__link {
    display: block; width: 100%; font-size: 1.1rem; padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
  }
  .nav__link::after { display: none; }
  .nav__link:hover { background: var(--blush); }
  .nav__link--cta {
    margin: 1rem 0 0; text-align: center; padding: 0.9rem 1rem;
  }
  .nav__link--cta:hover { background: linear-gradient(135deg, var(--rose), var(--rose-deep)); transform: none; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { min-height: 420px; max-width: 440px; margin-inline: auto; width: 100%; }
  .price-card--featured { transform: none; }
  .price-card--featured:hover { transform: translateY(-8px); }
}

@media (max-width: 640px) {
  /* show each gallery photo only once on mobile */
  .gallery__item--dup { display: none !important; }
}

@media (max-width: 520px) {
  .contact__form { grid-template-columns: 1fr; }
  .hero__inner { padding-top: 7rem; }
  .to-top { bottom: 1rem; right: 1rem; }
  .brand { font-size: 1.15rem; gap: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
