/* =========================================================
   UPPER CONFERENCE 2026 — DESKTOP + MOBILE
   Breakpoint: 768px
   ========================================================= */

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

:root {
  --red: #de211c;
  --yellow: #f7c852;
  --font-display: 'Bebas Neue', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  width: 100%;
  background: #000;
  overflow-x: hidden;
}

img, picture { display: block; max-width: none; }
picture img { width: 100%; height: 100%; }

main { display: block; }

/* Helpers de visibilidade */
.mobile-only { display: none; }
.desktop-only { display: block; }

/* =========================================================
   BASE — .section-canvas
   ========================================================= */
.section-canvas {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
}

.bg-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  user-select: none;
  pointer-events: none;
}
.bg-layer img { object-fit: cover; }

/* CTAs */
.cta-btn {
  position: absolute;
  display: block;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.cta-btn picture, .cta-btn img { width: 100%; display: block; user-select: none; pointer-events: none; }
.cta-btn:hover  { transform: scale(1.04); filter: brightness(1.06); }
.cta-btn:active { transform: scale(0.97); }
.cta-btn:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 4px; border-radius: 2px; }

/* =========================================================
   SEÇÃO 1 — HERO   |  Desktop canvas 1920×1080
   ========================================================= */
.section-1 { aspect-ratio: 1920 / 1080; background: #F7C948; }

.s1-titulo { position: absolute; top: 17.6%; left: 12.2%; width: 75.57%; z-index: 2; pointer-events: none; user-select: none; }
.s1-cta    { top: 71.6%; left: 33.49%; width: 33.02%; z-index: 3; }

/* =========================================================
   SEÇÃO 2 — O QUE É A UPPER CONF?   |  Desktop canvas 1920×1080
   ========================================================= */
.section-2 { aspect-ratio: 1920 / 1080; background: #de211c; }

.s2-fotos  { position: absolute; top: 17.4074%; left: 7.6042%;  width: 36.0417%; z-index: 2; }
.s2-titulo { position: absolute; top: 17.9630%; left: 50.8854%; width: 40.9896%; z-index: 2; pointer-events: none; user-select: none; }
.s2-tx     { position: absolute; top: 37.5926%; left: 49.0625%; width: 44.2188%; z-index: 2; pointer-events: none; user-select: none; }

/* =========================================================
   SEÇÃO 3 — SALA PROFÉTICA   |  Imagem full-width (1920×1043)
   ========================================================= */
.section-3 { width: 100%; max-width: 1920px; margin: 0 auto; }
.s3-full { display: block; width: 100%; }
.s3-full img { width: 100%; height: auto; display: block; }

/* =========================================================
   SEÇÃO 4 — LINE-UP DESKTOP   |  Canvas 1920×1512
   ========================================================= */
.section-4 { aspect-ratio: 1920 / 1512; background: #a6e615; }

/* Carrossel */
.s4-carousel-wrap {
  position: absolute;
  top: 23%; left: 0;
  width: 100%; height: 50%;
  overflow: hidden;
  z-index: 2;
  cursor: grab;
}
.s4-carousel-wrap:active { cursor: grabbing; }

.s4-track {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 4%;
  gap: 32px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.s4-slide { flex: 0 0 auto; height: 100%; }
.s4-slide img { height: 100%; width: auto; display: block; user-select: none; pointer-events: none; }

/* Dots */
.s4-dots {
  position: absolute;
  top: 75%; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 3;
}
.s4-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid #111;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.s4-dot.active { background: #111; }

/* CTA */
.s4-cta { top: 84%; left: 33.49%; width: 33.02%; z-index: 3; }

/* =========================================================
   SEÇÃO 5 — DATA E LOCAL   |  Imagem full-width (1920×1080)
   ========================================================= */
.section-5 { width: 100%; max-width: 1920px; margin: 0 auto; }
.s5-full { display: block; width: 100%; }
.s5-full img { width: 100%; height: auto; display: block; }

/* =========================================================
   SEÇÃO CARAVANA   |  Desktop canvas 1920×1817
   ========================================================= */
.section-caravana { aspect-ratio: 1920 / 1817; background: #1a9dc8; }

.sc-cta { top: 88%; left: 25.94%; width: 48.13%; z-index: 3; }

/* =========================================================
   SEÇÃO 6 — GARANTA SUA VAGA   |  Desktop canvas 1920×1906
   ========================================================= */
.section-6 { aspect-ratio: 1920 / 1906; background: #111; }

.s6-titulo { position: absolute; top: 10.0210%; left: 10.9375%; width: 78.1771%; z-index: 2; pointer-events: none; user-select: none; }
.s6-tx     { position: absolute; top: 33.3684%; left: 21.1458%; width: 57.8125%; z-index: 2; pointer-events: none; user-select: none; }
.s6-ticket { position: absolute; top: 25.4459%; left: 0;        width: 100%;     z-index: 1; pointer-events: none; user-select: none; }
.s6-cta    { top: 85.9370%; left: 33.3333%; width: 33.0208%; z-index: 3; }

/* =========================================================
   SEÇÃO 7 — FAQ
   ========================================================= */
.section-7 {
  background: var(--red);
  width: 100%;
  padding: 100px 0;
}

.s7-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.s7-icon {
  flex: 0 0 260px;
  width: 260px;
  position: sticky;
  top: 80px;
  user-select: none;
  pointer-events: none;
}

.s7-content { flex: 1 1 auto; min-width: 0; }

.s7-heading {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--yellow);
  font-size: clamp(40px, 4.5vw, 64px);
  margin-bottom: 40px;
  line-height: 1;
}

.faq-accordion { display: flex; flex-direction: column; }

.faq-item { border-top: 1px solid var(--yellow); }
.faq-item:last-child { border-bottom: 1px solid var(--yellow); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 26px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--yellow);
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: 0.3px;
  line-height: 1.1;
}
.faq-question:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }

.faq-icon {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--yellow);
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.faq-item.open .faq-icon { transform: rotate(135deg); background: var(--yellow); color: var(--red); }

.faq-answer-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s ease; }
.faq-item.open .faq-answer-wrap { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer-inner p {
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  padding: 0 4px 28px 4px;
  max-width: 62ch;
}

/* =========================================================
   WhatsApp flutuante
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.whatsapp-float img { width: 32px; height: 32px; object-fit: contain; display: block; }

/* =========================================================
   ANIMAÇÕES DE ENTRADA
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal[data-anim="left"]  { transform: translateX(-60px); }
.reveal[data-anim="right"] { transform: translateX(60px); }
.reveal[data-anim="scale"] { transform: scale(0.85); }

.reveal.is-visible { opacity: 1; transform: translate(0, 0) scale(1); }

.cta-btn.reveal.is-visible:hover  { transform: scale(1.04); }
.cta-btn.reveal.is-visible:active { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .faq-answer-wrap, .faq-icon, .cta-btn { transition: none !important; }
}


/* =========================================================================
   MOBILE — breakpoint <= 768px
   ========================================================================= */
@media (max-width: 768px) {

  .mobile-only { display: block; }
  .desktop-only { display: none; }

  /* ---------- SEÇÃO 1 — canvas 1080×1192 ---------- */
  .section-1 { aspect-ratio: 1080 / 1192; max-width: 100%; }
  .s1-titulo { top: 18%;  left: 7.18%;  width: 85.65%; }
  .s1-cta    { top: 67%;  left: 12.64%; width: 74.72%; }

  /* ---------- SEÇÃO 2 — canvas 620×1669 ---------- */
  .section-2 { aspect-ratio: 620 / 1669; }
  .s2-fotos  { top: 6.1114%;  left: 8.2258%;  width: 83.7097%; }
  .s2-titulo { top: 44.7574%; left: 14.0323%; width: 71.4516%; }
  .s2-tx     { top: 58.4181%; left: 5%;       width: 90.1613%; }

  /* ---------- SEÇÃO 3 — full-width flat (mobile 1080×1404) ---------- */
  .section-3 { max-width: 100%; }

  /* ---------- SEÇÃO 4 MOBILE — seção separada ---------- */
  .section-4-mob {
    background-color: #a6e615;
    background-image: url('assets/mobile/S4M_BG.png');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    width: 100%;
    overflow: hidden;
  }

  .s4m-title-wrap {
    display: flex;
    justify-content: center;
    padding: 7% 4% 5%;
  }
  .s4m-title-wrap img {
    width: 88%;
    height: auto;
    display: block;
  }

  .s4m-carousel-wrap {
    width: 100%;
    overflow: hidden;
    transition: height 0.4s ease; /* altura ajustada via JS por slide */
  }

  .s4m-track {
    display: flex;
    align-items: flex-start;
    padding-left: 4%;
    gap: 12px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    cursor: grab;
  }
  .s4m-track:active { cursor: grabbing; }

  .s4m-slide {
    flex: 0 0 88vw;
    max-width: 88vw;
  }
  .s4m-slide img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    pointer-events: none;
  }

  .s4m-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px 0 8px;
  }
  .s4m-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid #111;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
  }
  .s4m-dot.active { background: #111; }

  .s4m-cta-wrap { padding: 8px 10% 36px; }
  .s4m-cta-wrap a { display: block; }
  .s4m-cta-wrap img { width: 100%; height: auto; display: block; }

  /* ---------- SEÇÃO 5 — full-width flat (mobile 1080×894) ---------- */
  .section-5 { max-width: 100%; }

  /* ---------- SEÇÃO CARAVANA — canvas 1080×1449 ---------- */
  .section-caravana { aspect-ratio: 1080 / 1449; }
  .sc-cta { top: 84%; left: 7.22%; width: 85.56%; }

  /* ---------- SEÇÃO 6 — canvas 620×1322 ---------- */
  .section-6 { aspect-ratio: 620 / 1322; }
  .s6-titulo { top: 9.1528%;  left: 11.9355%; width: 75.9677%; }
  .s6-tx     { top: 22.9955%; left: 5%;       width: 90.1613%; }
  .s6-ticket { top: 46.9743%; left: 0;        width: 100%; }
  .s6-cta    { top: 84.4175%; left: 11.2903%; width: 77.5806%; }

  /* ---------- SEÇÃO 7 — FAQ ---------- */
  .section-7 { padding: 60px 0; }
  .s7-inner { flex-direction: column; gap: 32px; padding: 0 24px; }
  .s7-icon  { position: static; width: 140px; flex-basis: auto; margin: 0 auto; }
  .s7-heading { text-align: center; font-size: clamp(34px, 9vw, 48px); }
  .faq-question { font-size: clamp(19px, 5vw, 24px); }

  /* ---------- WhatsApp ---------- */
  .whatsapp-float { bottom: 16px; right: 16px; }
}
