/* ==========================================================================
   EGO2SAVE - DESIGN SYSTEM (WARM CLINICAL SCIENCE & HUMAN CARE)
   Light Mode: Sober, Serene, Professional & Human-Centered
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  interpolate-size: allow-keywords;

  /* Color Palette - Serene, Clean & Sober Medical Tech */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-elevated: rgba(255, 255, 255, 0.95);
  
  --border-subtle: rgba(226, 232, 240, 0.9);
  --border-accent: rgba(13, 148, 136, 0.25);
  --border-highlight: rgba(13, 148, 136, 0.4);

  /* Primary Accent & Brand Colors */
  --accent-teal: #0d9488;
  --accent-teal-dark: #0f766e;
  --accent-mint: #14b8a6;
  --accent-mint-bg: #f0fdf4;
  --accent-mint-border: #bbf7d0;

  --accent-indigo: #4f46e5;
  --accent-indigo-light: #e0e7ff;
  --accent-indigo-text: #4338ca;

  /* Text & Contrast */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --text-gradient: linear-gradient(135deg, #0f172a 0%, #0d9488 100%);
  --text-teal-gradient: linear-gradient(135deg, #0d9488 0%, #4f46e5 100%);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Spacing */
  --container-max-width: 1280px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 12px 32px -8px rgba(15, 23, 42, 0.06), 0 0 1px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 20px 40px -10px rgba(13, 148, 136, 0.15), 0 0 1px rgba(13, 148, 136, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-body);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(13, 148, 136, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(79, 70, 229, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--accent-teal);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 20px;
}

/* Typography Utility Classes */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.gradient-text {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-teal {
  background: var(--text-teal-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 90px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 56px 0;
  }
}

/* Header & Navigation Bar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-container nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-teal);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-teal);
  border-radius: 2px;
}

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

.header-actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-hire-now {
  min-width: 145px;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.btn-login-header {
  min-width: 100px;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  flex-shrink: 0;
}

.lang-flag {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.lang-flag.active {
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* Mobile Menu Toggle Button */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

@media (max-width: 1100px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background: var(--bg-surface);
    border-left: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    gap: 24px;
    transition: right 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .nav-menu.open {
    right: 0;
  }
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-teal);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
  background: var(--accent-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

.btn-secondary {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

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

.btn-indigo {
  background: var(--accent-indigo);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.btn-indigo:hover {
  background: #4338ca;
  transform: translateY(-2px);
}

/* Badges & Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--accent-mint-bg);
  border: 1px solid var(--accent-mint-border);
  color: var(--accent-teal-dark);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.badge-pill-indigo {
  background: var(--accent-indigo-light);
  border-color: rgba(79, 70, 229, 0.3);
  color: var(--accent-indigo-text);
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Glassmorphism / Clean Elevated Cards */
.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

@media (max-width: 992px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Section Header Component */
.section-title-wrapper {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 56px auto;
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Accordion (FAQ) Component */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.accordion-item.active {
  border-color: var(--accent-teal);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.accordion-header:hover {
  color: var(--accent-teal);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  color: var(--accent-teal);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 24px;
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.35s ease, padding 0.35s ease;
  color: var(--text-secondary);
}

.accordion-item.active .accordion-content {
  block-size: auto;
  padding: 0 24px 24px 24px;
}

/* Footer Styling */
.footer {
  background: #0f172a;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px 0;
  color: #94a3b8;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* Smooth Image Styling */
.featured-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  object-fit: cover;
}
