/* Skip to content link */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background-color: #000;
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.skip-to-content:focus,
.skip-to-content:focus-visible {
  left: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

html { scroll-behavior: smooth; }

.tap-hint {
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.hero-logo {
  max-height: 80px;
  margin-bottom: 1.5rem;
}

/* Visible focus outlines for interactive elements */
a:focus,
button:focus,
[role="button"]:focus,
input:focus,
textarea:focus,
select:focus,
.navbar-item:focus,
.button:focus {
  outline: 3px solid #485fc7;
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.navbar-item:focus-visible,
.button:focus-visible {
  outline: 3px solid #485fc7;
  outline-offset: 2px;
}

/* Language switcher: segmented toggle */
.lang-switch {
  display: inline-flex;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.lang-switch__active,
.lang-switch__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  min-width: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: none;
}

.lang-switch__active {
  background-color: #fff;
  color: #242424;
}

.lang-switch__link {
  color: #fff;
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-switch__link:hover,
.lang-switch__link:focus {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
}

.lang-switch__link:focus-visible {
  outline: 3px solid #485fc7;
  outline-offset: 2px;
}

/* Mobile: compact but readable */
@media (max-width: 768px) {
  .hero-logo { max-height: 48px; margin-bottom: 0.5rem; }
  .title.is-1 { font-size: 1.6rem !important; }
  .title.is-2 { font-size: 1.35rem !important; }
  .title.is-3 { font-size: 1.15rem !important; }
  .title.is-4 { font-size: 1rem !important; }
  .subtitle.is-3 { font-size: 1rem !important; }
  .subtitle.is-4 { font-size: 0.9rem !important; }
  .subtitle.is-5 { font-size: 0.85rem !important; }
  .content.is-large { font-size: 0.9rem !important; }
  .content.is-medium { font-size: 0.85rem !important; }
  .hero-body { padding: 1rem 0.75rem !important; }
  .section { padding: 1rem 0.75rem !important; }
  .notification { display: none !important; }
  .tags .tag { font-size: 0.7rem !important; }
  .navbar-item { font-size: 0.8rem; padding: 0.25rem 0.5rem; }
  .navbar-brand .navbar-item { font-size: 1rem; }
  html { scroll-padding-top: 2.5rem; }

  /* Keep language switcher usable in mobile navbar menu */
  .lang-switch__active,
  .lang-switch__link {
    min-height: 2rem;
    min-width: 2.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
  .navbar-menu .navbar-item:has(.lang-switch) {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  /* Compact services: keep descriptions visible */
  #services .column p {
    display: block;
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
  }
  #services .columns { gap: 0.25rem !important; }
  #services .column { padding: 0.25rem !important; }

  /* Compact FAQ: keep answers visible */
  #faq .content p + p {
    display: block;
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
  }
  #faq .content p.has-text-weight-bold { margin-bottom: 0.25rem !important; }

  /* Compact founder: keep bio visible */
  #founder .content p:not(:first-child) {
    display: block;
    font-size: 0.85rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
  }

  /* Compact contact */
  #contact .content p {
    font-size: 0.85rem !important;
    line-height: 1.35;
    margin-bottom: 0.25rem;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tap-hint { animation: none; }
}
