/* =====================================================
   main.css – Sistema fiel ao layout do Google Stitch
   Portal de Credenciamento Rio – Rock in Rio 2024
   ===================================================== */

/* --- Variáveis --- */
:root {
  --navy: #172A4F;
  /* azul-marinho deep */
  --blue: #1565C0;
  --blue-light: #64B5F6;
  --bg-light: #F4F6F9;
  --white: #FFFFFF;
  --text: #212121;
  --text-muted: #616161;
  --text-light: #9E9E9E;
  --border: #E0E0E0;
  --danger: #EF5350;
  --control: #64B5F6;
  --success: #2E7D32;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, .16);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: .2s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 140px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
  background: var(--navy);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: var(--radius);
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-logo__text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.site-logo img {
  max-height: 44px;
  width: auto;
}

/* Nav */
.primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu li a {
  display: block;
  padding: 1.4rem 0;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
}

.nav-menu li a:hover {
  color: var(--navy);
}

.nav-menu li.current-menu-item>a {
  color: var(--navy);
}

.nav-menu li.current-menu-item>a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--navy);
  border-radius: 2px 2px 0 0;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: auto;
  flex-shrink: 0;
}

.header-icon-btn,
.header-profile-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.header-icon-btn:hover,
.header-profile-btn:hover {
  background: var(--bg-light);
  border-color: var(--border);
}

.header-profile-btn {
  border: 1px solid var(--border);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  border-radius: var(--radius);
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  background-color: var(--navy);
  background-image: var(--hero-bg, url(''));
  background-size: cover;
  background-position: center right;
  padding-bottom: 100px;
  /* espaço para a sobreposição do card */
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 35%, rgba(23, 42, 79, 0.85) 55%, rgba(23, 42, 79, 0.2) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 150px;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__content-wrap {
  max-width: 700px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}

.hero__title-highlight {
  color: var(--blue-light);
  font-weight: 800;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .8);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 600px;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

/* Botões do hero */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-cta--primary {
  background: #fff;
  color: var(--navy);
  border: 2px solid #fff;
}

.btn-cta--primary:hover {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(255, 255, 255, .9);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-cta--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .6);
}

.btn-cta--outline:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
}

.btn-arrow {
  font-size: 1.2rem;
  line-height: 1;
  margin-left: .25rem;
}

/* =====================================================
   CRONOGRAMA CARD (sobreposto ao hero)
   ===================================================== */
.cronograma-card {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
  margin-top: -100px;
  /* sobe sobre o hero */
  margin-bottom: 0;
}

.cronograma-card__header {
  margin-bottom: 2.5rem;
}

.cronograma-card__tag {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: .4rem;
}

.cronograma-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.cronograma-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  text-align: center;
}

.cronograma-line {
  position: absolute;
  top: 22px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.cron-step {
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.cron-step__icon-wrapper {
  background: var(--white);
  padding: 0 15px;
  margin-bottom: 1.25rem;
}

.cron-step__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EEEEEE;
  color: #9E9E9E;
}

.cron-step--active .cron-step__icon {
  background: var(--navy);
  color: #fff;
}

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

.cron-step__title {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--text);
  margin-bottom: .5rem;
  text-transform: uppercase;
}

.cron-step--active .cron-step__title {
  color: var(--navy);
}

.cron-step__badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-bottom: .75rem;
  background: var(--bg-light);
  color: var(--text-light);
}

.cron-step__badge--active {
  background: var(--navy);
  color: #fff;
}

.cron-step--closed .cron-step__icon {
  background: #E0E0E0 !important;
  color: #9E9E9E !important;
}

.cron-step--closed .cron-step__title {
  color: #9E9E9E !important;
}

.cron-step--closed .cron-step__badge {
  background: #EEEEEE !important;
  color: #9E9E9E !important;
}

.cron-step__desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 220px;
}

/* =====================================================
   SEÇÃO CADASTRO & DOCUMENTACAO
   ===================================================== */
.section-cadastro {
  background: var(--bg-light);
  padding: 4rem 0;
}

.cadastro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.cadastro-col {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.cadastro-col .btn-solid {
  margin-top: auto;
  align-self: center;
}

.cadastro-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cadastro-badge {
  width: 48px;
  height: 48px;
  background: #E3F2FD;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}

.cadastro-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}

.cadastro-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--navy);
  color: #fff;
  padding: .85rem 1.75rem;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  transition: all var(--transition);
}

.btn-solid:hover {
  background: #0d1a33;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.docs-col {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.docs-col__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  color: var(--blue-light);
}

.docs-col__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.doc-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doc-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.doc-card__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-card__icon svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.doc-card__title {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .15rem;
}

.doc-card__desc {
  font-size: .8rem;
  color: var(--text-muted);
}

/* =====================================================
   SECAO MAPA – MOBILIDADE URBANA
   ===================================================== */
.section-mapa {
  background: var(--white);
  padding: 4rem 0;
}

.mapa-header {
  margin-bottom: 2rem;
}

.section-eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: .5rem;
}

.mapa-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .75rem;
}

.mapa-desc {
  font-size: .9rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.mapa-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.mapa-legend {
  display: flex;
  gap: 1.5rem;
  padding: .75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-light);
  justify-content: flex-end;
}

.legend-pill {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.legend-dot {
  width: 10px;
  height: 10px;
}

.legend-dot--red {
  background: var(--danger);
}

.legend-dot--blue {
  background: var(--control);
}

.mapa-display {
  position: relative;
}

.mapa-iframe {
  display: block;
  width: 100%;
  min-height: 500px;
  border: 0;
}

.mapa-img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 400px;
  object-fit: cover;
}

.mapa-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 5rem 2rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-light);
  min-height: 400px;
}

/* Card de atencao sobre o mapa */
.mapa-attention-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  max-width: 320px;
}

.mapa-attention-card__title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .5rem;
}

.mapa-attention-card__text {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.mapa-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: color var(--transition);
}

.mapa-pdf-link:hover {
  color: var(--blue-light);
}

/* =====================================================
   SECAO FAQ
   ===================================================== */
.section-faq {
  background: var(--bg-light);
  padding: 4rem 0;
}

.faq-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.faq-header .section-eyebrow {
  color: var(--navy);
}

.faq-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: .4rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

/*.faq-item:has(.faq-btn[aria-expanded="true"]){border-color:var(--navy);}*/
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--navy);
  text-align: left;
  text-transform: uppercase;
  transition: all var(--transition);
}

.faq-btn:hover {
  background: rgba(23, 42, 79, .02);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--navy);
  transition: transform var(--transition);
}

.faq-btn[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.faq-answer[hidden] {
  display: none;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.footer-main {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.footer-col {}

.footer-col__icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.footer-col__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.footer-col__header .footer-col__icon-wrap {
  margin-bottom: 0;
}

.footer-col__title {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
}

.footer-col__text {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-contact li {
  font-size: .82rem;
  color: var(--text-muted);
}

.footer-contact a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--navy);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-nav li a {
  font-size: .82rem;
  color: var(--text-muted);
  transition: color var(--transition);
  display: inline-block;
}

.footer-nav li a:hover {
  color: var(--navy);
}

/* Footer barra inferior */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  background: var(--white);
  margin-top: 2rem;
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copyright {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-muted);
}

.footer-bottom-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-icon-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: all var(--transition);
}

.footer-icon-btn:hover {
  color: var(--blue-light);
  transform: translateY(-1px);
}

/* =====================================================
   RESPONSIVO
   ===================================================== */
@media (max-width:1024px) {
  .cadastro-grid {
    grid-template-columns: 1fr;
  }

  .cronograma-steps {
    grid-template-columns: 1fr 1fr;
  }

  .cronograma-line {
    display: none;
  }

  .cron-step__icon-wrapper {
    padding: 0;
    margin-bottom: .75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:768px) {
  :root {
    --header-h: 64px;
  }

  .primary-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 1.5rem;
    overflow-y: auto;
    z-index: 199;
    border-top: 1px solid var(--border);
  }

  .primary-nav.nav-open {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-menu li a {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: .9rem;
  }

  .nav-menu li.current-menu-item>a::after {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .cronograma-card {
    padding: 1.5rem;
    margin-top: -60px;
  }

  .cronograma-steps {
    grid-template-columns: 1fr;
  }

  .cron-step {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
  }

  .cron-step:last-child {
    border-bottom: none;
  }

  .hero {
    padding-bottom: 80px;
    background-position: center;
  }

  .hero__inner {
    padding-top: 140px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .mapa-attention-card {
    position: static;
    max-width: 100%;
    border-top: 4px solid var(--navy);
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom__inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media (max-width:480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn-cta {
    width: 100%;
    justify-content: center;
  }

  .section-mapa,
  .section-cadastro,
  .section-faq {
    padding: 2.5rem 0;
  }
}