/* ==========================================================================
   SIMAD — Site oficial (1º Simpósio Maranhense de Dor)
   Componentes adicionais, construídos sobre os tokens de styles.css
   ========================================================================== */

/* ---- Fundo principal: Azul Marinho no lugar do Azul Profundo ---- */
.hero,
footer.site-footer {
  background: var(--color-navy);
}

/* ---- Barra do topo maior e mais legível ---- */
.topnav .container { height: 108px; }
.topnav .brand { flex-shrink: 0; }
.topnav .brand img.brand-logo { height: 72px; width: auto; flex-shrink: 0; }
.brand-logo--dark { display: none; }
@media (prefers-color-scheme: dark) {
  .brand-logo--light { display: none; }
  .brand-logo--dark { display: block; }
}
@media (max-width: 640px) {
  .topnav .container { height: 76px; }
  .topnav .brand img.brand-logo { height: 44px; }
  .topnav nav { gap: var(--space-3); }
  .topnav nav a { font-size: var(--fs-xs); }
}

/* ---- Texto do hero em tamanho normal no celular (a lede tava em 24px) ---- */
@media (max-width: 720px) {
  .hero p.lede { font-size: var(--fs-base); }
}

/* ---- Hero: layout empilhado (logo em cima, texto embaixo) ---- */
.hero-grid { display: flex; flex-direction: column; }
.hero-copy { text-align: left; }
.hero-logo-wrap { order: -1; }
.hero-logo {
  width: 320px;
  max-width: 70%;
  margin-bottom: var(--space-4);
  transform: translateX(-12%);
}

/* ---- Toques em Ciano: acentos decorativos, sem usar em texto pequeno (contraste) ---- */
.doc-section .section-head .eyebrow {
  display: inline-block;
  border-bottom: 2px solid var(--color-cyan);
  padding-bottom: 4px;
}
.institution-block img { box-shadow: var(--shadow-sm), 0 0 0 3px rgba(125,199,217,0.35); }
.lot-card--soon { border-color: rgba(125,199,217,0.45); }

/* ---- Hero: símbolo grande ao fundo, sangrando na borda, baixa transparência ---- */
.hero { padding-top: var(--space-4); }
.hero::before {
  display: block;
  background-image: url('assets/logo/symbol-off-white.png');
  background-repeat: no-repeat;
  background-position: right -450px center;
  background-size: 900px;
  opacity: 0.14;
  filter: none;
}
@media (max-width: 720px) {
  .hero::before { background-size: 500px; background-position: right -250px center; }
}

/* ---- Divisor de seção com o azulejo da identidade ---- */
.section-divider {
  height: 110px;
  background-image: url('Doodle_1.png');
  background-size: 170px;
  background-repeat: repeat;
  opacity: 0.5;
}
@media (prefers-color-scheme: dark) {
  .section-divider { opacity: 0.22; }
}

/* ---- Botão flutuante mobile ---- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  padding: var(--space-2) var(--space-3);
  background: rgba(236, 240, 245, 0.92);
  backdrop-filter: blur(10px);
  border-top: var(--border-hairline);
}
@media (prefers-color-scheme: dark) {
  .mobile-cta { background: rgba(20, 22, 46, 0.92); }
}
.mobile-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 720px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 76px; }
}

/* ---- Two-up layout ---- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: var(--space-5); }
}
.split-media { margin: 0; }
.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.split-media figcaption {
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ---- Cards de dia (data e local) ---- */
.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.day-card {
  background: var(--bg-surface);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
}
.day-card .day-num {
  font-family: var(--font-display);
  color: var(--accent-soft);
  background: var(--color-deep-blue);
  width: auto;
  height: auto;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-base);
  margin-bottom: var(--space-3);
}
.day-card h3 { font-size: var(--fs-lg); margin-bottom: 2px; }
.day-card .day-time { font-size: var(--fs-sm); color: var(--accent); font-weight: 700; margin-bottom: var(--space-2); }
.day-card p { font-size: var(--fs-sm); margin: 0; }

.venue-card {
  background: var(--bg-surface);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.venue-card address { font-style: normal; font-size: var(--fs-base); color: var(--text-primary); line-height: 1.5; }
.venue-card address strong { display: block; font-size: var(--fs-lg); margin-bottom: 2px; }

.map-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.local-media-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.split-top { align-items: start; }

.photo-placeholder {
  border: 2px dashed rgba(29,32,66,0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  background: rgba(29,32,66,0.03);
}

/* ---- Programação ---- */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
@media (max-width: 860px) {
  .schedule-grid { grid-template-columns: 1fr; }
}
.schedule-day h3 {
  font-size: var(--fs-xl);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.schedule-day .day-time { font-family: var(--font-body); text-transform: none; letter-spacing: normal; font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; }
.schedule-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; border-left: 2px solid rgba(32,58,117,0.18); }
.schedule-item { position: relative; padding: 0 0 var(--space-4) var(--space-4); }
.schedule-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.schedule-item.is-break::before { background: var(--color-cyan); }
.schedule-item:last-child { padding-bottom: 0; }
.schedule-time { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; color: var(--accent); text-transform: uppercase; margin-bottom: 2px; }
.schedule-title { font-weight: 700; color: var(--text-primary); font-size: var(--fs-base); margin-bottom: 2px; }
.schedule-coord { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
.schedule-item.is-break .schedule-title { font-weight: 600; color: var(--text-muted); }

.badge-pending {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  border: 1px dashed var(--accent);
  color: var(--accent);
  margin-left: 0.5em;
  white-space: nowrap;
  vertical-align: middle;
}

.schedule-note {
  margin-top: var(--space-4);
}

/* ---- Ingressos / lotes ---- */
.lot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.lot-card {
  position: relative;
  background: var(--bg-surface);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.lot-card[data-status="ativo"] {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-md);
}
.lot-card .lot-name { font-family: var(--font-display); font-size: var(--fs-xl); text-transform: uppercase; letter-spacing: 0.02em; color: var(--text-primary); }
.lot-card .lot-price { font-family: var(--font-display); font-size: var(--fs-3xl); color: var(--text-primary); }
.lot-card .lot-price small { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 600; color: var(--text-muted); text-transform: none; }
.lot-card .lot-vagas { font-size: var(--fs-sm); color: var(--text-muted); }
.lot-card .lot-window { font-size: var(--fs-xs); color: var(--text-muted); }

.lot-categories {
  list-style: none;
  margin: var(--space-2) 0;
  padding: var(--space-3) 0;
  border-top: var(--border-hairline);
  border-bottom: var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lot-categories li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.lot-categories span { font-size: var(--fs-sm); color: var(--text-muted); }
.lot-categories strong { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--text-primary); white-space: nowrap; }
.lot-status {
  align-self: flex-start;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lot-card[data-status="ativo"] .lot-status { background: rgba(125,199,217,0.3); color: var(--color-deep-blue); }
.lot-card[data-status="em-breve"] .lot-status { background: rgba(29,32,66,0.08); color: var(--text-muted); }
.lot-card[data-status="encerrado"] .lot-status { background: rgba(29,32,66,0.06); color: var(--text-muted); text-decoration: line-through; }
.lot-card[data-status="encerrado"] { opacity: 0.55; }

.lot-card--soon {
  border-style: dashed;
  box-shadow: none;
  background: rgba(29,32,66,0.03);
}
.lot-card--soon .lot-status { background: rgba(29,32,66,0.08); color: var(--text-muted); align-self: flex-start; }
.lot-card--soon .lot-vagas { font-size: var(--fs-sm); color: var(--text-muted); }

.purchase-info {
  background: var(--bg-surface);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}
.purchase-info h3 { font-size: var(--fs-base); margin-bottom: var(--space-2); }
.purchase-info ul { margin: 0 0 var(--space-3); padding-left: 1.2em; color: var(--text-muted); font-size: var(--fs-sm); }
.purchase-info li { margin-bottom: 4px; }

.pending-note {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: rgba(29,32,66,0.04);
  border: 1px dashed rgba(29,32,66,0.22);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.pending-note strong { color: var(--text-primary); }

/* ---- Comissão ---- */
.institution-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--bg-surface);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}
.institution-block img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 560px) {
  .institution-block { grid-template-columns: 1fr; }
  .institution-block img { width: 64px; height: 64px; }
}
.institution-block h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }

.badge-photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 220px;
  object-fit: contain;
}

.committee-grid {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
}
.committee-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}
.committee-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
  box-shadow: var(--shadow-sm);
}
.committee-card:nth-child(4n+1) .committee-avatar { background: var(--color-navy); color: var(--color-off-white); }
.committee-card:nth-child(4n+2) .committee-avatar { background: var(--color-cyan); color: var(--color-deep-blue); }
.committee-card:nth-child(4n+3) .committee-avatar { background: var(--color-light-blue); color: var(--color-deep-blue); }
.committee-card:nth-child(4n+4) .committee-avatar { background: var(--color-deep-blue); color: var(--color-off-white); }

/* Quando o avatar é uma foto (<img>) em vez de iniciais (<span>) */
img.committee-avatar {
  object-fit: cover;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(29,32,66,0.1);
}
.committee-name { font-weight: 700; font-size: var(--fs-sm); color: var(--text-primary); }
.committee-role { font-size: var(--fs-xs); color: var(--text-muted); }

/* ---- Contato ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}
.contact-card {
  background: var(--bg-surface);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.contact-card .label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 700; margin-bottom: 4px; }
.contact-card a { font-weight: 700; word-break: break-word; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

footer.site-footer .footer-cols { display: flex; gap: var(--space-6); flex-wrap: wrap; justify-content: space-between; width: 100%; }
footer.site-footer .footer-brand img { height: 96px; margin-bottom: var(--space-2); }
@media (max-width: 560px) { footer.site-footer .footer-brand img { height: 72px; } }
footer.site-footer nav.footer-links { display: flex; flex-direction: column; gap: 6px; }
footer.site-footer nav.footer-links a { color: rgba(236,240,245,0.78); text-decoration: none; font-size: var(--fs-sm); }
footer.site-footer nav.footer-links a:hover { color: var(--color-off-white); }
