/* ==========================================================================
   SUPPORT SYSTEM SPECIFIC STYLES (DESIGN SYSTEM)
   ========================================================================== */

body.support-body {
  background-color: var(--surface); /* Linen/Ivory base */
  color: var(--on-surface); /* Deep Charcoal */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   TYPOGRAPHY UTILITIES (DESIGN.MD TOKENS)
   ========================================================================== */
.text-headline-xl {
  font-size: 2.25rem; /* 36px on mobile */
  font-weight: 500; /* Medium weight */
  line-height: 1.25;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .text-headline-xl {
    font-size: 3.5rem; /* 56px */
  }
}

@media (min-width: 1024px) {
  .text-headline-xl {
    font-size: 4.25rem; /* 68px */
  }
}

.text-headline-lg {
  font-size: 1.75rem; /* 28px on mobile */
  font-weight: 500; /* Medium weight */
  line-height: 1.33;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .text-headline-lg {
    font-size: 2.5rem; /* 40px */
  }
}

.text-headline-md {
  font-size: 1.625rem; /* 26px */
  font-weight: 500; /* Medium weight */
  line-height: 1.3;
}

.text-body-lg {
  font-size: 1.25rem; /* 20px */
  font-weight: 460;
  line-height: 1.6;
  letter-spacing: 0.005em;
}

@media (min-width: 768px) {
  .text-body-lg {
    font-size: 1.375rem; /* 22px */
  }
}

.text-body-md {
  font-size: 1.125rem; /* 18px */
  font-weight: 460;
  line-height: 1.6;
  letter-spacing: 0.005em;
}

.text-label-md {
  font-size: 1rem; /* 16px */
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.text-label-sm {
  font-size: 0.875rem; /* 14px */
  font-weight: 500; /* Medium weight */
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.text-gradient-red {
  background: linear-gradient(to right, var(--primary), #5f2c23);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.support-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background-color: rgba(251, 249, 244, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-container-highest);
  transition: var(--transition-smooth);
}

.support-nav-container {
  max-width: var(--spacing-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-gutter);
  height: 4rem; /* 64px */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.support-logo {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--on-surface);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.support-nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.support-nav-links {
  display: none;
}

@media (min-width: 768px) {
  .support-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.support-nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  transition: var(--transition-fast);
}

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

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  border-radius: var(--rounded-full);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

@media (min-width: 768px) {
  .btn {
    font-size: 1.125rem;
    padding: 1.05rem 2.25rem;
  }
}

.btn.text-body-lg {
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .btn.text-body-lg {
    font-size: 1.375rem;
  }
}

.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 4px 12px rgba(138, 74, 61, 0.15);
}

.btn-primary:hover {
  background-color: #763d32;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(138, 74, 61, 0.25);
}

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

.btn-secondary:hover {
  background-color: var(--surface-container-low);
  transform: translateY(-1px);
}

.btn-dark {
  background-color: var(--secondary);
  color: var(--on-secondary);
  box-shadow: 0 4px 12px rgba(80, 96, 113, 0.15);
}

.btn-dark:hover {
  background-color: #3f4e5d;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(80, 96, 113, 0.25);
}

.btn-white {
  background-color: var(--surface-white);
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--outline-variant);
}

.btn-white:hover {
  background-color: var(--surface-container-low);
  transform: translateY(-1px);
}

.badge-outline {
  display: inline-block;
  background-color: var(--surface-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--rounded-full);
  padding: 0.25rem 1rem;
  box-shadow: var(--shadow-sm);
}

.badge-chip {
  display: inline-block;
  background-color: var(--surface-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--rounded-full);
  padding: 0.35rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--on-surface);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.support-hero {
  padding-top: 9rem;
  padding-bottom: 5rem;
  text-align: center;
  max-width: 56rem; /* max-w-4xl */
  margin-left: auto;
  margin-right: auto;
}

.support-hero-tag {
  margin-bottom: 1.5rem;
}

.support-hero-title {
  margin-bottom: 2rem;
  color: var(--primary);
}

.support-hero-desc {
  color: var(--text-muted);
  max-width: 42rem; /* max-w-2xl */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.support-hero-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

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

/* ==========================================================================
   BENTO GRID SECTION
   ========================================================================== */
.support-bento {
  padding-bottom: 6rem;
}

.bento-grid {
  display: grid;
  grid-template-cols: 1fr;
  gap: var(--spacing-gutter);
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-cols: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-cols: repeat(3, 1fr);
  }
}

/* Bento Card Base */
.bento-card {
  background-color: var(--surface-white);
  border-radius: var(--rounded-xl); /* 24px */
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.bento-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Bento Spanning (Desktop) */
@media (min-width: 1024px) {
  .bento-card.span-2 {
    grid-column: span 2;
  }
  .bento-card.span-3 {
    grid-column: span 3;
  }
}

/* Bento Card Icon */
.bento-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--rounded-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.bento-title {
  color: var(--on-surface);
  margin-bottom: 0.75rem;
}

/* bento-desc inherits text-body-md (18px) size. Maximize contrast */
.bento-desc {
  color: var(--on-surface);
  line-height: 1.6;
}

/* Bento Themes (Individual Colors from DESIGN.md - Serene Professional) */
.theme-blue {
  background-color: rgba(80, 96, 113, 0.04);
  border-color: rgba(80, 96, 113, 0.12);
}
.theme-blue .bento-icon {
  background-color: rgba(80, 96, 113, 0.10);
  color: var(--secondary);
}

.theme-orange {
  background-color: rgba(138, 74, 61, 0.04); /* Warm Terracotta Tint */
  border-color: rgba(138, 74, 61, 0.12);
}
.theme-orange .bento-icon {
  background-color: rgba(138, 74, 61, 0.10);
  color: var(--primary);
}

.theme-purple {
  background-color: rgba(124, 99, 128, 0.04); /* Desaturated Purple Tint */
  border-color: rgba(124, 99, 128, 0.12);
}
.theme-purple .bento-icon {
  background-color: rgba(124, 99, 128, 0.10);
  color: #7c6380;
}

.theme-green {
  background-color: rgba(74, 97, 86, 0.04); /* Sage Green Tint */
  border-color: rgba(74, 97, 86, 0.12);
  color: #27382f;
}
.theme-green .bento-title {
  color: #27382f;
}
.theme-green .bento-desc {
  color: #15221b;
}
.theme-green .bento-icon {
  background-color: rgba(74, 97, 86, 0.10);
  color: var(--tertiary);
}

.theme-cyan {
  background-color: rgba(59, 117, 119, 0.04); /* Desaturated Cyan Tint */
  border-color: rgba(59, 117, 119, 0.12);
  color: #203e3f;
}
.theme-cyan .bento-title {
  color: #203e3f;
}
.theme-cyan .bento-desc {
  color: #122425;
}
.theme-cyan .bento-icon {
  background-color: rgba(59, 117, 119, 0.10);
  color: #3b7577;
}

.theme-yellow {
  background-color: rgba(153, 133, 57, 0.04); /* Desaturated Yellow Tint */
  border-color: rgba(153, 133, 57, 0.12);
  color: #4b3f1c;
}
.theme-yellow .bento-title {
  color: #4b3f1c;
}
.theme-yellow .bento-desc {
  color: #2e260e;
}
.theme-yellow .bento-icon {
  background-color: rgba(153, 133, 57, 0.10);
  color: #998539;
}

/* Specific Bento Cards */
.bento-card.card-portrait {
  background-color: var(--surface-container-low);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.card-portrait-content {
  flex: 1;
}

.card-portrait-image-wrap {
  position: relative;
  flex-shrink: 0;
}

.card-portrait-img {
  width: 14rem;
  height: 14rem;
  object-cover: cover;
  border-radius: var(--rounded-full);
  border: 4px solid var(--surface-white);
  box-shadow: var(--shadow-sm);
}

.card-portrait-status {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--tertiary);
  border-radius: var(--rounded-full);
  border: 3px solid var(--surface-white);
}

/* Card Quote */
.theme-quote {
  background: linear-gradient(135deg, var(--surface-white) 0%, #f3f4f6 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-mark {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  color: var(--secondary);
  opacity: 0.08;
  font-family: Georgia, serif;
}

/* Card Buying Advice (Triple Span Dark) */
.theme-dark {
  background: linear-gradient(135deg, #30312e 0%, #20211f 100%);
  color: var(--surface-white);
  border-color: #30312e;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

@media (min-width: 768px) {
  .theme-dark {
    flex-direction: row;
    align-items: center;
  }
}

.theme-dark .bento-title {
  color: var(--surface-white);
}

.theme-dark .bento-desc {
  color: #d1d5db;
}

/* ==========================================================================
   FERNWARTUNG SECTION
   ========================================================================== */
.support-fernwartung {
  background-color: var(--surface-white);
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 6rem var(--spacing-gutter);
}

.fernwartung-container {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.fernwartung-title {
  margin-bottom: 2rem;
  color: var(--primary);
}

.fernwartung-desc {
  color: var(--text-muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.fernwartung-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

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

.fernwartung-btn-icon {
  margin-right: 0.5rem;
}

.fernwartung-notice {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.support-footer {
  background-color: var(--surface-container-low);
  border-top: 1px solid var(--surface-container-highest);
  padding: 4rem var(--spacing-gutter);
  text-align: center;
}

.support-footer-container {
  max-width: 36rem;
  margin: 0 auto;
}

.support-footer-title {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.support-footer-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.support-footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.support-footer-phone {
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--primary);
  transition: var(--transition-fast);
}

.support-footer-phone:hover {
  color: #763d32;
}

.support-footer-mail {
  font-weight: 500;
  color: var(--primary);
}

.support-footer-mail:hover {
  text-decoration: underline;
}

.support-footer-copyright {
  margin-top: 4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   INTERACTIVE LIVE-CHAT WIDGET & FAB
   ========================================================================== */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: var(--rounded-full);
  background-color: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: var(--transition-smooth);
  border: none;
}

.chat-fab:hover {
  transform: scale(1.05) rotate(5deg);
  background-color: #763d32;
}

.chat-fab-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--rounded-full);
  background-color: var(--primary);
  opacity: 0.4;
  z-index: -1;
  animation: fabPulse 2.5s infinite;
}

@keyframes fabPulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.chat-popup {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: calc(100vw - 48px);
  max-width: 360px;
  background-color: var(--surface-white);
  border-radius: var(--rounded-xl);
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 99;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.chat-popup.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  background-color: var(--primary);
  color: var(--on-primary);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.chat-avatar-wrap {
  position: relative;
}

.chat-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--rounded-full);
  object-fit: cover;
  border: 2px solid var(--on-primary);
}

.chat-online-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--tertiary);
  border-radius: var(--rounded-full);
  border: 2px solid var(--primary);
}

.chat-header-text h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.chat-header-text p {
  font-size: 0.875rem;
  color: var(--on-primary-container);
  margin: 0;
}

.chat-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--on-primary);
  cursor: pointer;
  opacity: 0.8;
  padding: 0;
  transition: var(--transition-fast);
}

.chat-close-btn:hover {
  opacity: 1;
}

.chat-body {
  padding: 1.5rem;
  background-color: var(--surface-container-low);
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: var(--rounded-lg);
  font-size: 1.0625rem;
  line-height: 1.4;
}

.chat-message.received {
  background-color: var(--surface-white);
  color: var(--primary);
  border-bottom-left-radius: var(--rounded-sm);
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
}

.chat-message.system {
  background-color: var(--supportive-blue);
  color: #0369a1;
  align-self: center;
  max-width: 100%;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  border-radius: var(--rounded-sm);
  padding: 0.5rem 1rem;
}

.chat-actions {
  padding: 1.25rem;
  background-color: var(--surface-white);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--rounded-default);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

.chat-btn-phone {
  background-color: var(--primary);
  color: var(--on-primary);
}
.chat-btn-phone:hover {
  background-color: #763d32;
}

.chat-btn-whatsapp {
  background-color: #22c55e;
  color: var(--surface-white);
}
.chat-btn-whatsapp:hover {
  background-color: #16a34a;
}

.chat-btn-mail {
  background-color: var(--surface-container);
  color: var(--primary);
}
.chat-btn-mail:hover {
  background-color: var(--surface-container-high);
}

/* ==========================================================================
   SUPPORT STEPS (HOW IT WORKS)
   ========================================================================== */
.support-steps {
  margin: 5rem auto;
  max-width: 1000px;
  padding: 0 var(--spacing-gutter);
}

.steps-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background-color: var(--surface-white);
  border: 1px solid var(--surface-container-highest);
  border-radius: var(--rounded-default);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition-smooth);
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--outline-variant);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.15;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}

.step-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--on-surface);
}
