html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* iOS-specific font size fixes */
@supports (-webkit-touch-callout: none) {
  .small-text {
    font-size: 14px !important;
    line-height: 22px !important;
  }
  
  .small-text-narrow {
    font-size: 14px !important;
    line-height: 18px !important;
  }
  
  /* Hero subtitle specific fix for iOS */
  [data-translate*="hero.subtitle"] {
    font-size: 16px !important;
    line-height: 24px !important;
  }
}

/* Alternative: Special class for hero subtitles */
.hero-subtitle {
  font-size: 14px;
  line-height: 22px;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (min-width: 1440px) {
  .hero-subtitle {
    font-size: 18px;
    line-height: 28px;
  }
}

@media (max-width: 767px) {
  nav .flex.justify-between {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  nav .flex.justify-between > div:last-child {
    flex-shrink: 0;
    min-width: 0;
  }
  
  nav a[data-translate] {
    margin-right: 0.5rem !important;
    font-size: 14px;
  }
  
  @media (max-width: 480px) {
    .language-switcher .lang-btn .text {
      display: none;
    }
    
    .language-switcher .lang-btn {
      padding: 4px 6px;
      min-width: 28px;
    }
  }
}

@media (max-width: 767px) {
  .tablet\:ml-20,
  .laptop\:ml-40,
  .desktop\:ml-40 {
    margin-left: 0 !important;
  }
  
  .px-7 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .w-\[280px\] {
    width: 100% !important;
    max-width: 280px !important;
  }
  
  footer .flex.space-x-20 {
    flex-direction: column;
    gap: 1rem;
  }
  
  footer .tablet\:w-1\/2 {
    width: 100% !important;
  }
  
  footer .tablet\:ml-10,
  footer .desktop\:ml-20 {
    margin-left: 0 !important;
  }
  
  footer .space-x-20 > * + * {
    margin-left: 0 !important;
  }
  
  footer .desktop\:space-x-40 > * + * {
    margin-left: 0 !important;
  }
}

@media (max-width: 480px) {
  .hero-header {
    font-size: 48px !important;
    line-height: 48px !important;
  }
  
  .section-header {
    font-size: 36px !important;
    line-height: 36px !important;
  }
  
  .sans-header {
    font-size: 20px !important;
    line-height: 20px !important;
  }
  
  .px-7 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  nav .flex.justify-between {
    padding: 0.75rem !important;
  }
  
  nav a[data-translate] {
    margin-right: 0.25rem !important;
    font-size: 12px;
  }
}

* {
  box-sizing: border-box;
}

.max-w-screen-desktop {
  max-width: 100vw;
  overflow-x: hidden;
}

video, img {
  max-width: 100%;
  height: auto;
}

.flex {
  flex-wrap: wrap;
}

.absolute {
  max-width: 100vw;
}

