/* ========================================
   ACELERANDO NA CRIA - GlobalGen
   Cores extraídas direto do Figma
   ======================================== */

:root {
  /* Cores do design system Figma */
  --firefly-950: #001419;
  --firefly-900: #092629;
  --firefly-800: #1a393d;
  --firefly-700: #2c5257;
  --firefly-600: #3e686f;
  --firefly-500: #58898e;
  --firefly-100: #eaf6f7;
  --java-900: #184e54;
  --java-600: #00939b;
  --java-400: #1cd1d2;
  --keylimepie-400: #cfd93a;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--firefly-950);
  color: var(--white);
  line-height: 1.4;
  letter-spacing: -0.02em;
  width: 100%;
}

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

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  background: rgba(0, 20, 25, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--firefly-800);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.logo-globalgen {
  height: 40px;
  width: auto;
  display: block;
}

.logo-globalgen-footer {
  height: 56px;
  width: auto;
}

.globalgen-text {
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 688px;
  padding-top: 84px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 76%;
  height: 100%;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--firefly-950) 0%, transparent 50%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 88px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
}

.hero-logo {
  max-width: 591px;
  width: 100%;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

.hero-text {
  font-size: 20px;
  color: var(--firefly-100);
  max-width: 520px;
  line-height: 1.4;
}

.hero-text strong {
  font-weight: 700;
  color: var(--white);
}

/* ========================================
   BOTÕES
   ======================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--java-600);
  border: 1px solid var(--java-400);
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: -0.02em;
}

.btn-primary:hover {
  background: var(--java-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 147, 155, 0.3);
}

.btn-hero {
  padding: 20px 24px;
  border-radius: 12px;
  font-size: 16px;
}

.btn-cta-final {
  padding: 20px 24px;
  border-radius: 12px;
  font-size: 16px;
  width: 100%;
  max-width: 385px;
}

/* ========================================
   INFO BAR
   ======================================== */
.info-bar {
  background: rgba(0, 20, 25, 0.4);
  border-top: 1px solid var(--firefly-800);
  border-bottom: 1px solid var(--firefly-800);
  padding: 24px 0;
}

.info-bar-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

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

.info-icon {
  background: var(--java-900);
  padding: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  color: var(--java-400);
}

.info-icon img,
.info-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.info-item p {
  font-size: 18px;
  color: var(--firefly-100);
  line-height: 1.3;
}

.info-item p strong {
  font-weight: 700;
  color: var(--white);
}

/* ========================================
   CADASTRO
   ======================================== */
.cadastro {
  padding: 64px 24px;
  display: flex;
  justify-content: center;
}

.cadastro-card {
  background: var(--firefly-900);
  border: 1px solid var(--firefly-700);
  border-radius: 24px;
  padding: 71px;
  max-width: 1008px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.cadastro-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cadastro-titulo {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
}

.divider-yellow {
  width: 168px;
  height: 2px;
  background: var(--keylimepie-400);
}

.cadastro-texto {
  font-size: 20px;
  color: var(--white);
  line-height: 1.4;
}

.cadastro-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cadastro-form input,
.cadastro-form select {
  background: var(--firefly-800);
  border: 1px solid var(--firefly-700);
  border-radius: 8px;
  padding: 12px 14px;
  height: 44px;
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
}

.cadastro-form input::placeholder {
  color: var(--firefly-500);
  font-size: 12px;
  font-weight: 500;
}

.cadastro-form input:focus,
.cadastro-form select:focus {
  border-color: var(--java-400);
}

.cadastro-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2358898e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  color: var(--firefly-500);
  font-size: 12px;
}

.cadastro-form select:valid {
  color: var(--white);
}

.cadastro-form select option {
  background: var(--firefly-800);
  color: var(--white);
}

.btn-form {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 12px;
  margin-top: 12px;
}

.btn-form:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin-top: 8px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.form-status.success {
  color: var(--java-400);
}

.form-status.error {
  color: #ff6b6b;
}

/* ========================================
   CONVIDADOS
   ======================================== */
.convidados {
  padding: 64px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 37px;
  margin-bottom: 37px;
}

.section-title h2 {
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
}

.section-title h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.line-yellow {
  flex: 1;
  max-width: 312px;
  height: 2px;
  background: var(--keylimepie-400);
}

.line-long {
  max-width: 416px;
}

.section-title-small {
  margin-top: 37px;
  margin-bottom: 37px;
  gap: 52px;
}

.convidados-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 37px;
}

.convidado-card {
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 280 / 350;
  background: var(--firefly-900);
  display: block;
}

.convidado-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========================================
   FEATURES BAR
   ======================================== */
.features-bar {
  background: var(--firefly-900);
  border: 1px solid var(--firefly-700);
  border-radius: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 124px;
  width: 100%;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
  border-right: 1px solid var(--firefly-700);
}

.feature-item:last-child {
  border-right: none;
}

.feature-icon {
  width: 52px;
  height: 52px;
  color: var(--java-400);
  flex-shrink: 0;
  display: block;
}

.feature-item p {
  font-size: 20px;
  font-weight: 700;
  color: var(--firefly-100);
  line-height: 1.2;
}

/* ========================================
   CTA FINAL
   ======================================== */
.cta-final {
  padding: 64px 24px;
  display: flex;
  justify-content: center;
}

.cta-card {
  background: var(--firefly-900);
  border: 1px solid var(--firefly-800);
  border-radius: 24px;
  padding: 79px 71px;
  max-width: 1008px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.cta-titulo {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  text-align: center;
  letter-spacing: -0.02em;
}

.cta-texto {
  font-size: 20px;
  color: var(--firefly-100);
  text-align: center;
  line-height: 1.4;
  max-width: 537px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 48px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--firefly-800);
}

.footer-logo {
  display: flex;
  align-items: center;
}

/* ============================================================
   STICKY CTA MOBILE - botão fixo no rodapé
   ============================================================ */
.sticky-cta-mobile {
  display: none;
}

@media (max-width: 768px) {
  .sticky-cta-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: var(--java-600);
    border: 1px solid var(--java-400);
    color: var(--white);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    font-size: 13px;
    letter-spacing: -0.02em;
    z-index: 99;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  }

  .sticky-cta-mobile.hidden {
    transform: translateY(120%);
    transition: transform 0.3s ease;
  }
}

/* ============================================================
   TABLET (até 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content {
    padding: 60px 32px;
  }

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

  .cadastro-card {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    gap: 32px;
  }

  .cadastro-titulo {
    font-size: 32px;
  }

  .convidados-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title h2 {
    font-size: 32px;
    white-space: normal;
  }

  .features-bar {
    height: auto;
    grid-template-columns: 1fr;
  }

  .feature-item {
    padding: 20px 24px;
    border-right: none;
    border-bottom: 1px solid var(--firefly-700);
    justify-content: flex-start;
  }

  .feature-item:last-child {
    border-bottom: none;
  }
}

/* ============================================================
   MOBILE (até 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* Espaço pro sticky CTA */
  body {
    padding-bottom: 80px;
  }

  /* NAVBAR */
  .navbar {
    height: 60px;
    padding: 0 16px;
  }

  .logo-globalgen {
    height: 28px;
  }

  /* HERO - Mobile com foto em cima e conteúdo empilhado embaixo */
  .hero {
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
  }

  /* Foto dos zebus aparece VISÍVEL e CLARA no topo */
  .hero-bg {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 240px;
    opacity: 1;
    order: 1;
    margin-bottom: 0;
  }

  .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
  }

  /* Remove o gradiente escuro que cobria a foto */
  .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 75%, var(--firefly-950) 100%);
  }

  /* Conteúdo (logo + texto + botão) RENTE à foto dos animais */
  .hero-content {
    order: 2;
    padding: 0 20px 24px;
    gap: 16px;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin-top: -60px;
    position: relative;
    z-index: 2;
  }

  .hero-logo {
    max-width: 100%;
    margin-top: 0;
  }

  .hero-text {
    font-size: 16px;
    text-align: center;
    max-width: 100%;
  }

  .btn-hero {
    width: 100%;
    font-size: 13px;
    padding: 16px 12px;
    letter-spacing: 0;
  }

  /* INFO BAR */
  .info-bar {
    padding: 20px 0;
  }

  .info-bar-container {
    flex-direction: column;
    gap: 16px;
    padding: 0 20px;
    max-width: 100%;
  }

  .info-item {
    width: 100%;
    max-width: 100%;
    gap: 12px;
  }

  .info-icon {
    width: 44px;
    height: 44px;
    padding: 8px;
  }

  .info-icon img {
    width: 24px;
    height: 24px;
  }

  .info-item p {
    font-size: 15px;
    line-height: 1.3;
  }

  /* CADASTRO */
  .cadastro {
    padding: 24px 16px;
  }

  .cadastro-card {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 20px;
    border-radius: 16px;
    max-width: 100%;
  }

  .cadastro-info {
    gap: 16px;
    align-items: center;
    text-align: center;
  }

  .cadastro-titulo {
    font-size: 24px;
    text-align: center;
  }

  .cadastro-texto {
    font-size: 15px;
    text-align: center;
  }

  .cadastro-form {
    gap: 10px;
    width: 100%;
  }

  .cadastro-form input,
  .cadastro-form select {
    height: 50px;
    padding: 12px 14px;
    font-size: 16px;
  }

  .cadastro-form input::placeholder {
    font-size: 14px;
  }

  .cadastro-form select {
    font-size: 14px;
  }

  .btn-form {
    padding: 16px;
    font-size: 13px;
  }

  /* CONVIDADOS */
  .convidados {
    padding: 32px 16px;
    max-width: 100%;
  }

  .section-title {
    gap: 12px;
    margin-bottom: 24px;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .section-title h3 {
    font-size: 16px;
    white-space: normal;
  }

  .line-yellow {
    max-width: 40px;
    flex: 1;
  }

  .convidados-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .convidado-card {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 280 / 350;
    height: auto;
  }

  .section-title-small {
    margin: 24px 0 16px;
    gap: 12px;
  }

  .features-bar {
    margin: 0;
    border-radius: 16px;
    height: auto;
    grid-template-columns: 1fr;
  }

  .feature-item {
    padding: 16px;
    gap: 12px;
    justify-content: flex-start;
    border-right: none;
    border-bottom: 1px solid var(--firefly-700);
  }

  .feature-item:last-child {
    border-bottom: none;
  }

  .feature-item p {
    font-size: 14px;
    line-height: 1.3;
    text-align: left;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
  }

  /* CTA FINAL */
  .cta-final {
    padding: 24px 16px;
  }

  .cta-card {
    padding: 32px 20px;
    gap: 24px;
    border-radius: 16px;
    max-width: 100%;
  }

  .cta-titulo {
    font-size: 22px;
  }

  .cta-texto {
    font-size: 15px;
  }

  .btn-cta-final {
    width: 100%;
    font-size: 13px;
    padding: 16px 12px;
  }

  /* FOOTER */
  .footer {
    padding: 24px 16px;
  }

  .logo-globalgen-footer {
    height: 36px;
  }
}

/* ============================================================
   MOBILE PEQUENO (até 380px)
   ============================================================ */
@media (max-width: 380px) {
  .hero-content {
    padding: 24px 16px;
  }

  .hero-text {
    font-size: 15px;
  }

  .cadastro-titulo,
  .cta-titulo {
    font-size: 20px;
  }

  .convidados-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .convidado-card {
    height: auto;
    aspect-ratio: 280 / 350;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ============================================================
   PÁGINA DE OBRIGADO
   ============================================================ */
.page-obrigado {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.obrigado-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 64px;
}

.obrigado-container {
  max-width: 720px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Ícone de sucesso animado */
.success-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(28, 209, 210, 0.1);
  border: 2px solid var(--java-400);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--java-400);
  margin-bottom: 8px;
  animation: success-pulse 2s ease-in-out infinite;
}

.success-icon svg {
  width: 56px;
  height: 56px;
}

@keyframes success-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(28, 209, 210, 0.5);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(28, 209, 210, 0);
  }
}

/* Título e texto */
.obrigado-titulo {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
}

.obrigado-texto {
  font-size: 18px;
  color: var(--firefly-100);
  line-height: 1.5;
  max-width: 540px;
}

.obrigado-texto strong {
  color: var(--white);
  font-weight: 700;
}

/* Lembrete do evento */
.lembrete-evento {
  background: var(--firefly-900);
  border: 1px solid var(--firefly-700);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  gap: 32px;
  margin: 16px 0 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.lembrete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.lembrete-item strong {
  display: block;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.lembrete-item span {
  color: var(--firefly-100);
  font-size: 14px;
  display: block;
  margin-top: 2px;
}

/* Botão WhatsApp principal */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  border: 1px solid #25D366;
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  padding: 20px 32px;
  border-radius: 12px;
  font-size: 16px;
  letter-spacing: -0.02em;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1ebe5c;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

.btn-icon {
  width: 22px;
  height: 22px;
}

/* Botões secundários */
.botoes-secundarios {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 400px;
}

.btn-secundario {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--firefly-600);
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 140px;
}

.btn-secundario:hover {
  background: var(--firefly-800);
  border-color: var(--java-400);
}

.btn-icon-small {
  width: 18px;
  height: 18px;
}

/* Convidados em miniatura (reforço) */
.convidados-mini {
  margin-top: 32px;
  width: 100%;
}

.mini-titulo {
  color: var(--firefly-100);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.convidados-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.convidados-mini-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Mobile da página de obrigado */
@media (max-width: 768px) {
  .obrigado-main {
    padding: 90px 16px 40px;
  }

  .success-icon {
    width: 80px;
    height: 80px;
  }

  .success-icon svg {
    width: 44px;
    height: 44px;
  }

  .obrigado-titulo {
    font-size: 28px;
  }

  .obrigado-texto {
    font-size: 16px;
  }

  .lembrete-evento {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    align-items: stretch;
  }

  .lembrete-item {
    justify-content: flex-start;
  }

  .btn-whatsapp {
    font-size: 14px;
    padding: 16px 20px;
  }

  .botoes-secundarios {
    flex-direction: column;
  }

  .btn-secundario {
    width: 100%;
  }

  .convidados-mini-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .convidados-mini {
    margin-top: 24px;
  }
}
