/* ============================================
   DESIGN SYSTEM — 1º Encontro de Avicultura
   Fonte: Playfair Display + Jost
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Jost:wght@300;400;500;600&display=swap');

/* === TOKENS === */
:root {
  --wine: #56090F;
  --wine-deep: #3D060A;
  --wine-light: #7A1019;
  --beige: #CD9E6C;
  --beige-light: #E8D5B8;
  --brown: #9F6B41;
  --cream: #FAF6F0;
  --gray-light: #F3EDE5;
  --gray-mid: #6B6259;
  --black: #020202;
  --white: #FFFFFF;
  --gold: #B8965A;
  --gold-light: #D4AA6E;
  --green: #3BFF74;
  --green-glow: rgba(59, 255, 116, 0.25);
  
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-soft: 0 2px 16px rgba(86, 9, 15, 0.07);
  --shadow-med: 0 6px 32px rgba(86, 9, 15, 0.12);
  --shadow-hard: 0 12px 48px rgba(86, 9, 15, 0.18);

  --transition: 0.3s ease;
  --max-width: 1100px;
}

/* === RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--black);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* === TIPOGRAFIA === */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--wine-deep);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
}

p {
  font-size: 1rem;
  color: var(--gray-mid);
  line-height: 1.8;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--beige);
  display: block;
  margin-bottom: 12px;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--gray-mid);
  max-width: 600px;
  line-height: 1.8;
}

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 90px 0;
}

/* === ORNAMENTO DECORATIVO === */
.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--beige), transparent);
}

.ornament span {
  color: var(--beige);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
  white-space: nowrap;
}

/* === BOTÕES === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--wine);
  color: var(--cream);
  border-color: var(--wine);
}

.btn--primary:hover {
  background: var(--wine-deep);
  border-color: var(--wine-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(86, 9, 15, 0.3);
}

.btn--beige {
  background: var(--beige);
  color: var(--wine-deep);
  border-color: var(--beige);
}

.btn--green {
    background: var(--green);
    color: #020B1D;
    font-weight: 800;
    box-shadow: 0 10px 30px var(--green-glow);
}

.btn--green:hover {
    background: #fff;
    color: #020B1D;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
}

.btn--beige:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(205, 158, 108, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 246, 240, 0.4);
}

.btn--ghost:hover {
  background: rgba(250, 246, 240, 0.1);
  border-color: var(--cream);
}

.btn--outline {
  background: transparent;
  color: var(--wine);
  border-color: var(--wine);
}

.btn--outline:hover {
  background: var(--wine);
  color: var(--cream);
}

.btn--lg {
  padding: 18px 48px;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.btn--full {
  width: 100%;
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(61, 6, 10, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(205, 158, 108, 0.2);
  transition: all var(--transition);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.05em;
}

.logo img {
  height: 80px; /* ajusta o tamanho */
  width: auto;
  display: block;
}

.logo span {
  color: var(--beige);
}

.header__nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.header__nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 246, 240, 0.75);
  transition: color var(--transition);
}

.header__nav a:hover {
  color: var(--beige);
}

.header__cta {
  display: flex;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--wine-deep);
  /* Fallback */
  background-image: url('');
  background-size: cover;
  background-position: center;
  padding-top: 50px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--beige) 0%, var(--brown) 100%);
  z-index: 1;
}

.hero__texture {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  mix-blend-mode: multiply;
  z-index: 1;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wine);
  border: 1px solid rgba(205, 158, 108, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 24px;
}

.hero__badge span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
}

.hero h1 {
  color: var(--wine-deep);
  margin-bottom: 8px;
  font-style: normal;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
}

.hero h1 strong {
  display: block;
  font-weight: 700;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1;
}

.hero__sub {
  color: var(--wine-deep);
  font-weight: 500; /* Um pouco mais de peso para ajudar no contraste */
  margin: 24px 0 32px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--beige-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero__meta-item svg {
  color: var(--wine-deep);
  flex-shrink: 0;
}

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

.hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  position: relative;
  width: 100%;
}

.hero__logo {
  width: 120%; /* Aumenta um pouco além do container para impacto */
  max-width: 850px; /* Tamanho bem maior */
  transform: translate(10%, -5%); /* Move levemente para a direita e para cima */
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  transition: transform var(--transition);
}

.hero__logo:hover {
  transform: translate(10%, -7%) scale(1.02);
}

/* === SEÇÃO POSICIONAMENTO === */
.section--dark {
  background: var(--wine-deep);
}

.positioning {
  text-align: center;
}

.positioning h2 {
  color: var(--cream);
  font-style: italic;
}

.positioning h2 strong {
  font-style: normal;
  color: var(--beige);
  display: block;
}

.positioning__lead {
  color: rgba(250, 246, 240, 0.7);
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(205, 158, 108, 0.2);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.benefit-card:hover {
  background: rgba(205, 158, 108, 0.08);
  border-color: rgba(205, 158, 108, 0.4);
  transform: translateY(-4px);
}

.benefit-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(205, 158, 108, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--beige);
}

.benefit-card h3 {
  color: var(--cream);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.benefit-card p {
  color: rgba(250, 246, 240, 0.6);
  font-size: 0.9rem;
}

/* === O QUE VOCÊ VAI ENCONTRAR === */
.features {
  background: var(--gray-light);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px;
  border: 1px solid rgba(205, 158, 108, 0.15);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
  display: flex;
  gap: 24px;
}

.feature-card:hover {
  box-shadow: var(--shadow-med);
  transform: translateY(-3px);
  border-color: rgba(205, 158, 108, 0.35);
}

.feature-card__icon {
  width: 60px;
  height: 60px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wine);
  flex-shrink: 0;
  font-size: 1.8rem;
}

.feature-card__body h3 {
  margin-bottom: 8px;
}

.feature-card__list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-card__list li {
  font-size: 0.9rem;
  color: var(--gray-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-card__list li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--beige);
  border-radius: 50%;
  flex-shrink: 0;
}

/* === PROGRAMAÇÃO === */
.schedule {
  background: var(--cream);
}

.schedule__header {
  text-align: center;
  margin-bottom: 56px;
}

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

.schedule__block h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.schedule__block h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(205, 158, 108, 0.3);
}

.schedule-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(205, 158, 108, 0.15);
}

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

.schedule-item__time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--beige);
  font-family: var(--font-body);
  white-space: nowrap;
  padding-top: 2px;
  min-width: 90px;
}

.schedule-item__content {
  flex: 1;
}

.schedule-item__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--wine-deep);
  margin-bottom: 3px;
}

.schedule-item__speaker {
  font-size: 0.82rem;
  color: var(--gray-mid);
}

.schedule-break {
  background: var(--wine-deep);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

.schedule-break span {
  font-size: 0.85rem;
  color: var(--beige-light);
  font-weight: 500;
}

.schedule-break .time {
  color: var(--beige);
  font-size: 0.8rem;
  margin-left: auto;
}

/* === BENEFÍCIOS === */
.takeaways {
  background: var(--wine-deep);
}

.takeaways__header {
  text-align: center;
  margin-bottom: 56px;
}

.takeaways__header h2 {
  color: var(--cream);
}

.takeaways__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.takeaway-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(205, 158, 108, 0.15);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: all var(--transition);
}

.takeaway-card:hover {
  background: rgba(205, 158, 108, 0.07);
  border-color: rgba(205, 158, 108, 0.3);
  transform: translateY(-3px);
}

.takeaway-card__icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.takeaway-card h3 {
  color: var(--beige);
  font-size: 1.05rem;
  margin-bottom: 12px;
}

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

.takeaway-list li {
  color: rgba(250, 246, 240, 0.65);
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.takeaway-list li::before {
  content: '→';
  color: var(--beige);
  flex-shrink: 0;
  font-size: 0.8rem;
  margin-top: 2px;
}

/* === REGIÃO === */
.region {
  background: var(--gray-light);
  text-align: center;
}

.region__map {
  margin: 40px auto 0;
  max-width: 700px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid rgba(205, 158, 108, 0.2);
  box-shadow: var(--shadow-soft);
}

.region__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.region__city {
  background: var(--cream);
  border: 1px solid rgba(205, 158, 108, 0.3);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.85rem;
  color: var(--brown);
  font-weight: 500;
}

.region__city--highlight {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--cream);
}

/* === PATROCINADORES === */
.sponsors {
  background: var(--cream);
}

.sponsors__header {
  text-align: center;
  margin-bottom: 48px;
}

.sponsors__group {
  margin-bottom: 40px;
}

.sponsors__group-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-mid);
  text-align: center;
  margin-bottom: 20px;
}

.sponsors__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.sponsor-badge {
  background: var(--white);
  border: 1px solid rgba(205, 158, 108, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 70px;
}

.sponsor-badge img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;

  transition: all var(--transition);
}

.sponsor-badge:hover {
  border-color: var(--beige);
  transform: translateY(-3px);
  box-shadow: var(--shadow-med);
}

.sponsor-badge:hover img {
  filter: grayscale(0) opacity(1);
}

.sponsor-badge--main {
  padding: 16px 32px;
  height: 90px;
  min-width: 180px;
  border-color: rgba(205, 158, 108, 0.3);
}

.sponsor-badge--main img {
  max-height: 55px;
}

/* === CTA FINAL === */
.cta-final {
  background: var(--wine-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(205, 158, 108, 0.08) 0%, transparent 70%);
}

.cta-final__inner {
  position: relative;
  z-index: 1;
}

.cta-final h2 {
  color: var(--cream);
  margin-bottom: 16px;
}

.cta-final p {
  color: rgba(250, 246, 240, 0.65);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

.cta-final__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === FOOTER === */
.footer {
  background: var(--black);
  padding: 36px 0;
  text-align: center;
}

.footer p {
  color: rgba(250, 246, 240, 0.3);
  font-size: 0.82rem;
}

.footer span {
  color: var(--beige);
}

/* === MOBILE NAV === */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: all var(--transition);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero__inner {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding-top: 40px;
  }

  .hero__content {
    align-items: center;
  }

  .hero__meta {
    justify-content: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__image {
    order: -1;
    width: 100%;
  }

  .hero__logo {
    max-width: 320px;
    margin: 0 auto;
    transform: translate(0, 0); /* Reseta o deslocamento do desktop */
  }

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

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

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

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

  .header__nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  section {
    padding: 64px 0;
  }

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

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

  .hero__image img {
    max-width: 300px;
  }
}

/* === MODAL LISTA DE ESPERA === */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal__content {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 40px;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: var(--shadow-hard);
}

.modal__content h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.modal__content p {
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.modal__close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  color: var(--gray-mid);
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
}

.modal__close:hover {
  color: var(--wine);
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--wine-deep);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(205, 158, 108, 0.4);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--black);
  transition: border-color var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--wine);
}