/* Shared launch-critical responsive and navigation rules. */
img,
video,
iframe,
svg {
  max-width: 100%;
}

figure {
  max-width: 100%;
}

.hero-flyer-card {
  margin-inline: 0;
}

main,
section,
article,
div,
form,
fieldset {
  min-width: 0;
}

.mobile-nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  color: #17201c;
  background: #fff;
  border: 1px solid #dce2dd;
  border-radius: 6px;
  cursor: pointer;
}

.mobile-nav-toggle span {
  width: 21px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-nav-open .mobile-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .mobile-nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .mobile-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .site-header {
    position: sticky;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 12px;
    padding: 12px 16px;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
  }

  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
    overflow: hidden;
  }

  .site-header .brand > span:last-child {
    min-width: 0;
  }

  .site-header .brand strong,
  .site-header .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header .nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 0;
    max-height: min(62vh, 520px);
    overflow-y: auto;
    padding: 8px 0;
    background: #fff;
    border: 1px solid #dce2dd;
    border-radius: 6px;
    box-shadow: 0 18px 40px rgba(17, 24, 22, 0.16);
  }

  .site-header.is-nav-open .nav {
    display: flex;
  }

  .site-header .nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #eef1ee;
  }

  .site-header .nav a:last-child {
    border-bottom: 0;
  }

  .site-header .lang-switch {
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-header .lang-switch a,
  .site-header .lang-switch button {
    flex: 1;
    min-width: 0;
    min-height: 44px;
  }

  .asset-page-hero,
  .visual-split,
  .flyer-hero,
  .split,
  .contact-panel,
  .quote-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) 48px !important;
  }

  .site-header .brand-mark {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }

  h1,
  .asset-page-copy h1 {
    max-width: 100%;
    font-size: 36px !important;
    line-height: 1.14 !important;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 28px;
    line-height: 1.25;
  }

  .hero,
  .asset-page-hero,
  .growth-hero {
    width: 100%;
    min-height: auto;
  }

  .hero-flyer-card {
    width: 100%;
    margin: 0;
  }

  .hero-actions,
  .contact-actions,
  .premium-service-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .hero-actions > *,
  .contact-actions > *,
  .premium-service-actions > * {
    width: 100%;
    min-height: 48px;
  }

  .floating-actions,
  .sticky-contact {
    max-width: calc(100% - 16px);
  }

  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (max-width: 380px) {
  h1,
  .asset-page-copy h1 {
    font-size: 32px !important;
  }

  .site-header {
    padding-inline: 10px;
  }
}
