/* ============================================================
   SALVADOR CLUBE — Design System
   ============================================================
   Primário .......... #1D4ED8
   Primário Escuro ... #1E3A8A
   Azul Claro ........ #DBEAFE
   Azul Muito Claro .. #EFF6FF
   Branco ............ #FFFFFF
   Fundo ............. #F8FAFC
   Texto ............. #1F2937
   Texto Secundário .. #6B7280
   Borda ............. #E5E7EB
   ============================================================ */

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1F2937;
  background-color: #F8FAFC;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  background-color: #FFFFFF;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.header--scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Logo ---- */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1F2937;
  transition: color 0.2s ease;
  outline: none;
  border-radius: 8px;
  padding: 4px;
}

.header__logo-link:hover {
  color: #1D4ED8;
}

.header__logo-link:focus-visible {
  box-shadow: 0 0 0 3px #DBEAFE;
}

.header__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #1D4ED8;
  color: #FFFFFF;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.header__logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: #1F2937;
  white-space: nowrap;
}

/* ---- Navegação ---- */
.header__nav {
  display: flex;
  align-items: center;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__item {
  position: relative;
}

.header__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #6B7280;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
  outline: none;
  white-space: nowrap;
}

.header__link:hover {
  color: #1F2937;
  background-color: #F8FAFC;
}

.header__link:focus-visible {
  box-shadow: 0 0 0 3px #DBEAFE;
  background-color: #EFF6FF;
}

.header__link--active {
  color: #1D4ED8;
  background-color: #EFF6FF;
  font-weight: 600;
}

.header__link--active:hover {
  background-color: #DBEAFE;
}

.header__link--disabled {
  color: #9CA3AF;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}

.header__badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  color: #1D4ED8;
  background-color: #DBEAFE;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* ---- CTA ---- */
.header__cta {
  flex-shrink: 0;
}

/* Esconde o CTA mobile no desktop (só aparece no drawer em mobile) */
.header__cta--mobile {
  display: none;
}

.header__cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #FFFFFF;
  background-color: #1D4ED8;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  outline: none;
  white-space: nowrap;
}

.header__cta-button:hover {
  background-color: #1E3A8A;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
  transform: translateY(-1px);
}

.header__cta-button:focus-visible {
  box-shadow: 0 0 0 3px #DBEAFE, 0 4px 12px rgba(29, 78, 216, 0.2);
}

.header__cta-button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ---- Toggle (hambúrguer) ---- */
.header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: #1F2937;
  transition: background-color 0.2s ease;
  outline: none;
}

.header__toggle:hover {
  background-color: #F8FAFC;
}

.header__toggle:focus-visible {
  box-shadow: 0 0 0 3px #DBEAFE;
}

/* ---- Botão fechar (drawer mobile) ---- */
.header__nav-close {
  display: none;
}

/* ---- Overlay do menu mobile ---- */
.header__overlay {
  display: none;
}

/* ---- Drawer (menu mobile) ---- */
.header__drawer {
  display: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: #FFFFFF;
  border-top: 1px solid #E5E7EB;
  padding-top: 64px;
  padding-bottom: 0;
}

.footer__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

/* ---- Coluna 1 - Logo ---- */
.footer__column--logo {
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #1D4ED8;
  color: #FFFFFF;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.footer__logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: #1F2937;
}

.footer__description {
  font-size: 0.9375rem;
  color: #6B7280;
  line-height: 1.7;
}

/* ---- Colunas ---- */
.footer__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1F2937;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #6B7280;
  transition: color 0.2s ease;
  outline: none;
  padding: 2px 0;
}

.footer__link:hover {
  color: #1D4ED8;
}

.footer__link:focus-visible {
  color: #1D4ED8;
  box-shadow: 0 0 0 3px #DBEAFE;
  border-radius: 4px;
  padding: 2px 4px;
  margin: 0 -4px;
}

.footer__link--disabled {
  color: #9CA3AF;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}

.footer__badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  color: #1D4ED8;
  background-color: #DBEAFE;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  vertical-align: middle;
}

/* ---- Redes sociais ---- */
.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: #6B7280;
  background-color: #F8FAFC;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
  outline: none;
}

.footer__social-link:hover {
  color: #1D4ED8;
  background-color: #EFF6FF;
  transform: translateY(-2px);
}

.footer__social-link:focus-visible {
  box-shadow: 0 0 0 3px #DBEAFE;
  color: #1D4ED8;
}

.footer__social-link:active {
  transform: translateY(0);
}

/* ---- Rodapé inferior ---- */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid #E5E7EB;
}

.footer__copyright {
  font-size: 0.875rem;
  color: #6B7280;
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6B7280;
  transition: color 0.2s ease;
  outline: none;
  padding: 2px 0;
}

.footer__legal-link:hover {
  color: #1D4ED8;
}

.footer__legal-link:focus-visible {
  color: #1D4ED8;
  box-shadow: 0 0 0 3px #DBEAFE;
  border-radius: 4px;
  padding: 2px 4px;
  margin: 0 -4px;
}

.footer__legal-link--disabled {
  color: #9CA3AF;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

/* ---- Tablet & Notebook (até 1024px) ---- */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer__column--logo {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

/* ---- Mobile (até 768px) ---- */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* --- Header Mobile --- */
  .header__container {
    padding: 0 16px;
  }

  .header__toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background-color: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    padding-top: 100px;
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .header__nav--open {
    transform: translateX(0);
  }

  /* Botão fechar no drawer mobile */
  .header__nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: #1F2937;
    border: none;
    background: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    z-index: 1;
  }

  .header__nav-close:hover {
    background-color: #F8FAFC;
  }

  .header__nav-close:focus-visible {
    box-shadow: 0 0 0 3px #DBEAFE;
  }

  .header__menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 4px;
  }

  .header__item {
    width: 100%;
  }

  .header__link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .header__cta--desktop {
    display: none;
  }

  .header__cta--mobile {
    display: block;
    margin-top: 16px;
    width: 100%;
  }

  .header__cta--mobile .header__cta-button {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  /* --- Overlay --- */
  .header__overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .header__overlay--visible {
    opacity: 1;
    visibility: visible;
  }

  /* --- Footer Mobile --- */
  .footer {
    padding-top: 48px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer__legal {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .footer__social {
    justify-content: center;
  }
}

/* ---- Mobile pequeno (até 480px) ---- */
@media (max-width: 480px) {
  .header__nav {
    width: 100%;
  }

  .header__logo-text {
    font-size: 1.125rem;
  }

  .footer__container {
    padding: 0 16px;
  }
}

/* ============================================================
   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;
}

/* ============================================================
   CONTEÚDO PRINCIPAL (placeholder)
   ============================================================ */
.main {
  margin-top: 80px;
  min-height: calc(100vh - 80px - 280px);
}

.main__hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 80px 24px;
  text-align: center;
}

.main__hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 16px;
}

.main__hero-subtitle {
  font-size: 1.125rem;
  color: #6B7280;
  max-width: 600px;
  margin: 0 auto;
}
