/* 
* Landing Page Psicologia - Estilos Personalizados
* Desenvolvido com Bootstrap 5.3
*/

/* Variáveis de cores */
:root {
  --primary: #9a542e;
  --secondary: #5CB85C;
  --light-bg: #F5F0E6;
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --dark: #343A40;
  --accent1: #9B7ED9;
  --accent2: #FF8A80;
}

/* Estilos Gerais */
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* Seções */
section {
  padding: 80px 0;
}

section:nth-child(even) {
  background-color: var(--light-bg);
}

/* Botões */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #b86735;
  border-color: #b86735;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #4ca04c;
  border-color: #4ca04c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Ícones */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(74, 144, 226, 0.1);
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 24px;
  transition: all 0.3s ease;
}

.icon-box:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

/* Formulários */
.form-control {
  border-radius: 10px;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.25);
}

/* Animações */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsividade */
@media (max-width: 768px) {
  section {
      padding: 60px 0;
  }
  
  h1 {
      font-size: 2.2rem;
  }
  
  h2 {
      font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  section {
      padding: 40px 0;
  }
  
  h1 {
      font-size: 1.8rem;
  }
  
  h2 {
      font-size: 1.5rem;
  }
}

/* Estilos específicos para cada seção serão adicionados abaixo */

/* Header/Navbar */
#header {
  transition: all 0.3s ease;
}

.navbar {
  padding: 15px 0;
}

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

/* Hero Section */
#hero {
  background-color: var(--light-bg);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

#hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark);
}

#hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--dark);
  opacity: 0.9;
}

/* Sobre o Profissional */
#sobre .profile-img {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Serviços */
#servicos .service-card {
  padding: 30px;
  text-align: center;
  height: 100%;
}

#servicos .service-card h3 {
  margin: 20px 0;
  font-size: 1.5rem;
}

/* Depoimentos */
#depoimentos .testimonial-card {
  padding: 30px;
  text-align: center;
  position: relative;
}

#depoimentos .testimonial-card .quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 20px;
}

#depoimentos .testimonial-card .client {
  font-weight: 600;
}

/* Contato */
#contato {
  background-color: var(--light-bg);
}

#contato .contact-info {
  margin-bottom: 30px;
}

#contato .contact-info i {
  color: var(--primary);
  margin-right: 10px;
}

/* Footer */
#footer {
  background-color: var(--dark);
  color: var(--white);
}

#footer a {
  color: var(--white);
  opacity: 0.8;
  transition: all 0.3s ease;
}

#footer a:hover {
  opacity: 1;
  color: var(--primary);
}

#footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  margin-right: 10px;
  transition: all 0.3s ease;
}

#footer .social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}


/* Botão Voltar ao Topo */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.4s;
  color: var(--white);
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top:hover {
  background: var(--accent1);
  color: var(--white);
  transform: translateY(-3px);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/* Ajustes para espaçamento do header fixo */
body {
  padding-top: 80px;
}

/* Ajustes para o navbar quando scrollado */
.navbar-scrolled {
  background-color: var(--white) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

/* Ajustes para responsividade em dispositivos muito pequenos */
@media (max-width: 380px) {
  .btn {
      padding: 8px 16px;
      font-size: 14px;
  }
  
  h1 {
      font-size: 1.6rem;
  }
  
  h2 {
      font-size: 1.4rem;
  }
}

/* Animação de fade-in para elementos */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.fade-in.visible {
  animation: fadeInUp 0.5s ease forwards;
}

#hero-img {
  position: absolute; 
  transform: translate(-50%, -40%);
}

@media (max-width: 1400px) {
  #hero-img {
    transform: translate(-50%, -30%);
  }
}


::-webkit-scrollbar {
  padding: 1px;
  background: transparent;
  height: .5rem;
  width: .5rem
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb {
  padding: 3px
}

::-webkit-scrollbar-thumb {
  background: var(--primary)
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Estilos do Calendário */
.calendar-container {
  max-width: 100%;
  margin: 0 auto;
}

.calendar-header {
  background: var(--white);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calendar-header h4 {
  color: var(--primary);
  font-weight: 600;
  margin: 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.calendar-row {
  display: contents;
}

.calendar-cell {
  background: var(--white);
  padding: 15px 10px;
  text-align: center;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.calendar-cell:hover {
  background: rgba(154, 84, 46, 0.1);
  transform: scale(1.05);
}

.calendar-header-cell {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 8px;
  min-height: 50px;
  cursor: default;
}

.calendar-header-cell:hover {
  background: var(--primary);
  transform: none;
}

.calendar-empty {
  background: #f8f9fa;
  cursor: default;
}

.calendar-empty:hover {
  background: #f8f9fa;
  transform: none;
}

.calendar-day-number {
  font-weight: 500;
  font-size: 1rem;
  color: var(--dark);
}

.calendar-today {
  background: rgba(154, 84, 46, 0.15);
  border: 2px solid var(--primary);
}

.calendar-today .calendar-day-number {
  color: var(--primary);
  font-weight: 700;
}

.calendar-today:hover {
  background: rgba(154, 84, 46, 0.25);
}

.calendar-disabled {
  background: #f5f5f5 !important;
  cursor: not-allowed !important;
  opacity: 0.5;
}

.calendar-disabled:hover {
  background: #f5f5f5 !important;
  transform: none !important;
}

.calendar-disabled .calendar-day-number {
  color: #999 !important;
}

.calendar-clickable {
  cursor: pointer;
}

.calendar-clickable:hover {
  background: rgba(154, 84, 46, 0.1);
  transform: scale(1.05);
}

.calendar-clickable.calendar-selected {
  background: var(--primary) !important;
  color: var(--white);
}

.calendar-clickable.calendar-selected .calendar-day-number {
  color: var(--white) !important;
  font-weight: 700;
}

.calendar-clickable.calendar-selected:hover {
  background: var(--primary) !important;
  transform: scale(1.05);
}

/* Estilos para o calendário integrado no formulário */
.calendar-form-container {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  background: var(--white);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.horarios-form-container {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  background: var(--white);
  min-height: 300px;
  max-height: 300px;
  overflow-y: auto;
}

.horarios-form-container .horarios-container {
  display: block !important;
  margin: 0;
  padding: 0;
  box-shadow: none;
  background: transparent;
}

.horarios-form-container .horarios-grid {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.horarios-form-container .horario-slot {
  padding: 8px 12px;
  font-size: 0.9rem;
  border-radius: 6px;
}

.calendar-form-container .calendar-container {
  width: 100%;
  max-width: 100%;
}

.calendar-form-container .calendar-header {
  margin-bottom: 15px;
  padding: 10px;
}

.calendar-form-container .calendar-header h4 {
  font-size: 1rem;
}

.calendar-form-container .calendar-header .btn {
  font-size: 0.8rem;
  padding: 6px 12px;
}

.calendar-form-container .calendar-grid {
  gap: 1px;
}

.calendar-form-container .calendar-cell {
  padding: 8px 6px;
  min-height: 40px;
  font-size: 0.9rem;
}

.calendar-form-container .calendar-header-cell {
  padding: 8px 4px;
  min-height: 35px;
  font-size: 0.8rem;
}

.calendar-form-container .calendar-day-number {
  font-size: 0.9rem;
}

/* Estilos para o calendário integrado naturalmente no formulário */
#calendario {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#calendario .calendar-container {
  width: 100%;
  max-width: 100%;
}

#calendario .calendar-header {
  margin-bottom: 15px;
  padding: 10px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#calendario .calendar-header h4 {
  font-size: 1rem;
  margin: 0;
}

#calendario .calendar-header .btn {
  font-size: 0.8rem;
  padding: 6px 12px;
}

#calendario .calendar-grid {
  gap: 1px;
  border-radius: 8px;
  overflow: hidden;
}

#calendario .calendar-cell {
  padding: 8px 6px;
  min-height: 40px;
  font-size: 0.9rem;
}

#calendario .calendar-header-cell {
  padding: 8px 4px;
  min-height: 35px;
  font-size: 0.8rem;
}

#calendario .calendar-day-number {
  font-size: 0.9rem;
}

/* Estilos para a seção de horários */
.horarios-container {
  display: block;
  margin-top: 0;
  padding: 15px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  min-height: 300px;
  max-height: 386px;
  overflow-y: auto;
}

.horarios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.horario-slot {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
}

.horario-slot:hover {
  border-color: var(--primary);
  background: rgba(154, 84, 46, 0.05);
  transform: translateY(-1px);
}

.horario-slot.selected {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.horario-slot.disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
  border-color: #e0e0e0;
}

.horario-slot.disabled:hover {
  background: #f5f5f5;
  transform: none;
  border-color: #e0e0e0;
}

/* Estilos para o modal de agendamento */
.modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 25px;
}

.modal-body {
  padding: 25px;
}

.modal-footer {
  border-top: 1px solid #e0e0e0;
  padding: 20px 25px;
}

.modal-title {
  color: var(--primary);
  font-weight: 600;
}

/* Responsividade do calendário integrado */
@media (max-width: 768px) {
  #calendario,
  .horarios-container {
    min-height: 250px;
  }
  
  #calendario .calendar-cell {
    padding: 6px 4px;
    min-height: 35px;
    font-size: 0.8rem;
  }
  
  #calendario .calendar-header-cell {
    padding: 6px 3px;
    min-height: 30px;
    font-size: 0.7rem;
  }
  
  .horarios-container .horario-slot {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  #calendario,
  .horarios-container {
    min-height: 250px;
  }
  
  #calendario .calendar-cell {
    padding: 4px 3px;
    min-height: 30px;
    font-size: 0.7rem;
  }
  
  #calendario .calendar-header-cell {
    padding: 4px 2px;
    min-height: 25px;
    font-size: 0.6rem;
  }
  
  .horarios-container .horario-slot {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
}

/* Responsividade do calendário */
@media (max-width: 768px) {
  .calendar-cell {
    padding: 10px 5px;
    min-height: 50px;
  }
  
  .calendar-header-cell {
    padding: 8px 4px;
    min-height: 40px;
    font-size: 0.8rem;
  }
  
  .calendar-day-number {
    font-size: 0.9rem;
  }
  
  .calendar-header h4 {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .calendar-cell {
    padding: 8px 3px;
    min-height: 45px;
  }
  
  .calendar-header-cell {
    padding: 6px 3px;
    min-height: 35px;
    font-size: 0.7rem;
  }
  
  .calendar-day-number {
    font-size: 0.8rem;
  }
  
  .calendar-header .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}


.calendar-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.horarios-container {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-nav {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.calendar-nav:hover {
  background: #0056b3;
}

.calendar-nav:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.calendar-title {
  font-weight: bold;
  font-size: 1.1em;
  color: #333;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day-header {
  text-align: center;
  font-weight: bold;
  padding: 8px;
  background: #f8f9fa;
  color: #495057;
  font-size: 0.9em;
}

.calendar-day {
  text-align: center;
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day:hover {
  background: #e9ecef;
}

.calendar-day.other-month {
  color: #adb5bd;
}

.calendar-day.today {
  background: #007bff;
  color: white;
  font-weight: bold;
}

.calendar-day.selected {
  background: #28a745;
  color: white;
  font-weight: bold;
}

.calendar-day.disabled {
  color: #adb5bd;
  cursor: not-allowed;
  background: #f8f9fa;
}

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

.horario-btn {
  padding: 10px;
  border: 1px solid #dee2e6;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  font-size: 0.9em;
}

.horario-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.horario-btn.selected {
  background: #28a745;
  color: white;
  border-color: #28a745;
}

.horario-btn.disabled {
  background: #f8f9fa;
  color: #adb5bd;
  cursor: not-allowed;
  border-color: #dee2e6;
}

@media (max-width: 768px) {
  .horarios-grid {
      grid-template-columns: 1fr;
  }
}