/* ===================================================================
   NEW SOFA CENTRE — LUXURY DESIGN SYSTEM & THEME TOKENS
   Metallic Gold + Obsidian Black + Warm Ivory
   =================================================================== */

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

:root {
  /* Brand Core Palette */
  --gold-primary: #D4AF37;
  --gold-light: #F4E295;
  --gold-dark: #A37F14;
  --gold-sheen: #FFF4D0;
  --gold-gradient: linear-gradient(135deg, #F8E5A1 0%, #D4AF37 45%, #9E7A16 100%);
  --gold-gradient-hover: linear-gradient(135deg, #FFF0B8 0%, #E5BE42 45%, #B38B1C 100%);
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.22);
  --gold-glow-lg: 0 0 45px rgba(212, 175, 55, 0.38);

  /* Fonts */
  --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* WhatsApp Brand */
  --whatsapp: #25D366;
  --whatsapp-hover: #20BA59;
  --whatsapp-dark: #128C7E;

  /* Status Colors */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ===================================================
   DARK THEME (Default / Luxury Showroom Experience)
   =================================================== */
[data-theme="dark"], :root {
  --bg-primary: #0A0A0C;
  --bg-secondary: #121216;
  --bg-tertiary: #1A1A22;
  --surface: #15151B;
  --surface-hover: #1E1E28;
  --surface-glass: rgba(18, 18, 24, 0.78);
  --surface-glass-heavy: rgba(12, 12, 16, 0.92);

  --text-primary: #FAF9F6;
  --text-secondary: #CBD5E1;
  --text-muted: #8E9BAE;
  --text-inverse: #0A0A0C;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-primary: rgba(212, 175, 55, 0.26);
  --border-gold-strong: rgba(212, 175, 55, 0.6);
  --border-glow: 0 0 15px rgba(212, 175, 55, 0.18);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);

  --badge-bg: rgba(212, 175, 55, 0.12);
  --badge-border: rgba(212, 175, 55, 0.3);
  --badge-color: #F4E295;

  --header-bg: rgba(10, 10, 12, 0.88);
  --modal-overlay: rgba(0, 0, 0, 0.82);
}

/* ===================================================
   LIGHT THEME (Warm Ivory & Champagne Elegance)
   =================================================== */
[data-theme="light"] {
  --bg-primary: #FBF9F4;
  --bg-secondary: #F3EFE6;
  --bg-tertiary: #E8E2D4;
  --surface: #FFFFFF;
  --surface-hover: #F8F6F0;
  --surface-glass: rgba(255, 255, 255, 0.82);
  --surface-glass-heavy: rgba(255, 255, 255, 0.94);

  --text-primary: #121216;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-inverse: #FAF9F6;

  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-primary: rgba(184, 134, 11, 0.28);
  --border-gold-strong: rgba(184, 134, 11, 0.65);
  --border-glow: 0 0 15px rgba(184, 134, 11, 0.12);

  --shadow-sm: 0 2px 6px rgba(140, 110, 30, 0.06);
  --shadow-md: 0 8px 20px rgba(140, 110, 30, 0.1);
  --shadow-lg: 0 16px 36px rgba(140, 110, 30, 0.14);
  --shadow-card: 0 12px 30px -8px rgba(140, 110, 30, 0.12);

  --badge-bg: rgba(212, 175, 55, 0.14);
  --badge-border: rgba(184, 134, 11, 0.35);
  --badge-color: #8D6B0F;

  --header-bg: rgba(251, 249, 244, 0.9);
  --modal-overlay: rgba(15, 23, 42, 0.6);
}

/* ===================================================
   BASE HTML & RESET
   =================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-light);
}

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

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

/* ===================================================
   GOLD METALLIC ACCENT UTILITIES
   =================================================== */
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.gold-glow {
  box-shadow: var(--gold-glow);
}

.gold-border {
  border: 1px solid var(--border-primary);
}

.gold-divider {
  width: 70px;
  height: 3px;
  background: var(--gold-gradient);
  margin: 1.2rem auto;
  border-radius: var(--radius-full);
}

.gold-divider-left {
  margin-left: 0;
}

/* ===================================================
   GLASSMORPHISM & CARDS
   =================================================== */
.glass-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.card-luxury {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  overflow: hidden;
  position: relative;
}

.card-luxury:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), var(--gold-glow);
  border-color: var(--border-gold-strong);
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition-normal);
  line-height: 1;
  white-space: nowrap;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
}

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

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Gold Primary CTA */
.btn-gold {
  background: var(--gold-gradient);
  color: #0A0A0C !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
  background: var(--gold-gradient-hover);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.55);
  transform: translateY(-2px);
  color: #000000 !important;
}

/* Gold Outline */
.btn-outline-gold {
  background: transparent;
  color: var(--gold-primary) !important;
  border: 1.5px solid var(--gold-primary);
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-light);
  color: var(--gold-light) !important;
  box-shadow: var(--gold-glow);
  transform: translateY(-2px);
}

/* WhatsApp CTA */
.btn-whatsapp {
  background: var(--whatsapp);
  color: #FFFFFF !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
  color: #FFFFFF !important;
}

/* Secondary & Dark Buttons */
.btn-secondary {
  background: var(--surface-hover);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-primary);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--danger);
  color: #FFFFFF !important;
}

.btn-danger:hover {
  background: #DC2626;
}

/* ===================================================
   BADGES & TAGS
   =================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  border-radius: var(--radius-full);
}

.badge-gold {
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-color);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FBBF24;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
}

/* ===================================================
   FORMS & INPUTS
   =================================================== */
.form-group {
  margin-bottom: 1.3rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.form-control, .form-select {
  width: 100%;
  padding: 0.8rem 1.1rem;
  background: var(--surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}

.form-control:focus, .form-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
  background: var(--surface-hover);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* ===================================================
   MODALS & OVERLAYS
   =================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border-gold-strong);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), var(--gold-glow);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-normal);
  padding: 2.2rem;
}

.modal-backdrop.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--surface-hover);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
  border-color: var(--gold-primary);
  transform: rotate(90deg);
}

/* ===================================================
   TOAST NOTIFICATION ENGINE
   =================================================== */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 300px;
  max-width: 420px;
  padding: 1rem 1.4rem;
  background: var(--surface-glass-heavy);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  font-size: 0.92rem;
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-error { border-left: 4px solid var(--danger); }
.toast.toast-info { border-left: 4px solid var(--gold-primary); }
.toast.toast-warning { border-left: 4px solid var(--warning); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(40px); }
}

/* ===================================================
   LAYOUT UTILITIES & CONTAINER
   =================================================== */
.container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 900px;
}

.section-padding {
  padding-top: clamp(3.5rem, 8vw, 7rem);
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.08rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.8rem; }

/* Micro-animations */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); }
  50% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.5); }
}

@keyframes ripple {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.animate-pulse {
  animation: pulseGlow 3s infinite;
}

/* ===================================================
   4K ULTRA-HD SCROLL TO TOP ARROW COMPONENT
   Precision Metallic Gold Finish + Specular Glass Aura
   =================================================== */
.nsc-scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  background: radial-gradient(circle at 35% 30%, rgba(32, 28, 20, 0.92) 0%, rgba(10, 10, 13, 0.97) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(212, 175, 55, 0.25),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.85);
  transition: 
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Rotating 4K Ambient Aura Ring */
.nsc-scroll-top-btn::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(212, 175, 55, 0.7) 25%, transparent 50%, rgba(244, 226, 149, 0.7) 75%, transparent 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: aura4kSpin 6s linear infinite;
  filter: blur(2px);
}

@keyframes aura4kSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* When visible on scroll */
.nsc-scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nsc-scroll-top-btn.visible::before {
  opacity: 0.6;
}

/* Hover Physics */
.nsc-scroll-top-btn:hover {
  transform: translateY(-6px) scale(1.12);
  border-color: rgba(255, 223, 100, 0.95);
  box-shadow: 
    0 18px 45px rgba(0, 0, 0, 0.95),
    0 0 35px rgba(212, 175, 55, 0.65),
    inset 0 0 12px rgba(212, 175, 55, 0.4);
}

.nsc-scroll-top-btn:hover::before {
  opacity: 1;
  animation-duration: 3s;
}

.nsc-scroll-top-btn:hover .scroll-arrow-4k-svg {
  animation: arrowBounce4k 1.2s ease-in-out infinite;
}

/* Active / Pressed state */
.nsc-scroll-top-btn:active {
  transform: translateY(-2px) scale(0.96);
}

/* 4K SVG Icon Styling */
.nsc-scroll-top-btn .scroll-arrow-4k-svg {
  width: 26px;
  height: 26px;
  display: block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.45));
}

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

/* 4K Specular Lens Flare Spot */
.nsc-scroll-top-btn::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 12px;
  width: 14px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.65) 0%, transparent 80%);
  pointer-events: none;
  opacity: 0.75;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .nsc-scroll-top-btn {
    bottom: 5.5rem;
    left: 1.25rem;
    width: 46px;
    height: 46px;
  }
  .nsc-scroll-top-btn .scroll-arrow-4k-svg {
    width: 22px;
    height: 22px;
  }
}

