:root {
  --shadow: 0 8px 32px rgba(199, 157, 98, 0.13);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Lato", sans-serif;
  color: #3d3530;
  background: #faf8f5;
  min-height: 100vh;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: "Lato", sans-serif;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── TOPBAR ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8e0d6;
  padding: 14px 0px;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #c79d62;
}
.logo span {
  color: #1a1612;
  font-weight: 400;
}
.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #7a6e65;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.back-btn:hover {
  color: #c79d62;
}
.back-btn svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.back-btn:hover svg {
  transform: translateX(-3px);
}
.cta-top {
  padding: 10px 22px;
  border-radius: 50px;
  background: #c79d62;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(199, 157, 98, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cta-top:hover {
  background: #a97e45;
  transform: translateY(-1px);
}

/* ── LAYOUT ── */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ── TABS (seletor de psicólogo) ── */
.tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 40px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 50px;
  border: 2px solid #e8e0d6;
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
  color: #7a6e65;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
}
.tab.active {
  border-color: #c79d62;
  color: #c79d62;
  background: #fff7ef;
}
.tab:hover:not(.active) {
  border-color: #e8c990;
  color: #c79d62;
}
.tab-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8c990, #c79d62);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* ── PROFILE CARD ── */
.profile {
  display: none;
  animation: fadeUp 0.45s ease both;
}
.profile.active {
  display: block;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.profile-hero {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e8e0d6;
  overflow: hidden;
  margin-bottom: 24px;
}
.profile-hero-top {
  background: linear-gradient(135deg, #2a1f14, #1a1612);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.profile-hero-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 80% 20%,
    rgba(199, 157, 98, 0.15),
    transparent 70%
  );
}
.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.avatar-large {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8c990, #c79d62);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  font-weight: 500;
  color: #fff;
  border: 4px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 1;
}
.online-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4caf87;
  border: 3px solid #fff;
  z-index: 2;
}
.profile-headline {
  padding-bottom: 28px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.profile-name {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 500;
  color: #fff;
}
.profile-title {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  display: inline-block;
  background: rgba(199, 157, 98, 0.2);
  border: 1px solid rgba(199, 157, 98, 0.35);
  color: #e8c990;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 50px;
}

/* ── STATS BAR ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #e8e0d6;
}
.stat-item {
  padding: 20px 24px;
  text-align: center;
  border-right: 1px solid #e8e0d6;
}
.stat-item:last-child {
  border-right: none;
}
.stat-val {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #c79d62;
  display: block;
}
.stat-lbl {
  font-size: 0.78rem;
  color: #7a6e65;
}

/* ── GRID ABAIXO ── */
.profile-grid {
  /* display: grid;
  grid-template-columns: 1fr 340px; */
  display: flex;
  width: 100%;
  gap: 24px;
  align-items: start;
}

/* ── SIDEBAR ── */
.side-col {
  width: 35%;
}

.sidebar-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e8e0d6;
  padding: 24px;
  margin-bottom: 20px;
  position: sticky;
  top: 80px;
  width: 100%;
}
.sidebar-card:last-child {
  margin-bottom: 0;
}
.price-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a6e65;
  margin-bottom: 6px;
}
.price-val {
  font-family: "Lato", sans-serif;
  font-size: 2em;
  font-weight: 600;
  color: #1a1612;
  margin-bottom: 4px;
}
.price-note {
  font-size: 0.8rem;
  color: #7a6e65;
  margin-bottom: 20px;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: nowrap;
  width: 100%;
  padding: 15px;
  border-radius: 50px;
  background: #c79d62;
  color: #fff;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(199, 157, 98, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 10px;
}
.btn-whatsapp:hover {
  background: #a97e45;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(199, 157, 98, 0.45);
}

.trust-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 14px;
  justify-content: center;
}

.btn-msg {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: 50px;
  border: 2px solid #c79d62;
  color: #c79d62;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-msg:hover {
  background: #c79d62;
  color: #fff;
}

.avail-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a6e65;
  margin-bottom: 12px;
}
.avail-days {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.day-pill {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(76, 175, 135, 0.1);
  color: #3a9e70;
  border: 1px solid rgba(76, 175, 135, 0.25);
}
.day-pill.off {
  background: #faf8f5;
  color: #7a6e65;
  border-color: #e8e0d6;
}

.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.slot {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid #e8e0d6;
  color: #3d3530;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
}
.slot:hover,
.slot.chosen {
  background: #c79d62;
  color: #fff;
  border-color: #c79d62;
}

.social-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e8e0d6;
  background-color: #faf8f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a6e65;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.social-btn:hover {
  border-color: #c79d62;
  color: #c79d62;
  background: #fdf9f4;
  transform: translateY(-2px);
}

.divider-sm {
  height: 1px;
  background: #e8e0d6;
  margin: 18px 0;
}

/* ── SECTIONS ── */
.main-col {
  width: 65%;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e8e0d6;
  padding: 28px 32px;
  margin-bottom: 20px;
}
.card:last-child {
  margin-bottom: 0;
}
.card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #1a1612;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8e0d6;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-title-icon {
  font-size: 1.1rem;
}
.body-text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #7a6e65;
}

/* ── ABORDAGENS ── */
.approach-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.approach-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #faf8f5;
  border: 1px solid #e8e0d6;
}
.approach-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    rgba(199, 157, 98, 0.15),
    rgba(199, 157, 98, 0.05)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.approach-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1612;
  margin-bottom: 2px;
}
.approach-desc {
  font-size: 0.82rem;
  color: #7a6e65;
  line-height: 1.6;
}

/* ── ESPECIALIDADES ── */
.specialty-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.specialty-pill {
  padding: 7px 16px;
  border-radius: 50px;
  background: rgba(199, 157, 98, 0.08);
  border: 1px solid rgba(199, 157, 98, 0.2);
  color: #a97e45;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.specialty-pill:hover {
  background: rgba(199, 157, 98, 0.15);
}

/* ── FORMAÇÃO ── */
.formation-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.formation-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e8e0d6;
}
.formation-item:last-child {
  border-bottom: none;
}
.formation-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: #c79d62;
  min-width: 50px;
  padding-top: 2px;
}
.formation-deg {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1612;
  margin-bottom: 2px;
}
.formation-inst {
  font-size: 0.82rem;
  color: #7a6e65;
}

/* ── AVALIAÇÕES ── */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review {
  padding: 18px;
  background: #faf8f5;
  border-radius: 10px;
  border: 1px solid #e8e0d6;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.review-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8c990, #c79d62);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1612;
}
.review-stars {
  font-size: 0.8rem;
  color: #c79d62;
  letter-spacing: 1px;
}
.review-text {
  font-size: 0.87rem;
  color: #7a6e65;
  line-height: 1.7;
  font-style: italic;
}
.review-date {
  font-size: 0.75rem;
  color: #7a6e65;
  margin-top: 6px;
}

/* ── RATING SUMMARY ── */
.rating-big {
  text-align: center;
  padding: 20px 0 10px;
}
.rating-num {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  font-weight: 500;
  color: #c79d62;
}
.rating-stars-big {
  font-size: 1.2rem;
  color: #c79d62;
  letter-spacing: 3px;
  margin-bottom: 4px;
}
.rating-count {
  font-size: 0.82rem;
  color: #7a6e65;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.bar-lbl {
  font-size: 0.78rem;
  color: #7a6e65;
  min-width: 40px;
  text-align: right;
}
.bar-track {
  flex: 1;
  height: 6px;
  background: #e8e0d6;
  border-radius: 10px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: #c79d62;
  border-radius: 10px;
  transition: width 1s ease;
}

/* ── IDIOMAS ── */
.lang-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: #faf8f5;
  border: 1px solid #e8e0d6;
  font-size: 0.85rem;
  font-weight: 500;
  color: #3d3530;
}

/* ── MODAL ── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 500px;
  border-radius: 24px;
  padding: 35px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.fechar {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #888;
  background: none;
  border: none;
  line-height: 1;
}

.fechar:hover {
  color: var(--dark);
}

.agendamento-header {
  text-align: center;
  margin-bottom: 25px;
}

.agendamento-header h3 {
  margin-bottom: 10px;
  color: #333;
  font-family: var(--ff-d);
  font-size: 1.5rem;
  font-weight: 500;
}

.agendamento-header p {
  color: #666;
  line-height: 1.7;
  font-size: 0.9rem;
}

.form-agendamento {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-agendamento label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.form-agendamento input,
.form-agendamento select {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--ff-b);
  outline: none;
  transition: border-color var(--tr);
  background: #faf8f5;
}

.form-agendamento input:focus,
.form-agendamento select:focus {
  border-color: #b8956f;
  box-shadow: 0 0 0 4px rgba(184, 149, 111, 0.15);
}

.form-agendamento input.erro,
.form-agendamento select.erro {
  border-color: #d32f2f;
  background: rgba(211, 47, 47, 0.05);
}

.form-agendamento select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a6e65' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.erro-msg {
  font-size: 0.8rem;
  color: #d32f2f;
  margin-top: -10px;
  display: none;
}

.erro-msg.show {
  display: block;
}

.btn-enviar {
  background: #b8956f;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--ff-b);
}

.btn-enviar:hover {
  background: #a8845e;
}

/* ── RESPONSIVO ── */
@media (max-width: 760px) {
  .profile-grid {
    /* display: grid;
    grid-template-columns: 1fr; */
    flex-direction: column;
  }
  .side-col {
    width: 100%;
  }
  .main-col {
    width: 100%;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .stat-item:nth-child(3) {
    border-top: 1px solid #e8e0d6;
  }
  .profile-hero-top {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px 0;
    gap: 16px;
  }
  .card {
    padding: 20px;
  }
  .sidebar-card {
    position: static;
  }
}
@media (max-width: 500px) {
  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }
  .profile-name {
    font-size: 1.5rem;
  }
}
