/* ==========================================================================
   index.css – Corrida Folha 105 Anos
   Fonte: PT Sans | Bootstrap 5
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variáveis globais
   -------------------------------------------------------------------------- */
:root {
  --blue-primary:   #0d6cd3;
  --green-primary:  #4fd267;
  --yellow-accent:  #f5d323;
  --white:          #ffffff;
  --font-base:      'PT Sans', sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  background-color: var(--blue-primary);
  color: var(--white);
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  background-color: var(--blue-primary);
  padding: 10px 0 10px;
  text-align: center;
  overflow: hidden;
}

/* Imagem de fundo com padrões decorativos (ondas e chevrons) */
.header-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url('images/bg-pattern-header.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.header-content {
  position: relative;
  z-index: 1;
}

/* Logo */
.logo-wrapper {
  margin-bottom: 32px;
}

.logo-img {
  height: auto;
}

/* Título */
.header-title {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 20px;

  /* Gradiente do título */
  background: linear-gradient(90deg, #f5c62b 0%, #f9efca 50%, #aad159 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Divisor */
.header-divider {
  width: 60px;
  height: 3px;
  background-color: var(--green-primary);
  margin: 0 auto 24px;
  border-radius: 2px;
}

/* Texto descritivo */
.header-text {
    font-size: 22px;
    color: var(--white);
    line-height: 25px;
    margin-bottom: 36px;
}

li {
    list-style: none;
    font-size: 20px;
    line-height: 24px;
}

.destaque {
    font-weight: 700;
    color: #4fd267;
}

/* --------------------------------------------------------------------------
   Seta animada
   -------------------------------------------------------------------------- */
.arrow-down {
    display: inline-block;
    font-size: 2rem;
    color: #f7db7d;
    animation: bounce 1.2s ease-in-out infinite;
    line-height: 1;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* --------------------------------------------------------------------------
   SEÇÃO FORMULÁRIO
   -------------------------------------------------------------------------- */
.form-section {
    position: relative;
    background-color: var(--green-primary);
    padding: 30px 0 70px;
    margin-top: -28px;
}

/* Ajuste de padding-top para compensar o clip */
.form-section > .container {
  padding-top: 20px;
}

.form-title {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: #1a1a1a;
  margin-bottom: 32px;
  text-align: center;
}

.tally-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: transparent;
}

.tally-wrapper iframe {
  display: block;
  border: none;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background-color: var(--blue-primary);
  padding: 60px 0 90px;
  text-align: center;
  overflow: hidden;
}

/* Imagem de fundo do footer (mesma ou variação do padrão decorativo) */
.footer-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url('images/bg-pattern-footer.jpg');
  background-size: cover;
  background-position: center 0;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.footer-content {
  position: relative;
  z-index: 1;
}

.footer-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-logo {
  height: auto;
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.footer-stars {
  color: var(--yellow-accent);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
}

/* --------------------------------------------------------------------------
   RESPONSIVIDADE
   -------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 768px) {
  .site-header {
    padding: 48px 0 64px;
  }


}

/* Mobile */
@media (max-width: 480px) {
    
    
/* Imagem de fundo com padrões decorativos (ondas e chevrons) */
.header-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url('images/bg-mobile.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}    
    
    
  .site-header {
    padding: 36px 0 56px;
  }

  .logo-img {
    max-width: 100%;
  }

.header-title {
    letter-spacing: 0.1em;
    font-size: 34px;
}
    
.form-section {
    position: relative;
    background-color: var(--green-primary);
    padding: 30px 0 30px;
    margin-top: -74px;
}    

  .header-text br {
    display: none;
  }

  .tally-wrapper {
    padding: 0 8px;
  }

  .site-footer {
    padding: 48px 0 40px;
  }
}