/* Nacho Bike — premium storefront */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --accent-soft: rgba(14, 165, 233, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 16px 48px rgba(15, 23, 42, 0.12);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 1100px) {
  :root {
    --header-h: 80px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

main {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* SVGs decorativos inline: não forçar altura auto em ícones de botão */
.btn-icon svg,
.wa-float__icon svg {
  max-width: none;
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  box-sizing: border-box;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.35s var(--ease);
}

.site-header .container {
  min-width: 0;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
}

.logo-link img {
  height: 42px;
  width: auto;
  max-width: 100%;
  flex-shrink: 1;
  min-width: 0;
  object-fit: contain;
  aspect-ratio: auto;
}

@media (min-width: 768px) {
  .logo-link img {
    height: 50px;
  }
}

@media (min-width: 1100px) {
  .logo-link img {
    height: 58px;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}

a.btn-icon {
  text-decoration: none;
  color: inherit;
}

.btn-icon:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.cart-count {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
}

.menu-toggle {
  display: inline-flex;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 99;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.25rem;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 0.65rem 0;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: #1a1a1a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
}

.btn-accent:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.45);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 3rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  min-width: 0;
}

.hero-copy {
  min-width: 0;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
    min-height: min(78vh, 640px);
  }
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.hero-copy p {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow-hover);
  min-width: 0;
  max-width: 100%;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
}

.hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border-radius: 10px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Section titles */
.section-head {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 32ch;
}

/* Products */
.section-products {
  padding: 3rem 0 4rem;
}

.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  min-width: 0;
}

.product-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  justify-content: center;
}

.btn-sm {
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
}

.card-product {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s;
  min-width: 0;
  max-width: 100%;
}

.card-product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.card-product .thumb {
  aspect-ratio: 1;
  background: #f1f5f9;
  overflow: hidden;
}

.card-product .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform 0.5s var(--ease);
  cursor: zoom-in;
}

.card-product:hover .thumb img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.price {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.price small {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  vertical-align: super;
}

.card-product .btn {
  width: 100%;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

@media (min-width: 560px) {
  .card-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.product-detail-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .product-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.product-detail-grid .thumb {
  aspect-ratio: 1;
  border-radius: var(--radius);
}

.product-detail-grid .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.85rem;
}

/* Promo banner */
.promo-banner {
  position: relative;
  margin: 2rem 0 4rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  background: #0f172a;
  max-width: 100%;
  min-width: 0;
}

.promo-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.promo-inner {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 320px;
  max-width: 520px;
}

.promo-inner h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.promo-inner p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

/* Tech strip */
.section-tech {
  padding: 2rem 0 4rem;
}

.tech-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  min-width: 0;
}

.tech-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease);
}

.tech-card:hover {
  transform: translateY(-4px);
}

.tech-card img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.tech-card figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

/* Benefits */
.section-benefits {
  padding: 2rem 0 4rem;
}

.benefits-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  min-width: 0;
}

.benefit {
  display: flex;
  gap: 1rem;
  padding: 1.35rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: border-color 0.25s, box-shadow 0.25s;
  max-width: 100%;
  min-width: 0;
}

.benefit:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.benefit-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
  max-width: none;
  flex-shrink: 0;
}

.benefit h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.benefit p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.benefit > div:last-child {
  min-width: 0;
}

/* Final CTA */
.final-cta {
  position: relative;
  margin: 2rem 0 4rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  max-width: 100%;
  min-width: 0;
}

.final-cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.35) 55%, transparent 100%);
}

.final-cta .inner {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 4vw, 3.5rem);
  max-width: 480px;
}

.final-cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.final-cta p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.final-cta .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Brand strip */
.brand-strip {
  padding: 2rem 0;
  display: grid;
  gap: 2rem;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 768px) {
  .brand-strip {
    grid-template-columns: 1fr 1fr;
  }
}

.brand-strip figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.brand-strip img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.brand-strip .story {
  padding: 0 0.5rem;
}

.brand-strip .story h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.brand-strip .story p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.brand-strip .badge-wrap {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-strip .badge-wrap img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--line);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #e2e8f0;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  margin-bottom: 2rem;
  min-width: 0;
}

.site-footer h3 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.site-footer a {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #fff;
}

.social {
  display: flex;
  gap: 0.75rem;
}

.social a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0;
}

.social a:hover {
  background: var(--accent);
  color: #fff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: center;
}

/* Mobile / tablet estreito: textos de conteúdo centralizados */
@media (max-width: 899px) {
  .hero-copy {
    text-align: center;
  }

  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-badge {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .section-head {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .section-head p {
    margin-inline: auto;
  }

  .card-body {
    text-align: center;
  }

  .promo-inner {
    align-items: center;
    text-align: center;
    margin-inline: auto;
  }

  .tech-card figcaption {
    text-align: center;
  }

  .benefit {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .final-cta .inner {
    margin-inline: auto;
    text-align: center;
  }

  .final-cta .row {
    justify-content: center;
  }

  .brand-strip .story {
    text-align: center;
    padding-inline: 0;
  }

  .brand-strip .badge-wrap {
    justify-content: center;
  }

  .nav-mobile a {
    text-align: center;
  }

  .site-footer .footer-grid > div {
    text-align: center;
  }

  .site-footer .social {
    justify-content: center;
  }
}

/* Anchor offset for fixed header */
section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* WhatsApp flutuante (anel contido para não gerar overflow) */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 150;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #2fe066 0%, #25d366 42%, #1ebe57 100%);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.08),
    0 12px 28px rgba(37, 211, 102, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.2s;
  overflow: hidden;
  contain: layout style paint;
}

.wa-float:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow:
    0 8px 16px rgba(15, 23, 42, 0.1),
    0 18px 40px rgba(37, 211, 102, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.28) inset;
  filter: brightness(1.05);
}

.wa-float:active {
  transform: scale(0.98);
}

.wa-float__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  animation: wa-pulse 2.4s var(--ease) infinite;
  pointer-events: none;
}

.wa-float__icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.12);
    opacity: 0;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float__ring {
    animation: none;
    opacity: 0.35;
  }

  .wa-float {
    transition: none;
  }
}

@media (min-width: 900px) {
  .wa-float {
    width: 64px;
    height: 64px;
  }

  .wa-float__icon svg {
    width: 30px;
    height: 30px;
  }
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(10, 10, 10, 0.88);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.image-lightbox__img {
  width: min(94vw, 980px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.image-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-choice-modal {
  position: fixed;
  inset: 0;
  z-index: 230;
  background: rgba(10, 10, 10, 0.62);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cart-choice-modal__card {
  width: min(92vw, 460px);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-hover);
  padding: 1.25rem;
}

.cart-choice-modal__card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.cart-choice-modal__card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.cart-choice-modal__actions {
  display: grid;
  gap: 0.55rem;
}
