/* ==========================================================================
   Forró Cultural 20 Anos — Landing page de ingressos
   Paleta e fontes extraídas do cartaz oficial (assets/images/cartaz-principal.png)
   ========================================================================== */

@font-face {
  font-family: 'Cactus';
  src: url('../assets/fonts/Cactus-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Georama';
  src: url('../assets/fonts/Georama-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Georama';
  src: url('../assets/fonts/Georama-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Georama';
  src: url('../assets/fonts/Georama-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Georama';
  src: url('../assets/fonts/Georama-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Georama';
  src: url('../assets/fonts/Georama-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Georama';
  src: url('../assets/fonts/Georama-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

:root {
  /* Paleta do cartaz oficial */
  --color-mustard: #FFB51D;
  --color-mustard-dark: #E89F0A;
  --color-cream: #F6E8C8;
  --color-brown: #472612;
  --color-brown-soft: #6B3E22;
  --color-teal: #1D7A8C;
  --color-red: #D8332B;
  --color-green: #2E6B4E;
  --color-white: #FFFDF8;

  --font-display: 'Cactus', 'Georama', sans-serif;
  --font-body: 'Georama', system-ui, sans-serif;

  --radius: 14px;
  --container-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-brown);
  background: var(--color-white);
  line-height: 1.5;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0 0 16px;
  color: var(--color-brown);
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
}

.section-text {
  font-size: 18px;
  color: var(--color-brown-soft);
  max-width: 640px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 6px 0 #a3221c;
}
.btn-primary:hover { box-shadow: 0 8px 0 #a3221c; }

.btn-large { font-size: 20px; padding: 18px 40px; }

.btn-small {
  padding: 10px 20px;
  font-size: 14px;
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 4px 0 #a3221c;
}

.btn-ghost {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-cream);
  border-bottom: 3px solid var(--color-brown);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo img { height: 44px; width: auto; display: block; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-small-ghost {
  background: transparent;
  border-color: var(--color-brown);
  color: var(--color-brown);
  box-shadow: none;
}
@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .logo img { height: 36px; }
  .header-actions { gap: 6px; }
  .btn-small { padding: 8px 12px; font-size: 12px; white-space: nowrap; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--color-mustard);
  padding-bottom: 48px;
}
.hero-banner {
  display: block;
  width: 100%;
}
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -12px;
}
.hero-logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 6px 10px rgba(71, 38, 18, 0.25));
}
.hero-city {
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brown);
  margin: 0 0 18px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.hero-meta-big {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 36px);
  color: var(--color-brown);
}
.hero-meta-small {
  font-weight: 600;
  color: var(--color-brown-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
}
.hero-meta-sep {
  font-size: 30px;
  color: var(--color-brown);
}
.hero-artists {
  font-weight: 700;
  font-size: clamp(15px, 2.1vw, 19px);
  color: var(--color-brown);
  background: var(--color-cream);
  border: 2px solid var(--color-brown);
  border-radius: 999px;
  padding: 8px 22px;
  margin: 4px 0 28px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-ghost-dark {
  background: transparent;
  border-color: var(--color-brown);
  color: var(--color-brown);
}

/* ===== Elementos decorativos ===== */
.deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--color-cream); }
.section .container { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* ===== Info grid ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  width: 100%;
  margin-top: 16px;
}
.info-card {
  background: var(--color-white);
  border: 2px solid var(--color-brown);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: 0 5px 0 var(--color-brown);
}
.info-icon { font-size: 32px; display: block; margin-bottom: 8px; }
.info-card h3 { font-size: 18px; margin-bottom: 4px; }
.info-card p { margin: 0; color: var(--color-brown-soft); }

/* ===== Lineup ===== */
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  width: 100%;
  margin-top: 16px;
}
.lineup-card {
  background: var(--color-mustard);
  border: 2px solid var(--color-brown);
  border-radius: var(--radius);
  padding: 0 0 24px;
  box-shadow: 0 6px 0 var(--color-brown);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lineup-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 var(--color-brown);
}
.lineup-photo {
  aspect-ratio: 1 / 1;
  background: var(--color-cream);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.lineup-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}
.lineup-card h3 { font-size: 24px; margin: 20px 0 4px; }
.lineup-card-headliner {
  background: var(--color-red);
  color: var(--color-white);
}
.lineup-card-headliner h3 { color: var(--color-white); }
.lineup-tag {
  margin: 0;
  font-style: italic;
  font-weight: 600;
}

/* ===== Ingressos / Oferta ===== */
.tickets {
  position: relative;
  background: var(--color-mustard);
  overflow: hidden;
  isolation: isolate;
}
.tickets .container { position: relative; z-index: 2; }
.tickets-intro { margin: 0 auto 8px; }
.tickets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 780px;
  margin-top: 32px;
}

/* Decorações da seção de ingressos */
.deco-tickets-sanfona {
  width: clamp(90px, 12vw, 160px);
  top: 24px;
  left: -20px;
  transform: rotate(-8deg);
  animation: sway 5s ease-in-out infinite;
}
.deco-tickets-chapeu {
  width: clamp(80px, 10vw, 140px);
  top: 30px;
  right: -14px;
  transform: rotate(10deg);
  animation: float 4.5s ease-in-out infinite;
}
.deco-tickets-cacto {
  width: clamp(60px, 8vw, 110px);
  bottom: -6px;
  opacity: 0.95;
}
.deco-tickets-cacto-left { left: 12px; animation: float 6s ease-in-out infinite; }
.deco-tickets-cacto-right { right: 12px; transform: scaleX(-1); animation: float 6s ease-in-out infinite 0.8s; }
.ticket-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-white);
  border: 3px solid var(--color-brown);
  border-radius: 18px;
  padding: 40px 28px 28px;
  box-shadow: 0 8px 0 var(--color-brown);
}
.ticket-card-featured {
  background: var(--color-cream);
  box-shadow: 0 8px 0 var(--color-red);
  border-color: var(--color-red);
}
.ticket-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--color-red);
  color: var(--color-white);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid var(--color-brown);
}
.ticket-badge-alt { background: var(--color-teal); }
.ticket-name {
  font-size: 26px;
  margin: 4px 0 12px;
}
.ticket-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  color: var(--color-brown);
  line-height: 1;
  margin-bottom: 10px;
}
.ticket-price-currency {
  font-family: var(--font-display);
  font-size: 24px;
  margin-top: 8px;
}
.ticket-price-value {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 68px);
}
.ticket-desc {
  color: var(--color-brown-soft);
  margin: 0 0 18px;
}
.ticket-progress { width: 100%; margin-bottom: 22px; }
.ticket-progress-bar {
  height: 14px;
  background: var(--color-white);
  border: 2px solid var(--color-brown);
  border-radius: 999px;
  overflow: hidden;
}
.ticket-progress-bar span {
  display: block;
  height: 100%;
  background: var(--color-red);
  border-radius: 999px;
}
.ticket-progress-label {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--color-brown-soft);
}
.ticket-progress-label strong { color: var(--color-red); }
.ticket-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  width: 100%;
}
.ticket-features li {
  position: relative;
  padding: 6px 0 6px 26px;
  color: var(--color-brown-soft);
  border-bottom: 1px dashed rgba(71, 38, 18, 0.2);
}
.ticket-features li:last-child { border-bottom: none; }
.ticket-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-weight: 800;
}
.ticket-btn { width: 100%; }
.ticket-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--color-brown-soft);
}

/* ===== Realização / Apoio ===== */
.partners .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.partners-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.partners-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-green);
  margin: 0 0 16px;
}
.partners-maria {
  width: 100%;
  max-width: 160px;
  height: auto;
}
.partners-apoios {
  width: 100%;
  max-width: 440px;
  height: auto;
}

/* ===== Badge (pílula) ===== */
.badge {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid var(--color-brown);
}

/* ===== Galeria / Ambiente do festival ===== */
.gallery .container { display: flex; flex-direction: column; align-items: center; text-align: center; }
.gallery-title { margin-top: 18px; max-width: 720px; }
.gallery-intro { margin: 0 auto; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  grid-template-areas:
    "a a b c"
    "a a d e";
  gap: 16px;
  width: 100%;
  margin-top: 36px;
}
.bento-item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--color-brown);
  background: var(--color-cream);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bento-item:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--color-brown); }
.bento-1 { grid-area: a; }
.bento-2 { grid-area: b; }
.bento-3 { grid-area: c; }
.bento-4 { grid-area: d; }
.bento-5 { grid-area: e; }
.bento-item img { width: 100%; height: 100%; object-fit: cover; }
.bento-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 30px;
  color: var(--color-brown-soft);
  background:
    repeating-linear-gradient(45deg, rgba(71,38,18,0.04) 0 12px, transparent 12px 24px),
    var(--color-cream);
}
.bento-placeholder small {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== Como chegar ===== */
.directions { background: var(--color-cream); }
.directions .container { display: flex; flex-direction: column; align-items: center; }
.directions-head { text-align: center; max-width: 720px; }
.directions-title {
  margin: 18px 0 14px;
  line-height: 1.05;
  color: #1a1a1a;
}
.directions-title .hl { color: var(--color-green); display: block; }
.map-wrap {
  position: relative;
  width: 100%;
  margin-top: 32px;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid var(--color-brown);
  box-shadow: 0 8px 0 var(--color-brown);
  line-height: 0;
}
.map-frame {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}
.map-open {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--color-white);
  color: var(--color-teal);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid var(--color-brown);
  box-shadow: 0 3px 0 var(--color-brown);
  line-height: 1;
}
.map-open:hover { transform: translateY(-1px); }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-brown);
  color: var(--color-cream);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 16px; }
.footer-links a {
  color: var(--color-cream);
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }

/* ===== Animações ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes sway {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(-2deg); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 6px 0 #a3221c; }
  50% { box-shadow: 0 6px 0 #a3221c, 0 0 0 6px rgba(216, 51, 43, 0.18); }
}

/* Revelar ao rolar */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.is-visible {
  animation: fadeUp 0.6s ease forwards;
}

/* Interações */
.btn-primary { will-change: transform; }
.ticket-card-featured .ticket-btn { animation: pulseGlow 2.2s ease-in-out infinite; }
.ticket-progress-bar span {
  width: 0;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.lineup-card, .ticket-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.ticket-card:hover { transform: translateY(-4px); }
.ticket-card:hover { box-shadow: 0 12px 0 var(--color-brown); }
.ticket-card-featured:hover { box-shadow: 0 12px 0 var(--color-red); }

@media (prefers-reduced-motion: reduce) {
  .deco-tickets-sanfona,
  .deco-tickets-chapeu,
  .deco-tickets-cacto,
  .ticket-card-featured .ticket-btn { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal.is-visible { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 200px 140px 140px;
    grid-template-areas:
      "a a"
      "b c"
      "d e";
  }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding-bottom: 40px; }
  .hero-content { margin-top: 8px; }
  .hero-meta { flex-direction: column; gap: 10px; }
  .hero-meta-sep { display: none; }
  .deco-tickets-sanfona, .deco-tickets-chapeu { opacity: 0.5; }
  .map-frame { height: 340px; }
}
