/* ==========================================================================
   SKINIMAGE CLINIC - PREMIUM LUXURY STYLING SYSTEM
   Doctor: Dr Chetna Ghura
   Theme: Editorial luxury medical spa (Warm Cream, Rich Gold, Bronze, Obsidian)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  --color-primary: #3E2718;        /* Cocoa Dark Brown */
  --color-primary-light: #543926;  /* Cocoa Brown */
  --color-primary-dark: #2C1A0F;   /* Espresso Black-Brown */
  --color-accent-gold: #A37E58;    /* Hazelnut Brown */
  --color-accent-soft: #8A735E;    /* Latte / Muted Brown */
  --color-gold-light: #F9F6F0;     /* Pristine Off-White */
  --color-bg-light: #FFFFFF;       /* Pure White Background */
  --color-bg-silk: #FDFBF7;        /* Milk White / Silk */
  --color-bg-cream-dark: #F0E9DD;  /* Warm Latte / Beige */
  --color-text-dark: #3A2D21;      /* Espresso Dark Brown Text */
  --color-text-muted: #7E6C5C;     /* Muted Clay Brown Text */
  --color-border-gold: rgba(163, 126, 88, 0.2);
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  
  --shadow-luxury: 0 10px 40px -15px rgba(138, 125, 110, 0.18);
  --shadow-luxury-hover: 0 20px 50px -12px rgba(138, 125, 110, 0.28);
  --transition-luxury: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color: var(--color-text-dark);
  font-family: var(--font-sans);
  background-color: var(--color-bg-light);
}

body {
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

h1 em, h2 em, h3 em, .text-gold-gradient {
  font-style: italic;
  font-family: var(--font-serif);
  background: linear-gradient(135deg, #7A6040 0%, #C8A97A 50%, #E8D5AA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #FAF6EE 0%, #EDE5D4 100%);
}

.bg-dark-luxury {
  background: var(--color-primary-light);
}

.bg-gold-button {
  background: var(--color-accent-gold);
  color: var(--color-primary) !important;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  transition: var(--transition-luxury);
}

.bg-gold-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s;
}

.bg-gold-button:hover::after {
  left: 125%;
}

.bg-gold-button:hover {
  background: #E8D5AA;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -5px rgba(200, 169, 122, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent-soft);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-gold);
}

/* 2. Glassmorphism & Cards */
.glass-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(163, 126, 88, 0.15);
  transition: var(--transition-luxury);
}

.glass-header.scrolled {
  background: #FFFFFF;
  box-shadow: 0 4px 30px rgba(62, 39, 24, 0.05);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.luxury-card {
  background: #FFFFFF;
  border: 1px solid rgba(200, 169, 122, 0.18);
  border-radius: 4px;
  box-shadow: var(--shadow-luxury);
  transition: var(--transition-luxury);
}

.luxury-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-luxury-hover);
  border-color: var(--color-accent-gold);
}

/* 3. Before/After Comparison Slider */
.ba-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow-luxury);
  border: 1px solid var(--color-border-gold);
}

@media (max-width: 768px) {
  .ba-slider {
    height: 300px;
  }
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ba-before {
  z-index: 1;
}

.ba-after {
  z-index: 2;
  width: 50%;
  overflow: hidden;
}

.ba-after img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

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

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--color-accent-gold);
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.ba-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary-light);
  border: 2px solid var(--color-accent-gold);
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.ba-slider:hover .ba-handle-circle {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--color-primary);
}

.ba-handle-circle::before,
.ba-handle-circle::after {
  content: '';
  border: solid var(--color-accent-gold);
  border-width: 0 1.5px 1.5px 0;
  display: inline-block;
  padding: 2.5px;
}

.ba-handle-circle::before {
  transform: rotate(135deg);
  margin-right: 1.5px;
}

.ba-handle-circle::after {
  transform: rotate(-45deg);
  margin-left: 1.5px;
}

.ba-label {
  position: absolute;
  bottom: 12px;
  padding: 3px 10px;
  background: rgba(12, 10, 7, 0.75);
  backdrop-filter: blur(4px);
  color: var(--color-gold-light);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 2px;
  z-index: 4;
}

.ba-label-before {
  left: 12px;
}

.ba-label-after {
  right: 12px;
}

/* 4. Navigation Links */
.nav-link {
  position: relative;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-dark);
  transition: var(--transition-luxury);
}

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

.nav-link:hover {
  color: var(--color-accent-gold);
}

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

.nav-link.active {
  color: var(--color-accent-gold);
}

/* 5. Luxury FAQ Accordion (Mathematical Plus/Minus) */
.faq-accordion {
  border-bottom: 1px solid var(--color-border-gold);
}

.faq-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0.5rem;
  transition: var(--transition-luxury);
}

.faq-header:hover h3 {
  color: var(--color-accent-gold);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--color-accent-soft);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.faq-icon::before {
  content: '+';
}

.faq-accordion.open .faq-icon {
  background: var(--color-accent-gold);
  color: var(--color-primary);
  border-color: var(--color-accent-gold);
}

.faq-accordion.open .faq-icon::before {
  content: '−';
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content {
  padding: 0 0.5rem 1.4rem 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* 6. Form Styling */
.luxury-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #FAF6EE;
  border: 1px solid #E5DCC9;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  outline: none;
  transition: var(--transition-luxury);
}

.luxury-input:focus {
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 3px rgba(200, 169, 122, 0.15);
  background: #FFFFFF;
}

/* 7. Key Animations & Micro-effects */
.shimmer {
  background: linear-gradient(90deg, #FAF7F2 25%, #FFF8F6 50%, #FAF7F2 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-primary-light);
  color: #FFFFFF;
  border-left: 3px solid var(--color-accent-gold);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  transform: translateY(150%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  border-radius: 4px;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Testimonial slider custom dot styles */
.testimonial-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: rgba(200, 169, 122, 0.25);
  transition: var(--transition-luxury);
}

.testimonial-dot.active {
  width: 20px;
  border-radius: 3px;
  background-color: var(--color-accent-gold);
}

/* Pulse Animations */
.whatsapp-pulse {
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.gold-pulse {
  box-shadow: 0 0 0 0 rgba(200, 169, 122, 0.5);
  animation: pulse-gold 2.5s infinite;
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 169, 122, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(200, 169, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 169, 122, 0);
  }
}

/* 8. Modern Luxury Comparison Grid */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cmp-table th {
  padding: 1rem 1.2rem;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  border-bottom: 1.5px solid rgba(200, 169, 122, 0.22);
}

.cmp-table th:nth-child(2) {
  color: var(--color-gold-light);
  background: rgba(200, 169, 122, 0.08);
}

.cmp-table td {
  padding: 1rem 1.2rem;
  text-align: center;
  border-bottom: 1px solid rgba(163, 126, 88, 0.05);
  color: var(--color-text-dark);
  vertical-align: middle;
}

.cmp-table tr:hover td {
  background: rgba(200, 169, 122, 0.03);
}

.cmp-table td:first-child {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: left;
}

.cmp-table td:nth-child(2) {
  background: rgba(200, 169, 122, 0.05);
  color: #FFFFFF;
}

.ok {
  color: #80C8A0;
  font-weight: bold;
}

.no {
  color: #C08080;
  font-weight: bold;
}
