/* ========================================
   ESWL Medical Website — V2 Design System
   Premium Light Medical Theme
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Primary — Medical Blue */
  --primary-900: #003366;
  --primary-800: #004080;
  --primary-700: #004d99;
  --primary-600: #0059b3;
  --primary-500: #0066cc;
  --primary-400: #0077e6;
  --primary-300: #0088ff;
  --primary-200: #3399ff;
  --primary-100: #66b3ff;
  --primary-50: #e6f2ff;

  /* Accent */
  --accent-glow: #00bcd4;
  --accent-cyan: #26c6da;
  --accent-blue: #4361ee;
  --accent-teal: #009688;

  /* Status Colors — Apple Style */
  --success: #34c759;
  --warning: #ffcc00;
  --danger: #ff3b30;

  /* Neutrals — Apple Style */
  --neutral-950: #000000;
  --neutral-900: #1d1d1f;
  /* Apple's primary text color */
  --neutral-800: #424245;
  --neutral-700: #6e6e73;
  --neutral-600: #86868b;
  --neutral-500: #a1a1a6;
  --neutral-400: #d2d2d7;
  --neutral-300: #e8e8ed;
  --neutral-200: #f5f5f7;
  --neutral-100: #fbfbfd;
  --neutral-50: #ffffff;

  /* Surface & Cards — Glassmorphism optimized */
  --surface-bg: transparent;
  --surface-secondary: transparent;
  --surface-hover: rgba(0, 102, 204, 0.05);
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-border: rgba(0, 0, 0, 0.1);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.08);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  --glass-blur: blur(20px);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --z-fixed: 1000;
  --z-chatbot: 1100;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden
}

body {
  font-family: var(--font-family);
  background: #fbfbfd;
  /* Apple Background */
  color: var(--neutral-800);
  line-height: 1.8;
  letter-spacing: -0.011em;
  /* Apple-style kerning */
  overflow-x: hidden;
  min-height: 100vh
}

p,
li,
.section-subtitle,
.about-content p,
.medical-info-text p {
  color: var(--neutral-800) !important;
  font-size: 1.1rem !important;
  line-height: 1.8;
}

.hero-description {
  font-size: 1.25rem !important;
  color: var(--neutral-800) !important;
}

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

a:hover {
  color: var(--primary-300)
}

img {
  max-width: 100%;
  display: block
}

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  outline: none
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--neutral-900);
}

h1 {
  font-size: 56px;
  line-height: 1.07;
  font-weight: 700;
}

h2 {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 700;
  margin-bottom: 24px;
}

h3 {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

::-webkit-scrollbar {
  width: 8px
}

::-webkit-scrollbar-track {
  background: var(--neutral-100)
}

::-webkit-scrollbar-thumb {
  background: var(--primary-300);
  border-radius: 4px
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem
}

.section {
  padding: 6rem 0;
  position: relative
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--neutral-900);
  letter-spacing: -0.02em
}

.section-subtitle {
  text-align: center;
  color: var(--neutral-500);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-500), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

/* ========== NAVIGATION ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding: 1rem 0;
  transition: all var(--transition-base);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 119, 230, 0.08);
  box-shadow: 0 2px 20px rgba(0, 50, 100, 0.06)
}

.navbar.scrolled {
  padding: 0.75rem 0;
  box-shadow: 0 4px 30px rgba(0, 50, 100, 0.1)
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-500);
  text-decoration: none
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary-400), var(--accent-cyan));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 119, 230, 0.3)
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem
}

.nav-link {
  color: var(--neutral-600);
  font-size: 0.8rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
  white-space: nowrap;
  text-decoration: none
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-400), var(--accent-cyan));
  transition: width var(--transition-base)
}

.nav-link:hover {
  color: var(--primary-500)
}

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

.nav-link.active {
  color: var(--primary-500)
}

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

/* Language Switcher */
.lang-switcher {
  display: flex;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-full);
  overflow: hidden
}

.lang-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--neutral-500);
  background: transparent;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: center
}

.lang-flag {
  font-size: 0.85rem;
  display: block;
  margin-top: 1px
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--primary-400), var(--primary-300));
  color: white
}

.lang-btn:hover:not(.active) {
  color: var(--primary-500)
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 0.5rem
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--neutral-700);
  border-radius: 2px;
  transition: all var(--transition-fast)
}

/* Mobile Close Button & Overlay Styles */
.nav-close {
  display: none;
}

@media(max-width:1024px) {
  .nav-toggle {
    display: flex
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 6rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition-slow);
    border-left: 1px solid var(--neutral-200);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    z-index: 1001; /* Above overlay */
  }

  .nav-links.open {
    right: 0
  }

  .nav-link {
    font-size: 1rem;
    color: var(--neutral-700)
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--primary-500);
    background: var(--primary-50)
  }

  /* Mobile Close Button & Overlay */
  .nav-close {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: var(--neutral-600);
    background: none;
    border: none;
    padding: 0.5rem;
    line-height: 1;
    z-index: 1002;
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}