/* =========================================
   HOME (estilos.css) – SOMENTE INDEX/HOME
   Depende de: base.css (reset + header + footer)
========================================= */

/* =========================
   FUNDO / LAYOUT GERAL DA HOME
========================= */
body.home-body {
  background-color: #FAEEDF;
  overflow-x: hidden;
  color: #262118;
}

/* Wrapper (se você usa .page-wrapper no HTML) */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Garante que o main empurra o footer para baixo */
.home-body main {
  flex: 1;
}

/* =========================
   HERO HOME
========================= */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 24px 48px;
}

.hero-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 32px;
}

/* =========================
   SEARCH BAR (HOME)
========================= */
.search-bar {
  width: 100%;
  background: #ffffff;
  border-radius: 999px;
  padding: 12px 12px 12px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.search-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.search-field label {
  font-size: 12px;
  color: #8a7d6a;
  line-height: 1.1;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border-bottom: none !important;
}

.search-input-wrapper input {
  border: none;
  outline: none;
  font-size: 14px;
  width: 100%;
  background: transparent;
  color: #262118;
  min-width: 0;
  box-shadow: none;
}

.search-input-wrapper input:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.divider {
  width: 1px;
  align-self: stretch;
  background: #f2e3d3;
}

.search-button {
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  background: #fe5d03;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.search-button:hover {
  filter: brightness(0.96);
}

/* Ícones dentro da busca (png/svg) */
.search-input-wrapper img,
.search-input-wrapper svg {
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

/* Linha horizontal mobile (se existir no HTML) */
.divider-mobile {
  display: none;
  width: 100%;
  height: 1px;
  background-color: #f2e3d3;
  margin: 8px 0;
}

/* Responsividade da search-bar */
@media (max-width: 768px) {
  .search-bar {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }
  .divider { display: none; }
  .divider-mobile { display: block; }
  .search-button { width: 100%; }
}

/* =========================
   DROPDOWN – TIPO DE ENSINO (HOME)
========================= */
.search-field-dropdown {
  position: relative;
}

/* Faz o bloco parecer clicável */
.search-field-dropdown .search-input-wrapper {
  cursor: pointer;
}

.tipo-selected-label {
  font-size: 14px;
  color: #555;
}

/* Painel do dropdown
   Estado aberto: .open (mantive para não quebrar JS atual)
*/
.tipo-dropdown-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: min(420px, 90vw);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  padding: 16px 18px 12px;
  z-index: 9999;
  display: none;
}

.tipo-dropdown-panel.open {
  display: block;
}

.dropdown-header {
  margin-bottom: 8px;
}

.dropdown-title {
  font-size: 14px;
  font-weight: 600;
  color: #53425a;
}

.dropdown-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #efe3d9;
}

.dropdown-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #53425a;
  margin-bottom: 6px;
}

/* Opções */
.dropdown-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 4px;
  margin-top: 6px;
}

@media (max-width: 480px) {
  .dropdown-options-grid { grid-template-columns: 1fr; }
}

.dropdown-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #40352b;
  margin-bottom: 4px;
  cursor: pointer;
}

.dropdown-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.dropdown-footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.dropdown-clear-btn,
.dropdown-apply-btn {
  border-radius: 999px;
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
}

.dropdown-clear-btn {
  background: transparent;
  color: #7c6a59;
}

.dropdown-apply-btn {
  background: #fe5d03;
  color: #ffffff;
  font-weight: 600;
}

/* =========================
   AUTOCOMPLETE LOCAL (HOME)
   Estado aberto: JS pode usar display/hidden.
   Mantive a forma atual (sem classe .open) para não quebrar.
========================= */
.geo-autocomplete-wrap {
  position: relative;
}

.geo-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 9999;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}

.geo-suggest-section {
  padding: 10px 12px 6px;
  font-weight: 800;
  font-size: 12px;
  opacity: .75;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.geo-suggest-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
}

.geo-suggest-item:hover,
.geo-suggest-item.is-active {
  background: rgba(0,0,0,.06);
}

.geo-suggest-title {
  font-weight: 800;
  font-size: 14px;
  color: #111;
}

.geo-suggest-sub {
  font-size: 12px;
  color: rgba(0,0,0,.62);
}

.geo-suggest-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(254,93,3,.12);
  color: #fe5d03;
  vertical-align: middle;
}

.geo-suggest-badge--place {
  background: rgba(0,46,214,.10);
  color: #002ed6;
}

/* =========================
   STRIP / PARCEIROS
========================= */
.partner-strip {
  margin-top: 16px;
  display: flex;
  flex-wrap: nowrap;          /* Mantém tudo em uma linha */
  align-items: center;        /* Alinha verticalmente pelo centro */
  justify-content: space-between; /* Distribui com espaço igual entre os logos */
  width: 100%;                /* Garante que use toda a largura da search box */
  max-width: 1200px;          /* O mesmo max-width da sua hero/search-bar */
  margin-left: auto;
  margin-right: auto;
  gap: 10px;                  /* Espaço mínimo entre logos em telas menores */
}

.partner-pill {
  padding: 4px 10px;
}

.partner-logo {
  height: 50px;               /* Altura levemente reduzida para melhor respiro */
  width: 100px;               /* Largura fixa para garantir colunas iguais */
  object-fit: contain;        /* Mantém a proporção sem distorcer */
  opacity: 0.85;
  filter: grayscale(100%);
  transition: filter 0.2s ease, opacity 0.2s ease;
  flex-shrink: 1;             /* Permite que o logo encolha em telas pequenas */
}

.partner-logo:hover {
  opacity: 1;
}

.partner-more {
  font-size: 12px;
  color: #6d5d4a;
  white-space: nowrap;        /* Impede que o texto quebre em duas linhas */
  flex-shrink: 0;             /* Garante que o texto não seja espremido */
}

/* =========================================
   ESTILO PARA MOBILE (Ajuste solicitado)
========================================= */
@media (max-width: 768px) {
  .partner-strip {
    flex-wrap: nowrap;          /* Força uma única linha */
    justify-content: space-between; /* Alinha com os limites da busca */
    gap: 4px;                   /* Reduz espaço para caber mais */
    overflow: hidden;           /* Corta o que sobrar sem estragar o layout */
  }

  .partner-logo {
    height: 35px;               /* Reduz o tamanho para caber no celular */
    flex-shrink: 1;             /* Permite que o logo encolha um pouco */
    min-width: 0;
  }

  .partner-more {
    font-size: 10px;
    white-space: nowrap;        /* Impede que o texto quebre */
    margin-left: auto;          /* Empurra para o limite direito */
  }
  
  /* Esconde logos extras no mobile para não amontoar demais */
  .partner-logo:nth-child(n+7) {
    display: none;
  }
}

/* =========================
  BANNER PRINCIPAL (HOME)
========================= */
.main-banner {
  margin-top: 24px;
  border-radius: 24px;
  overflow: hidden;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.main-banner-img {
  display: block;
  width: 100%;
  height: 260px;
  
}

@media (max-width: 768px) {
  .main-banner-img {
    height: 220px;
  }
}

/* Banner com imagem real (se ainda usar em algum bloco) */
.banner-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-image img {
  width: 100%;
  max-width: 380px;
  border-radius: 14px;
  object-fit: contain;
}

/* Garante que o painel apareça quando o JS adicionar a classe */
.tipo-dropdown-panel.is-open,
.tipo-dropdown-panel.open {
  display: block !important;
}

/* Unifica as classes de abertura para o Header */
.header-dropdown.is-open,
.header-dropdown.open {
  display: block !important;
}

/* Remove bordas de todos os estados do input de local */
#local-input, 
#local-input:focus, 
#local-input:active,
#local-input:hover {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

/* Garante que o container do input também não tenha bordas */
.search-input-wrapper.geo-autocomplete-wrap {
  border-bottom: none !important;
}

.search-input-wrapper {
  padding: 4px 0; /* Dá um respiro interno sem criar linhas */
  border: 0 !important;
}

/* =========================================
   HOVER — ITENS DO DROPDOWN DE PERFIL
========================================= */

.header-dropdown .dropdown-item {
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Hover e foco (mouse + teclado) */
.header-dropdown .dropdown-item:hover,
.header-dropdown .dropdown-item:focus-visible {
  background-color: #faeedf;   /* tom claro da identidade */
  color: #002ed6;              /* laranja da marca */
}

/* Remove aparência padrão de botão */
.header-dropdown button.dropdown-item {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.home-banner-rotator{
  width: 100%;
  max-width: 1180px; /* ajuste para bater com seu layout */
  margin: 22px auto 0;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.home-banner-link{
  display: block;
  width: 100%;
}

.home-banner-img{
  width: 100%;
  height: 260px;
  object-fit: fill;
  display: block;
  opacity: 1;
  transition: opacity 300ms ease;
}
@media (max-width: 768px){
  .home-banner-img{ height: 220px; }
}

/* estado de fade */
.home-banner-img.is-fading{
  opacity: 0;
}

/* dots (opcional) */
.home-banner-dots{
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
}

.home-banner-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
}

.home-banner-dot.is-active{
  background: rgba(255,255,255,0.95);
}

/* =========================
   ROTATOR — SETAS
========================= */
.home-banner-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  z-index: 10;
  display: grid;
  place-items: center;

  /* transparente / “glass” */
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
  color: #fff;
  opacity: 0.0;                 /* aparece no hover */
  transition: opacity 150ms ease, background 150ms ease, transform 150ms ease;
}

.home-banner-arrow:hover{
  background: rgba(0,0,0,0.28);
  transform: translateY(-50%) scale(1.03);
}

.home-banner-rotator:hover .home-banner-arrow{
  opacity: 1;
}

.home-banner-arrow:focus-visible{
  opacity: 1;
  outline: 2px solid rgba(255,255,255,0.85);
  outline-offset: 2px;
}

.home-banner-arrow--prev{ left: 14px; }
.home-banner-arrow--next{ right: 14px; }

.home-banner-arrow svg{
  width: 18px;
  height: 18px;
  display: block;
}

/* no mobile, deixa sempre visível e um pouco menor */
@media (max-width: 768px){
  .home-banner-arrow{
    opacity: 1;
    width: 40px;
    height: 40px;
  }
  .home-banner-arrow--prev{ left: 10px; }
  .home-banner-arrow--next{ right: 10px; }
}
