/* ════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES — driven by config.json
   ════════════════════════════════════════════════ */

:root {
  --color-primary-50: #f0f9ff;
  --color-primary-100: #e0f2fe;
  --color-primary-200: #bae6fd;
  --color-primary-400: #38bdf8;
  --color-primary-500: #0ea5e9;
  --color-primary-600: #0284c7;
  --color-primary-700: #0369a1;
  --color-primary-800: #075985;
  --color-primary-900: #0c4a6e;
}

/* ════════════════════════════════════════════════
   BASE
   ════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ════════════════════════════════════════════════
   NAVBAR SCROLL BEHAVIOUR
   ════════════════════════════════════════════════ */

#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.06),
    0 4px 24px rgba(0, 0, 0, 0.04);
}

#navbar.scrolled #nav-clinic-name,
#navbar.scrolled #nav-home,
#navbar.scrolled #nav-treatments,
#navbar.scrolled #nav-about {
  color: #111827;
}

/* ════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════ */

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.hero-badge {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-accent-text {
  color: var(--color-primary-400);
}

.hero-cta-btn {
  background: var(--color-primary-600);
}

.hero-cta-btn:hover {
  background: var(--color-primary-700);
}

/* ════════════════════════════════════════════════
   SECTION LABELS (pills)
   ════════════════════════════════════════════════ */

.section-label {
  background: var(--color-primary-50);
  color: var(--color-primary-700);
}

/* ════════════════════════════════════════════════
   NAVBAR BOOK BUTTON
   ════════════════════════════════════════════════ */

.nav-book-btn {
  border-color: var(--color-primary-600);
  color: var(--color-primary-600);
}

.nav-book-btn:hover {
  background: var(--color-primary-600);
  color: #ffffff;
}

/* ════════════════════════════════════════════════
   LANGUAGE TOGGLE ACTIVE STATE
   ════════════════════════════════════════════════ */

.lang-active {
  background: var(--color-primary-600) !important;
  color: #ffffff !important;
}

.lang-inactive {
  background: transparent;
  color: #6b7280;
}

/* ════════════════════════════════════════════════
   SERVICE CARD
   ════════════════════════════════════════════════ */

.service-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 24px rgba(0, 0, 0, 0.04);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.service-img-wrapper {
  flex-shrink: 0;
}

.service-body {
  flex: 1;
}

.service-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-mode-inperson {
  background: #dcfce7;
  color: #15803d;
}

.service-mode-remote {
  background: #ede9fe;
  color: #7c3aed;
}

.service-mode-both {
  background: var(--color-primary-50);
  color: var(--color-primary-700);
}

/* ════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ════════════════════════════════════════════════ */

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════
   SELECTION COLOR
   ════════════════════════════════════════════════ */

::selection {
  background: var(--color-primary-200);
  color: var(--color-primary-900);
}
