/* ==========================================================================
   AN NHIEN SPA & WELLNESS - LIGHT LUXURY
   Demo by HORA Studio
   ========================================================================== */

:root {
  --bg: #f7f2ec;
  --bg-tint: #efe6da;
  --panel: #fffdf9;
  --ink: #33302b;
  --muted: #7d766c;
  --dim: #a89f92;
  --green: #48604f;
  --green-soft: #6d8674;
  --gold: #b39264;
  --line: rgba(72, 96, 79, 0.14);

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Be Vietnam Pro', -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; }

.container { width: min(92%, var(--container)); margin: 0 auto; }
.container-narrow { width: min(92%, 780px); margin: 0 auto; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  z-index: 1001;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* --- TYPO --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 1rem;
}

.eyebrow-rule {
  width: 38px; height: 1px;
  background: var(--green-soft);
  display: inline-block;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.18;
  margin-bottom: 1.1rem;
}

.section-title em {
  font-style: italic;
  color: var(--green);
}

.section { padding: 6rem 0; }
.section-tinted { background: var(--bg-tint); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.2rem;
}

.fine-print {
  margin-top: 1.4rem;
  font-size: 0.8rem;
  color: var(--dim);
  text-align: center;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
}

.btn:hover::before { transform: translateX(130%); }

.btn-solid {
  background: var(--green);
  color: #f7f2ec;
  box-shadow: 0 12px 28px rgba(72, 96, 79, 0.3);
}

.btn-solid:hover {
  background: #3a5042;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(72, 96, 79, 0.38);
}

.btn-full { width: 100%; }

.link-quiet {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.04em;
  transition: letter-spacing 0.3s var(--ease-out);
}

.link-quiet:hover { letter-spacing: 0.1em; }

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.3rem 0;
  transition: all 0.35s var(--ease-out);
}

.site-header.scrolled {
  padding: 0.75rem 0;
  background: rgba(247, 242, 236, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand em {
  font-style: italic;
  color: var(--green);
}

.nav { display: flex; gap: 2.2rem; }

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 26px; height: 1.5px;
  background: var(--ink);
  transition: all 0.3s;
}

/* --- HERO --- */
.hero {
  padding: 10rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  line-height: 1.08;
}

.hero-title span { display: block; }

.hero-title em {
  font-style: italic;
  color: var(--green);
}

.hero-sub {
  max-width: 480px;
  color: var(--muted);
  margin: 1.4rem 0 2rem;
  font-size: 1.02rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.stars { color: var(--gold); letter-spacing: 0.15em; }

/* Hero image blob huu co */
.hero-visual { position: relative; }

.hero-img-blob {
  border-radius: 58% 42% 55% 45% / 48% 52% 48% 52%;
  overflow: hidden;
  aspect-ratio: 0.92;
  box-shadow: 0 34px 70px rgba(72, 96, 79, 0.22);
  animation: blob-morph 12s ease-in-out infinite alternate;
}

@keyframes blob-morph {
  0% { border-radius: 58% 42% 55% 45% / 48% 52% 48% 52%; }
  50% { border-radius: 45% 55% 44% 56% / 55% 45% 56% 44%; }
  100% { border-radius: 52% 48% 58% 42% / 44% 58% 42% 56%; }
}

.hero-img-blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.hero-chip {
  position: absolute;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 12px 26px rgba(51, 48, 43, 0.12);
  animation: chip-float 5s ease-in-out infinite alternate;
}

.chip-1 { top: 8%; left: -6%; }
.chip-2 { bottom: 10%; right: -4%; animation-delay: -2.5s; }

@keyframes chip-float {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

/* Hero entrance */
@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.rise-1 { animation: rise 0.9s var(--ease-out) 0.05s both; }
.rise-2 { animation: rise 0.9s var(--ease-out) 0.16s both; }
.rise-3 { animation: rise 0.9s var(--ease-out) 0.28s both; }
.rise-4 { animation: rise 0.9s var(--ease-out) 0.4s both; }
.rise-5 { animation: rise 0.9s var(--ease-out) 0.52s both; }
.rise-6 { animation: rise 0.9s var(--ease-out) 0.64s both; }
.rise-7 { animation: rise 0.9s var(--ease-out) 0.76s both; }

/* --- MARQUEE --- */
.marquee {
  overflow: hidden;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}

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

.marquee-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--green-soft);
  white-space: nowrap;
}

.marquee-track i {
  font-style: normal;
  color: var(--gold);
  font-size: 0.85rem;
}

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

/* --- SERVICES --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.8rem;
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  padding-bottom: 1.6rem;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px rgba(72, 96, 79, 0.16);
}

.service-img {
  position: relative;
  height: 210px;
  overflow: hidden;
  margin-bottom: 1.4rem;
}

.service-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.service-card:hover .service-img img { transform: scale(1.07); }

.service-time {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(247, 242, 236, 0.92);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--green);
}

.service-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  padding: 0 1.5rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  padding: 0 1.5rem;
  font-size: 0.89rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.price {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green);
}

/* --- SPACE / STATS --- */
.space-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.space-desc {
  color: var(--muted);
  margin-bottom: 2.2rem;
}

.stats-row {
  display: flex;
  gap: 2.8rem;
  flex-wrap: wrap;
}

.stat .count {
  font-family: var(--serif);
  font-size: 2.3rem;
  color: var(--green);
  line-height: 1;
  display: block;
  margin-bottom: 0.3rem;
}

.stat small {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.space-visual { overflow: hidden; border-radius: 18px; }

.space-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 18px;
  will-change: transform;
}

/* --- PRICING --- */
.price-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.price-list li span small {
  color: var(--dim);
  font-size: 0.78rem;
  margin-left: 0.4rem;
}

.price-list li i {
  flex: 1;
  border-bottom: 1px dotted rgba(72, 96, 79, 0.35);
  transform: translateY(-4px);
}

.price-list li strong {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--green);
}

.price-combo {
  background: var(--panel);
  border: 1px solid var(--line) !important;
  border-radius: 12px;
  padding: 1.1rem 1.2rem !important;
  margin-top: 0.8rem;
}

.price-combo span { font-weight: 600; }

/* --- TESTIMONIAL --- */
.testi { text-align: center; }

.testi-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

.testi-quote::before {
  content: "“";
  display: block;
  font-size: 3.2rem;
  line-height: 0.5;
  color: var(--gold);
  margin-bottom: 1rem;
}

.testi-author { font-size: 0.9rem; color: var(--muted); }
.testi-author strong { color: var(--ink); }

/* --- BOOKING --- */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.booking-text p { color: var(--muted); max-width: 420px; }

.booking-hotline {
  margin-top: 2rem;
  border-left: 2px solid var(--green);
  padding-left: 1.2rem;
}

.booking-hotline span {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.booking-hotline a {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--green);
}

.booking-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.4rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 24px 55px rgba(72, 96, 79, 0.12);
}

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.field input,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(72, 96, 79, 0.14);
}

.field input::placeholder { color: var(--dim); }

.form-note {
  font-size: 0.76rem;
  color: var(--dim);
  text-align: center;
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.footer-brand em { font-style: italic; color: var(--green); }

.footer-copy {
  margin-top: 0.8rem;
  font-size: 0.76rem;
  color: var(--dim);
}

/* --- FLOATING --- */
.floating-contact {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 999;
}

.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: #0068ff;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s var(--ease-out);
  animation: zalo-pulse 2.4s infinite;
}

.float-btn:hover { transform: translateY(-3px) scale(1.06); }

@keyframes zalo-pulse {
  0% { box-shadow: 0 10px 26px rgba(0,0,0,0.25), 0 0 0 0 rgba(0, 104, 255, 0.4); }
  70% { box-shadow: 0 10px 26px rgba(0,0,0,0.25), 0 0 0 14px rgba(0, 104, 255, 0); }
  100% { box-shadow: 0 10px 26px rgba(0,0,0,0.25), 0 0 0 0 rgba(0, 104, 255, 0); }
}

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.in-view { opacity: 1; transform: none; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .hero-grid, .space-grid, .booking-grid {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }

  .header-cta { display: none; }
  .hero { padding-top: 8rem; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .chip-1 { left: 0; }
  .chip-2 { right: 0; }
  .space-img { height: 320px; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 62px; left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    background: rgba(247, 242, 236, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    transition: transform 0.45s var(--ease-out);
  }

  .nav.open { transform: translateY(0); }
  .menu-toggle { display: flex; }
  .menu-toggle.open span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle.open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .section { padding: 4rem 0; }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-img-blob,
  .hero-chip,
  .marquee-track,
  .float-btn,
  [class^="rise-"] {
    animation: none;
  }

  [class^="rise-"] { opacity: 1; transform: none; }
  .btn::before { display: none; }
  .parallax { transform: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
