/* ==========================================================================
   BoraPlay.app — Design tokens
   ========================================================================== */
:root {
  --color-yellow: #ffff00;
  --color-yellow-hover: #f8f812;
  --color-navy-900: #1b252f;
  --color-navy-800: #19232d;
  --color-navy-700: #2d363f;
  --color-black: #1a1a1a;
  --color-white: #ffffff;
  --color-gray: #b9b9b9;
  --color-blue: #406ee2;
  --color-text-dark: #333333;

  --font-display: "Gabarito", sans-serif;
  --font-hero: "Manrope", sans-serif;
  --font-body: "Montserrat", sans-serif;

  --container-padding: 20px;
  --section-padding: clamp(48px, 8vw, 96px);
}

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

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

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
}

p {
  margin: 0 0 1em;
  line-height: 1.5;
}

p:last-child {
  margin-bottom: 0;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

input,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0;
  top: -100px;
  background: var(--color-yellow);
  color: var(--color-navy-900);
  padding: 12px 20px;
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.section-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-yellow {
  color: var(--color-yellow);
}

#baixar-app,
#esportes,
#para-o-atleta,
#para-a-arena,
#como-funciona,
#orcamento {
  scroll-margin-top: 64px;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-yellow);
  font-size: 1.5rem;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.eyebrow--center {
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  text-transform: uppercase;
  padding: 20px 40px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn--yellow {
  background-color: var(--color-yellow);
  color: var(--color-navy-900);
}

.btn--yellow:hover,
.btn--yellow:focus-visible {
  background-color: var(--color-yellow-hover);
  transform: translateY(-2px);
}

.btn--block {
  display: flex;
  width: 100%;
  border-radius: 3px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background-color: var(--color-navy-800);
}

.site-header__top {
  padding: 18px 0;
}

.site-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header__logo img {
  width: 220px;
  height: auto;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-nav {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav__list {
  display: none;
  flex-direction: column;
  gap: 0;
}

.site-nav__link {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-white);
  padding: 16px var(--container-padding);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--color-navy-900);
  background-color: var(--color-yellow);
}

.site-nav.is-open .site-nav__list {
  display: flex;
  position: fixed;
  top: 145px;
  left: 0;
  width: 100vw;
  background-color: var(--color-navy-700);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  z-index: 30;
}

.site-nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  flex-shrink: 0;
}

.site-nav__toggle-bar {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--color-white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav.is-open .site-nav__toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-nav.is-open .site-nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .site-nav__toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.ticker {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--color-yellow);
  color: var(--color-navy-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0;
  padding: 14px 20px;
  transition: background-color 0.2s ease;
}

.ticker:hover,
.ticker:focus-visible {
  background-color: var(--color-yellow-hover);
}

.ticker__icon {
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-navy-900);
}

.hero__collage {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 0;
}

.hero__img {
  height: 100%;
  width: 33.333%;
  object-fit: cover;
}

.hero__img--left,
.hero__img--right {
  display: none;
}

.hero__img--center {
  width: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 20px;
  max-width: 720px;
}

.hero__title {
  font-size: clamp(2.25rem, 8vw, 4.5rem);
  line-height: 1.0;
  color: var(--color-white);
  margin-bottom: 20px;
}

.hero__title-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: none;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  line-height: 1.4;
  color: var(--color-yellow);
  margin-top: 12px;
}

.hero__text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-white);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-transform: uppercase;
}

/* ==========================================================================
   App download
   ========================================================================== */
.app-download {
  background-color: var(--color-yellow);
  color: var(--color-navy-900);
  padding: var(--section-padding) 0;
  text-align: center;
}

.app-download h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 32px;
}

.app-download__buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.app-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background-color: var(--color-navy-900);
  color: var(--color-white);
  padding: 28px 60px;
  min-width: 160px;
  transition: transform 0.15s ease, background-color 0.2s ease;
  width: 40%;
  border-radius: 10px;
}

.app-btn:hover,
.app-btn:focus-visible {
  background-color: var(--color-navy-700);
  transform: translateY(-2px);
}

.app-btn__icon {
  width: 32px;
  height: 32px;
}

.app-btn span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
}

/* ==========================================================================
   Sports grid
   ========================================================================== */
.sports {
  background-color: var(--color-black);
  padding: var(--section-padding) 0;
}

.sports h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
}

.brand-logo {
  width: 220px;
  height: auto;
}

.brand-logo.brand-logo--xl {
  width: 330px;
}

.sports__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.sports__item {
  position: relative;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sports__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 60%);
}

.sports__item h3 {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--color-white);
  text-align: center;
}

/* ==========================================================================
   CTA quadra
   ========================================================================== */
.cta-quadra {
  background-color: var(--color-navy-900);
  padding: var(--section-padding) 0;
  text-align: center;
}

.cta-quadra h2 {
  color: var(--color-yellow);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.cta-quadra__subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  margin-bottom: 32px;
  text-transform: uppercase;
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
  background-color: var(--color-yellow);
  color: var(--color-navy-900);
  padding: var(--section-padding) 0;
  text-align: center;
}

.stats__lead {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 0px;
  text-transform: none;
  letter-spacing: -0.6px;
}

.stats__number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 130px;
  line-height: 1;
  margin: 0 0 0px;
}

.stats__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  text-transform: none;
  letter-spacing: -0.6px;
  line-height: 1.2;
}

/* ==========================================================================
   Intro (Todo play tem)
   ========================================================================== */
.intro {
  background-color: var(--color-navy-900);
  padding: var(--section-padding) 0;
}

.intro h2 {
  text-align: center;
  color: var(--color-white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 56px;
}

.intro__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.intro__col img {
  width: 100%;
  height: 362px;
  object-fit: cover;
  margin-bottom: 24px;
}

.intro__col h3 {
  color: var(--color-yellow);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.intro__col p {
  color: var(--color-gray);
  font-size: 1rem;
}

/* ==========================================================================
   Como funciona
   ========================================================================== */
.como-funciona {
  background-color: var(--color-navy-700);
  padding: var(--section-padding) 0;
}

.como-funciona__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

.como-funciona__text h2 {
  font-family: var(--font-hero);
  font-weight: 900;
  color: var(--color-white);
  font-size: clamp(2.25rem, 7vw, 4.375rem);
  line-height: 1.1;
  letter-spacing: -3px;
}

.como-funciona__desc p {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--color-white);
  margin-bottom: 1.5em;
}

.como-funciona__desc p:last-child {
  margin-bottom: 0;
}

.como-funciona__desc strong {
  color: var(--color-yellow);
  font-weight: 700;
}

.como-funciona__images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.como-funciona__images img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: 100px;
}

/* ==========================================================================
   Banner (Grave quantos lances)
   ========================================================================== */
.banner {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: calc(var(--section-padding) + 20px) 0;
  text-align: center;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.45);
}

.banner .section-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.banner h2 {
  color: var(--color-white);
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.banner p {
  color: var(--color-yellow);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  text-transform: uppercase;
}

/* ==========================================================================
   Valores (Sobre / Foco / Contratar)
   ========================================================================== */
.valores {
  background-color: var(--color-navy-900);
  padding: var(--section-padding) 0;
}

.valores .section-inner {
  max-width: 1150px;
}

.valores__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: center;
}

.valores h3 {
  color: var(--color-yellow);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.valores p {
  color: var(--color-white);
  font-size: 1rem;
}

/* ==========================================================================
   Contato / Form
   ========================================================================== */
.contato {
  background-color: var(--color-navy-800);
  padding: var(--section-padding) 0;
  text-align: center;
}

.contato h2 {
  color: var(--color-white);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 12px;
}

.contato__subtitle {
  color: var(--color-gray);
  max-width: 560px;
  margin: 0 auto 48px;
}

.form {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__field label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-yellow);
  font-size: 0.9rem;
}

.form__field input,
.form__field textarea {
  background-color: var(--color-white);
  color: var(--color-text-dark);
  border: none;
  padding: 14px 16px;
  border-radius: 2px;
}

.form__field textarea {
  resize: vertical;
}

.form__fieldset {
  border: none;
  padding: 0;
  margin: 8px 0 24px;
}

.form__fieldset legend {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-yellow);
  font-size: 0.9rem;
  margin-bottom: 12px;
  padding: 0;
}

.form__checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-yellow);
  font-size: 0.95rem;
  cursor: pointer;
}

.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-yellow);
  flex-shrink: 0;
}

.form__feedback {
  margin-top: 16px;
  font-weight: 600;
  min-height: 1.5em;
}

.form__feedback[data-status="success"] {
  color: #2ed813;
}

.form__feedback[data-status="error"] {
  color: #ff6b6b;
}

/* ==========================================================================
   Legal pages (Privacidade / Termos)
   ========================================================================== */
.page-legal {
  background-color: #101010;
}

.legal {
  padding: var(--section-padding) 0;
}

.legal .section-inner {
  max-width: 860px;
}

.legal__updated {
  color: var(--color-gray);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal h1 {
  color: var(--color-white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 8px;
}

.legal h2 {
  color: var(--color-yellow);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  margin: 40px 0 12px;
}

.legal h3 {
  color: var(--color-white);
  font-size: 1.05rem;
  margin: 24px 0 10px;
}

.legal p {
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 20px;
  list-style: disc;
}

.legal li {
  color: var(--color-gray);
  line-height: 1.6;
  margin-bottom: 8px;
}

.legal a {
  color: var(--color-yellow);
  text-decoration: underline;
}

.legal strong {
  color: var(--color-white);
}

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25d366;
  color: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  z-index: 50;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background-color: #1ebe5b;
  transform: translateY(-3px) scale(1.05);
}

@media (max-width: 480px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #101010;
  padding: 20px 0;
}

.site-footer__inner {
  min-height: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
}

.site-footer__logo img {
  display: block;
  width: 110px;
  height: auto;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 24px;
}

.site-footer__nav a {
  color: var(--color-gray);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--color-yellow);
}

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */

/* Small phones ≥375px */
@media (min-width: 375px) {
  .app-btn {
    padding: 28px 48px;
  }
}

/* Large phones ≥480px */
@media (min-width: 480px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }

  .form__checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablets ≥768px */
@media (min-width: 768px) {
  .hero {
    min-height: 720px;
  }

  .hero__img--left,
  .hero__img--right {
    display: block;
  }

  .hero__img--left,
  .hero__img--right {
    width: 30%;
  }

  .hero__img--center {
    width: 40%;
  }

  .sports__grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .intro__columns {
    grid-template-columns: 1fr 1fr;
  }

  .como-funciona__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .como-funciona__images {
    grid-template-columns: repeat(4, 1fr);
  }

  .valores__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Small laptops ≥1024px */
@media (min-width: 1024px) {
  .hero__content {
    padding: 160px 20px;
  }

  .app-btn {
    padding: 28px 70px;
  }

  .site-nav__toggle {
    display: none;
  }

  .site-nav__list,
  .site-nav.is-open .site-nav__list {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    min-width: 0;
    background-color: transparent;
    box-shadow: none;
  }

  .site-nav__link {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* Laptops ≥1366px */
@media (min-width: 1366px) {
  :root {
    --container-padding: 40px;
  }
}

/* Desktops ≥1440px */
@media (min-width: 1440px) {
  .sports__item {
    min-height: 280px;
  }
}

/* Large desktops ≥1920px */
@media (min-width: 1920px) {
  .section-inner {
    max-width: 1680px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
