/* =====================================================================
   X SEMINÁRIO IBERO-AFRO-AMERICANO DE DIREITO E CONTROLO
   Folha de estilos principal

   Índice:
   1. Variáveis (design tokens) — cores, fontes, espaçamentos
   2. Reset / base
   3. Utilitários (container, títulos de seção, etc.)
   4. Cabeçalho / navegação
   5. Hero (marca do evento)
   6. Sobre o evento
   7. Mensagens dos conselheiros
   8. Programação
   9. Hospedagem
   10. Contato / rodapé
   11. Media queries principais estão junto de cada bloco (mobile-first)
===================================================================== */

/* ---------------------------------------------------------------------
   1. VARIÁVEIS
   Todas as cores do site vêm da identidade visual oficial do evento
   (extraídas dos arquivos-fonte em assets/img/*.svg). Para alterar a
   paleta do site inteiro, basta editar os valores abaixo.
--------------------------------------------------------------------- */
:root {
  /* Cores da marca */
  --color-navy: #044366;
  /* azul principal (mapa do Brasil, títulos, fundo da programação) */
  --color-navy-dark: #0e2648;
  /* azul mais escuro (transições/faixas) */
  --color-teal: #145f7e;
  /* azul petróleo (cartões da programação) */
  --color-coral: #e44e4b;
  /* vermelho/coral (destaques, linhas, ícones) */
  --color-gold: #c39f65;
  /* dourado (ícones, mapa da África, "XXh") */
  --color-tan: #E1BF8F;
  /* bege/dourado claro (fundo da seção hospedagem) */
  --color-tan-light: #e0bf90;
  /* bege claro (elementos decorativos sobre o azul) */

  /* Neutros */
  --color-charcoal: #4b4b4b;
  /* texto principal */
  --color-white: #ffffff;
  --color-offwhite: #f8f7f5;
  /* fundo claro das seções */
  --color-watermark: #efefef;
  /* mapas decorativos em marca d'água */

  /* Tipografia */
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  /* títulos, menu, rótulos */
  --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  /* textos, citações */

  /* Layout */
  --container-width: 1200px;
  --container-padding: 1.5rem;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  /* Transições */
  --transition-base: 0.3s ease;
}

/* ---------------------------------------------------------------------
   2. RESET / BASE
--------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  scrollbar-gutter: stable;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
li,
figure {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-serif);
  color: var(--color-charcoal);
  background-color: var(--color-white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* ---------------------------------------------------------------------
   3. UTILITÁRIOS
--------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  color: var(--color-charcoal);
  text-align: center;
  position: relative;
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 3px;
  background-color: var(--color-coral);
}

.section-title--navy {
  color: var(--color-navy);
}

.section-title--light {
  color: var(--color-white);
}

.section-title--light::after {
  background-color: var(--color-tan-light);
}

.section-underline {
  display: block;
  width: 90px;
  height: 3px;
  background-color: var(--color-coral);
  margin: 0 auto 1.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
   4. CABEÇALHO / NAVEGAÇÃO
--------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  transition: box-shadow var(--transition-base);
}

.header.is-scrolled {
  box-shadow: 0 2px 18px rgba(4, 67, 102, 0.12);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 1rem + 1.5vw, 2.75rem);
  flex-wrap: wrap;
  justify-content: center;
}

.nav__link {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-charcoal);
  transition: color var(--transition-base), border-color var(--transition-base);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-coral);
  border-color: var(--color-coral);
}

.hamburger {
  display: none;
  position: absolute;
  right: var(--container-padding);
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: auto;
  line-height: 0;
  z-index: 101;
}

.hamburger img {
  width: 50px;
  height: auto;
  display: block;
}

@media (max-width: 767px) {
  .header__container {
    justify-content: flex-start;
    min-height: 68px;
  }

  .hamburger {
    display: block;
  }

  .nav__list {
    position: fixed;
    inset: 68px 0 0 0;
    height: calc(100vh - 68px);
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    padding: 2rem 0;
  }

  .nav__list.is-open {
    transform: translateX(0);
  }

  .nav__list li {
    width: 100%;
    text-align: center;
  }

  .nav__link {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1.3rem;
  }
}

/* ---------------------------------------------------------------------
   5. HERO (MARCA DO EVENTO)
--------------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--color-white);
  padding-top: clamp(1.5rem, 1rem + 2vw, 3rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__curve {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  min-width: 150%;
  max-width: none;
  height: auto;
  opacity: 0.9;
}

.hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__logo {
  width: min(600px, 90%);
  height: auto;
}

.hero__edition {
  margin-top: 2rem;
  max-width: 780px;
}

.hero__edition-label {
  font-family: var(--font-display);
  color: var(--color-navy);
  letter-spacing: 0.08em;
  font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.4rem);
  margin-bottom: 0.75rem;
}

.hero__theme {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  color: var(--color-charcoal);
}

/* ---------------------------------------------------------------------
   6. SOBRE O EVENTO
--------------------------------------------------------------------- */
.sobre {
  position: relative;
  padding-top: clamp(6rem, 4rem + 6vw, 9rem);
  padding-bottom: clamp(4rem, 3rem + 4vw, 6rem);
  isolation: isolate;
}

.sobre__slideshow {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.sobre__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.sobre__slide.is-active {
  opacity: 1;
}

.sobre__slideshow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 67, 102, 0.55) 0%, rgba(4, 67, 102, 0.35) 45%, rgba(4, 67, 102, 0.15) 100%);
}

.sobre__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sobre__panel {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  max-width: 900px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(4, 67, 102, 0.25);
}

.sobre__panel p {
  margin-bottom: 1.1rem;
  font-size: 20px;
}

.sobre__panel p:last-child {
  margin-bottom: 0;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  color: var(--color-navy);
  font-size: 1.15rem;
}

.sobre__panel a {
  color: var(--color-coral);
}

.sobre__badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: -1.75rem;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.sobre__badges-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.sobre__badges-action {
  display: flex;
  justify-content: center;
  width: 100%;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--color-white);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.4rem;
  box-shadow: 0 12px 30px rgba(4, 67, 102, 0.2);
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

.badge__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.badge__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--color-charcoal);
  line-height: 1.3;
}

.badge__country {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  color: var(--color-coral);
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

/* Badge de Ação / Botão de Inscrição */
.badge--btn {
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.badge--btn .badge__icon {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge--btn .badge__text {
  color: var(--color-navy);
  font-weight: 600;
  transition: color 0.3s ease;
}

.badge--btn:hover,
.badge--btn:focus-visible {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 36px rgba(4, 67, 102, 0.35);
}

.badge--btn:hover .badge__text,
.badge--btn:focus-visible .badge__text {
  color: var(--color-white);
}

.badge--btn:hover .badge__icon,
.badge--btn:focus-visible .badge__icon {
  transform: scale(1.15) rotate(-6deg);
}

.badge--btn:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 8px 20px rgba(4, 67, 102, 0.25);
}

/* ---------------------------------------------------------------------
   7. MENSAGENS DOS CONSELHEIROS
--------------------------------------------------------------------- */
.mensagens {
  position: relative;
  padding-block: clamp(4rem, 3rem + 4vw, 6rem);
  overflow: hidden;
}

.mensagens__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../img/fundo-msg-conselheiros.svg');
  background-position: center center;
  background-size: 150% auto;
  background-repeat: repeat;
}

.mensagens .container {
  position: relative;
  z-index: 1;
}

.depoimentos {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 2rem + 3vw, 4.5rem);
  max-width: 980px;
  margin-inline: auto;
}

.depoimento__texto {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.08rem);
}

.depoimento__texto p {
  margin-bottom: 1rem;
}

.depoimento__autor {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.depoimento__foto {
  width: 96px;
  height: 117px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.depoimento__nome {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-charcoal);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.depoimento__cargo {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--color-coral);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ---------------------------------------------------------------------
   8. PROGRAMAÇÃO
--------------------------------------------------------------------- */
.programacao {
  position: relative;
  background-color: var(--color-navy);
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
  overflow: hidden;
}

.programacao__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  pointer-events: none;
}

.programacao .container {
  position: relative;
  z-index: 1;
}

.timeline {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 760px;
  margin-inline: auto;
}

.timeline__track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  position: relative;
}

.timeline__track::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 50%;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.25);
  z-index: 0;
}

.timeline__day {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.timeline__day+.timeline__day {
  margin-top: 1.75rem;
}

.timeline__date {
  font-family: var(--font-display);
  background-color: var(--color-tan-light);
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.15rem;
  padding: 0.5rem 1.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.timeline__card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background-color: var(--color-teal);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  width: 100%;
  min-height: 140px;
}

.timeline__hour {
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.timeline__painel {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.timeline__palestrante {
  font-family: var(--font-serif);
  color: var(--color-white);
  font-size: 1rem;
}

.timeline__arrow {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  opacity: 0.9;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.timeline__arrow:hover {
  opacity: 1;
  transform: scale(1.08);
}

.timeline__arrow img {
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  .timeline__track::before {
    display: none;
  }

  .timeline__track {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .timeline__track::-webkit-scrollbar {
    display: none;
  }

  .timeline__day {
    scroll-snap-align: center;
    flex: 0 0 100%;
    min-width: 100%;
  }

  .timeline__day+.timeline__day {
    margin-top: 0;
  }

  .timeline__arrow {
    display: block;
  }
}

/* ---------------------------------------------------------------------
   9. HOSPEDAGEM
--------------------------------------------------------------------- */
.hospedagem {
  position: relative;
}

.hospedagem__transition {
  height: 48px;
  background-color: var(--color-navy-dark);
}

.hospedagem__content {
  position: relative;
  background-color: var(--color-tan);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
  overflow: hidden;
}

.hospedagem__bg {
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
  opacity: 0.55;
  pointer-events: none;
}

.hospedagem__bg--left {
  left: 0;
  transform: scaleX(-1);
}

.hospedagem__bg--right {
  right: 0;
}

.hospedagem__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hospedagem__icon {
  width: 88px;
  height: 88px;
  margin-bottom: 1.75rem;
}

.hospedagem__toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--color-white);
  color: var(--color-navy);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  padding: 1.1rem 2.25rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 30px rgba(4, 67, 102, 0.18);
  transition: box-shadow var(--transition-base);
}

.hospedagem__toggle:hover {
  box-shadow: 0 16px 36px rgba(4, 67, 102, 0.26);
}

.hospedagem__chevron {
  width: 18px;
  height: 12px;
  transition: transform var(--transition-base);
}

.hospedagem__toggle[aria-expanded="true"] .hospedagem__chevron {
  transform: rotate(180deg);
}

.hospedagem__panel {
  max-width: 700px;
  margin-top: 1.75rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
}

/* ---------------------------------------------------------------------
   10. CONTATO / RODAPÉ
--------------------------------------------------------------------- */
.contato {
  background-color: var(--color-offwhite);
}

.contato__container {
  padding-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  text-align: center;
}

.contato__titulo {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.4rem);
  color: var(--color-charcoal);
  margin-bottom: 1.75rem;
}

.contato__lista {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.contato__lista li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.05rem, 1rem + 0.2vw, 1.25rem);
}

.contato__icone {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.patrocinio {
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  background-color: var(--color-white);
}

.patrocinio__label {
  text-align: center;
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.85rem;
  color: var(--color-charcoal);
  margin-bottom: 2rem;
}

.patrocinio__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  margin-bottom: 3rem;
}

.patrocinio__grid:last-child {
  margin-bottom: 0;
}

.patrocinio__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.88;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease,
    filter 0.3s ease;
}

.patrocinio__logo:hover,
.patrocinio__logo:focus-visible {
  opacity: 1;
  transform: translateY(-4px) scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(4, 67, 102, 0.15));
}

.patrocinio__logo:active {
  transform: translateY(-1px) scale(0.98);
}

.patrocinio__logo--h75 {
  height: 75px;
}

.patrocinio__logo--h65 {
  height: 65px;
}

.patrocinio__logo img {
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.rodape-imagem {
  width: 100%;
  line-height: 0;
}

.rodape-imagem img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.rodape-barra {
  height: 14px;
  background-color: var(--color-coral);
}

/* ---------------------------------------------------------------------
   Responsivo — ajustes gerais para telas médias e pequenas
--------------------------------------------------------------------- */
@media (max-width: 991px) {
  .depoimento__autor {
    flex-wrap: wrap;
  }
}

@media (max-width: 575px) {
  :root {
    --container-padding: 1.1rem;
  }

  .depoimento__autor {
    flex-direction: column;
    text-align: center;
  }

  .patrocinio__logo {
    height: 44px;
  }

  .patrocinio__logo--h75 {
    height: 60px;
  }

  .patrocinio__logo--h65 {
    height: 52px;
  }

  .timeline__card {
    flex-direction: column;
    gap: 0.5rem;
  }
}