/* ========================================
   ANIMATED HEADLINE SECTION
   ======================================== */

:root {
  --headline-fade: #bbb;
  --headline-color: #222;
  --headline-active: #111;
}

.headline-animate-section {
  max-width: var(--section-width);
  padding-top: var(--spacing-xl);
  padding-bottom: 0;
  margin: 20vh auto 24vh auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.headline-animate-section h1 {
  margin-top: 2.5rem;
  margin-bottom: 1.8rem;
}

.headline-animate-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.headline-animate {
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--headline-fade);
  transition: color 0.7s;
  text-align: center;
}

.headline-animate-sub {
  /* margin-top: var(--spacing-lg); */
  color: #444;
  text-align: center;
}

.headline-word {
  display: inline-block;
  opacity: 0.2;
  color: var(--headline-fade);
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.4s;
  will-change: opacity, color;
  margin-right: var(--spacing-xs);
}

.headline-word.highlight {
  color: var(--headline-fade);
}

.headline-word.visible {
  opacity: 1;
  color: var(--headline-active);
}

.headline-word.highlight.visible {
  color: var(--headline-color);
}

.headline-word:last-child {
  margin-right: 0;
}

/* ========================================
   HEADLINE ACTION BUTTONS
   ======================================== */

.headline-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-2xl);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.headline-actions .btn {
  position: relative;
  min-width: 200px;
}

.headline-actions .btn img {
  width: 24px;
  height: 24px;
}

/* ========================================
   HEADLINE SECTION - MEDIA QUERIES
   ======================================== */

/* Large monitors (1920px and above) */
@media (min-width: 1920px) {
  .headline-animate-section {
    margin: 220px auto 250px auto;
  }
}

/* Mobile (640px and down) */
@media (max-width: 640px) {
  .headline-animate-section {
    margin: 15vh auto 15vh auto;
    padding-top: var(--spacing-xl);
    padding-bottom: 0;
  }

  .headline-actions {
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
  }

  .headline-actions .btn {
    min-width: 100%;
    width: 100%;
  }

  /* Hide WhatsApp button on mobile */
  .headline-actions .btn:nth-child(2) {
    display: none !important;
  }

  /* Transform Telegram button on mobile to match hero section */
  .headline-actions .btn:nth-child(1) {
    justify-content: space-between !important;
    text-align: left !important;
    flex: none;
    width: 80%;
    max-width: 280px;
    font-size: var(--text-base) !important;
    padding: 1em 1.5em !important;
    white-space: nowrap;
  }

  .headline-actions .btn:nth-child(1) img {
    display: none !important;
  }

  .headline-actions .btn:nth-child(1)::after {
    content: '❯';
    font-weight: bold;
    margin-left: auto;
  }
}
