/**
 * ====================================================================
 * CHOU SPA SANCTUARY & HOME - UNIFIED CORE STYLESHEET (style.css)
 * ====================================================================
 * Design Philosophy: Serene Botanical Luxury (5-Star Eastern Wellness)
 * Typography: Unified Google Font "Inter" (Variable Optical Sizing 14-32)
 * Primary Palette: Imperial Emerald (#153E32), Antique Gold (#C5A059), Cream (#FAF7F2)
 * ====================================================================
 */

/* --------------------------------------------------------------------
 * 1. DESIGN TOKENS & CSS VARIABLES
 * -------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --chou-primary: #153E32;
  --chou-primary-light: #235D4B;
  --chou-primary-dark: #0D2720;
  
  --chou-gold: #C5A059;
  --chou-gold-light: #E8D4A2;
  --chou-gold-dark: #99732B;
  
  --chou-cream: #FAF7F2;
  --chou-surface: #F4EFE6;
  --chou-charcoal: #1B1C1A;
  --chou-muted: #707973;
  --chou-border: #E8DFC8;
  
  /* Typography */
  --font-family-base: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------
 * 2. CSS RESET & BOX MODEL
 * -------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--chou-cream);
  color: var(--chou-charcoal);
  font-family: var(--font-family-base);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  min-width: 320px;
}

/* --------------------------------------------------------------------
 * 3. TYPOGRAPHY - UNIFIED INTER FONT SYSTEM
 * -------------------------------------------------------------------- */
html,
body,
input,
button,
select,
textarea,
optgroup,
p,
span,
a,
li,
td,
th {
  font-family: var(--font-family-base);
}

h1, .h1 {
  font-family: var(--font-family-base);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h2, .h2 {
  font-family: var(--font-family-base);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h3, .h3 {
  font-family: var(--font-family-base);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

h4, .h4,
h5, .h5,
h6, .h6 {
  font-family: var(--font-family-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* --------------------------------------------------------------------
 * 4. MATERIAL SYMBOLS ICON PROTECTION (Zero-Conflict Rule)
 * -------------------------------------------------------------------- */
.material-symbols-outlined,
.material-icons,
[class*="material-symbols"] {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Filled icon variation when needed */
.material-symbols-outlined.fill-1,
.material-symbols-outlined[data-fill="1"] {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --------------------------------------------------------------------
 * 5. BRAND GRADIENTS & DECORATIVE UTILITIES
 * -------------------------------------------------------------------- */
/* Chou Spa Signature Gold Gradient Text */
.gold-gradient-text {
  background: linear-gradient(135deg, #DFBE74 0%, #C5A059 50%, #9E7428 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Gold Gradient Border */
.gold-border-gradient {
  border-image: linear-gradient(to right, #C5A059, #F5E6BE, #C5A059) 1;
}

/* Luxury Card Shadow */
.shadow-luxury {
  box-shadow: 0 20px 45px -15px rgba(21, 62, 50, 0.08), 0 0 1px 1px rgba(197, 160, 89, 0.15);
}

.shadow-luxury-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shadow-luxury-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -12px rgba(21, 62, 50, 0.16), 0 0 2px 1px rgba(197, 160, 89, 0.25);
}

/* --------------------------------------------------------------------
 * 6. MEDIA & EMBEDDED ELEMENTS
 * -------------------------------------------------------------------- */
img,
video,
canvas,
audio,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  vertical-align: middle;
  flex-shrink: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --------------------------------------------------------------------
 * 7. FORM ELEMENTS & INTERACTION STATES
 * -------------------------------------------------------------------- */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="time"],
select,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Remove default number spinner arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* --------------------------------------------------------------------
 * 8. ANIMATIONS & MICRO-INTERACTIONS
 * -------------------------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.animate-pulse-slow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* --------------------------------------------------------------------
 * 9. CUSTOM LUXURY SCROLLBAR & SELECTION
 * -------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #99732B;
}

/* Hide scrollbar for horizontal mobile swipe carousels */
.scrollbar-none::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.scrollbar-none,
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

::selection {
  background-color: var(--chou-gold);
  color: #ffffff;
}

::-moz-selection {
  background-color: var(--chou-gold);
  color: #ffffff;
}

/* --------------------------------------------------------------------
 * 10. ACCESSIBILITY & PRINT STYLES
 * -------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--chou-gold);
  outline-offset: 2px;
}

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  header,
  footer,
  aside,
  #mobile-menu,
  .no-print {
    display: none !important;
  }
}
