/* ========================================================================
   MEGA TICKETS BRASIL — Design System (web)
   Tema CLARO, marca verde/amarelo. Fonte única de verdade visual do site.

   Uso:
     <link rel="stylesheet" href="/css/mtb-design-system.css">
   ======================================================================== */

:root {
  /* ============ MARCA ============ */
  --mtb-green: #00A859;          /* primária — CTAs, links, destaques */
  --mtb-green-light: #2BC178;
  --mtb-green-deep: #00703C;     /* hover, "BRASIL", texto sobre amarelo */
  --mtb-green-darkest: #024A2A;

  --mtb-yellow: #FFC400;         /* acento — badges, realces */
  --mtb-yellow-light: #FFD84D;
  --mtb-yellow-deep: #E0A800;

  --mtb-blue: #0A5BBE;           /* acento secundário (azul-bandeira) — parcimônia */

  /* ============ FUNDOS ============ */
  --mtb-bg: #FFFFFF;
  --mtb-bg-soft: #F4F8F5;        /* seções alternadas */
  --mtb-bg-mute: #ECF3EE;
  --mtb-bg-ink: #0B1410;         /* seções escuras de impacto */
  --mtb-bg-ink-soft: #122019;

  /* ============ TEXTO ============ */
  --mtb-ink: #0E1A14;            /* texto principal */
  --mtb-ink-2: #38463F;          /* secundário */
  --mtb-ink-3: #66756D;          /* terciário / muted */
  --mtb-ink-4: #93A099;          /* disabled / hint */
  --mtb-on-green: #FFFFFF;
  --mtb-on-yellow: #14110A;
  --mtb-on-ink: #FFFFFF;
  --mtb-on-ink-2: rgba(255,255,255,.72);

  /* ============ BORDAS ============ */
  --mtb-border: rgba(14,26,20,.10);
  --mtb-border-strong: rgba(14,26,20,.18);
  --mtb-border-green: rgba(0,168,89,.35);

  /* ============ FEEDBACK ============ */
  --mtb-success: #00A859;
  --mtb-success-bg: rgba(0,168,89,.10);
  --mtb-warning: #C8860A;
  --mtb-warning-bg: rgba(255,196,0,.14);
  --mtb-error: #D92D20;
  --mtb-error-bg: rgba(217,45,32,.10);
  --mtb-info: #0A5BBE;
  --mtb-info-bg: rgba(10,91,190,.10);

  /* ============ GRADIENTES ============ */
  --mtb-gradient-brand: linear-gradient(135deg, #00A859 0%, #00703C 100%);
  --mtb-gradient-flag: linear-gradient(120deg, #00A859 0%, #00A859 45%, #FFC400 100%);
  --mtb-gradient-yellow: linear-gradient(135deg, #FFD84D 0%, #FFC400 100%);
  --mtb-gradient-ink: linear-gradient(160deg, #0B1410 0%, #08291A 60%, #024A2A 100%);
  --mtb-gradient-soft: linear-gradient(180deg, #FFFFFF 0%, #F4F8F5 100%);

  /* ============ ESPAÇAMENTO (grid 4px) ============ */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;
  --space-4xl: 40px;
  --space-5xl: 48px;
  --space-6xl: 64px;
  --space-7xl: 80px;
  --space-8xl: 96px;

  /* ============ RAIO ============ */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  /* ============ SOMBRAS ============ */
  --shadow-xs: 0 1px 2px rgba(14,26,20,.06);
  --shadow-sm: 0 2px 8px rgba(14,26,20,.07);
  --shadow-md: 0 8px 24px rgba(14,26,20,.10);
  --shadow-lg: 0 18px 48px rgba(14,26,20,.14);
  --shadow-green: 0 12px 30px rgba(0,168,89,.30);
  --shadow-yellow: 0 12px 30px rgba(255,196,0,.30);

  /* ============ TIPOGRAFIA ============ */
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* ============ ANIMAÇÃO ============ */
  --dur-fast: 150ms;
  --dur-base: 280ms;
  --dur-slow: 480ms;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);

  /* ============ LAYOUT ============ */
  --maxw: 1200px;
  --maxw-narrow: 820px;
  --nav-h: 72px;
}

/* ========================================================================
   RESET / BASE
   ======================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--mtb-ink);
  background: var(--mtb-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html, body { max-width: 100%; overflow-x: hidden; }
img, video, svg, picture, canvas { max-width: 100%; height: auto; display: block; }
a { color: var(--mtb-green-deep); text-decoration: none; }
a:hover { color: var(--mtb-green); }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--mtb-ink); line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--mtb-border-green); outline-offset: 2px; border-radius: var(--radius-sm); }

/* ========================================================================
   TIPO — escalas
   ======================================================================== */
.mtb-kicker {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mtb-green-deep);
}
.mtb-hero    { font-size: clamp(38px, 6vw, 64px); font-weight: 800; }
.mtb-display { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; }
.mtb-h1      { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.mtb-h2      { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; }
.mtb-h3      { font-size: 20px; font-weight: 700; }
.mtb-lead    { font-size: clamp(17px, 1.5vw, 20px); color: var(--mtb-ink-2); line-height: 1.55; }
.mtb-muted   { color: var(--mtb-ink-3); }
.mtb-text-green { color: var(--mtb-green-deep); }

/* ========================================================================
   LAYOUT
   ======================================================================== */
.mtb-container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mtb-container--narrow { max-width: var(--maxw-narrow); }
.mtb-section { padding: clamp(56px, 8vw, 104px) 0; }
.mtb-section--soft { background: var(--mtb-bg-soft); }
.mtb-section--mute { background: var(--mtb-bg-mute); }
.mtb-section--ink  { background: var(--mtb-bg-ink); color: var(--mtb-on-ink); }
.mtb-section--ink h1, .mtb-section--ink h2, .mtb-section--ink h3 { color: var(--mtb-on-ink); }

.mtb-section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(32px, 5vw, 56px); }
.mtb-section-head .mtb-lead { margin-top: 14px; }

.mtb-stack    { display: flex; flex-direction: column; gap: var(--space-lg); }
.mtb-row      { display: flex; align-items: center; gap: var(--space-md); }
.mtb-cluster  { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }
.mtb-grid     { display: grid; gap: var(--space-2xl); }
.mtb-grid-2   { grid-template-columns: repeat(2, 1fr); }
.mtb-grid-3   { grid-template-columns: repeat(3, 1fr); }
.mtb-grid-4   { grid-template-columns: repeat(4, 1fr); }
.mtb-grid-auto{ grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ========================================================================
   BOTÕES
   ======================================================================== */
.mtb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px;
  border: 0; border-radius: var(--radius-full);
  font-family: var(--font-body); font-size: 15.5px; font-weight: 700; letter-spacing: .01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease),
              background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.mtb-btn:active { transform: translateY(1px) scale(.99); }
.mtb-btn:disabled { opacity: .5; cursor: not-allowed; }

.mtb-btn--primary { background: var(--mtb-green); color: var(--mtb-on-green); box-shadow: var(--shadow-green); }
.mtb-btn--primary:hover { background: var(--mtb-green-deep); color: #fff; transform: translateY(-2px); }

.mtb-btn--yellow { background: var(--mtb-yellow); color: var(--mtb-on-yellow); box-shadow: var(--shadow-yellow); }
.mtb-btn--yellow:hover { background: var(--mtb-yellow-deep); transform: translateY(-2px); }

.mtb-btn--ghost { background: transparent; color: var(--mtb-ink); border: 1.5px solid var(--mtb-border-strong); }
.mtb-btn--ghost:hover { border-color: var(--mtb-green); color: var(--mtb-green-deep); background: var(--mtb-success-bg); }

.mtb-btn--light { background: #fff; color: var(--mtb-green-deep); box-shadow: var(--shadow-sm); }
.mtb-btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.mtb-btn--lg { height: 56px; padding: 0 34px; font-size: 17px; }
.mtb-btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.mtb-btn--full { width: 100%; }

/* ========================================================================
   CARDS
   ======================================================================== */
.mtb-card {
  background: #fff;
  border: 1px solid var(--mtb-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}
.mtb-card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--mtb-border-green); }
.mtb-card--flat { box-shadow: none; }

/* Card de evento */
.mtb-event-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.mtb-event-card__media { position: relative; aspect-ratio: 16/10; background: var(--mtb-bg-mute); overflow: hidden; }
.mtb-event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.mtb-event-card--hover:hover .mtb-event-card__media img { transform: scale(1.05); }
.mtb-event-card__date {
  position: absolute; top: 12px; left: 12px;
  background: #fff; border-radius: var(--radius-md); padding: 6px 10px; text-align: center;
  box-shadow: var(--shadow-sm); line-height: 1;
}
.mtb-event-card__date b { display: block; font-family: var(--font-display); font-size: 18px; color: var(--mtb-green-deep); }
.mtb-event-card__date span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mtb-ink-3); }
.mtb-event-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mtb-event-card__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.mtb-event-card__meta { font-size: 13.5px; color: var(--mtb-ink-3); }
.mtb-event-card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.mtb-event-card__price { font-family: var(--font-display); font-weight: 700; color: var(--mtb-ink); }

/* ========================================================================
   BADGES / PILLS
   ======================================================================== */
.mtb-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  background: var(--mtb-success-bg); color: var(--mtb-green-deep);
  border: 1px solid var(--mtb-border-green);
}
.mtb-badge--yellow { background: var(--mtb-warning-bg); color: var(--mtb-warning); border-color: rgba(255,196,0,.4); }
.mtb-badge--ink { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); }
.mtb-badge--dot::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; }

/* ========================================================================
   INPUTS
   ======================================================================== */
.mtb-input, .mtb-select, .mtb-textarea {
  width: 100%; height: 52px; padding: 0 16px;
  background: #fff; color: var(--mtb-ink);
  border: 1.5px solid var(--mtb-border-strong); border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 15.5px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.mtb-input::placeholder { color: var(--mtb-ink-4); }
.mtb-input:focus, .mtb-select:focus, .mtb-textarea:focus {
  outline: 0; border-color: var(--mtb-green);
  box-shadow: 0 0 0 4px rgba(0,168,89,.15);
}
.mtb-textarea { height: auto; min-height: 120px; padding: 12px 16px; resize: vertical; }
.mtb-label { display: block; font-size: 13px; font-weight: 600; color: var(--mtb-ink-2); margin: 0 0 8px; }

/* ========================================================================
   DIVISÓRIA / UTILIDADES
   ======================================================================== */
.mtb-divider { height: 1px; background: var(--mtb-border); border: 0; margin: var(--space-3xl) 0; }
.mtb-flag-rule { height: 4px; border-radius: 4px; background: var(--mtb-gradient-flag); border: 0; width: 64px; margin: 0; }
.mtb-center { text-align: center; }
.mtb-mt-0 { margin-top: 0; } .mtb-mt-2 { margin-top: 8px; } .mtb-mt-3 { margin-top: 16px; } .mtb-mt-4 { margin-top: 24px; }
.mtb-hide { display: none !important; }

/* Reveal on scroll (progressivo; sem JS o conteúdo aparece) */
.mtb-reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.mtb-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .mtb-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ========================================================================
   RESPONSIVO
   ======================================================================== */
@media (max-width: 960px) {
  .mtb-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .mtb-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mtb-container { padding: 0 18px; }
  .mtb-grid-2, .mtb-grid-3, .mtb-grid-4 { grid-template-columns: 1fr; }
  .mtb-btn { width: 100%; }
  .mtb-cluster--cta { flex-direction: column; align-items: stretch; }
}
