/* 303 Beauty — Luxury Beauty Design System */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');

:root {
  --color-primary: #D8C2A6;
  --color-primary-dark: #B9A088;
  --color-bg: #F8F5F0;
  --color-dark: #2D2D2D;
  --color-text: #555555;
  --color-text-light: #888888;
  --color-white: #FFFFFF;
  --color-gold: #D8C2A6;
  --color-gold-light: #E8D9C8;
  --shadow-soft: 0 4px 24px rgba(45, 45, 45, 0.06);
  --shadow-card: 0 8px 40px rgba(45, 45, 45, 0.08);
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

.font-serif { font-family: 'Playfair Display', 'Noto Sans TC', serif; }

/* Typography */
.text-gold { color: var(--color-primary) !important; }
.text-dark { color: var(--color-dark); }
.bg-cream { background: var(--color-bg); }
.bg-primary { background: var(--color-primary); }

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  font-weight: 500;
}

.section-title {
  font-family: 'Playfair Display', 'Noto Sans TC', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.3;
}

/* Scroll animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Navbar */
#main-navbar {
  background: rgba(248, 245, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom-color: rgba(216, 194, 166, 0.2);
  box-shadow: var(--shadow-soft);
}
.nav-link {
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--color-primary-dark); }
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--color-primary-dark);
  letter-spacing: 0.02em;
}

/* Buttons */
.btn-booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  background: var(--color-dark);
  color: #fff !important;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: var(--shadow-soft);
}
.btn-booking:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--color-dark);
  color: var(--color-dark);
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s;
}
.btn-outline:hover {
  background: var(--color-dark);
  color: #fff !important;
}
.btn-ghost-light {
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  border-radius: 9999px;
  transition: all 0.3s;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.15); }

/* Hero */
.hero-luxury {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 5rem;
}
.hero-luxury__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-luxury__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(45,45,45,0.75) 0%, rgba(45,45,45,0.35) 55%, rgba(45,45,45,0.2) 100%);
}
.hero-luxury__content { position: relative; z-index: 1; max-width: 36rem; }

/* Cards */
.lux-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.4s, transform 0.4s;
}
.lux-card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.lux-card__img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}
.lux-card__body { padding: 1.5rem; }

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-3px); }
.feature-card__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-primary-dark);
  font-size: 1.25rem;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (min-width: 768px) {
  .timeline { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .timeline__step { flex: 1; text-align: center; position: relative; }
  .timeline__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 50%;
    width: 100%;
    height: 1px;
    background: var(--color-primary);
    opacity: 0.4;
  }
}
.timeline__num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Quote */
.quote-block {
  background: var(--color-white);
  border-left: 3px solid var(--color-primary);
  padding: 2rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-soft);
}
.stars { color: var(--color-primary-dark); letter-spacing: 0.15em; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(216, 194, 166, 0.3);
}
.faq-item summary {
  cursor: pointer;
  padding: 1.25rem 0;
  font-weight: 500;
  color: var(--color-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; color: var(--color-primary-dark); }
.faq-item[open] summary::after { content: '−'; }
.faq-item__answer { padding: 0 0 1.25rem; color: var(--color-text); }

/* CTA band */
.cta-band {
  position: relative;
  background-size: cover;
  background-position: center;
}
.cta-band__overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 45, 45, 0.65);
}

/* Service scroll (mobile) */
.service-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.service-scroll::-webkit-scrollbar { display: none; }
.service-scroll > * {
  flex: 0 0 85%;
  max-width: 320px;
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .service-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }
  .service-scroll > * { flex: none; max-width: none; }
}

/* Treatment / product cards (dynamic) — Service Block Demo */
.treatment-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.35s ease;
}
.treatment-card:hover { box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08); }

.treatment-card__img-wrap {
  display: block;
  background: var(--color-bg);
  overflow: hidden;
}
.treatment-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--color-bg);
  transition: opacity 0.3s;
}
.treatment-card__img-wrap:hover .treatment-card__img {
  opacity: 0.88;
}

.treatment-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.25rem 1.5rem;
}

.treatment-card__tag {
  display: block;
  width: 100%;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #9A8268;
  background: var(--color-bg);
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  margin-bottom: 0.875rem;
  text-align: left;
}

.treatment-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.625rem;
  line-height: 1.45;
}

.treatment-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
}
.treatment-card__intro {
  margin: 0 0 0.75rem;
  line-height: 1.65;
}
.treatment-card__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.treatment-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text);
}
.treatment-card__feature-icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B59F6D;
}
.treatment-card__feature--more {
  color: var(--color-text-light);
  font-size: 0.8125rem;
  padding-left: 1.625rem;
}

.treatment-card__footer {
  margin-top: auto;
}

/* Price row — two equal columns */
.service-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #EEEEEE;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #FAFAFA;
  margin-bottom: 0.875rem;
}
.service-price-row__col {
  padding: 0.75rem 0.5rem;
  text-align: center;
}
.service-price-row__col + .service-price-row__col {
  border-left: 1px solid #EEEEEE;
}
.service-price-row__label {
  display: block;
  font-size: 0.75rem;
  color: #888888;
  margin-bottom: 0.25rem;
}
.service-price-row__value--cash {
  font-size: 1.375rem;
  font-weight: 700;
  color: #B59F6D;
  line-height: 1.2;
}
.service-price-row__value--original {
  font-size: 0.9375rem;
  color: #AAAAAA;
  text-decoration: line-through;
  line-height: 1.2;
}

/* Full-width CTA */
.service-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.25s ease;
}
.service-card-cta:hover { background: var(--color-primary-dark); }
.service-card-cta__icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
}

/* Legacy price cards (index etc.) */
.price-cards { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.price-card {
  border-radius: 10px;
  padding: 0.6rem 1rem;
  min-width: 4.5rem;
  text-align: center;
}
.price-card__label { font-size: 0.8125rem; color: #666; margin-bottom: 0.25rem; }
.price-card__value { font-size: 1.0625rem; font-weight: 700; color: #B59F6D; }
.price-card--single { background: var(--color-bg); }
.price-card--member { background: #EEE7DD; }
.price-card--offer { background: #EEE7DD; }

/* Masonry gallery */
.masonry { column-count: 1; column-gap: 1rem; }
@media (min-width: 640px) { .masonry { column-count: 2; } }
@media (min-width: 1024px) { .masonry { column-count: 3; } }
.masonry-item { break-inside: avoid; margin-bottom: 1rem; }

/* Page header */
.page-hero {
  position: relative;
  padding-top: 7rem;
  padding-bottom: 4rem;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
}
.page-hero__content {
  position: relative;
  z-index: 1;
  color: var(--color-dark);
}
.page-hero__content .section-label {
  color: var(--color-primary-dark);
}
.page-hero__content h1 {
  color: var(--color-dark);
}
.page-hero__desc {
  color: var(--color-text);
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.85);
}
.site-footer a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.site-footer a:hover { color: var(--color-primary); }

/* Floating UX */
.fab-group {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}
.fab {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s;
}
.fab:hover { transform: scale(1.05); }
.fab--wa { background: #25D366; color: #fff; }
.fab--phone { background: var(--color-dark); color: #fff; }
.fab--top {
  background: var(--color-white);
  color: var(--color-dark);
  border: 1px solid rgba(0,0,0,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.fab--top.visible { opacity: 1; pointer-events: auto; }

.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 55;
  display: flex;
  background: var(--color-white);
  border-top: 1px solid rgba(216,194,166,0.3);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  padding: 0.5rem;
  gap: 0.5rem;
}
@media (min-width: 768px) { .mobile-cta-bar { display: none; } }
.mobile-cta-bar a {
  flex: 1;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.9375rem;
}
.mobile-cta-bar .cta-primary { background: var(--color-dark); color: #fff; }
.mobile-cta-bar .cta-secondary { background: var(--color-bg); color: var(--color-dark); }

body.has-mobile-cta { padding-bottom: 4.5rem; }
@media (min-width: 768px) { body.has-mobile-cta { padding-bottom: 0; } }

/* Swiper */
.swiper-pagination-bullet { background: #fff; opacity: 0.5; }
.swiper-pagination-bullet-active { background: var(--color-primary); opacity: 1; }

.hover-zoom { overflow: hidden; }
.hover-zoom img { transition: transform 0.6s ease; }
.hover-zoom:hover img { transform: scale(1.05); }

.product-desc summary { cursor: pointer; color: var(--color-primary-dark); list-style: none; }
.product-desc summary::-webkit-details-marker { display: none; }
