/* ==========================================================================
   3i Esporte Comércio Importação — folha de estilos
   ========================================================================== */

:root {
  --white: #ffffff;
  --offwhite: #f5f5f4;
  --gray-100: #e8e8e6;
  --gray-300: #c7c7c5;
  --gray-500: #8a8a87;
  --gray-700: #4a4a48;
  --charcoal: #2b2b2a;
  --black: #131313;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --header-height: 84px;
  --container-width: 1180px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gray-700);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--gray-700);
  margin: 0 0 14px;
  text-transform: none;
}
.eyebrow--light { color: var(--gray-300); }
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 4px;
  background: currentColor;
  vertical-align: -0.15em;
  animation: blink-cursor 1.1s step-end infinite;
}
@keyframes blink-cursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn--solid-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn--solid-dark:hover { background: var(--charcoal); border-color: var(--charcoal); }

.btn--solid-light {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn--solid-light:hover { background: var(--gray-100); border-color: var(--gray-100); }

.btn--outline-dark {
  background: transparent;
  color: var(--black);
  border-color: var(--gray-700);
}
.btn--outline-dark:hover { background: var(--black); color: var(--white); border-color: var(--black); }

.btn--outline-light {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline-light:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--gray-100);
  z-index: 500;
}

.header {
  transition: box-shadow .3s var(--ease);
}

.header__inner {
  max-width: var(--container-width);
  margin-inline: auto;
  height: 100%;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__brand { display: flex; align-items: center; transition: transform .25s var(--ease); }
.header__brand:hover { transform: scale(1.04); }
.header__logo { height: 68px; width: auto; border-radius: 10px; }

.nav__list {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  padding-bottom: 4px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--black);
  transition: width .25s var(--ease);
}
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 16px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--black);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Background image layer (shared by hero + sections)
   ========================================================================== */
.section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.08);
  will-change: transform;
}
.section__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay, rgba(255,255,255,0.9));
}

.section--dark .section__bg { --overlay: linear-gradient(180deg, rgba(19,19,19,0.86), rgba(19,19,19,0.94)); }
.section--alt .section__bg { --overlay: linear-gradient(180deg, rgba(245,245,244,0.93), rgba(245,245,244,0.96)); }
.section:not(.section--dark):not(.section--alt) .section__bg { --overlay: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.95)); }

/* Fundos mais visíveis: Sobre, Missão/visão/valores e Mercado de atuação */
#sobre .section__bg,
#mercado .section__bg {
  --overlay: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.78));
  filter: grayscale(0.85) contrast(1.05);
}
#missao-visao-valores .section__bg {
  --overlay: linear-gradient(180deg, rgba(245,245,244,0.62), rgba(245,245,244,0.76));
  filter: grayscale(0.85) contrast(1.05);
}

@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .section__bg { background-attachment: fixed; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  padding-bottom: 64px;
  background: var(--black);
  color: var(--white);
}

.hero__inner { width: 100%; }

.hero .section__bg { filter: grayscale(1) contrast(1.1) brightness(0.9); }
.hero .section__bg::after { background: var(--overlay, linear-gradient(180deg, rgba(19,19,19,0.72), rgba(19,19,19,0.9) 60%, rgba(19,19,19,0.97))); }

.hero__glyph {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: min(56vw, 760px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.08);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__inner > * {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in .7s var(--ease) forwards;
}
.hero__inner > .eyebrow { animation-delay: .05s; }
.hero__inner > .hero__title { animation-delay: .18s; }
.hero__inner > .hero__subtitle { animation-delay: .32s; }
.hero__inner > .hero__actions { animation-delay: .46s; }

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--gray-300);
  max-width: 620px;
  margin: 0 0 40px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; overflow: hidden; padding-block: 96px; }
.section--alt { background: var(--offwhite); }
.section--dark { background: var(--black); color: var(--white); }
.section > .container { position: relative; z-index: 1; }

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 24px;
  max-width: 720px;
  text-transform: uppercase;
}
.section__title--light { color: var(--white); }

.section__lead {
  font-size: 1.18rem;
  color: var(--black);
  max-width: 680px;
  margin: 0 0 48px;
}
.section__lead--light { color: var(--gray-300); }

/* ---------- Sobre ---------- */
.about {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}

.about__text p {
  color: var(--black);
  font-size: 1.06rem;
  margin: 0 0 20px;
}
.about__text p:last-child { margin-bottom: 0; }

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  border-left: 3px solid var(--black);
  padding: 8px 0 8px 20px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.stat-card:hover {
  transform: translateX(4px);
  border-color: var(--gray-700);
}
.stat-card__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
}
.stat-card__label {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--gray-700);
}

/* ---------- Missão / visão / valores ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mvv-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-top: 3px solid var(--black);
  padding: 32px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.mvv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}
.mvv-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}
.mvv-card p { margin: 0; color: var(--black); font-size: 1.06rem; }

/* ---------- Mercado de atuação ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
  margin-bottom: 64px;
}
.feature {
  border-top: 1px solid var(--gray-300);
  padding-top: 18px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.feature:hover {
  border-color: var(--black);
  transform: translateY(-4px);
}
.feature__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  margin: 0 0 10px;
}
.feature p { margin: 0; color: var(--black); font-size: 1.06rem; }

/* ---------- Galeria de produtos ---------- */
.produtos-hero .container { max-width: 780px; }

.produtos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}
.produtos-grid--home { grid-template-columns: repeat(4, 1fr); }

.produto-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.produto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}

.produto-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.produto-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  transition: transform .4s var(--ease);
}
.produto-card:hover .produto-card__image img { transform: scale(1.06); }

.produto-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  margin: 20px 20px 10px;
}
.produto-card__desc {
  color: var(--black);
  font-size: 0.98rem;
  margin: 0 20px 18px;
  flex-grow: 1;
}
.produto-card__link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 20px 20px;
  border-top: 1px solid var(--gray-100);
  padding-top: 14px;
  transition: color .2s var(--ease);
}
.produto-card__link:hover { color: var(--gray-700); }

@media (max-width: 960px) {
  .produtos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .produtos-grid { grid-template-columns: 1fr; }
}

.cta-banner {
  background: var(--offwhite);
  border: 1px solid var(--gray-100);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  max-width: 480px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.cta-banner--vitrine {
  margin-top: 24px;
  background: var(--black);
  border-color: var(--black);
}
.cta-banner--vitrine p { color: var(--white); }

/* ---------- CTA Vitrine (seção dedicada) ---------- */
.vitrine-cta {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.vitrine-cta .section__title,
.vitrine-cta .section__lead {
  margin-inline: auto;
}

/* ---------- Contato ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact__list li {
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 20px;
}
.contact__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gray-500);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.contact__list a { font-size: 1.05rem; }
.contact__list a:hover { text-decoration: underline; }

.contact__card {
  background: var(--black);
  color: var(--white);
  padding: 40px 32px;
}
.contact__card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.contact__card p { color: var(--gray-300); margin: 0 0 28px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--charcoal);
  color: var(--gray-300);
  padding-top: 64px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__logo {
  height: 60px;
  width: auto;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--white);
  padding: 4px 8px;
}
.footer__brand p { margin: 0; font-size: 0.9rem; }
.footer__nav, .footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
}
.footer__nav a:hover, .footer__contact a:hover { color: var(--white); }

.footer__bottom {
  text-align: center;
  padding: 24px;
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* ==========================================================================
   Badge MonteSite (fim do site, fluxo normal)
   ========================================================================== */
#montesite-footer-badge {
  width: 100%;
}

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
  animation: float-pulse 2.6s ease-in-out infinite;
}
.whatsapp-float:hover { background: var(--charcoal); transform: scale(1.05); animation-play-state: paused; }

@keyframes float-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,0.25), 0 0 0 0 rgba(19,19,19,0.35); }
  50% { box-shadow: 0 6px 18px rgba(0,0,0,0.25), 0 0 0 10px rgba(19,19,19,0); }
}
.whatsapp-float svg { width: 22px; height: 22px; fill: var(--white); flex-shrink: 0; }
.whatsapp-float__label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .nav__list li { border-bottom: 1px solid var(--gray-100); }
  .nav__list li:last-child { border-bottom: none; }
  .nav__link { display: block; padding: 14px 0; }
  .nav__toggle { display: flex; }
  .header__actions .btn { display: none; }
}

@media (max-width: 560px) {
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .whatsapp-float__label { display: none; }
  .whatsapp-float { padding: 14px; border-radius: 50%; }
}
