/* Asian Essence Spa - Common Styles */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

/* OPPO Sans Font (for Chinese text) */
@font-face {
  font-family: 'OPPOSans';
  src: url('../fonts/OPPOSans-L.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'OPPOSans';
  src: url('../fonts/OPPOSans-R.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'OPPOSans';
  src: url('../fonts/OPPOSans-M.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'OPPOSans';
  src: url('../fonts/OPPOSans-B.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.font-oppo,
.font-oppo * {
  font-family: 'OPPOSans', 'Noto Sans SC', sans-serif !important;
}

/* Playfair Display replaces NewYork */
.font-newyork {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* All serif fonts use Playfair Display with default weight */
.font-serif {
  font-family: 'Playfair Display', serif !important;
  font-weight: 400 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Glass effect for hero sections */
.glass-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Fixed background with video */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.video-bg .bg-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-bg video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: filter 0.5s ease;
}

.video-bg.blurred video {
  filter: blur(15px);
  transform: scale(1.1);
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(25, 55, 30, 0.3);
  transition: background 0.5s ease;
}

.video-bg.blurred .video-overlay {
  background: transparent;
}

/* Forest color utilities */
.text-forest {
  color: #E5DCBC !important;
}

.bg-forest {
  background-color: #E5DCBC !important;
}

/* Sand background section */
.sand-section {
  background: #C4B99A;
}

/* Card styles */
.location-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.location-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.location-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.location-card:hover::before {
  opacity: 1;
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  overflow: hidden;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.service-card img {
  transition: transform 0.5s ease;
}

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

/* Feature card */
.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Service item */
.service-item {
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
}

.service-item:hover {
  box-shadow: none;
}

.service-item img {
  transition: transform 0.5s ease;
}

.service-item:hover img {
  transform: scale(1.1);
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hero-text {
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-logo {
  animation: fadeInUp 1s ease 0.4s forwards, float 3s ease-in-out 1.4s infinite;
  opacity: 0;
}

.hero-divider {
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

.hero-tagline {
  animation: fadeInUp 1s ease 0.8s forwards;
  opacity: 0;
}

.hero-btn {
  animation: fadeInUp 1s ease 1s forwards;
  opacity: 0;
}

/* Button hover effect */
.btn-animate {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-animate::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-animate:hover::before {
  left: 100%;
}

.btn-animate:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(221, 202, 157, 0.5);
}

/* Parallax effect */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Glow effect */
.glow {
  transition: text-shadow 0.3s ease;
}

.glow:hover {
  text-shadow: 0 0 20px rgba(221, 202, 157, 0.8);
}

/* Carousel dots */
.carousel-dot {
  transition: background-color 0.3s ease;
}

/* Mobile Navigation - Light Theme */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Close button */
.mobile-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.6);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.mobile-close-btn:hover {
  color: rgba(0, 0, 0, 1);
}

.mobile-close-btn svg {
  width: 24px;
  height: 24px;
}

/* Menu inner container */
.mobile-menu-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 2rem;
  overflow-y: auto;
}

/* Location selector */
.mobile-locations {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.mobile-menu-overlay.active .mobile-locations {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile logo above locations */
.mobile-menu-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.mobile-menu-logo img {
  height: 64px;
  width: auto;
}

.mobile-menu-logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.8);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

.mobile-loc-btns {
  display: flex;
  gap: 0.75rem;
}

.mobile-loc-btn {
  padding: 0.65rem 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 100px;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.03);
}

.mobile-loc-btn:hover,
.mobile-loc-btn.current {
  border-color: #DA541A;
  color: #DA541A;
  background: rgba(218, 84, 26, 0.05);
  box-shadow: 0 0 20px rgba(218, 84, 26, 0.1);
}

/* Main nav */
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 400px;
}

.mobile-menu-link {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  padding: 0.75rem 0;
  transition: color 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.mobile-menu-overlay.active .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-menu-link:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-menu-link:nth-child(3) { transition-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-menu-link:nth-child(4) { transition-delay: 0.35s; }
.mobile-menu-overlay.active .mobile-menu-link:nth-child(5) { transition-delay: 0.45s; }
.mobile-menu-overlay.active .mobile-menu-link:nth-child(6) { transition-delay: 0.55s; }

.mobile-menu-link:hover {
  color: rgba(0, 0, 0, 1);
}

/* Quick Menu Overlay */
.quick-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.quick-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.quick-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.quick-menu-close:hover {
  color: #DA541A;
}

.quick-menu-close svg {
  width: 24px;
  height: 24px;
}

.quick-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

.quick-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.quick-menu-link {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
  opacity: 0;
  transform: translateY(15px);
}

.quick-menu-overlay.active .quick-menu-link {
  opacity: 1;
  transform: translateY(0);
}

.quick-menu-overlay.active .quick-menu-link:nth-child(1) { transition-delay: 0.1s; }
.quick-menu-overlay.active .quick-menu-link:nth-child(2) { transition-delay: 0.2s; }
.quick-menu-overlay.active .quick-menu-link:nth-child(3) { transition-delay: 0.3s; }
.quick-menu-overlay.active .quick-menu-link:nth-child(4) { transition-delay: 0.4s; }
.quick-menu-overlay.active .quick-menu-link:nth-child(5) { transition-delay: 0.5s; }

.quick-menu-link:hover {
  color: #DA541A;
}

.quick-menu-btn {
  margin-top: 1rem;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.8);
  text-decoration: none;
  padding: 0.75rem 2.5rem;
  border-radius: 100px;
  background: #DA541A;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(15px);
}

.quick-menu-overlay.active .quick-menu-btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.quick-menu-btn:hover {
  background: #DDCA9D;
  color: #000;
}

/* Expandable SERVICE */
.mobile-menu-expandable {
  width: 100%;
  text-align: center;
}

.mobile-menu-expand-btn {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.6);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.mobile-menu-overlay.active .mobile-menu-expand-btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.mobile-menu-expand-btn:hover {
  color: rgba(0, 0, 0, 1);
}

.mobile-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.mobile-menu-expand-btn.open .mobile-chevron {
  transform: rotate(180deg);
}

/* Submenu */
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-submenu.open {
  max-height: 600px;
}

.mobile-submenu a {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.mobile-submenu a:hover {
  color: #DA541A;
}

/* Hamburger button */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: transform 0.3s ease;
}

.hamburger-btn:active {
  transform: scale(0.9);
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn span:nth-child(2) {
  width: 16px;
  opacity: 0.7;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #E8F4EA;
}

::-webkit-scrollbar-thumb {
  background: #C4B99A;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #E5DCBC;
}

/* Language Switcher - Elegant Dropdown */
.lang-switcher {
  position: relative;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 400;
  padding: 0.35rem 0.75rem;
  min-width: 120px;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lang-trigger:hover,
.lang-trigger.open {
  color: #DDCA9D;
  border-color: rgba(221, 202, 157, 0.5);
  background: rgba(221, 202, 157, 0.08);
}

.lang-trigger-icon {
  display: flex;
  align-items: center;
}

.lang-trigger-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.lang-trigger-caret {
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.lang-trigger-caret svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.lang-trigger.open .lang-trigger-caret {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 9999;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.lang-option.active {
  color: #DDCA9D;
  background: rgba(221, 202, 157, 0.1);
}

.lang-option-flag {
  font-size: 1rem;
  margin-right: 8px;
}

.lang-option-label {
  flex: 1;
}

.lang-option-check {
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
}

.lang-option.active .lang-option-check {
  opacity: 1;
}

.lang-option-check svg {
  width: 14px;
  height: 14px;
  stroke: #DDCA9D;
  fill: none;
  stroke-width: 2;
}

/* Mobile language switcher */
.mobile-lang-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.mobile-lang-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
  font-weight: 400;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mobile-lang-btn:first-child {
  border-radius: 100px 0 0 100px;
}

.mobile-lang-btn:last-child {
  border-radius: 0 100px 100px 0;
}

.mobile-lang-btn:not(:first-child) {
  border-left: none;
}

.mobile-lang-btn:hover {
  color: rgba(255, 255, 255, 0.7);
}

.mobile-lang-btn.active {
  color: #000;
  background: #DDCA9D;
  border-color: #DDCA9D;
  font-weight: 500;
}

/* Body Massage image 3:4 on mobile only */
@media (max-width: 767px) {
  .body-massage-img {
    aspect-ratio: 3/4;
  }
}

/* About page mobile layout: text above image with vertical gradient */
@media (max-width: 767px) {
  .about-img-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 320px;
  }
  .about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
  }
  .about-gradient-top {
    position: absolute;
    inset: 0;
  }
}

/* Prevent Book Now button text from wrapping on mobile */
.services-page a {
  white-space: nowrap;
}

/* Home banner background */
.home-banner {
  background-image: url('https://mase-beimei-1253567392.cos.na-siliconvalley.myqcloud.com/webo/flyImage/warmtone/warmtong_home_banner_bg.jpg');
  background-size: cover;
  background-position: center;
}

@media (max-width: 767px) {
  .home-banner {
    background-image: url('https://mase-beimei-1253567392.cos.na-siliconvalley.myqcloud.com/webo/flyImage/warmtone/warmtong_home_banner_bg2.jpg');
    background-position: center bottom;
    min-height: 650px;
  }
}