/* ============================================================
   UNIASSELVI — Portal de Boas-vindas
   Mobile-first · Dark/Light · Premium
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Brand */
  --yellow:        #FFC200;
  --yellow-dim:    rgba(255, 194, 0, 0.14);
  --yellow-glow:   rgba(255, 194, 0, 0.22);
  --yellow-border: rgba(255, 194, 0, 0.32);

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --text-hero: clamp(2.6rem, 7vw, 5rem);

  /* Radii */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-full: 9999px;

  /* Transitions */
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --dur:     260ms;

  /* Layout */
  --max-w: 1160px;
  --nav-h: 64px;
}

/* Dark theme (default) */
[data-theme="dark"] {
  --bg:          #080808;
  --surface:     #111111;
  --surface-2:   #1a1a1a;
  --surface-3:   #232323;
  --text:        #f0f0f0;
  --text-muted:  #808080;
  --text-faint:  #444444;
  --border:      rgba(255,255,255,0.07);
  --border-mid:  rgba(255,255,255,0.12);
  --shadow:      0 1px 2px rgba(0,0,0,0.6), 0 6px 24px rgba(0,0,0,0.5);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
}

/* Light theme */
[data-theme="light"] {
  --bg:          #f5f5f3;
  --surface:     #ffffff;
  --surface-2:   #f0f0ec;
  --surface-3:   #e8e8e4;
  --text:        #111111;
  --text-muted:  #666666;
  --text-faint:  #aaaaaa;
  --border:      rgba(0,0,0,0.07);
  --border-mid:  rgba(0,0,0,0.12);
  --shadow:      0 1px 2px rgba(0,0,0,0.06), 0 6px 24px rgba(0,0,0,0.08);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }


/* ── UTILITY ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}

.section-heading {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.section-desc {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 540ms var(--ease), transform 540ms var(--ease);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-line, .timeline-item { transition: none !important; }
}


/* ── ACCENT LINE (signature element) ────────────────────── */
/* A 3-px yellow rule at the very top of the page — unifies
   the whole design without competing with content */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--yellow) 30%, var(--yellow) 70%, transparent);
  z-index: 1000;
  pointer-events: none;
}


/* ── NAVBAR ──────────────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 3px; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 900;
  transition: background var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}

#main-nav.nav--scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

#main-nav.nav--hidden {
  transform: translateY(-100%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo {
  font-size: var(--text-lg);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
}
.nav-logo span { color: var(--yellow); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--r-full);
  background: var(--yellow);
  color: #000;
  font-size: var(--text-sm);
  font-weight: 700;
  transition: all var(--dur) var(--ease);
}
.nav-cta:hover {
  background: #ffd240;
  box-shadow: 0 0 0 4px var(--yellow-dim);
}
.nav-cta:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

#theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-mid);
  color: var(--text-muted);
  transition: color var(--dur), background var(--dur), border-color var(--dur);
}
#theme-toggle:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-mid);
}
#theme-toggle:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}


/* ── HERO ────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 20px 80px;
  position: relative;
  overflow: hidden;
}

/* Subtle grid bg */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
  pointer-events: none;
}

/* Yellow glow at centre */
#hero::before {
  content: '';
  position: absolute;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, var(--yellow-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-wordmark {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 32px;
  padding: 6px 16px;
  border: 1px solid var(--yellow-border);
  border-radius: var(--r-full);
  background: var(--yellow-dim);
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-title mark {
  background: none;
  color: var(--yellow);
  position: relative;
  /* underline glow */
}
.hero-title mark::after {
  content: '';
  position: absolute;
  bottom: 0px; left: 0; right: 0;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  opacity: .5;
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero CTA group — os 2 CTAs principais */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}
/* Normaliza o btn-whatsapp (grande por padrão) ao tamanho do CTA primário */
.hero-cta-group .btn-whatsapp {
  font-size: var(--text-base);
  padding: 14px 28px;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.25);
}

.hero-tertiary-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px;
  transition: color var(--dur) var(--ease);
}
.hero-tertiary-link:hover { color: var(--yellow); }
.hero-tertiary-link:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Hero line enter animation */
.hero-line {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.hero-line.revealed { opacity: 1; transform: none; }

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: var(--text-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.hero-scroll-cue svg { opacity: .5; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}


/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-size: var(--text-base);
  font-weight: 600;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--yellow);
  color: #000;
}
.btn-primary:hover {
  background: #ffd240;
  box-shadow: 0 0 0 4px var(--yellow-dim), 0 4px 24px var(--yellow-glow);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border-mid);
  color: var(--text-muted);
  background: var(--surface-2);
}
.btn-outline:hover {
  border-color: var(--yellow-border);
  color: var(--yellow);
  background: var(--yellow-dim);
}

.btn-sm {
  padding: 9px 18px;
  font-size: var(--text-sm);
  border-radius: var(--r-full);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  font-size: var(--text-lg);
  padding: 16px 40px;
  box-shadow: 0 4px 32px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: #22c55e;
  box-shadow: 0 4px 40px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}


/* ── SECTIONS ────────────────────────────────────────────── */
section {
  padding: 96px 0;
}
section + section {
  border-top: 1px solid var(--border);
}

/* Faixa de atalhos rápidos — mais fina que as demais sections */
#atalhos {
  padding: 28px 0;
}


/* ── ATALHOS RÁPIDOS ─────────────────────────────────────── */
.shortcuts-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shortcuts-bar::-webkit-scrollbar { display: none; }

@media (min-width: 700px) {
  .shortcuts-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow: visible;
  }
}

.shortcut-item {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 116px;
  padding: 16px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  transition: all var(--dur) var(--ease);
}
@media (min-width: 700px) {
  .shortcut-item { width: auto; }
}
.shortcut-item:hover {
  border-color: var(--yellow-border);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.shortcut-item:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.shortcut-icon { font-size: 1.4rem; line-height: 1; }
.shortcut-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.shortcut-item--accent {
  background: var(--yellow-dim);
  border-color: var(--yellow-border);
}
.shortcut-item--accent .shortcut-label { color: var(--yellow); }
.shortcut-item--accent:hover { background: var(--yellow-glow); }

.shortcut-item--whatsapp {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.32);
}
.shortcut-item--whatsapp .shortcut-label { color: #22c55e; }
.shortcut-item--whatsapp:hover { background: rgba(37, 211, 102, 0.2); }


/* ── PRÓXIMA DATA IMPORTANTE ────────────────────────────── */
.next-event-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 22px 26px;
  margin-bottom: 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--yellow-border);
  background: linear-gradient(135deg, var(--yellow-dim), transparent 60%), var(--surface);
  box-shadow: var(--shadow-sm);
}
.next-event-tag {
  flex-basis: 100%;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow);
}
.next-event-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}
.next-event-date {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.next-event-label {
  font-size: var(--text-base);
  color: var(--text-muted);
}
.next-event-when {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: var(--r-full);
  background: var(--yellow);
  color: #000;
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}


/* ── CHECKLIST ───────────────────────────────────────────── */
.checklist-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--dur), background var(--dur), opacity var(--dur);
  user-select: none;
}
.checklist-item:hover {
  border-color: var(--yellow-border);
  background: var(--surface-2);
}
.checklist-item.is-done {
  opacity: .55;
  background: var(--surface-2);
}
.checklist-item.is-done .check-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.checklist-input { position: absolute; opacity: 0; pointer-events: none; }

.check-box {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur) var(--ease);
  color: transparent;
}
.checklist-item:hover .check-box { border-color: var(--yellow); }
.is-done .check-box {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #000;
}
.check-box svg { width: 12px; height: 12px; }

.check-icon { font-size: 1.3rem; flex-shrink: 0; }

.check-body { display: flex; flex-direction: column; gap: 2px; }
.check-text  { font-size: var(--text-base); font-weight: 600; }
.check-detail { font-size: var(--text-xs); color: var(--text-muted); }

/* Progress bar */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.progress-bar {
  flex: 1;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: var(--r-full);
  transition: width 500ms var(--ease);
  width: 0%;
}
.progress-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 160px;
  text-align: right;
}


/* ── VIDEOS ──────────────────────────────────────────────── */
.videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .videos-grid { grid-template-columns: repeat(4, 1fr); }
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
}
.video-card:hover {
  border-color: var(--yellow-border);
  box-shadow: 0 0 0 1px var(--yellow-border), var(--shadow);
  transform: translateY(-3px);
}

.video-thumb-link { display: block; position: relative; }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-3);
}
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}
.video-card:hover .video-thumb img { transform: scale(1.04); }

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  color: #fff;
  opacity: 0;
  transition: opacity var(--dur);
}
.video-card:hover .play-btn { opacity: 1; }
.play-btn svg {
  background: var(--yellow);
  color: #000;
  border-radius: var(--r-full);
  padding: 8px;
  width: 44px; height: 44px;
}

.video-tag {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--yellow);
  color: #000;
  padding: 3px 10px;
  border-radius: var(--r-full);
}

.video-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.video-title {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.video-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.video-info .btn-sm {
  align-self: flex-start;
  margin-top: 4px;
}


/* ── CALENDAR ────────────────────────────────────────────── */
.calendar-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.calendar-tabs {
  display: flex;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 4px;
}
.tab-btn {
  padding: 8px 20px;
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  background: var(--yellow);
  color: #000;
}
.tab-btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* Timeline → Grade de calendário mensal
   NOTE: o briefing citava tokens --clr-yellow / --clr-bg-card / --clr-border /
   --clr-text-1/2/3, que não existem neste :root. Mapeados para os tokens
   reais do projeto: --yellow, --surface, --border(-mid), --text,
   --text-muted, --text-faint. */
.timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
@media (min-width: 640px) {
  .timeline { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .timeline { grid-template-columns: repeat(4, 1fr); }
}

.cal-month {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}

.cal-month-title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-transform: capitalize;
  margin-bottom: 10px;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}
.cal-weekdays span {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  color: var(--text-faint);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: var(--r-sm);
  padding: 0;
}
.cal-day--empty { visibility: hidden; }

button.cal-day { cursor: pointer; }
button.cal-day:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* Dia com evento — círculo amarelo, número em preto */
.cal-day--event {
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cal-day--event:hover,
.cal-day--event:focus-visible {
  transform: scale(1.18);
  box-shadow: 0 0 0 3px var(--yellow-dim);
  z-index: 2;
}

/* Tooltip — puro CSS, sem JS de posicionamento.
   :focus e :focus-within cobrem toque/teclado onde não há :hover. */
.cal-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 170px;
  max-width: 220px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-mid);
  background: var(--surface-3);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 10;
}
.cal-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--surface-3);
}
.cal-day--event:hover .cal-tooltip,
.cal-day--event:focus .cal-tooltip,
.cal-day--event:focus-within .cal-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.cal-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text);
  text-align: left;
  line-height: 1.35;
  white-space: normal;
}


/* ── HIGHLIGHTS ──────────────────────────────────────────── */
#destaques {
  background: var(--surface);
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .highlights-grid { grid-template-columns: repeat(3, 1fr); }
}

.highlight-card {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: border-color var(--dur), transform var(--dur);
}
.highlight-card:hover {
  border-color: var(--yellow-border);
  transform: translateY(-2px);
}
.highlight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.highlight-body strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.highlight-body p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}


/* ── LINKS ÚTEIS ─────────────────────────────────────────── */
.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 500px) {
  .links-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 800px) {
  .links-grid { grid-template-columns: repeat(4, 1fr); }
}

.link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  transition: all var(--dur) var(--ease);
}
.link-card:hover {
  border-color: var(--yellow-border);
  color: var(--yellow);
  background: var(--yellow-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.link-icon { font-size: 1.1rem; flex-shrink: 0; }
.link-label { flex: 1; }
.link-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--dur), transform var(--dur);
  flex-shrink: 0;
}
.link-card:hover .link-arrow {
  opacity: 1;
  transform: none;
}
.link-card:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}


/* ── WHATSAPP CTA ────────────────────────────────────────── */
#whatsapp-cta {
  background: var(--surface);
  text-align: center;
}
.cta-inner {
  max-width: 560px;
  margin: 0 auto;
}
.cta-emoji {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 24px;
  display: block;
}
.cta-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.cta-sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.5;
}


/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 760px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--dur);
}
.faq-item.is-open {
  border-color: var(--yellow-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background var(--dur), color var(--dur);
}
.faq-question:hover { background: var(--surface-2); }
.faq-item.is-open .faq-question { color: var(--yellow); }
.faq-question:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: -2px;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--dur) var(--ease), color var(--dur);
}
.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  color: var(--yellow);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding-top: 16px;
}
.faq-answer[hidden] { display: none; }


/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  padding: 56px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-logo {
  font-size: var(--text-xl);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.footer-logo span { color: var(--yellow); }
.footer-quote {
  font-size: var(--text-base);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 24px;
}
.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--dur);
}
.footer-links a:hover { color: var(--yellow); }
.footer-copy {
  font-size: var(--text-xs);
  color: var(--text-faint);
}


/* ── RESPONSIVE TWEAKS ───────────────────────────────────── */
@media (max-width: 640px) {
  section { padding: 72px 0; }
  #atalhos { padding: 20px 0; }

  .section-heading { font-size: var(--text-xl); }

  /* NOTE: as 3 regras antigas daqui (.timeline padding-left / .timeline-dot /
     .timeline-date) eram específicas da timeline vertical e foram removidas
     — quebrariam o alinhamento da nova grade mensal (.timeline agora é grid). */

  .progress-text { font-size: 11px; min-width: 120px; }

  .cta-title { font-size: var(--text-2xl); }

  .btn-whatsapp { font-size: var(--text-base); padding: 14px 28px; }

  .next-event-card { padding: 18px 20px; text-align: center; justify-content: center; }
  .next-event-main { justify-content: center; width: 100%; }
  .next-event-date { font-size: var(--text-xl); }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }

  .nav-cta-label { display: none; }
  .nav-cta { padding: 9px 11px; }
}

@media (min-width: 768px) {
  .checklist-grid { grid-template-columns: repeat(2, 1fr); }
}
