@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

:root {
  --primary: #603813; /* Marrom Chocolate - Para títulos e elementos fortes */
  --secondary: #f5ece1; /* Areia Neutra - Para fundo principal */
  --accent: #813221; /* Bordô Queimado - Para botões e detalhes de destaque */
  --highlight: #780d13; /* Terracota Suave - Para realces e chamadas de ação */
  --natural: #9e6e47; /* Marrom Dourado - Para fundos e elementos decorativos */
  --dark: #333;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--secondary);
  color: var(--primary);
  overflow-x: hidden;
}

h1,
h2,
.section-title {
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

h3,
h4,
.navbar-brand,
.lead {
  font-family: "Lora", serif;
}

/* Navigation */
.navbar {
  background-color: var(--secondary);
  padding: 10px 0;
  transition: all 0.3s ease;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.navbar-brand {
  color: var(--primary);
  font-size: 24px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link.active {
  color: var(--highlight);
}
.navbar-brand:hover {
  color: var(--highlight);
}

.navbar-nav .nav-link {
  color: var(--primary);
  font-weight: 500;
  padding: 15px 20px;
}

.navbar-nav .nav-link:hover {
  color: var(--accent);
  background-color: var(--secondary);
}
.navbar-toggler {
  border-color: var(--primary);
}

/* Fix mobile navigation background */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--secondary);
    padding: 15px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
  }
}

/* Buttons */
.btn-primary {
  background-color: var(--highlight);
  border-color: var(--highlight);
}

.btn-primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-primary:active {
  background-color: var(
    --natural
  ) !important; /* Use a darker shade or a different color */
  border-color: var(--natural) !important;
  transform: translateY(1px); /* Slightly move the button down */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Adjust shadow for pressed effect */
}

/* Hero Section */
.hero {
  background-color: var(--secondary);
  color: var(--primary);
  padding: 60px 0;
  position: relative;
}

.hero-image {
  max-width: 100%;
  height: auto;
}

.about-image {
  max-width: 100%;
  height: auto;
}

/* Section Titles */
.section-title {
  color: var(--primary);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

/* Quote Section */
.quote {
  background-color: var(--accent);
  color: var(--secondary);
  padding: 50px 0;
  font-style: italic;
  font-family: "Lora", serif;
}

/* Service Cards */
.service-card {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  margin-bottom: 30px;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h3 {
  color: var(--primary);
}

/* Page Header */
.page-header {
  background-color: var(--primary);
  color: var(--secondary);
  padding: 60px 0;
}

/* Timeline - About Page */
.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}

.timeline:before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 2px;
  margin-left: -1.5px;
  content: "";
  background-color: var(--accent);
}

.timeline > li {
  position: relative;
  min-height: 50px;
  margin-bottom: 50px;
}

.timeline > li:after {
  clear: both;
  content: " ";
  display: table;
}

.timeline > li .timeline-image {
  position: absolute;
  z-index: 100;
  left: 0;
  width: 80px;
  height: 80px;
  margin-left: 0;
  text-align: center;
  color: white;
  background-color: var(--highlight);
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline > li .timeline-panel {
  position: relative;
  float: right;
  width: calc(100% - 120px);
  padding: 0 20px 0 100px;
}

.timeline-heading h4 {
  margin-top: 0;
  color: var(--accent);
  font-family: "Lora", serif;
}

/* Testimonials - About Page */
.testimonial {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.testimonial-quote {
  font-style: italic;
  position: relative;
  padding: 0 20px;
  font-family: "Lora", serif;
}

.testimonial-quote:before {
  content: "\201C";
  font-size: 60px;
  font-family: Georgia, serif;
  position: absolute;
  left: -10px;
  top: -20px;
  color: var(--accent);
}

/* Contact Info */
.contact-info {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info i {
  color: var(--accent);
  font-size: 24px;
  margin-right: 10px;
}

/* Form Controls */
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.25rem rgba(212, 162, 118, 0.25);
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 20px;
  background-color: #25d366; /* WhatsApp green */
  color: #ffffff; /* White icon */
  border-radius: 50px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
  z-index: 100;
  transition: all 0.3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #ffffff; /* White icon */
  background-color: #128c7e; /* Darker WhatsApp green for hover effect */
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--secondary);
  padding: 40px 0;
}

.social-icon {
  color: var(--secondary);
  font-size: 24px;
  margin: 0 10px;
  transition: transform 0.3s;
}

.social-icon:hover {
  transform: scale(1.2);
  color: var(--secondary);
}

/* Estilos para a página Extra-Klínica */

.hero-section {
  background-color: var(--primary);
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
}

.hero-section h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  color: var(--secondary);
  font-family: "Playfair Display", serif;
  position: relative;
}

.hero-section h1::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent);
}

.hero-section p {
  font-size: 1.3rem;
  color: var(--secondary);
  max-width: 800px;
  margin: 25px auto 0;
  line-height: 1.6;
  font-family: "Lora", serif;
}

/* Estilos para seções de conteúdo */
.rodas-conversas,
.palestras,
.consultorias {
  padding: 80px 0;
}

.rodas-conversas,
.consultorias {
  background-color: #fff;
}

.palestras {
  background-color: var(--secondary);
}

.content-flex {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-top: 40px;
}

.content-flex.reverse {
  flex-direction: row-reverse;
}

.text-content,
.media-content {
  flex: 1;
}

.text-content p {
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 1.05rem;
  color: var(--primary);
}

.text-content ul {
  padding-left: 20px;
  margin-bottom: 25px;
}

.text-content ul li {
  margin-bottom: 12px;
  line-height: 1.5;
  position: relative;
}

.text-content ul li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: -18px;
}

.media-content img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.media-content img:hover {
  transform: scale(1.02);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* Estilos para a galeria/slideshow */
.galeria {
  padding: 80px 0;
  background-color: var(--secondary);
}

.slideshow-container {
  max-width: 850px;
  position: relative;
  margin: 50px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.mySlides {
  display: none;
  transition: opacity 1s ease;
}

.mySlides img {
  width: 100%;
  display: block;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 22px;
  transition: 0.3s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(96, 56, 19, 0.5);
  z-index: 10;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: var(--accent);
}

.text {
  color: #fff;
  background-color: rgba(96, 56, 19, 0.7);
  font-size: 16px;
  padding: 15px;
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-family: "Lora", serif;
}

.numbertext {
  color: #f2f2f2;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 13px;
  padding: 8px 12px;
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 5px;
}

.dot-container {
  text-align: center;
  margin-top: 20px;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.active-dot,
.dot:hover {
  background-color: var(--accent);
}

.fade {
  animation-name: fade;
  animation-duration: 1.2s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* Responsividade para Extra-Klínica */
@media (max-width: 992px) {
  .hero-section {
    padding: 80px 0 50px;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .content-flex {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .content-flex {
    flex-direction: column;
    gap: 30px;
  }

  .content-flex.reverse {
    flex-direction: column;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-section p {
    font-size: 1.1rem;
  }

  .rodas-conversas,
  .palestras,
  .consultorias {
    padding: 50px 0;
  }

  .prev,
  .next {
    padding: 10px;
    font-size: 18px;
  }

  .text {
    font-size: 14px;
    padding: 10px;
  }

  .slideshow-container {
    margin: 30px auto;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  footer {
    text-align: center;
  }

  footer ul.list-unstyled {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
  }

  footer ul.list-unstyled li {
    margin-bottom: 0;
  }

  .contact-info {
    margin-top: 30px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 60px 0 40px;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .text-content p {
    font-size: 0.95rem;
  }

  h1,
  .display-2 {
    font-size: 2rem;
  }

  h2,
  .section-title {
    font-size: 1.6rem;
  }

  .service-card {
    padding: 15px;
  }

  .quote h2,
  .quote-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 767.98px) {
  h1,
  .display-2 {
    font-size: 2.5rem;
  }

  h2,
  .section-title {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  .lead {
    font-size: 1.1rem !important;
  }

  .quote h2,
  .quote-text {
    font-size: 1.4rem;
  }
}

/* Utilities for responsive spacing */
.gy-4 {
  --bs-gutter-y: 1.5rem;
}
