/* ==========================================================================
   LUXCHAM HAUTE JOAILLERIE — MASTER DESIGN SYSTEM
   Radiant Ivory Alabaster & Imperial Warm Gold Luxury Theme System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* ==========================================================================
   THEME PALETTES: LIGHT LUXE (DEFAULT) & ROYAL OBSIDIAN
   ========================================================================== */
:root,
html[data-theme="light"] {
  /* Atelier Radiant Alabaster & Ivory Pearl Canvas */
  --bg-primary: #FAF7F2;
  --bg-secondary: #F4EFE6;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FBF9F5;
  --bg-glass: rgba(250, 247, 242, 0.94);

  /* Imperial Warm Gold Accents */
  --gold-primary: #9E7422;
  --gold-light: #B88B2A;
  --gold-dark: #6E4F10;
  --gold-champagne: #875F15;
  --gold-gradient: linear-gradient(135deg, #9C711D 0%, #C6983A 50%, #7E560B 100%);
  --gold-gradient-dark: linear-gradient(135deg, #B88B2A 0%, #6E4F10 100%);
  --gold-glow: rgba(158, 116, 34, 0.22);
  --gold-glow-subtle: rgba(158, 116, 34, 0.08);

  /* Typography Colors — High Contrast Noble Editorial */
  --text-primary: #12100E;
  --text-secondary: #463E32;
  --text-muted: #746959;
  --text-dim: #A89D8B;
  --text-inverse: #FFFFFF;

  /* Hairline Borders */
  --border-hairline: rgba(158, 116, 34, 0.22);
  --border-gold: rgba(158, 116, 34, 0.48);
  --border-subtle: rgba(70, 50, 20, 0.08);

  /* Luxury Shadows */
  --shadow-card: 0 4px 20px rgba(70, 55, 25, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-gold: 0 6px 24px rgba(158, 116, 34, 0.22);
  --shadow-dropdown: 0 20px 50px rgba(50, 40, 20, 0.12);

  /* Theme Switcher Metadata */
  --theme-switch-bg: rgba(158, 116, 34, 0.10);
  --theme-switch-border: rgba(158, 116, 34, 0.35);
  --card-hover-elevate: translateY(-4px);

  /* Typography Families */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Structural Dimensions */
  --container-max: 1320px;
  /* Mobile UX Spacing Tokens */
  --section-pad-desktop: 70px;
  --section-header-mb-desktop: 48px;
  --section-pad-mobile: 34px;
  --section-header-mb-mobile: 20px;
  --grid-gap-mobile: 10px;
  --header-height: 78px;
  --announcement-height: 38px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Haute Dark Royal Obsidian Mode */
html[data-theme="dark"] {
  /* Atelier Royal Obsidian Canvas */
  --bg-primary: #080705;
  --bg-secondary: #0F0E0C;
  --bg-surface: #171512;
  --bg-surface-elevated: #211E1A;
  --bg-glass: rgba(15, 14, 12, 0.88);

  /* Imperial Warm Gold Accents */
  --gold-primary: #C9A84C;
  --gold-light: #E5C365;
  --gold-dark: #9E7D2E;
  --gold-champagne: #F5E6C8;
  --gold-gradient: linear-gradient(135deg, #FAF8F5 0%, #E5C365 45%, #C9A84C 100%);
  --gold-gradient-dark: linear-gradient(135deg, #C9A84C 0%, #9E7D2E 100%);
  --gold-glow: rgba(201, 168, 76, 0.25);
  --gold-glow-subtle: rgba(201, 168, 76, 0.08);

  /* Typography Colors */
  --text-primary: #FAF8F5;
  --text-secondary: #C8BFB0;
  --text-muted: #857D70;
  --text-dim: #5E574D;
  --text-inverse: #080705;

  /* Hairline Borders */
  --border-hairline: rgba(201, 168, 76, 0.16);
  --border-gold: rgba(201, 168, 76, 0.45);
  --border-subtle: rgba(255, 255, 255, 0.06);

  /* Luxury Shadows */
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 4px 24px rgba(201, 168, 76, 0.35);
  --shadow-dropdown: 0 18px 48px rgba(0, 0, 0, 0.85);

  --theme-switch-bg: rgba(255, 255, 255, 0.08);
  --theme-switch-border: rgba(201, 168, 76, 0.35);
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
  position: relative;
  min-height: 100vh;
}

button,
a,
input,
select {
  touch-action: manipulation;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
}

h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

h4 {
  font-size: 1.4rem;
}

h5 {
  font-size: 1.15rem;
}

h6 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Core Container Utilities */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  box-sizing: border-box;
}

.container-fluid {
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Section Wrapper */
.lux-section {
  padding-top: var(--section-pad-desktop, 70px);
  padding-bottom: var(--section-pad-desktop, 70px);
  position: relative;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.lux-section--dark {
  background-color: var(--bg-primary);
}

.lux-section--surface {
  background-color: var(--bg-secondary);
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto var(--section-header-mb-desktop, 48px);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-title em,
h1 em,
h2 em,
h3 em {
  font-style: italic;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(158, 116, 34, 0.12);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-medium);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient-dark);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(158, 116, 34, 0.45);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
}

.btn-secondary:hover {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #FFFFFF;
}

.btn-outline-white {
  background: transparent;
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
}

.btn-outline-white:hover {
  border-color: var(--gold-primary);
  background: rgba(142, 104, 21, 0.08);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

/* Pill Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: var(--border-radius-full);
}

.badge-gold {
  background: rgba(142, 104, 21, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  font-weight: 700;
}

.badge-dark {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
}

/* Ambient Radial Glow Background */
.ambient-glow {
  position: relative;
  overflow: hidden !important;
  max-width: 100%;
}

.ambient-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100%);
  height: 500px;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.14) 0%, rgba(201, 168, 76, 0.02) 60%, transparent 80%);
  pointer-events: none;
  z-index: 0;
  max-width: 100%;
}

html[data-theme="light"] .ambient-glow::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(142, 104, 21, 0.09) 0%, rgba(142, 104, 21, 0.01) 60%, transparent 80%);
}

/* Animations */
@keyframes shimmer {
  0% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.6));
  }

  100% {
    opacity: 0.8;
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.2);
  }

  50% {
    box-shadow: 0 0 25px rgba(201, 168, 76, 0.5);
  }
}

@keyframes goldSheenSweep {
  0% {
    transform: translateX(-100%) rotate(25deg);
  }

  100% {
    transform: translateX(250%) rotate(25deg);
  }
}

@keyframes toastSlideUp {
  0% {
    transform: translateY(40px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes sparkleTwinkle {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1.15) rotate(15deg);
  }
}

/* Luxury Interactive Badges & Estimation Indicators */
.price-est-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(166, 128, 38, 0.12);
  border: 1px solid var(--border-hairline);
  border-radius: var(--border-radius-full);
  font-size: 0.70rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-primary);
  font-weight: 600;
  vertical-align: middle;
}

.price-est-label {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 4px;
}

/* Luxury Theme Switcher Button */
.lux-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--border-radius-full);
  background: var(--theme-switch-bg);
  border: 1px solid var(--theme-switch-border);
  color: var(--text-primary);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lux-theme-toggle:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-glow);
  transform: translateY(-1px);
}

/* Real-Time Price & Weight Transparency Breakdown Accordion */
.valuation-breakdown-card {
  margin-top: 14px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface-elevated);
  border-radius: var(--border-radius-md);
  padding: 14px 16px;
  transition: all var(--transition-fast);
}

.valuation-breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-primary);
}

.valuation-breakdown-table {
  width: 100%;
  margin-top: 12px;
  font-size: 0.80rem;
  border-collapse: collapse;
}

.valuation-breakdown-table td {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-subtle);
  color: var(--text-secondary);
}

.valuation-breakdown-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--text-primary);
}

/* Floating Live Atelier Activity Toast */
.atelier-live-toast {
  position: fixed;
  bottom: 84px;
  left: 20px;
  z-index: 850;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-dropdown);
  border-radius: var(--border-radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-primary);
  max-width: 320px;
  animation: toastSlideUp 0.4s ease-out;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .atelier-live-toast {
    display: none !important;
  }
}

.atelier-live-toast__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  flex-shrink: 0;
}

/* Swatch Filters for Metal Tones */
.tone-sheen-yellow {
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.35));
}

.tone-sheen-white {
  filter: contrast(1.08) brightness(1.04) drop-shadow(0 0 10px rgba(220, 225, 230, 0.45));
}

.tone-sheen-rose {
  filter: sepia(0.2) hue-rotate(-25deg) saturate(1.15) drop-shadow(0 0 10px rgba(225, 140, 115, 0.35));
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-hairline);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}
/* ── Mobile UX Section & Typography Standards (<=768px) ── */
@media (max-width: 768px) {
  .lux-section {
    padding-top: var(--section-pad-mobile, 34px) !important;
    padding-bottom: var(--section-pad-mobile, 34px) !important;
  }
  .section-header {
    margin-bottom: var(--section-header-mb-mobile, 20px) !important;
  }
  .section-title {
    font-size: clamp(1.85rem, 6.2vw, 2.3rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
  }
  .section-desc {
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
  }
}
