/* ============================================================
   Rosé & Noir — Premium Beauty Salon
   Dark theme · Reddish-pink gradients · Scroll animations
   ============================================================ */

:root {
  /* Palette */
  --bg: #0d0a0c;
  --bg-soft: #161014;
  --bg-card: #1c1418;
  --surface: #221820;
  --line: rgba(255, 255, 255, 0.08);

  --rose: #ff2e63;
  --rose-deep: #c2185b;
  --rose-soft: #ff6b8a;
  --blush: #ffd1dc;
  --white: #ffffff;
  --muted: #b9a8ae;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #ff2e63 0%, #c2185b 55%, #8e0e3a 100%);
  --grad-text: linear-gradient(120deg, #ff6b8a 0%, #ff2e63 45%, #ffd1dc 100%);
  --grad-glow: radial-gradient(circle at 30% 20%, rgba(255, 46, 99, 0.35), transparent 60%);

  /* Type */
  --font-serif: "Cormorant Garamond", serif;
  --font-sans: "Jost", sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, 90%);
  margin: 0 auto;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rose-soft);
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  position: relative;
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section__lead {
  color: var(--muted);
  font-weight: 300;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(255, 46, 99, 0.6);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -10px rgba(255, 46, 99, 0.75);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn--ghost:hover {
  border-color: var(--rose);
  color: var(--rose-soft);
  transform: translateY(-3px);
}

.btn--block {
  width: 100%;
}

.btn--whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(37, 211, 102, 0.5);
}

.btn--whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -10px rgba(37, 211, 102, 0.7);
}

.wa-icon {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
}

/* ---------- Scroll progress bar ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--grad-primary);
  z-index: 300;
  box-shadow: 0 0 12px rgba(255, 46, 99, 0.7);
}

/* ---------- Marquee strip ---------- */
.marquee {
  overflow: hidden;
  background: var(--grad-primary);
  padding: 1rem 0;
  margin-top: 4rem;
  position: relative;
  z-index: 5;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee__track span {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.marquee__dot {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(13, 10, 12, 0.85);
  backdrop-filter: blur(14px);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-primary);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 8px 20px -6px rgba(255, 46, 99, 0.6);
}

.brand__text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  position: relative;
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: width 0.4s var(--ease);
}

.nav__link:hover {
  color: var(--white);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link.active {
  color: var(--rose-soft);
}

.nav__link.active::after {
  width: 100%;
}

.nav__link--cta {
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(255, 46, 99, 0.6);
}

.nav__link--cta::after {
  display: none;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 6rem 0 7rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    var(--grad-glow),
    radial-gradient(circle at 80% 80%, rgba(194, 24, 91, 0.25), transparent 55%),
    linear-gradient(160deg, #120c10 0%, #0d0a0c 60%, #160d12 100%);
  z-index: -1;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
}

.hero__content {
  max-width: 760px;
}

.hero__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rose-soft);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 1.4rem;
}

.hero__sub {
  color: var(--muted);
  font-weight: 300;
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(var(--rose), transparent);
  animation: scrollPulse 2s var(--ease) infinite;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__media {
  position: relative;
  min-height: 480px;
}

.about__img {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.about__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.about__img:hover img {
  transform: scale(1.06);
}

.about__img--main {
  width: 78%;
  height: 420px;
}

.about__img--accent {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 240px;
  border: 6px solid var(--bg);
}

.about__badge {
  position: absolute;
  top: 0;
  right: 4%;
  background: var(--grad-primary);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  text-align: center;
  box-shadow: 0 18px 40px -12px rgba(255, 46, 99, 0.7);
  transform: rotate(4deg);
}

.about__badge-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.about__badge-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.about__para {
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 1.2rem;
}

.about__list {
  list-style: none;
  margin: 1.6rem 0 2.2rem;
  display: grid;
  gap: 0.8rem;
}

.about__list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--white);
  font-weight: 300;
}

.about__list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--rose);
}

/* ---------- Services ---------- */
.services {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.service {
  background: linear-gradient(160deg, var(--surface), var(--bg-card));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.4rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.service:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 46, 99, 0.4);
  box-shadow: 0 24px 50px -20px rgba(255, 46, 99, 0.35);
}

.service:hover::before {
  transform: scaleX(1);
}

.service__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad-primary);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.4rem;
  box-shadow: 0 10px 24px -8px rgba(255, 46, 99, 0.6);
}

.service__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.service__desc {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.95rem;
}

/* ---------- Gallery ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.gallery__item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  cursor: pointer;
}

.gallery__item img {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
  will-change: transform;
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 10, 12, 0.5), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.gallery__item:hover {
  transform: scale(1.03);
}

.gallery__item:hover img {
  filter: saturate(1.2) brightness(1.05);
}

.gallery__item:hover::after {
  opacity: 1;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.testimonial {
  background: linear-gradient(160deg, var(--surface), var(--bg-card));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.2rem;
  position: relative;
}

.testimonial::before {
  content: "“";
  position: absolute;
  top: 0.4rem;
  right: 1.4rem;
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: rgba(255, 46, 99, 0.25);
}

.testimonial__stars {
  color: var(--rose);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.testimonial__quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 1.4rem;
  line-height: 1.5;
}

.testimonial__author {
  color: var(--rose-soft);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ---------- Contact ---------- */
.contact__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__para {
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 2rem;
}

.contact__meta {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.contact__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact__meta-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose-soft);
}

.contact__meta-value {
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--rose-soft);
  background: linear-gradient(135deg, #25d366, #128c7e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  transition: transform 0.3s var(--ease);
}

.contact__phone:hover {
  transform: translateX(4px);
}

.contact__note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact__form {
  background: linear-gradient(160deg, var(--surface), var(--bg-card));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2.6rem;
  box-shadow: var(--shadow);
}

.contact__form-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.field label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rose);
  background: rgba(255, 46, 99, 0.06);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--rose) 50%),
    linear-gradient(135deg, var(--rose) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.field select option {
  background: var(--bg-card);
  color: var(--white);
}

.field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
}

.contact__form-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--rose-soft);
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  background: var(--bg-soft);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.footer__tag {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
}

.footer__links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.3s var(--ease);
}

.footer__links a:hover {
  color: var(--rose-soft);
}

.footer__copy {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  bottom: 1.6rem;
  left: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(13, 10, 12, 0.8);
  backdrop-filter: blur(8px);
  color: var(--rose-soft);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s, background 0.3s var(--ease);
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--grad-primary);
  color: #fff;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.6);
  z-index: 200;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  animation: waPulse 2.4s var(--ease) infinite;
}

.wa-float .wa-icon {
  width: 1.6em;
  height: 1.6em;
}

.wa-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 20px 40px -8px rgba(37, 211, 102, 0.8);
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.6), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.6), 0 0 0 16px rgba(37, 211, 102, 0); }
}

/* ---------- Scroll-driven reveal animations (reversible) ----------
   Base hidden state. Progress is driven directly by scroll position in
   script.js, so animations reverse when scrolling back up. */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  filter: blur(12px);
  will-change: opacity, transform, filter;
}

.reveal {
  transform: translateY(90px) scale(0.88);
}

.reveal-left {
  transform: translateX(-110px) rotate(-2deg) scale(0.92);
}

.reveal-right {
  transform: translateX(110px) rotate(2deg) scale(0.92);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about__grid,
  .contact__wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .services__grid,
  .gallery__grid,
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__media {
    min-height: 400px;
  }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(320px, 80%);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(13, 10, 12, 0.97);
    backdrop-filter: blur(16px);
    transition: right 0.5s var(--ease);
    border-left: 1px solid var(--line);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__toggle {
    display: flex;
    z-index: 110;
  }

  .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); }

  .services__grid,
  .gallery__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .about__media {
    min-height: 340px;
  }

  .about__img--main {
    height: 320px;
  }

  .about__img--accent {
    height: 180px;
  }

  .contact__form {
    padding: 1.8rem;
  }

  .hero {
    padding: 5.5rem 0 7rem;
  }

  .hero__title {
    font-size: clamp(2.6rem, 13vw, 3.4rem);
  }

  .hero__sub {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .marquee {
    margin-top: 2rem;
  }
}
