/* ==========================================================================
   WAXD WEBSITE 2 — LUXURY DESIGN SYSTEM
   Boutique Spa Aesthetic with Dark/Light Modes, Glassmorphism, & Micro-interactions
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..800;1,400..800&family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* --- Theme Variables --- */
:root {
  --bg-primary: #faf6f2;
  --bg-secondary: #f4ede6;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(250, 246, 242, 0.75);
  --bg-dark-accent: #181514;
  --bg-dark-surface: #241e1c;
  
  --text-main: #2c2625;
  --text-muted: #6b625f;
  --text-light: #9c918c;
  --text-inverse: #faf6f2;

  --brand-pink: #e49cb7;
  --brand-rose: #c26d8e;
  --brand-deep: #8c3f62;
  --brand-gold: #d4af37;
  --brand-soft-pink: #fceef3;

  --border-light: rgba(228, 156, 183, 0.25);
  --border-subtle: rgba(44, 38, 37, 0.08);
  --border-focus: rgba(194, 109, 142, 0.5);

  --shadow-sm: 0 2px 8px rgba(24, 21, 20, 0.04);
  --shadow-md: 0 8px 24px -6px rgba(24, 21, 20, 0.08), 0 2px 6px -2px rgba(194, 109, 142, 0.12);
  --shadow-lg: 0 20px 40px -12px rgba(24, 21, 20, 0.14), 0 4px 12px -4px rgba(194, 109, 142, 0.2);
  --shadow-glow: 0 0 25px rgba(228, 156, 183, 0.4);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-main: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Dark Theme Overrides --- */
[data-theme="dark"] {
  --bg-primary: #141110;
  --bg-secondary: #1d1817;
  --bg-card: rgba(32, 26, 25, 0.85);
  --bg-card-hover: rgba(42, 34, 33, 0.95);
  --bg-glass: rgba(20, 17, 16, 0.85);
  --bg-dark-accent: #0b0909;
  --bg-dark-surface: #181413;

  --text-main: #f3eeea;
  --text-muted: #b8acb1;
  --text-light: #857a7d;
  --text-inverse: #141110;

  --brand-pink: #f0b6cb;
  --brand-rose: #d687a3;
  --brand-soft-pink: rgba(240, 182, 203, 0.12);

  --border-light: rgba(240, 182, 203, 0.2);
  --border-subtle: rgba(243, 238, 234, 0.08);

  --shadow-md: 0 8px 24px -6px rgba(0, 0, 0, 0.4), 0 2px 6px -2px rgba(240, 182, 203, 0.15);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.6), 0 4px 12px -4px rgba(240, 182, 203, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-main), color var(--transition-main);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-spacing {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section-spacing {
    padding: 7rem 0;
  }
}

/* --- Typography Helpers --- */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

.heading-xl {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.heading-lg {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw + 1rem, 3.2rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.heading-md {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw + 0.8rem, 2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main);
}

.subheading-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-rose);
  margin-bottom: 0.75rem;
}

.subheading-tag::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  background-color: var(--brand-rose);
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-rose) 0%, var(--brand-pink) 50%, var(--brand-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-main);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform var(--transition-fast);
}

.brand-logo:hover {
  transform: scale(1.02);
}

.brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

@media (min-width: 900px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-rose), var(--brand-pink));
  border-radius: 2px;
  transition: width var(--transition-main);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Switch */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
  transform: rotate(15deg) scale(1.05);
  border-color: var(--brand-rose);
  color: var(--brand-rose);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

@media (min-width: 900px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 99;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-main), opacity var(--transition-main), visibility var(--transition-main);
}

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

.mobile-drawer .nav-link {
  font-size: 1.25rem;
  font-weight: 600;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-main);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-rose) 0%, #b35678 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(194, 109, 142, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(194, 109, 142, 0.5);
  background: linear-gradient(135deg, #cc7898 0%, var(--brand-rose) 100%);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--brand-rose);
  color: var(--brand-rose);
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background: var(--bg-dark-accent);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-dark:hover {
  background: var(--bg-dark-surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
}

/* --- Cards & Glassmorphism --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-main), box-shadow var(--transition-main), border-color var(--transition-main);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(228, 156, 183, 0.5);
}

.card-solid {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  padding: 4rem 0 6rem 0;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(228, 156, 183, 0.25) 0%, rgba(250, 246, 242, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-2 {
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(250, 246, 242, 0) 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-badge-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--brand-soft-pink);
  color: var(--brand-rose);
  border: 1px solid var(--border-light);
}

.badge-gold {
  background: rgba(212, 175, 55, 0.12);
  color: #b89118;
  border-color: rgba(212, 175, 55, 0.3);
}

[data-theme="dark"] .badge-gold {
  color: #e5c358;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.25rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item svg {
  color: var(--brand-rose);
  flex-shrink: 0;
}

.hero-image-wrapper {
  position: relative;
  margin: 0 auto;
  max-width: 480px;
  width: 100%;
}

.hero-image-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-image-card:hover img {
  transform: scale(1.04);
}

.hero-floating-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 260px;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.badge-icon-star {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.15);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--brand-soft-pink);
  color: var(--brand-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon-box svg {
  width: 26px;
  height: 26px;
}

/* --- Interactive Price List & Package Builder --- */
.price-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (min-width: 992px) {
  .price-page-layout {
    grid-template-columns: 1fr 360px;
  }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--brand-rose);
  color: #ffffff;
  border-color: var(--brand-rose);
  box-shadow: 0 4px 12px rgba(194, 109, 142, 0.3);
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.search-box input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--brand-rose);
  box-shadow: 0 0 0 3px var(--border-focus);
}

.search-box svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  width: 18px;
  height: 18px;
}

/* Service Card Item */
.service-category-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 2.5rem 0 1.25rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-soft-pink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  position: relative;
}

.service-card:hover {
  border-color: var(--brand-rose);
  box-shadow: var(--shadow-md);
}

.service-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.service-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
}

.service-price {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-rose);
  white-space: nowrap;
}

.service-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.add-package-btn {
  width: 100%;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft-pink);
  color: var(--brand-rose);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.add-package-btn:hover {
  background: var(--brand-rose);
  color: #ffffff;
}

.add-package-btn.added {
  background: #2e7d32;
  color: #ffffff;
}

/* Package Builder Calculator Sidebar */
.calculator-sidebar {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  height: fit-content;
}

.calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.calc-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
  padding-right: 0.25rem;
}

.calc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.calc-item-remove {
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.calc-item-remove:hover {
  color: #e53935;
}

.calc-summary {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.calc-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-rose);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.6rem;
  margin-top: 0.6rem;
  margin-bottom: 0;
}

/* --- Skin Care & Interactive Hub --- */
.skin-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  transition: all var(--transition-main);
}

.tab-btn.active {
  background: var(--brand-rose);
  color: #ffffff;
  border-color: var(--brand-rose);
  box-shadow: 0 6px 20px rgba(194, 109, 142, 0.35);
}

.infographic-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 3rem;
  cursor: pointer;
}

.infographic-card img {
  width: 100%;
  height: auto;
  display: block;
}

.zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 21, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.infographic-card:hover .zoom-overlay {
  opacity: 1;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tip-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border-left: 4px solid var(--brand-rose);
}

.tip-card.dont {
  border-left-color: #e53935;
}

/* --- Interactive Multi-Photo Lightbox (Fit-to-Screen & Responsive Scaling) --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-main);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 1100px;
  width: 96vw;
  height: 92vh;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.lightbox-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 20;
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: var(--brand-rose);
  color: #ffffff;
}

/* Before & After Side-by-Side & Stacked Viewport Fit Grid */
.ba-comparison-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  min-height: 0; /* Prevents flex overflow */
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  touch-action: pan-y pinch-zoom;
}

/* Mobile Portrait Mode: One Above the Other, Both Scaled to Fit Screen */
@media (max-width: 639px) and (orientation: portrait), (max-aspect-ratio: 4/5) {
  .ba-comparison-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
  }
}

/* Mobile Landscape Mode & PC Desktop: Side-by-Side */
@media (orientation: landscape) and (min-width: 480px), (min-width: 640px) {
  .ba-comparison-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 1.25rem;
  }
}

.ba-image-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.4);
}

.ba-image-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ba-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  backdrop-filter: blur(8px);
  z-index: 5;
}

.ba-badge-before {
  background: rgba(229, 57, 53, 0.88);
}

.ba-badge-after {
  background: rgba(46, 125, 50, 0.88);
}

.ba-badge-other {
  background: rgba(194, 109, 142, 0.88);
}

/* Carousel Control Buttons (< and >) */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  user-select: none;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--brand-rose);
  color: #ffffff;
  border-color: var(--brand-rose);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  background: var(--brand-rose);
  transform: scale(1.3);
}



/* --- Footer --- */
.site-footer {
  background: var(--bg-dark-accent);
  color: #faf6f2;
  padding: 5rem 0 2rem 0;
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-brand p {
  color: #b8acb1;
  margin-top: 1rem;
  max-width: 320px;
  font-size: 0.925rem;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #b8acb1;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-pink);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #857a7d;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* --- Animations & Utilities --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Splash Screen Overlay --- */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

#splash.splash-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(8px);
}

.splash-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: min(80vw, 560px);
  padding: 2rem;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#splash.splash-in .splash-logo-container {
  opacity: 1;
  transform: scale(1);
}

.splash-logo-img {
  width: 100%;
  height: auto;
  max-height: 40vh;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(194, 109, 142, 0.25));
  animation: splashPulse 3s cubic-bezier(0.16, 1, 0.3, 1) infinite alternate;
}

@keyframes splashPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}

html.no-splash #splash {
  display: none !important;
}

