*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  background-color: #f5f5f7;
}

a {
  color: #0b72e7;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout básico */

.cw-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .cw-logo-area img.cw-logo-img {
    height: 55px;
  }
}
.cw-narrow {
  max-width: 720px;
}

/* Header */

.cw-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e2e5;
  position: sticky;
  top: 0;
  z-index: 10;
}

.cw-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}


/* NOVO – controla o layout do logo */
.cw-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* NOVO – controla o tamanho da imagem do logo */
.cw-logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.cw-logo span {
  font-weight: 700;
  font-size: 1.1rem;
}

/* resto do que você já tinha continua igual */
.cw-nav {
  display: flex;
  gap: 1rem;
}

.cw-nav-link {
  font-size: 0.9rem;
  padding: 0 4px;
}
.cw-logo span {
  font-weight: 800;
  letter-spacing: -0.5px;
}


.cw-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
}


.cw-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e2e5;
  position: sticky;
  top: 0;
  z-index: 10;
}

.cw-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.cw-logo span {
  font-weight: 700;
  font-size: 1.1rem;
}
/* Tamanho da foto/logo no painel do ofertante (edição) */
.cw-logo-upload-preview {
  max-width: 180px;   /* controla o tamanho máximo */
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;  /* centraliza e dá um espacinho embaixo */
}

.cw-nav {
  display: flex;
  gap: 1rem;
}

.cw-nav-link {
  font-size: 0.9rem;
}

.cw-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
}
.cw-contact-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cw-ico {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.cw-ico-whats {
  background-image: url('/classiwhats/imagens/icones/whatsapp.svg');
}

.cw-ico-phone {
  background-image: url('/classiwhats/imagens/icones/phone.svg');
}

.cw-ico-mail {
  background-image: url('/classiwhats/imagens/icones/mail.svg');
}


/* Seções */

.cw-section {
  padding: 2.5rem 0;
}

.cw-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.cw-title-sm {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.cw-subtitle {
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
}

.cw-subtitle-sm {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
}

.cw-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

.cw-text-sm {
  font-size: 0.85rem;
  color: #555;
}

/* Cards e elementos visuais */

.cw-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  margin-top: 1rem;
}


/* Botões */

.cw-button {
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  cursor: pointer;
  background-color: #0b72e7;
  color: #ffffff;
}

.cw-button:hover {
  background-color: #095ab4;
}

.cw-button-sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
}

.cw-button-full {
  width: 100%;
  margin-top: 1rem;
}

.cw-button-ghost {
  background-color: transparent;
  color: #0b72e7;
  border: 1px solid #c5d3f0;
}

.cw-button-ghost:hover {
  background-color: #e7f0ff;
}

.cw-button-whatsapp {
  background-color: #25d366;
}

.cw-button-whatsapp:hover {
  background-color: #1aa854;
}

/* Links em formato de botão */

.cw-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid #c5d3f0;
  font-size: 0.9rem;
}

.cw-link-button-sm {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
}

/* Formulários */

.cw-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.85rem;
}

.cw-form-group label {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.cw-form-group input,
.cw-form-group select,
.cw-form-group textarea {
  border-radius: 6px;
  border: 1px solid #ced2de;
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
}
.cw-select-multi {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #ced2de;
  padding: 4px;
  min-height: 120px;   /* mostra poucas linhas */
  max-height: 220px;   /* não vira um tubo infinito */
  overflow-y: auto;    /* aparece a barrinha de rolagem */
}

.cw-form-group textarea {
  resize: vertical;
}

.cw-form-group-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.cw-form-group-check label {
  font-size: 0.85rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.cw-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cw-form-row .cw-form-group {
  flex: 1 1 0;
  min-width: 180px;
}

.cw-form-inline {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.cw-foto-ofertante,
.cw-logo-ofertante {
  text-align: center;
  margin-top: 16px;
}

.cw-foto-ofertante img,
.cw-logo-ofertante img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
}



/* Chips, tags, badges */

.cw-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background-color: #e7f0ff;
  font-size: 0.8rem;
  margin-right: 0.25rem;
}

.cw-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  margin-left: 0.3rem;
}

.cw-badge-highlight {
  background-color: #ffb020;
  color: #222;
}

.cw-tag-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cw-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 999px;
  background-color: #e7f0ff;
}

.cw-tag-remove {
  background: none;
  border: none;
  margin-left: 0.25rem;
  cursor: pointer;
}

/* Lista de ofertantes */

.cw-list-offerers {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cw-offerer-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.cw-offerer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background-color: #d0d7e2;
  flex-shrink: 0;
}

.cw-offerer-avatar-lg {
  width: 72px;
  height: 72px;
}

.cw-offerer-info {
  flex: 1;
}

.cw-offerer-name {
  margin: 0;
  font-size: 1rem;
}

.cw-offerer-category,
.cw-offerer-location {
  margin: 0.1rem 0;
  font-size: 0.85rem;
  color: #555;
}

.cw-offerer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Cidade atual */

.cw-city-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cw-label {
  font-size: 0.85rem;
  color: #555;
}

/* Breadcrumb */

.cw-breadcrumb {
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

/* Tabs login */

.cw-tabs {
  display: inline-flex;
  border-radius: 999px;
  background-color: #e1e5f0;
  padding: 0.25rem;
  margin: 1rem 0;
}

.cw-tab {
  border: none;
  background: none;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
}

.cw-tab-active {
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
}

/* Steps (cadastro ofertante) */

.cw-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
  font-size: 0.8rem;
}

.cw-step {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background-color: #e1e5f0;
}

.cw-step-active {
  background-color: #0b72e7;
  color: #ffffff;
}

/* Painel ofertante */

.cw-layout-two-columns {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
}

.cw-sidebar {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 0.75rem;
}

.cw-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cw-sidebar-link {
  font-size: 0.9rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
}

.cw-sidebar-link-active,
.cw-sidebar-link:hover {
  background-color: #e7f0ff;
}

/* Footer */

.cw-footer {
  border-top: 1px solid #e2e2e5;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: #555;
  background-color: #ffffff;
}

/* Responsividade */
@media (max-width: 768px) {
  .cw-nav { display: none; }
  .cw-nav-toggle { display: block; }

  .cw-layout-two-columns { grid-template-columns: 1fr; }

  .cw-offerer-card { align-items: flex-start; }

  .cw-offerer-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .cw-city-current {
    flex-direction: column;
    align-items: flex-start;
  }
} /* <-- FECHAMENTO que estava faltando */

  /* --- Melhorando os cards da home --- */

/* Responsividade */

/* comportamento mobile do menu */

/* ----- Lista compacta de ofertantes nos resultados ----- */

.cw-result-list {
  margin-top: 16px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.cw-result-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
}

.cw-result-item:last-child {
  border-bottom: none;
}

/* Avatar da listagem de resultados */
.cw-result-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%; /* deixa redondinho */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f5f9;
  flex-shrink: 0;
}

.cw-result-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.cw-result-main {
  display: flex;
  flex-direction: column;
}

.cw-result-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0b72e7;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cw-result-city {
  font-size: 0.8rem;
  color: #555;
  margin-top: 2px;
}

/* Deixa mais fácil de clicar no mobile */
@media (max-width: 768px) {
  .cw-result-item {
    padding: 12px 14px;
  }

  .cw-result-avatar {
    width: 44px;
    height: 44px;
  }
}
#categoria-busca {
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 8px;
}

#ofertante-categoria {
  border-radius: 6px;
  border: 1px solid #ccc;
}
.cw-text,
.cw-text-sm,
.cw-section p,
.cw-section li {
  text-align: justify;
}

/* Foto / logo do ofertante em detalhes e painel */
.cw-logo-upload-preview,
.cw-foto-ofertante img {
  max-width: 180px;   /* se quiser menor, troca pra 140px */
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
/* chamarisco discreto: pulse + leve brilho */
.cw-featured-callout {
  position: relative;
  border-left: 4px solid #0b72e7;
  overflow: hidden;
}

.cw-featured-callout::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 60%;
  height: 180%;
  transform: rotate(20deg);
  opacity: 0.12;
  background: linear-gradient(90deg, transparent, #0b72e7, transparent);
  animation: cwShine 3.2s infinite;
}
/* padrão desktop */
.cw-nav { display: flex; gap: 18px; }
.cw-nav-toggle { display: none; }

/* mobile */
@media (max-width: 768px){
  .cw-nav { display: none; }
  .cw-nav-toggle { display: inline-flex; align-items:center; justify-content:center; }

  /* quando aberto */
  .cw-nav.cw-nav-open{
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;            /* ajuste conforme header */
    right: 12px;
    left: 12px;
    background: #fff;
    border: 1px solid #e2e2e5;
    border-radius: 12px;
    padding: 12px;
    z-index: 9999;
  }
}
/* =========================
   MENU MOBILE - dropdown no canto direito
   ========================= */

/* âncora do dropdown */
.cw-header,
.cw-header-content {
  position: relative;
  overflow: visible;
}

/* desktop */
.cw-nav-toggle { display: none; }

/* mobile */
@media (max-width: 768px) {

  /* mostra o botão de barras */
  .cw-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }

  /* esconde menu quando fechado */
  .cw-nav {
    display: none;
  }

  /* menu aberto vira dropdown */
  .cw-nav.cw-nav-open {
    display: flex;
    flex-direction: column;
    gap: 8px;

    position: absolute;
    right: 12px;
    top: calc(100% + 8px); /* logo abaixo do header */
    width: min(260px, calc(100vw - 24px));

    background: #fff;
    border: 1px solid #e2e2e5;
    border-radius: 12px;
    padding: 10px;

    z-index: 99999;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
  }

  .cw-nav.cw-nav-open a {
    padding: 10px 12px;
    border-radius: 10px;
  }
}
/* =========================
   MENU MOBILE ANCORADO NO BOTÃO
   ========================= */

.cw-nav-wrapper {
  position: relative; /* âncora real do dropdown */
}

/* mobile */
@media (max-width: 768px){

  .cw-nav {
    display: none;
  }

  .cw-nav.cw-nav-open {
    display: flex;
    flex-direction: column;
    gap: 6px;

    width: 240px;
    background: #fff;
    border-radius: 14px;
    padding: 10px;

    border: 1px solid #e2e2e5;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
    z-index: 99999;
  }
.cw-nav.cw-nav-open {
  position: absolute;
  top: 38px;
  right: -6px;   /* empurra para alinhar ao ☰ */
}

  .cw-nav.cw-nav-open a {
    padding: 10px 12px;
    border-radius: 10px;
  }
}


html { scroll-behavior: smooth; }
