/* ========================================
   HELP CENTER — Cosmos Dark Theme
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables — Light Theme Palette */
:root {
  --color-bg: #fafafa;
  --color-bg-secondary: #ffffff;
  --color-bg-card: #ffffff;
  --color-bg-card-hover: #f5f5f5;

  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-text-dim: #9ca3af;

  --color-primary: #dc2626;
  --color-primary-hover: #b91c1c;

  --color-accent: #7c3aed;
  --color-accent-hover: #6d28d9;

  --color-danger: #ef4444;
  --color-danger-hover: #dc2626;

  --color-success: #10b981;
  --color-warning: #f59e0b;

  --border-color: #e5e7eb;
  --border-light: #d1d5db;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 8px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 24px -4px rgb(0 0 0 / 0.15);

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Palette */
[data-theme="dark"] {
  --color-bg: #0a0a0a;
  --color-bg-secondary: #111111;
  --color-bg-card: #141414;
  --color-bg-card-hover: #1a1a1a;

  --color-text: #ffffff;
  --color-text-muted: #a0a0a0;
  --color-text-dim: #666666;

  --color-primary: #ef4444;
  --color-primary-hover: #dc2626;

  --border-color: #222222;
  --border-light: #333333;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 8px -1px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 24px -4px rgb(0 0 0 / 0.5);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================
   HEADER / NAV
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .header {
  background: rgba(10, 10, 10, 0.9);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--color-text);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav a:hover {
  color: var(--color-primary);
}

/* ========================================
   THEME TOGGLE (iOS Style)
   ======================================== */
.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.theme-toggle input {
  display: none;
}

.toggle-slider {
  position: relative;
  display: flex;
  align-items: center;
  width: 56px;
  height: 30px;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  border-radius: 30px;
  transition: var(--transition);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.toggle-icon {
  position: absolute;
  font-size: 0.875rem;
  transition: opacity 0.3s;
  z-index: 1;
}

.toggle-icon.sun {
  left: 5px;
  opacity: 1;
}

.toggle-icon.moon {
  right: 5px;
  opacity: 0;
}

.theme-toggle input:checked + .toggle-slider {
  background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
}

.theme-toggle input:checked + .toggle-slider::before {
  transform: translateX(26px);
}

.theme-toggle input:checked + .toggle-slider .toggle-icon.sun {
  opacity: 0;
}

.theme-toggle input:checked + .toggle-slider .toggle-icon.moon {
  opacity: 1;
}

.theme-toggle:hover .toggle-slider {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 10px rgba(59, 130, 246, 0.3);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

/* Animated grid background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

.hero-badge svg {
  width: 14px;
  height: 14px;
  color: var(--color-success);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.7;
  max-width: 600px;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-card-hover);
}

.btn-danger {
  background: var(--color-danger);
  color: white;
}

.btn-danger:hover {
  background: var(--color-danger-hover);
  transform: translateY(-2px);
}

/* Emergency Numbers Bar */
.emergency-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.emergency-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  transition: var(--transition);
}

.emergency-chip:hover {
  border-color: var(--color-text-muted);
  background: var(--color-bg-card-hover);
}

.emergency-chip svg {
  width: 16px;
  height: 16px;
}

.emergency-chip.danger {
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.emergency-chip.success {
  border-color: var(--color-success);
  color: var(--color-success);
}

/* ========================================
   SECTIONS
   ======================================== */
section {
  padding: 6rem 0;
  border-top: 1px solid var(--border-color);
}

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  max-width: 600px;
}

/* ========================================
   CARDS GRID
   ======================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

/* Card Styles */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-light);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-light);
  background: var(--color-bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  background: var(--color-text-muted);
}

.card.emergency::before {
  background: var(--color-danger);
}

.card.free::before {
  background: var(--color-success);
}

.card.paid::before {
  background: var(--color-warning);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.card a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.card a:hover {
  border-bottom-color: var(--color-text);
}

/* Phone Button */
.phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg-secondary);
  color: var(--color-text);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.phone-btn:hover {
  border-color: var(--border-light);
  background: var(--color-bg-card-hover);
}

.phone-btn svg {
  width: 16px;
  height: 16px;
}

.phone-btn.emergency {
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.phone-btn.free {
  border-color: var(--color-success);
  color: var(--color-success);
}

/* ========================================
   SIGNS SECTION
   ======================================== */
.signs-section {
  background: var(--color-bg-secondary);
}

.signs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.sign-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.sign-item:hover {
  border-color: var(--border-light);
}

.sign-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-warning);
  flex-shrink: 0;
  margin-top: 2px;
}

.sign-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================
   STEPS SECTION
   ======================================== */
.steps-list {
  list-style: none;
  counter-reset: step;
}

.steps-list li {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  margin-bottom: 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.steps-list li:hover {
  border-color: var(--border-light);
}

.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.5rem;
  width: 32px;
  height: 32px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.steps-list li strong {
  color: var(--color-text);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.steps-list li p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================
   SPECIALISTS SECTION
   ======================================== */
.specialists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.specialist-card {
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.specialist-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.specialist-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.specialist-info {
  padding: 1.25rem;
}

.specialist-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.specialist-info p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.specialist-price {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-warning);
  margin-bottom: 1rem;
}

.specialist-link {
  display: block;
  text-align: center;
  background: var(--color-bg-secondary);
  color: var(--color-text);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.specialist-link:hover {
  border-color: var(--border-light);
  background: var(--color-bg-card-hover);
}

/* ========================================
   INFO BOX
   ======================================== */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

.info-box svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.info-box.danger svg {
  color: var(--color-danger);
}

.info-box.success svg {
  color: var(--color-success);
}

.info-box p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.info-box a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
}

.info-box a:hover {
  border-bottom-color: var(--color-text);
}

/* ========================================
   DOCUMENT CARD
   ======================================== */
.document-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition);
}

@media (min-width: 768px) {
  .document-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

.document-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.document-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.document-icon svg {
  width: 40px;
  height: 40px;
  color: #ffffff;
}

.document-info {
  flex: 1;
}

.document-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.document-info p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.document-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.document-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.document-features li svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
  flex-shrink: 0;
}

.document-download {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-primary);
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  margin-top: 1.5rem;
  white-space: nowrap;
}

.document-download:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.document-download svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .document-card {
    padding: 1.75rem;
  }

  .document-icon {
    width: 64px;
    height: 64px;
  }

  .document-icon svg {
    width: 32px;
    height: 32px;
  }

  .document-info h3 {
    font-size: 1.1rem;
  }

  .document-download {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--color-text-dim);
  font-size: 0.85rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   FALLING HEARTS ANIMATION
   ======================================== */
.hearts-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.falling-heart {
  position: absolute;
  top: -50px;
  font-size: 1.5rem;
  animation: fall linear forwards;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 0.6;
  }
  100% {
    transform: translateY(100vh) rotate(720deg) scale(1);
    opacity: 0;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .header-content {
    justify-content: flex-start;
    padding: 0 1rem;
    gap: 1rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  .theme-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1rem;
    z-index: 1001;
  }

  .toggle-slider {
    width: 48px;
    height: 26px;
  }

  .toggle-slider::before {
    width: 20px;
    height: 20px;
  }

  .theme-toggle input:checked + .toggle-slider::before {
    transform: translateX(22px);
  }

  .toggle-icon {
    font-size: 0.75rem;
  }

  section {
    padding: 4rem 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .emergency-bar {
    flex-direction: column;
  }
  
  .emergency-chip {
    justify-content: center;
  }
}
