/* ─── PALETA UNIODONTOPOA ────────────────────────────
   Vibrantes: Roxo #bf9cff · Pêssego #ff9fad
              Ciano #60ebff · Lima #e1ff7b · Goiaba #ff637e
   Apoio:     Vinho Médio #a60069 · Vinho Ultra #550039
              Vinho Claro #bc5688
─────────────────────────────────────────────────── */
:root {
  --roxo:        #bf9cff;
  --pessego:     #ff9fad;
  --ciano:       #60ebff;
  --lima:        #e1ff7b;
  --goiaba:      #ff637e;
  --vinho-medio: #a40069;
  --vinho-ultra: #550039;
  --vinho-claro: #bc5688;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Georama', sans-serif;
  color: #333;
  margin: 0;
}

/* ─── LOADING OVERLAY ────────────────────────────── */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(150,150,150,.25);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.spinner {
  border: 8px solid rgba(0,153,68,.2);
  border-top: 8px solid #009944;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── NAVBAR ─────────────────────────────────────── */
.navbar-ipe { background: var(--vinho-medio); padding: .75rem 1.5rem; }
.navbar-ipe .nav-link { color: #fff; font-weight: 500; transition: color .2s; }
.navbar-ipe .nav-link:hover { color: var(--lima); }
.navbar-divider { color: rgba(255,255,255,.3); margin: 0 .5rem; }
.btn-laranja {
  background: #fff; color: var(--vinho-medio);
  font-weight: 700; border-radius: 50px; padding: 6px 20px;
  border: 2px solid #fff; transition: background .2s, color .2s;
}
.btn-laranja:hover { background: var(--lima); color: var(--vinho-ultra); border-color: var(--lima); }

/* ─── HERO ───────────────────────────────────────── */
header picture img { max-height: 600px; object-fit: cover; object-position: center; }

/* ─── SECTION GENERIC ────────────────────────────── */
.section-title { color: var(--vinho-ultra); font-weight: 900; }

/* ─── BENEFICIOS SECTION ─────────────────────────── */
.beneficios-section { background: #f7f2f6; }

/* ─── 4 CARDS ────────────────────────────────────── */
.feature-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(166,0,105,.18);
}
.feature-card-header {
  padding: 28px 20px;
  text-align: center;
  font-size: 2.4rem;
  color: #fff;
}
.gradient-1 { background: linear-gradient(135deg, var(--vinho-ultra), var(--vinho-medio)); }
.gradient-2 { background: linear-gradient(135deg, var(--goiaba), var(--pessego)); }
.gradient-3 { background: linear-gradient(135deg, var(--vinho-medio), var(--vinho-claro)); }
.gradient-4 { background: linear-gradient(135deg, var(--roxo), var(--ciano)); }
.gradient-5 { background: linear-gradient(135deg, var(--ciano), var(--roxo)); }
.gradient-6 { background: linear-gradient(135deg, var(--pessego), var(--vinho-claro)); }

.feature-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  flex-shrink: 0;
}

/* ─── PLANO INFO CARD (usado em benefícios e plano) ── */
.plano-info-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(164,0,105,.10);
  border: 1px solid rgba(164,0,105,.07);
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.plano-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(164,0,105,.16);
}
.plano-info-card h5 { color: var(--vinho-ultra); font-weight: 900; margin-bottom: .75rem; }
.plano-info-card p  { color: #666; font-size: .9rem; line-height: 1.6; }
.plano-info-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vinho-ultra), var(--vinho-medio));
  color: #fff;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.feature-card .card-body { padding: 1.5rem; }
.feature-card .card-body h5 { color: var(--vinho-ultra); font-weight: 700; }
.link-ipe {
  color: var(--vinho-medio);
  font-weight: 700;
  text-decoration: none;
  font-size: .9rem;
}
.link-ipe:hover { color: var(--vinho-claro); }

/* ─── DENTIST SECTION ────────────────────────────── */
.dentist-section { background: var(--vinho-medio); padding: 70px 0 80px; }

/* textos sobre o fundo magenta */
.dentist-section .section-title          { color: #fff; }
.dentist-section .text-muted             { color: rgba(255,255,255,1) !important; }
#total-resultados                        { color: var(--lima) !important; }
#area-resultados > div > p.text-muted    { color: rgba(255,255,255,.85) !important; }

/* toggle grade/lista sobre magenta */
.view-btn {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.35);
  color: rgba(255,255,255,.8);
}
.view-btn.active  { background: #fff; border-color: #fff; color: var(--vinho-medio); }
.view-btn:hover   { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.5); color: #fff; }

/* estado vazio sobre magenta */
.dentist-section .empty-state i { color: rgba(255,255,255,.25); }
.dentist-section .empty-state h5,
.dentist-section .empty-state p { color: rgba(255,255,255,.75) !important; }

/* mensagem de erro sobre magenta */
#erroMensagem { color: var(--lima) !important; }

.search-panel {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.search-panel .form-label {
  color: var(--vinho-medio);
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 6px;
}
.search-panel .form-control,
.search-panel .form-select {
  border-color: #f4c0dc;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: 'Georama', sans-serif;
}
.search-panel .form-control:focus,
.search-panel .form-select:focus {
  border-color: var(--vinho-claro);
  box-shadow: 0 0 0 .2rem rgba(188,86,136,.18);
}

.btn-ipe {
  background: var(--vinho-medio);
  color: #fff; border: none; border-radius: 12px;
  font-family: 'Georama', sans-serif; font-weight: 700;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-ipe:hover {
  background: #830054;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(166,0,105,.35);
  color: #fff;
}
.btn-outline-ipe {
  background: transparent;
  color: var(--vinho-medio);
  border: 2px solid var(--vinho-medio);
  border-radius: 12px;
  font-family: 'Georama', sans-serif;
  font-weight: 700;
  transition: all .2s;
}
.btn-outline-ipe:hover { background: var(--vinho-medio); color: #fff; }
.btn-limpar-filtros {
  background: none;
  border: none;
  color: var(--vinho-claro);
  font-family: 'Georama', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  transition: color .2s;
}
.btn-limpar-filtros:hover { color: var(--vinho-medio); }

/* dentist card */
.dentist-card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
  background: #fff;
}
.dentist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(166,0,105,.13);
}
.dentist-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 900;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(191,156,255,.25), rgba(191,156,255,.55));
  color: var(--vinho-medio);
}
.specialty-badge {
  background: var(--goiaba);
  color: #fff;
  border-radius: 20px;
  padding: 2px 9px;
  font-size: .7rem;
  font-weight: 700;
}
.badge-especialista {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  background: var(--vinho-medio);
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: .5px;
}
.dentist-info p { font-size: .76rem; color: #555; margin-bottom: 3px; }
.dentist-info i { color: var(--vinho-claro); width: 13px; }
.address-block {
  border-left: 3px solid var(--vinho-claro);
  padding-left: 8px;
  margin-bottom: 7px;
}
.address-block:last-child { margin-bottom: 0; }

/* view toggle */
.view-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 2px solid #f4c0dc;
  background: #fff; color: #aaa;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
}
.view-btn.active {
  background: var(--vinho-medio);
  border-color: var(--vinho-medio);
  color: #fff;
}

/* pagination */
.pagination-ipe .page-link {
  color: #fff;
  background: rgba(255,255,255,.15);
  border-radius: 8px !important;
  margin: 0 2px;
  border-color: rgba(255,255,255,.35);
  font-family: 'Georama', sans-serif;
  font-weight: 700;
}
.pagination-ipe .page-link:hover {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.pagination-ipe .page-item.active .page-link {
  background: #fff;
  border-color: #fff;
  color: var(--vinho-medio);
}
.pagination-ipe .page-item.disabled .page-link {
  background: transparent;
  color: rgba(255,255,255,.35);
  border-color: rgba(255,255,255,.2);
}

/* list mode */
.lista-mode .dentist-card .card-body {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.lista-mode .dentist-avatar { width: 38px; height: 38px; font-size: .82rem; }
.lista-mode .card-info-col { flex: 1; min-width: 0; }

/* empty / initial state */
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state i { font-size: 3rem; color: #ddd; }

/* ─── FOOTER ─────────────────────────────────────── */
footer { background: #fff; color: #444; padding: 60px 0 0; border-top: 3px solid var(--vinho-medio); }
footer h5, footer h6 { color: var(--vinho-medio); font-weight: 700; }
footer p { font-size: .9rem; color: #555; }
footer ul { padding: 0; list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul a {
  color: #666; text-decoration: none;
  font-size: .9rem; transition: color .2s;
}
footer ul a:hover { color: var(--vinho-medio); }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: #f5f5f5; color: #555;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; transition: background .2s, color .2s;
}
.social-btn:hover { background: var(--vinho-medio); color: #fff; }
.footer-bottom {
  border-top: 1px solid #eee;
  padding: 1.25rem 0; margin-top: 2.5rem;
}
.footer-bottom p { font-size: .82rem; color: #aaa; margin: 0; }
.footer-endereco { white-space: nowrap; }

/* ─── PLANO INFO SECTION ─────────────────────────── */
.plano-info-section {
  background: #faf5f8;
  padding: 70px 0 80px;
  border-top: 1px solid #f0dce9;
}
.plano-info-section .intro-text {
  max-width: 720px;
  margin: 0 auto;
  color: #555;
  font-size: .95rem;
  line-height: 1.7;
}
.plano-cobertura-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
  border: 2px solid var(--vinho-medio);
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.plano-cobertura-card h5 { color: var(--vinho-ultra); font-weight: 700; margin-bottom: .75rem; }
.plano-cobertura-card p  { color: #555; font-size: .9rem; line-height: 1.7; margin: 0; }
.cobertura-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--vinho-ultra), var(--vinho-medio));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
  margin-bottom: 1.25rem;
}

.plano-carencia-card {
  background: linear-gradient(135deg, var(--vinho-ultra), var(--vinho-medio));
  border-radius: 18px;
  padding: 2rem 1.75rem;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.plano-carencia-card h5 { color: #fff; font-weight: 700; margin-bottom: .5rem; }
.plano-carencia-card .carencia-destaque {
  font-size: 1.1rem; font-weight: 900;
  color: var(--lima); margin-bottom: 1rem;
}
.plano-carencia-card p  { color: rgba(255,255,255,.85); font-size: .9rem; line-height: 1.65; }
.carencia-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--lima);
  margin-bottom: 1.25rem;
}

/* ─── BOTÃO CTA ADESÃO ───────────────────────────── */
.btn-cta-adesao {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--vinho-medio);
  color: #fff;
  font-family: 'Georama', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 18px 52px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(164,0,105,.35);
  transition: transform .25s ease, box-shadow .25s ease, background .2s;
  letter-spacing: .3px;
}
.btn-cta-adesao:hover {
  background: var(--vinho-ultra);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(85,0,57,.4);
}
.btn-cta-adesao:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(164,0,105,.3);
}

@media (max-width: 575px) {
  .btn-cta-adesao { font-size: 1rem; padding: 15px 36px; }
}

/* ─── SLOGAN ─────────────────────────────────────── */
.slogan-section {
  background: var(--vinho-ultra);
  padding: 40px 0;
  text-align: center;
}
.slogan-section p {
  color: var(--lima);
  font-size: 1.75rem;
  font-weight: 850;
  letter-spacing: .3px;
  margin: 0;
}

html { scroll-behavior: smooth; }

/* ─── RESPONSIVIDADE MOBILE ──────────────────────── */
@media (max-width: 991px) {
  .navbar-logo { height: 46px !important; }
}

@media (max-width: 767px) {
  /* navbar */
  .navbar-logo            { height: 32px !important; }
  .navbar-divider         { display: none; }
  .navbar-brand           { gap: .35rem !important; max-width: calc(100% - 52px); }

  /* seções */
  .dentist-section        { padding: 48px 0 56px; }
  .search-panel           { padding: 1rem; border-radius: 14px; }
  footer                  { padding: 40px 0 0; }
  .footer-endereco        { white-space: normal !important; }
  .slogan-section p       { font-size: 1.2rem; }
  .plano-info-section     { padding: 48px 0 56px; }

  /* cards 1 por linha */
  .beneficios-section .row > .col-6 {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 575px) {
  .navbar-logo             { height: 28px !important; }
  .dentist-section         { padding: 36px 0 44px; }
  .search-panel            { padding: .875rem; border-radius: 12px; }
  .section-title           { font-size: 1.4rem !important; }
  .feature-card-header     { padding: 18px 14px; font-size: 1.8rem; }
  .feature-card .card-body { padding: 1rem; }
  .feature-card .card-body h5 { font-size: .88rem; }
  .feature-card .card-body p  { font-size: .78rem; }
  footer                   { padding: 32px 0 0; }
  .footer-bottom           { margin-top: 1.5rem; }
  .btn-cta-adesao          { font-size: .95rem; padding: 14px 28px; width: 100%; justify-content: center; }
  .plano-cobertura-card,
  .plano-carencia-card     { padding: 1.5rem 1.25rem; }
}
