/* =============================================
VARIÁVEIS E RESET
============================================= */
:root {
  --gold: #c79d62;
  --gold-dark: #a97e45;
  --gold-light: #e8c990;
  --gold-pale: rgba(199, 157, 98, 0.08);
  --cream: #faf8f5;
  --cream-dark: #f2ede6;
  --dark: #1a1612;
  --text: #3d3530;
  --muted: #7a6e65;
  --border: #e8e0d6;
  --white: #ffffff;
  --green: #4caf7d;
  --green-pale: rgba(76, 175, 125, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 12px rgba(199, 157, 98, 0.08);
  --shadow-md: 0 8px 32px rgba(26, 22, 18, 0.1);
  --shadow-lg: 0 20px 56px rgba(26, 22, 18, 0.14);
  --ff-display: "Playfair Display", serif;
  --ff-body: "Lato", sans-serif;

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-w: 280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: var(--ff-body);
  cursor: pointer;
}
input,
select {
  font-family: var(--ff-body);
}

/* =============================================
TIPOGRAFIA
============================================= */
h1,
h2,
h3,
h4 {
  font-family: var(--ff-display);
  line-height: 1.2;
  font-weight: 500;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: linear-gradient(
    90deg,
    var(--gold-dark),
    var(--gold-light),
    var(--gold-dark)
  );
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 16px;
  letter-spacing: 0.04em;
}
@keyframes shimmer {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.announcement-bar a {
  color: #fff;
  text-decoration: underline;
}

/* =============================================
NAVBAR
============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.navbar__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar__logo {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar__logo img {
  display: block;
  width: 60px;
  padding: 3px 0;
}

.navbar__logo span {
  color: var(--dark);
  font-weight: 400;
}

.navbar__search {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.navbar__search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  background: var(--cream);
  color: var(--text);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.navbar__search input::placeholder {
  color: var(--muted);
}

.navbar__search input:focus {
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(199, 157, 98, 0.12);
}

.navbar__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: #ffffff;
  box-shadow: 0 3px 14px rgba(199, 157, 98, 0.3);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(199, 157, 98, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: #ffffff;
}

@media (max-width: 720px) {
  .navbar__search {
    display: none;
  }
  .navbar__inner {
    padding: 0 20px;
  }
}

/* =============================================
HERO STRIP
============================================= */
.hero-strip {
  background: linear-gradient(135deg, #2a1f14 0%, #1a1612 60%, #231a0f 100%);
  position: relative;
  overflow: hidden;
  padding: 52px 32px;
  margin: 0 auto;
}

.hero-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 55% 80% at 85% 50%,
      rgba(199, 157, 98, 0.13) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 35% 50% at 10% 90%,
      rgba(199, 157, 98, 0.07) 0%,
      transparent 55%
    );
}

/* Padrão geométrico sutil */
.hero-strip::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(199, 157, 98, 0.12);
  border-radius: 50%;
}

.hero-strip__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.hero-strip__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.hero-strip h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #ffffff;
  margin-bottom: 10px;
}

.hero-strip h1 em {
  color: var(--gold);
  font-style: italic;
}

.hero-strip p {
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  line-height: 1.75;
}

.hero-strip__stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(199, 157, 98, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 720px) {
  .hero-strip__inner {
    grid-template-columns: 1fr;
  }
  .hero-strip__stats {
    flex-direction: row;
    justify-content: flex-start;
  }
  .hero-stat {
    padding: 12px 20px;
  }
}

.page-body {
  max-width: 1280px;
  margin-inline: auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

/* =============================================
ÁREA PRINCIPAL DE RESULTADOS
============================================= */
.results-area {
  width: 100%;
  margin: 0 auto;
}

/* =============================================
GRID DE CARDS
============================================= */
.psychologists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

/* =============================================
CARD DE PSICÓLOGO
============================================= */
.psy-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.psy-card:hover {
  border-color: var(--gold-light);
  box-shadow: 0 8px 32px rgba(46, 125, 66, 0.14);
  transform: translateY(-4px);
}

/* Faixa de disponibilidade no topo */
.psy-card__availability-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--green), #7bcfa0);
}

.psy-card__availability-bar.busy {
  background: linear-gradient(90deg, #e0a04a, #f0c070);
}

/* Header do card */
.psy-card__header {
  padding: 24px 24px 0;
  display: flex;
  gap: 16px;
  align-items: center;
  /* justify-content: center; */
}

/* Avatar gerado com iniciais + gradiente único */
.psy-avatar {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 16px rgba(199, 157, 98, 0.2);
}

/* .psy-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  filter: brightness(0.85);
  clip-path: circle(50% at 50% 80%);
} */

.psy-avatar span {
  position: relative;
  z-index: 1;
}

/* Variações de cor de avatar */
.avatar-1 {
  background: linear-gradient(135deg, #c79d62, #e8c990);
}
.avatar-2 {
  background: linear-gradient(135deg, #7b9ebd, #a8c5e8);
}
.avatar-3 {
  background: linear-gradient(135deg, #8fb89a, #b5d4bc);
}
.avatar-4 {
  background: linear-gradient(135deg, #bd8f9e, #d4b5c4);
}
.avatar-5 {
  background: linear-gradient(135deg, #9e9eb8, #c0c0d4);
}
.avatar-6 {
  background: linear-gradient(135deg, #b89e7b, #d4c0a0);
}

.psy-card__meta {
  flex: 1;
  min-width: 0;
}

.psy-card__name {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 3px;
  line-height: 1.2;
}

.psy-card__crp {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.psy-card__rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stars {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.rating-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
}

.rating-count {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Badge de disponibilidade */
.psy-badge-avail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  white-space: nowrap;
}

.psy-badge-avail.available {
  background: #faf8f5;
  color: #2e7d52;
}

.psy-badge-avail.available::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.psy-badge-avail.busy {
  background: rgba(224, 160, 74, 0.1);
  color: #8a5e1a;
}

.psy-badge-avail.busy::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e0a04a;
  flex-shrink: 0;
}

/* Corpo do card */
.psy-card__body {
  padding: 16px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Especialidades (tags) */
.psy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.psy-tag {
  font-size: 0.73rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--cream);
  color: var(--text);
  border: 1px solid var(--border);
}

.psy-tag.highlight {
  background: rgba(199, 157, 98, 0.1);
  color: var(--gold-dark);
  border-color: rgba(199, 157, 98, 0.25);
}

/* Abordagem */
.psy-approach {
  display: flex;
  justify-content: start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.psy-approach-icon {
  font-size: 0.9rem;
}

/* Bio curta */
.psy-bio {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Atende exterior */
.psy-exterior-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.73rem;
  font-weight: 500;
  color: #2e6fa0;
  background: rgba(46, 111, 160, 0.08);
  padding: 4px 10px;
  border-radius: 50px;
  width: fit-content;
}

/* Footer do card */
.psy-card__footer {
  padding: 16px 24px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.psy-price {
  display: flex;
  flex-direction: column;
}

.psy-price__label {
  font-size: 0.73rem;
  color: var(--muted);
  margin-bottom: 1px;
}

.psy-price__value {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1;
}

.psy-price__session {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1px;
}

.psy-card__actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--muted);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(199, 157, 98, 0.06);
}

.btn-icon.favorited {
  border-color: #e87979;
  color: #e87979;
  background: rgba(232, 121, 121, 0.06);
}

.btn-card-cta {
  flex: 1;
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--gold);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.btn-card-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(199, 157, 98, 0.35);
}

/* =============================================
CARD FEATURED (destaque)
============================================= */
.psy-card.is-featured {
  border-color: var(--gold-light);
  background: linear-gradient(160deg, #fffdf9, #ffffff);
}

.psy-card.is-featured::before {
  content: "Em destaque";
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(199, 157, 98, 0.12);
  border: 1px solid rgba(199, 157, 98, 0.3);
  padding: 4px 10px;
  border-radius: 50px;
}

/* =============================================
EMPTY / LOADING STATES
============================================= */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 32px;
  color: var(--muted);
}

.no-results h3 {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 8px;
}

/* =============================================
PAGINAÇÃO
============================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
}

.page-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.page-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* =============================================
BANNER CTA (para psicólogos)
============================================= */
.psy-cta-banner {
  background: linear-gradient(135deg, #2a1f14, #1a1612);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
  grid-column: 1 / -1;
}

.psy-cta-banner::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(199, 157, 98, 0.15);
  border-radius: 50%;
}

.psy-cta-banner::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: 60px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(199, 157, 98, 0.08);
  border-radius: 50%;
}

.psy-cta-banner__text {
  position: relative;
}

.psy-cta-banner h3 {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.psy-cta-banner h3 em {
  color: var(--gold);
  font-style: italic;
}

.psy-cta-banner p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 420px;
  line-height: 1.7;
}

.psy-cta-banner .btn {
  flex-shrink: 0;
  position: relative;
  padding: 13px 28px;
}

@media (max-width: 640px) {
  .psy-cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =============================================
MODAL DE PERFIL
============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 18, 0.6);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #ffffff;
  border-radius: 24px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(46, 125, 66, 0.18);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal__top-bar {
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 24px 24px 0 0;
}

.modal__header {
  padding: 28px 32px 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #ffffff;
  font-size: 1.1rem;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal__close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.modal {
  position: relative;
}

.modal__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 16px rgba(199, 157, 98, 0.25);
}

.modal__info h2 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.modal__info .crp {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.modal__info .rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal__body {
  padding: 24px 32px;
}

.modal__section {
  margin-bottom: 24px;
}

.modal__section-title {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.modal__section p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.8;
}

.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.modal__tag {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  background: var(--cream);
  color: var(--text);
  border: 1px solid var(--border);
}

.modal__schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.time-slot {
  padding: 9px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.time-slot:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: var(--gold-pale);
}

.time-slot.is-selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}

.modal__footer {
  padding: 20px 32px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal__price strong {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--dark);
}

.modal__price span {
  font-size: 0.82rem;
  color: var(--muted);
  display: block;
}

.modal__cta-btn {
  flex: 1;
  max-width: 220px;
  padding: 14px 24px;
  border-radius: 50px;
  background: var(--gold);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal__cta-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(199, 157, 98, 0.4);
}

/* =============================================
FADE IN
============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-delay-1 {
  transition-delay: 0.07s;
}
.fade-delay-2 {
  transition-delay: 0.14s;
}
.fade-delay-3 {
  transition-delay: 0.21s;
}
.fade-delay-4 {
  transition-delay: 0.28s;
}
.fade-delay-5 {
  transition-delay: 0.35s;
}
.fade-delay-6 {
  transition-delay: 0.42s;
}
