/* ==========================================================================
   KYOUNG SPA - LUXURY DESIGN SYSTEM & STYLESHEET (v4.1)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
  --primary-gold: #c99c42;
  --primary-gold-hover: #b08530;
  --gold-glow: rgba(201, 156, 66, 0.25);
  --rose-gold: #d89b88;
  --cream-bg: #fdfbf7;
  --card-bg: #ffffff;
  --dark-luxury: #1b1716;
  --dark-surface: #272221;
  --text-dark: #2d2624;
  --text-muted: #6e6461;
  --text-light: #f5f0eb;
  --border-light: rgba(201, 156, 66, 0.18);
  --shadow-sm: 0 4px 12px rgba(27, 23, 22, 0.05);
  --shadow-md: 0 10px 30px rgba(27, 23, 22, 0.08);
  --shadow-lg: 0 20px 40px rgba(27, 23, 22, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--cream-bg);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Utilities */
.text-center { text-align: center; }
.no-wrap { white-space: nowrap; }
.phone-no-wrap { white-space: nowrap; font-weight: 600; }

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-gold);
  background: rgba(201, 156, 66, 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
}

.section-title {
  font-size: 2.25rem;
  color: var(--dark-luxury);
  margin-bottom: 14px;
  line-height: 1.3;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto 40px auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-gold), #aa8030);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(201, 156, 66, 0.4);
  background: linear-gradient(135deg, #d8ab4d, #b08530);
}

.btn-outline {
  background: transparent;
  color: var(--dark-luxury);
  border: 2px solid var(--primary-gold);
}

.btn-outline:hover {
  background: var(--primary-gold);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Header & Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spa-logo-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-gold);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-luxury);
}

.logo-text span {
  color: var(--primary-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gold);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-luxury);
  cursor: pointer;
}

/* Section Spacing */
.section-padding {
  padding: 90px 0;
}

/* Section 1: Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 80% 20%, rgba(201, 156, 66, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(216, 155, 136, 0.1) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.25;
  color: var(--dark-luxury);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-features {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.hero-feature-item i {
  color: var(--primary-gold);
  font-size: 1.15rem;
}

.hero-image-wrapper {
  position: relative;
}

.hero-img-main {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-badge-float {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--card-bg);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-light);
}

.hero-badge-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-glow);
  color: var(--primary-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.hero-badge-text p {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-luxury);
}

.hero-badge-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Section 2: About Us */
.about {
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-img-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.about-img-grid img:nth-child(2) {
  margin-top: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.stat-card {
  background: var(--cream-bg);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-light);
}

.stat-card h3 {
  font-size: 2rem;
  color: var(--primary-gold);
  margin-bottom: 4px;
}

.stat-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Section 3: Services (10 Images per service) */
.services {
  background: var(--cream-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.service-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.35rem;
  color: var(--dark-luxury);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* 10 Gallery Thumbnails Styling */
.service-gallery-header {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.gallery-thumb {
  width: 100%;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  background: #f0f0f0;
}

.gallery-thumb:hover {
  border-color: var(--primary-gold);
  transform: scale(1.08);
  box-shadow: var(--shadow-sm);
}

.service-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: flex-end;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  border: 2px solid var(--primary-gold);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--primary-gold);
}

.lightbox-caption {
  margin-top: 16px;
  color: #ffffff;
  font-size: 1.05rem;
  text-align: center;
}

/* Section 4: Before / After Slider */
.before-after {
  background: #ffffff;
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.ba-card {
  background: var(--cream-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.ba-card h3 {
  font-size: 1.2rem;
  color: var(--dark-luxury);
  margin-bottom: 8px;
}

.ba-service-tag {
  font-size: 0.8rem;
  color: var(--primary-gold);
  font-weight: 600;
  margin-bottom: 16px;
  display: inline-block;
}

/* Interactive Slider Element */
.ba-slider-container {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  user-select: none;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-img-after {
  z-index: 1;
}

.ba-img-before-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid #ffffff;
}

.ba-img-before-wrapper .ba-img {
  width: 100%;
  max-width: none;
  height: 100%;
}

.ba-badge {
  position: absolute;
  top: 12px;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  z-index: 4;
}

.ba-badge-before { left: 12px; }
.ba-badge-after { right: 12px; }

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #ffffff;
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.ba-slider-handle::after {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: var(--primary-gold);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.ba-comment-box {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-gold);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.ba-customer-name {
  font-style: normal;
  font-weight: 600;
  color: var(--dark-luxury);
  margin-top: 6px;
  display: block;
}

/* Section 5: Contact & Footer */
.contact {
  background: var(--dark-luxury);
  color: var(--text-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  color: #ffffff;
}

.contact-list {
  margin-top: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(201, 156, 66, 0.15);
  color: var(--primary-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.map-container {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.footer {
  background: #110e0d;
  padding: 24px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Floating Quick Action Buttons */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: relative;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn-zalo { background: #0068ff; }
.float-btn-messenger { background: #0084ff; }
.float-btn-call { background: #25d366; }

/* Admin Floating Toolbar */
.admin-toolbar {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: flex;
  gap: 10px;
}

.btn-admin-floating {
  background: var(--dark-luxury);
  color: var(--primary-gold);
  border: 1px solid var(--primary-gold);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-admin-floating:hover {
  background: var(--primary-gold);
  color: #ffffff;
}

.btn-admin-save {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

/* ADMIN EDITABLE INDICATORS */
.admin-editable-text {
  outline: 1.5px dashed var(--primary-gold) !important;
  padding: 2px 4px;
  border-radius: 4px;
}

.admin-editable-img {
  outline: 3px dashed var(--primary-gold) !important;
  cursor: grab !important;
  user-select: none !important;
}

.admin-editable-img.dragging {
  cursor: grabbing !important;
  outline-color: #10b981 !important;
}

/* ADMIN FLOATING IMAGE OVERLAY CONTROL BAR */
.admin-img-control-bar {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(27, 23, 22, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--primary-gold);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.admin-img-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: none;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  white-space: nowrap;
}

.admin-img-btn:hover {
  background: var(--primary-gold);
  color: #ffffff;
}

.admin-img-btn.active {
  background: var(--primary-gold);
  color: #ffffff;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    text-align: center;
  }
  .hero-features {
    justify-content: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--cream-bg);
    flex-direction: column;
    padding: 40px;
    transition: var(--transition);
  }
  .nav-links.active {
    left: 0;
  }
  .menu-toggle {
    display: block;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .service-gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
