/* ============================================
   DermaLux Clinic — Main Stylesheet
   ============================================ */

/* ---- DESIGN TOKENS ---- */
:root {
  --clr-primary: #4a9d7a;
  --clr-primary-dark: #357a5e;
  --clr-primary-light: #e8f5ef;
  --clr-secondary: #7ec8d4;
  --clr-secondary-light: #eaf7fa;
  --clr-accent: #c9a96e;
  --clr-bg: #fafaf8;
  --clr-bg-tint: #f4f7f4;
  --clr-text: #1c2b2b;
  --clr-text-muted: #6b7f7a;
  --clr-white: #ffffff;
  --clr-border: #e4ede8;
  --clr-card: #ffffff;
  --clr-shadow: rgba(74, 157, 122, 0.12);
  --clr-shadow-strong: rgba(28, 43, 43, 0.12);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px var(--clr-shadow);
  --shadow-md: 0 8px 32px var(--clr-shadow);
  --shadow-lg: 0 20px 60px rgba(28, 43, 43, 0.15);

  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Lato', sans-serif;

  --nav-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-primary);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
}

body.loading { overflow: hidden; }
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; outline: none; }

/* ---- LAYOUT ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--tinted { background: var(--clr-bg-tint); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  color: var(--clr-white);
  box-shadow: 0 4px 20px rgba(74, 157, 122, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 157, 122, 0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--clr-text);
  position: relative;
}
.btn-ghost:hover { background: var(--clr-primary-light); }

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; padding: 16px; }

/* ---- SECTION LABELS ---- */
.section-label {
  display: inline-block;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--clr-text);
}

.section-title .highlight {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .section-desc { margin: 0 auto; }

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #f0f9f4 0%, #e8f4f8 50%, #faf6f0 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-icon-ring {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-svg {
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 8px 24px rgba(74, 157, 122, 0.3));
}

.rotate-ring {
  transform-origin: center;
  animation: spinRing 4s linear infinite;
}
.rotate-ring-rev {
  transform-origin: center;
  animation: spinRing 3s linear infinite reverse;
}
@keyframes spinRing { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.loader-progress-wrapper {
  width: 240px;
  height: 4px;
  background: rgba(74, 157, 122, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}

.loader-tagline {
  font-family: var(--font-primary);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  animation: pulse 2s ease-in-out infinite;
}

.loader-brand {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(28, 43, 43, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--clr-text);
  flex-shrink: 0;
}

.nav-logo--light { color: rgba(255,255,255,0.9); }

.logo-icon {
  color: var(--clr-primary);
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--clr-primary);
  background: var(--clr-primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.cart-icon { font-size: 1.1rem; }
.cart-count {
  background: var(--clr-primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -6px;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 899px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 32px 24px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--clr-border);
    gap: 4px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 14px 18px; width: 100%; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: linear-gradient(135deg, #f0f9f4 0%, #fafaf8 50%, #eaf7fa 100%);
}

/* Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #c8ead7, transparent);
  top: -200px; right: -200px;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #c0e8f0, transparent);
  bottom: -100px; left: -150px;
  animation: blobFloat 10s ease-in-out infinite reverse;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #f0dfc0, transparent);
  top: 50%; left: 40%;
  animation: blobFloat 12s ease-in-out infinite;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Floating elements */
.float-el {
  position: absolute;
  font-size: 2rem;
  pointer-events: none;
  user-select: none;
  opacity: 0.6;
}
.float-el--1 { top: 20%; left: 5%; animation: floatA 6s ease-in-out infinite; }
.float-el--2 { top: 60%; left: 8%; animation: floatA 8s ease-in-out infinite 1s; }
.float-el--3 { top: 15%; right: 8%; animation: floatA 7s ease-in-out infinite 0.5s; }
.float-el--4 { bottom: 25%; right: 6%; animation: floatA 9s ease-in-out infinite 2s; }
.float-el--5 { bottom: 15%; left: 15%; animation: floatA 7s ease-in-out infinite 1.5s; }

@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 157, 122, 0.12);
  border: 1px solid rgba(74, 157, 122, 0.3);
  color: var(--clr-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--clr-text);
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat { text-align: center; }
.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--clr-primary);
}
.stat span { font-size: 1.4rem; font-weight: 700; color: var(--clr-primary); }
.stat p { font-size: 0.78rem; color: var(--clr-text-muted); margin-top: 2px; font-weight: 500; }
.stat-divider { width: 1px; height: 48px; background: var(--clr-border); }

/* Hero Image */
.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-glow {
  position: absolute;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(74,157,122,0.25), transparent 70%);
  border-radius: 50%;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-img {
  width: 100%;
  max-width: 480px;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  animation: heroFloat 6s ease-in-out infinite;
}

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

/* Floating info cards */
.hero-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  z-index: 2;
  animation: cardFloat 4s ease-in-out infinite;
}
.hero-card--1 { bottom: 60px; left: -30px; animation-delay: 0s; }
.hero-card--2 { top: 40px; right: -20px; animation-delay: 1.5s; }

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

.hero-card .card-icon { font-size: 1.5rem; }
.hero-card strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--clr-text); }
.hero-card p { font-size: 0.75rem; color: var(--clr-text-muted); margin: 0; }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--clr-text-muted);
  font-size: 0.78rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-dot {
  width: 32px; height: 52px;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-full);
  position: relative;
}
.scroll-dot::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  background: var(--clr-primary);
  border-radius: 50%;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  100% { top: 30px; opacity: 0; }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}

.about-image-col { position: relative; }

.about-img-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--clr-primary-light);
}

.about-img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.about-img-card:hover .about-img { transform: scale(1.03); }

.about-badge-credentials {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(28,43,43,0.85), transparent);
  padding: 32px 24px 20px;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
}

.exp-pill {
  position: absolute;
  top: 24px; right: -20px;
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--clr-primary-light);
}
.exp-pill strong { display: block; font-size: 2rem; font-weight: 800; color: var(--clr-primary); }
.exp-pill span { font-size: 0.78rem; color: var(--clr-text-muted); }

.about-lead {
  font-size: 1.08rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--clr-primary-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
}
.credential-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.cred-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.credential-item strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--clr-text); }
.credential-item p { font-size: 0.78rem; color: var(--clr-text-muted); margin: 2px 0 0; }

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-icon-wrap {
  width: 60px; height: 60px;
  background: var(--clr-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon-wrap {
  background: var(--clr-primary);
  transform: scale(1.1) rotate(-5deg);
}
.service-icon { font-size: 1.6rem; }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--clr-text);
}
.service-card p {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

.service-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: var(--clr-primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.product-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 2px solid var(--clr-border);
  background: transparent;
  color: var(--clr-text-muted);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  border-color: transparent;
  color: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--clr-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.product-card.hidden {
  display: none;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-img-wrap {
  background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-secondary-light));
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.product-img-wrap img {
  height: 150px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.1) rotate(-2deg); }

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--clr-primary);
  color: white;
}

.product-info { padding: 20px; }
.product-info h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.product-info p { font-size: 0.8rem; color: var(--clr-text-muted); margin-bottom: 12px; line-height: 1.6; }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price { font-size: 1.1rem; font-weight: 800; color: var(--clr-primary); }
.product-price-old { font-size: 0.8rem; color: var(--clr-text-muted); text-decoration: line-through; }

.product-stars { color: #f59e0b; font-size: 0.8rem; }

.btn-add-cart {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-add-cart:hover { transform: scale(1.15); box-shadow: 0 4px 12px rgba(74,157,122,0.4); }

/* Product wishlist */
.wishlist-btn {
  position: absolute;
  top: 12px; right: 12px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  transition: var(--transition);
}
.wishlist-btn:hover { transform: scale(1.15); }
.wishlist-btn.active { color: #e74c3c; }

/* ============================================
   BOOKING SECTION
   ============================================ */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.booking-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
}
.perk { font-size: 0.9rem; color: var(--clr-text-muted); font-weight: 500; }

.clinic-hours {
  background: var(--clr-primary-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  border: 1px solid var(--clr-border);
}
.clinic-hours h4 { font-size: 0.95rem; margin-bottom: 12px; color: var(--clr-text); }
.clinic-hours table { width: 100%; border-collapse: collapse; }
.clinic-hours td { padding: 6px 0; font-size: 0.85rem; color: var(--clr-text-muted); }
.clinic-hours td:last-child { text-align: right; font-weight: 600; color: var(--clr-text); }

/* Booking form */
.booking-form-wrap {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--clr-border);
}

.booking-form h3, .contact-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--clr-primary-light);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-text);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--clr-text);
  background: var(--clr-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(74, 157, 122, 0.15);
  background: white;
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-carousel { position: relative; overflow: hidden; }

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  flex: 0 0 calc(100% / 3);
  padding: 0 12px;
}

.testimonial-inner {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--clr-border);
  height: 100%;
  position: relative;
  transition: var(--transition);
}
.testimonial-inner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-inner::before {
  content: '"';
  position: absolute;
  top: 16px; left: 28px;
  font-size: 6rem;
  line-height: 1;
  color: var(--clr-primary-light);
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 16px; }
.testimonial-text { font-size: 0.95rem; color: var(--clr-text-muted); line-height: 1.8; margin-bottom: 24px; font-style: italic; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.author-info strong { display: block; font-size: 0.92rem; color: var(--clr-text); font-weight: 700; }
.author-info span { font-size: 0.8rem; color: var(--clr-text-muted); }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--clr-border);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--clr-text);
}
.carousel-btn:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: white;
  transform: scale(1.1);
}

.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-border);
  cursor: pointer;
  transition: var(--transition);
}
.carousel-dot.active {
  background: var(--clr-primary);
  width: 24px;
  border-radius: var(--radius-full);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 16px; }

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: white;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  border: 1px solid var(--clr-border);
  transition: var(--transition);
}
.contact-card:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.contact-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 0.9rem; color: var(--clr-text-muted); display: block; line-height: 1.6; }
.contact-card a:hover { color: var(--clr-primary); }

.map-placeholder {
  background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-secondary-light));
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 8px;
}
.map-inner { padding: 32px; }
.map-inner span { font-size: 3rem; display: block; margin-bottom: 12px; }
.map-inner p { font-size: 0.95rem; color: var(--clr-text-muted); margin-bottom: 20px; }

.contact-form-wrap {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--clr-border);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(135deg, #1c2b2b, #263333);
  color: rgba(255,255,255,0.8);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.5fr;
  gap: 56px;
  margin-bottom: 56px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin: 16px 0 24px;
  line-height: 1.8;
}

.social-links { display: flex; gap: 12px; }
.social-link {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  cursor: pointer;
}
.social-link:hover { background: var(--clr-primary); transform: translateY(-3px); }

.footer-links h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--clr-primary); }

.footer-newsletter h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}
.footer-newsletter p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter-form input {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: white;
  font-size: 0.88rem;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus { border-color: var(--clr-primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.83rem; color: rgba(255,255,255,0.4); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 0.83rem; color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-legal a:hover { color: var(--clr-primary); }

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-box {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
  box-shadow: 0 40px 80px rgba(0,0,0,0.2);
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-box--wide { max-width: 700px; }

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  width: 36px; height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  transition: var(--transition);
}
.modal-close:hover { background: #fee; color: #e33; }

/* Product Modal */
.modal-product-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: start;
}
.modal-product-img {
  background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-secondary-light));
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.modal-product-img img { max-height: 200px; object-fit: contain; }
.modal-product-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.modal-product-price { font-size: 1.6rem; font-weight: 800; color: var(--clr-primary); margin-bottom: 16px; }
.modal-product-desc { font-size: 0.92rem; color: var(--clr-text-muted); line-height: 1.8; margin-bottom: 20px; }
.modal-ingredient-tag {
  display: inline-block;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin: 4px 3px;
}
.modal-skin-types { margin: 16px 0; }
.modal-skin-types p { font-size: 0.85rem; color: var(--clr-text-muted); margin-bottom: 8px; font-weight: 600; }

/* Cart */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 380px;
  background: white;
  z-index: 1600;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 60px rgba(0,0,0,0.15);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--clr-border);
}
.cart-header h3 { font-size: 1.1rem; font-weight: 700; }
.cart-header button { background: none; border: none; cursor: pointer; font-size: 1.3rem; color: var(--clr-text-muted); }
.cart-header button:hover { color: var(--clr-text); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px; }

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: var(--clr-text-muted);
  text-align: center;
}
.cart-empty span { font-size: 3rem; }
.cart-empty p { font-size: 1rem; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--clr-bg);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  align-items: center;
  border: 1px solid var(--clr-border);
}
.cart-item-img {
  width: 60px; height: 60px;
  object-fit: contain;
  background: var(--clr-primary-light);
  border-radius: var(--radius-sm);
  padding: 6px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-info strong { display: block; font-size: 0.88rem; margin-bottom: 4px; }
.cart-item-info span { font-size: 0.85rem; color: var(--clr-primary); font-weight: 700; }
.cart-item-remove {
  background: none; border: none; cursor: pointer;
  color: var(--clr-text-muted); font-size: 1.1rem;
  padding: 4px 8px;
  transition: color var(--transition);
}
.cart-item-remove:hover { color: #e33; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--clr-border);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1rem;
}
.cart-total strong { font-size: 1.3rem; color: var(--clr-primary); }

/* Checkout modal */
.checkout-content h2 { font-size: 1.5rem; margin-bottom: 28px; }
.payment-methods {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
.payment-method {
  flex: 1;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.payment-method span { display: block; font-size: 1.5rem; margin-bottom: 6px; }
.payment-method strong { font-size: 0.85rem; }
.payment-method.active {
  border-color: var(--clr-primary);
  background: var(--clr-primary-light);
  color: var(--clr-primary);
}
.payment-method:hover { border-color: var(--clr-primary); }

.payment-form-area { margin-bottom: 24px; }
.payment-form-area .form-group { margin-bottom: 16px; }

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-text);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.visible { bottom: 32px; }

/* ============================================
   AOS ANIMATIONS (Custom)
   ============================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-text { order: 2; max-width: 600px; margin: 0 auto; }
  .hero-image-wrap { order: 1; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta-group { justify-content: center; }
  .hero-stats { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .exp-pill { right: 12px; }
  .booking-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .modal-product-layout { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero-img { height: 360px; }
  .hero-card { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .booking-form-wrap, .contact-form-wrap { padding: 28px 20px; }
  .modal-box { padding: 28px 20px; }
  .cart-sidebar { width: 100%; }
  .testimonial-card { flex: 0 0 100%; }
  .payment-methods { flex-direction: column; }
}

/* ============================================
   MISC UTILITIES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-primary); }

/* Selection */
::selection { background: var(--clr-primary); color: white; }
