/* ========================================================
   ARRAIÁ DA FAJ — Landing page mobile-first
   ======================================================== */

@font-face {
  font-family: 'ChunkFiveEx';
  src: url('fonts/ChunkFiveEx.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('fonts/JUSTSans-Lt.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('fonts/JUSTSans-Rg.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('fonts/JUSTSans-Md.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('fonts/JUSTSans-SmBd.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('fonts/JUSTSans-Bd.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('fonts/JUSTSans-ExBd.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ----------- Variables ----------- */
:root {
  --blue: #1b56cf;
  --blue-deep: #103e9c;
  --blue-night: #0b2f7a;
  --yellow: #ffd23a;
  --yellow-deep: #f5b300;
  --red: #e53935;
  --red-deep: #b91d1a;
  --green: #2faa55;
  --green-deep: #1e7a3c;
  --pink: #ff7eaa;
  --cream: #fff7e3;
  --ink: #0e1f47;
  --shadow: 0 10px 30px rgba(8, 27, 71, .25);
  --shadow-card: 0 8px 0 rgba(0,0,0,.18), 0 14px 30px rgba(0,0,0,.18);
}

/* ----------- Reset ----------- */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }
a { color: inherit; }

html { scroll-behavior: smooth; }

body {
  font-family: 'JUST Sans', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: #fff;
  background: var(--blue);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----------- Background pattern ----------- */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.08) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 8%, rgba(255,255,255,.06) 0 2px, transparent 3px),
    radial-gradient(circle at 35% 40%, rgba(255,255,255,.05) 0 2px, transparent 3px),
    radial-gradient(circle at 85% 55%, rgba(255,255,255,.07) 0 2px, transparent 3px),
    radial-gradient(circle at 12% 75%, rgba(255,255,255,.06) 0 2px, transparent 3px),
    radial-gradient(circle at 60% 88%, rgba(255,255,255,.07) 0 2px, transparent 3px),
    linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  background-size: 320px 320px, 320px 320px, 320px 320px, 320px 320px, 320px 320px, 320px 320px, 100% 100%;
}

/* ========================================================
   Generic section
   ======================================================== */
.section {
  position: relative;
  z-index: 1;
  padding: 56px 22px;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}

.section-title {
  font-family: 'ChunkFiveEx', 'JUST Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: .5px;
  color: var(--ink);
  margin: 0;
  text-transform: none;
}
.section-title--center {
  text-align: center;
  color: #fff;
  text-shadow: 0 3px 0 var(--blue-night), 0 6px 14px rgba(0,0,0,.35);
}

/* ========================================================
   HERO
   ======================================================== */
.hero {
  position: relative;
  z-index: 1;
  padding: 36px 22px 64px;
  text-align: center;
  overflow: hidden;
}

.bandeiras {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.bandeiras-section {
  top: -8px;
  left: 50%;
  width: min(78%, 360px);
  max-width: 360px;
  transform: translateX(-50%);
  opacity: .9;
}
.bandeiras-footer {
  top: -10px;
  left: 50%;
  width: min(78%, 360px);
  max-width: 360px;
  transform: translateX(-50%) scaleY(-1);
  opacity: .9;
}

.hero-inner {
  position: relative;
  z-index: 3;
  margin: 0 auto;
}

.logo {
  width: 90px;
  margin: 0 auto 18px;
  opacity: .9;
}

/* Big selo as the hero centerpiece */
.hero-selo {
  display: block;
  width: min(88%, 420px);
  margin: 10px auto 18px;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.35));
}

.hero-year {
  display: inline-block;
  font-family: 'ChunkFiveEx', 'JUST Sans', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  line-height: 1;
  background: var(--cream);
  color: var(--ink);
  padding: 10px 22px;
  border-radius: 999px;
  border: 3px dashed var(--red);
  box-shadow: var(--shadow-card);
  transform: rotate(-2deg);
}
.hero-year strong {
  display: inline-block;
  margin-left: 6px;
  font-size: 1.5rem;
  color: var(--red-deep);
  vertical-align: middle;
}

.hero-sub {
  font-family: 'JUST Sans', sans-serif;
  font-weight: 500;
  font-size: clamp(.95rem, 3.6vw, 1.1rem);
  margin: 18px auto 0;
  max-width: 28ch;
  color: #fff;
  opacity: .92;
}

/* ========================================================
   Floating decorations
   ======================================================== */
.float {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.35));
  will-change: transform;
}
.float-balao1 { width: 70px; top: 18%; left: -10px; animation: sway 6s ease-in-out infinite; }
.float-balao2 { width: 78px; top: 8%;  right: -16px; transform: rotate(20deg); animation: floaty 7s ease-in-out infinite; }
.float-balao3 { width: 110px; right: -22px; bottom: -28px; transform: rotate(-12deg); }
.float-foguete { width: 58px; bottom: 14%; right: 4%; transform: rotate(-12deg); animation: floaty 5s ease-in-out infinite; }
.float-fogueira { width: 90px; bottom: -20px; left: -10px; }
.float-fogueira--alt { left: auto; right: -16px; bottom: -28px; transform: scaleX(-1); width: 80px; }
.float-balao1--alt { top: auto; bottom: 6%; left: -14px; width: 80px; }

@keyframes sway {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50%      { transform: rotate(4deg)  translateY(-8px); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(20deg); }
  50%      { transform: translateY(-10px) rotate(14deg); }
}

/* ========================================================
   Speech bubble (yellow / red)
   ======================================================== */
.bubble {
  position: relative;
  display: inline-block;
  padding: 18px 22px;
  border-radius: 22px;
  margin: 0 0 18px;
  box-shadow: var(--shadow-card);
  transform: rotate(-1.5deg);
  border: 3px solid var(--ink);
  max-width: 100%;
}
.bubble-yellow { background: var(--yellow); }
.bubble-red    { background: var(--red); color: #fff; }
.bubble-red .section-title { color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.25); }

.bubble::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 30px;
  width: 26px;
  height: 26px;
  background: inherit;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(45deg);
}

/* ========================================================
   Section: Convite
   ======================================================== */
.convite { padding-top: 30px; }

.convite-text {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 22px 20px;
  backdrop-filter: blur(2px);
  font-size: 1.02rem;
  line-height: 1.6;
}
.convite-text p { margin: 0 0 12px; }
.convite-text p:last-child { margin-bottom: 0; }
.convite-text strong { color: var(--yellow); }
.convite-text em {
  font-style: normal;
  font-weight: 600;
  color: var(--yellow);
}

/* ========================================================
   Section: Detalhes (cards)
   ======================================================== */
.detalhes { text-align: center; }

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 18px;
}
.card {
  position: relative;
  border-radius: 22px;
  padding: 22px 16px 20px;
  text-align: center;
  color: var(--ink);
  box-shadow: var(--shadow-card);
  border: 3px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}
.card-red    { background: var(--red);    color: #fff; }
.card-yellow { background: var(--yellow); }
.card-green  { background: var(--green);  color: #fff; grid-column: 1 / -1; }

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.15));
}
.card-label {
  font-family: 'JUST Sans', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: .9;
}
.card-value {
  font-family: 'ChunkFiveEx', 'JUST Sans', sans-serif;
  font-size: clamp(1.4rem, 6.5vw, 1.9rem);
  line-height: 1.1;
  margin-top: 4px;
}
.card-extra {
  font-size: .85rem;
  margin-top: 6px;
  opacity: .95;
  font-weight: 500;
}

.btn-map {
  display: inline-block;
  margin-top: 6px;
  padding: 14px 22px;
  background: #fff;
  color: var(--blue);
  font-family: 'JUST Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink), 0 10px 24px rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-map:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--ink), 0 8px 16px rgba(0,0,0,.25); }
.btn-map:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }

.liberacao-box {
  position: relative;
  max-width: 640px;
  margin: 26px auto 22px;
  padding: 22px 22px 20px;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  text-align: center;
  transform: rotate(-1deg);
}
.liberacao-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 14px;
  background: var(--red);
  color: #fff;
  font-family: 'ChunkFiveEx', 'JUST Sans', sans-serif;
  font-size: .9rem;
  letter-spacing: .5px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink);
  transform: rotate(2deg);
}
.liberacao-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
}
.liberacao-text strong { color: var(--red-deep); }

/* ========================================================
   Section: Dress code
   ======================================================== */
.dresscode { padding-top: 60px; }

.dress-intro {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 18px 18px;
  font-size: 1rem;
  margin-bottom: 22px;
}
.dress-intro p { margin: 0 0 10px; }
.dress-intro p:last-child { margin: 0; }
.dress-intro strong { color: var(--yellow); }

.dress-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.dress-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: 22px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.dress-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 3px solid var(--ink);
}
.dress-card__head--pink  { background: var(--pink); color: #fff; }
.dress-card__head--green { background: var(--green); color: #fff; }
.dress-card__head h3 {
  font-family: 'ChunkFiveEx', 'JUST Sans', sans-serif;
  font-size: 1.6rem;
  margin: 0;
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0,0,0,.18);
}
.dress-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.2));
}

.dress-list {
  padding: 16px 20px;
  display: grid;
  gap: 10px;
}
.dress-list li {
  position: relative;
  padding-left: 26px;
  font-size: .98rem;
  line-height: 1.5;
}
.dress-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
  font-size: 1.1rem;
  line-height: 1.5;
}

.dress-tip {
  margin: 0;
  padding: 14px 20px;
  background: var(--yellow);
  border-top: 3px dashed var(--ink);
  font-size: .92rem;
  line-height: 1.45;
}
.dress-tip strong { color: var(--red-deep); }

/* ----- Outfit carousel ----- */
.outfit-carousel {
  position: relative;
  margin: 4px 16px 18px;
  padding: 12px 8px 8px;
  background: linear-gradient(180deg, rgba(27,86,207,.10) 0%, rgba(27,86,207,0) 65%);
  border-top: 3px dashed var(--ink);
  border-radius: 0;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.carousel-stage {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  touch-action: pan-y;
}

.carousel-img {
  position: absolute;
  bottom: 0;
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  opacity: 0;
  transform: translateY(6px) scale(.98);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.18));
}
.carousel-img.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.carousel-btn {
  grid-row: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-family: 'JUST Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
  align-self: center;
  z-index: 2;
}
.carousel-btn:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--ink); }
.carousel-btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.carousel-prev { grid-column: 1; }
.carousel-next { grid-column: 3; }

.carousel-dots {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 6px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.dot.is-active {
  background: var(--red);
  transform: scale(1.2);
}

/* ========================================================
   Section: Copo brinde
   ======================================================== */
.copo { padding-top: 30px; }

.copo-card {
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  padding: 24px 22px;
  text-align: center;
}
.copo-img {
  width: 100%;
  margin: 0 auto 20px;
  border-radius: 18px;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.2));
}
.copo-text p {
  margin: 0 0 12px;
  font-size: 1.02rem;
  line-height: 1.55;
}
.copo-text p:last-child { margin-bottom: 0; }
.copo-text strong { color: var(--red-deep); }
.copo-text em {
  font-style: normal;
  font-weight: 600;
  color: var(--blue);
}

/* ========================================================
   Section: Atração especial
   ======================================================== */
.atracao { padding-bottom: 90px; }

.riddle {
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
}
.riddle-line {
  font-family: 'ChunkFiveEx', 'JUST Sans', sans-serif;
  font-size: 1.6rem;
  margin: 0 0 14px;
  color: var(--red-deep);
  letter-spacing: 1px;
}
.riddle-clue {
  margin: 6px 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}
.riddle-q {
  font-family: 'JUST Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 16px 0 6px;
}
.riddle-cta {
  font-family: 'ChunkFiveEx', 'JUST Sans', sans-serif;
  font-size: 1.4rem;
  color: var(--blue);
  margin: 8px 0 0;
  line-height: 1.2;
}
.riddle-cta strong { color: var(--red-deep); }

/* ========================================================
   Section: Mapa
   ======================================================== */
.mapa { padding-top: 60px; padding-bottom: 60px; text-align: center; }
.mapa-sub {
  margin: 8px auto 22px;
  font-weight: 500;
  font-size: .95rem;
  opacity: .95;
}
.map-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-card);
  background: #ddd;
  aspect-ratio: 4 / 3;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.mapa-aviso {
  max-width: 640px;
  margin: 22px auto 0;
  padding: 14px 18px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.45;
  text-align: center;
}
.mapa-aviso strong { color: var(--red-deep); }

/* ========================================================
   Footer
   ======================================================== */
.footer {
  position: relative;
  background: var(--blue-night);
  padding: 70px 22px 40px;
  text-align: center;
  overflow: hidden;
}
.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}
.footer-line {
  font-family: 'JUST Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  margin: 0 0 4px;
  opacity: .9;
}
.footer-cta {
  font-family: 'ChunkFiveEx', 'JUST Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  margin: 0 0 28px;
  letter-spacing: 1px;
  text-shadow: 0 4px 0 rgba(0,0,0,.3);
}
.footer-logo {
  width: 100px;
  margin: 0 auto 12px;
  opacity: .85;
}
.footer-meta {
  font-size: .82rem;
  opacity: .65;
  margin: 0;
}

/* ========================================================
   Tablet / Desktop tweaks
   ======================================================== */
@media (min-width: 720px) {
  .section { padding: 80px 32px; }

  .hero { padding-top: 60px; padding-bottom: 100px; }
  .logo { width: 110px; }

  .cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .card-green { grid-column: auto; }

  .dress-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .dress-card { display: flex; flex-direction: column; }
  .dress-list { flex-grow: 1; }

  .copo-card { padding: 28px 30px; }

  .float-balao1 { width: 110px; }
  .float-balao2 { width: 130px; }
  .float-balao3 { width: 160px; }
  .float-fogueira { width: 130px; }
  .float-foguete { width: 80px; }

  .map-frame { aspect-ratio: 16 / 9; }
}

@media (min-width: 1024px) {
  .hero-selo { max-width: 520px; }
}

/* ========================================================
   Reduced motion
   ======================================================== */
@media (prefers-reduced-motion: reduce) {
  .float, .float-balao1, .float-balao2, .float-foguete {
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}
