html {
  scroll-behavior: smooth;
}

/* Responsive guardrails for the static export. Every grid/flex child must be
   allowed to shrink before its text or image can create horizontal overflow. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  min-width: 0;
}

main,
header,
footer,
section,
article,
.container,
picture,
iframe {
  max-width: 100%;
}

picture {
  display: block;
  min-width: 0;
}

img,
picture img,
iframe {
  max-width: 100%;
}

/* Secondary pages use the same stable media frame as the Home. The image
   itself stays inside the hero/card box, including portrait product photos. */
.secondary-hero-picture {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.secondary-hero-image,
.showcase-media-image {
  display: block;
  max-width: 100%;
}

.secondary-hero-image {
  width: 100%;
  height: 100%;
}

.showcase-media-frame {
  width: 100%;
  min-width: 0;
  min-height: 0;
  background: #f4f4f2;
}

.showcase-media-image {
  object-position: center;
}

@media (max-width: 767px) {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  a,
  li,
  summary,
  span {
    overflow-wrap: anywhere;
  }

  .container {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .prose,
  .prose > *,
  [class*="grid"] > *,
  [class*="flex"] > * {
    min-width: 0;
    max-width: 100%;
  }

  .relative.overflow-hidden > picture,
  .relative.overflow-hidden > picture > img,
  .relative.overflow-hidden > img {
    width: 100%;
    max-width: 100%;
  }

  .relative.overflow-hidden > picture > img,
  .relative.overflow-hidden > img {
    height: 100%;
  }

  .topic-hero-picture,
  .topic-hero-picture img {
    max-width: 100%;
    overflow: hidden;
  }

  .secondary-hero-picture,
  .secondary-hero-picture img {
    width: 100%;
    max-width: 100%;
  }

  .secondary-hero-image {
    object-fit: contain !important;
    object-position: center !important;
  }

  .showcase-card,
  .showcase-media-frame,
  .showcase-media-image {
    max-width: 100%;
  }

  .showcase-media-image.object-contain {
    padding: 0.75rem !important;
  }

  .adult-bike-hero img,
  .adult-bike-hero-image {
    object-fit: contain !important;
    object-position: center !important;
  }

  .aspect-\[4\/3\] img,
  .aspect-square img,
  .aspect-video img {
    max-width: 100%;
  }
}

html.menu-open,
html.menu-open body {
  overflow: hidden;
}

.static-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(2, 6, 23, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
  backdrop-filter: blur(4px);
}

.static-mobile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.static-mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 90;
  display: flex;
  width: min(86vw, 320px);
  flex-direction: column;
  color: #f8fafc;
  background: #1e293b;
  box-shadow: -24px 0 70px rgba(2, 6, 23, 0.45);
  transform: translateX(105%);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.static-mobile-menu.is-open {
  transform: translateX(0);
}

.static-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.static-mobile-brand {
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.static-mobile-brand span {
  color: #ff6b00;
}

.static-mobile-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.static-mobile-nav {
  display: grid;
  gap: 4px;
  padding: 18px 16px;
}

.static-mobile-nav a {
  padding: 14px 16px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.static-mobile-nav a:hover,
.static-mobile-nav a:focus-visible {
  color: #ff7a19;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.static-mobile-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.static-mobile-actions > a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.static-mobile-whatsapp {
  color: #fff;
  background: #22c55e;
}

.static-mobile-phone {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.static-mobile-actions p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

[role="region"][data-state="open"] {
  animation: static-faq-open 220ms ease-out;
}

@keyframes static-faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1024px) {
  .static-mobile-menu,
  .static-mobile-backdrop {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Lighthouse accessibility and rendering fixes */
.bg-primary.text-white,.bg-primary .text-white,.bg-primary.text-primary-foreground,.btn-primary,.btn-secondary-outline:hover{color:#111827 !important}
.btn-whatsapp{color:#052e16 !important}
:where(a,button,input,select,textarea):focus-visible{outline:3px solid #111827;outline-offset:3px}
