:root {
  --brand-primary: #a68953;
  --brand-bg-light: #f9f7f2;
  --brand-bg-dark: #1a1814;
  --font-display: "Livvic", sans-serif;
  --font-body: "Montserrat", sans-serif;
}

/* Typography & Base */
body {
  font-family: var(--font-body);
  background-color: var(--brand-bg-light);
  color: #333;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
}

.text-brand {
  color: var(--brand-primary) !important;
}

.bg-brand {
  background-color: var(--brand-primary) !important;
}

.border-brand {
  border-color: var(--brand-primary) !important;
}

/* Dark Mode Variables */
body.dark-mode {
  background-color: var(--brand-bg-dark);
  color: #e0e0e0;
}

body.dark-mode .bg-white {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .card {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(166, 137, 83, 0.2);
  color: #fff;
}

body.dark-mode .accordion-item {
  background-color: transparent;
  border-color: rgba(166, 137, 83, 0.2);
}

body.dark-mode .accordion-button {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
}

body.dark-mode .accordion-button:not(.collapsed) {
  background-color: rgba(166, 137, 83, 0.2);
  color: var(--brand-primary);
}

/* Buttons */
.btn-brand {
  background-color: var(--brand-primary);
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 12px 30px;
  border: none;
  transition: all 0.3s;
  font-family: var(--font-body);
}

.btn-brand:hover {
  background-color: #8c7343;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(166, 137, 83, 0.3);
}

.btn-outline-brand {
  border: 1px solid rgba(166, 137, 83, 0.5);
  color: #555;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 12px 30px;
  background: transparent;
  font-family: var(--font-body);
}

body.dark-mode .btn-outline-brand {
  color: #ccc;
}

.btn-outline-brand:hover {
  background-color: rgba(166, 137, 83, 0.1);
  color: var(--brand-primary);
}

/* Navbar */
.navbar {
  padding-top: 20px;
  padding-bottom: 20px;
  transition: all 0.3s;
}

.navbar.scrolled {
  background-color: rgba(249, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding-top: 10px;
  padding-bottom: 10px;
}

body.dark-mode .navbar.scrolled {
  background-color: rgba(26, 24, 20, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-weight: 600;
  color: inherit !important;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--brand-primary);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero */
.hero-section {
  padding-top: 140px;
  background: linear-gradient(180deg, var(--brand-bg-light) 0%, #e8e2d9 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Estilo grain como areia fina */
  background-image: url("../../img/grain-brackground.png");
  background-repeat: repeat;
  background-size: 200px;
  /* Reduz o tamanho para parecer grãos mais finos */
  opacity: 0.6;
  /* Mais visível para o efeito de areia */
  mix-blend-mode: multiply;
  /* Mistura melhor com o fundo claro */
  pointer-events: none;
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

body.dark-mode .hero-section {
  background: linear-gradient(180deg, var(--brand-bg-dark) 0%, #2a2620 100%);
}

body.dark-mode .hero-section::before {
  opacity: 0.3;
  /* Mais visível no dark mode */
  mix-blend-mode: soft-light;
}

/* Utils */
.ls-1 {
  letter-spacing: 1px;
}

.ls-2 {
  letter-spacing: 2px;
}

.img-rounded-custom {
  border-radius: 20px;
}

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s;
}

.card:hover .icon-circle {
  background-color: var(--brand-primary) !important;
  color: white !important;
}

/* Treatment Section Enhanced Styles */
.treatment-card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  border-radius: 1.5rem !important;
  background: #fff;
  z-index: 1;
}

.treatment-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 15px 35px rgba(166, 137, 83, 0.1);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.treatment-card:hover {
  transform: translateY(-8px);
}

.treatment-card:hover::after {
  opacity: 1;
}

.treatment-badge {
  position: absolute;
  top: -15px;
  right: 25px;
  width: 40px;
  height: 40px;
  background: var(--brand-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(166, 137, 83, 0.3);
  z-index: 2;
}

.treatment-icon-wrapper {
  background: linear-gradient(135deg, rgba(166, 137, 83, 0.05) 0%, rgba(166, 137, 83, 0.15) 100%);
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--brand-primary);
  transition: all 0.3s ease;
}

.treatment-card:hover .treatment-icon-wrapper {
  background: var(--brand-primary);
  color: white;
  transform: rotate(10deg);
}

.treatment-conclusion-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #555;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--brand-primary);
}

.cta-highlight {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-bg-dark);
  letter-spacing: 1px;
}

body.dark-mode .treatment-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(166, 137, 83, 0.15);
}

body.dark-mode .treatment-conclusion-text {
  color: #bbb;
}

body.dark-mode .cta-highlight {
  color: #fff;
}

/* Accordion */
.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(166, 137, 83, 0.2);
}

.accordion-button:not(.collapsed) {
  background-color: rgba(166, 137, 83, 0.1);
  color: #333;
}

/* Floating WhatsApp */
.floating-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s;
}

.floating-wa:hover {
  transform: scale(1.1);
  color: white;
}

/* Mobile specific adjustments */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--brand-bg-light);
    padding: 20px;
    border-radius: 12px;
    margin-top: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  body.dark-mode .navbar-collapse {
    background-color: #2a2620;
  }
}

/* Journey Timeline */
.timeline-container {
  position: relative;
  padding: 80px 0;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  border-top: 1px dotted var(--brand-primary);
  opacity: 0.5;
  z-index: 1;
}

.timeline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  min-height: 300px;
  /* Reduced height to bring items closer */
}

.timeline-item {
  width: 18%;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 150px;
  /* Half of row's effective height */
}

.timeline-item h5 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--brand-bg-dark);
}

.timeline-item p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #666;
  margin: 0;
}

.item-up {
  align-self: flex-start;
  justify-content: flex-end;
  /* Push content towards the center line */
  padding-bottom: 40px;
  /* Space for the tick */
}

.item-up::after {
  content: "";
  position: absolute;
  bottom: 0;
  /* Ends exactly at the center line */
  left: 50%;
  width: 1px;
  height: 35px;
  /* Shortened tick (~15%) */
  border-left: 1px dotted var(--brand-primary);
}

.item-down {
  align-self: flex-end;
  justify-content: flex-start;
  /* Push content towards the center line */
  padding-top: 40px;
  /* Space for the tick */
}

.item-down::after {
  content: "";
  position: absolute;
  top: 0;
  /* Starts exactly at the center line */
  left: 50%;
  width: 1px;
  height: 35px;
  /* Shortened tick (~15%) */
  border-left: 1px dotted var(--brand-primary);
}

@media (max-width: 991px) {
  .timeline-container {
    padding: 60px 0;
  }

  .timeline-row {
    flex-direction: column;
    align-items: center;
    gap: 50px;
    min-height: auto;
  }

  .timeline-item {
    width: 90%;
    max-width: 450px;
    text-align: center;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
  }

  .timeline-line {
    display: none;
  }

  .item-up,
  .item-down {
    align-self: center;
    justify-content: center;
  }

  .item-up::after,
  .item-down::after {
    display: none;
  }
}

/* Indicators Section */
.indicators-list {
  list-style: none;
  padding: 0;
}

.indicators-list li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
}

.indicators-list li::before {
  content: "\e5ca";
  /* check icon from material icons */
  font-family: "Material Icons Outlined";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--brand-primary);
  font-size: 1.4rem;
  font-weight: bold;
}

.img-premium {
  border-radius: 30px;
  box-shadow:
    20px 20px 60px rgba(0, 0, 0, 0.1),
    -10px -10px 30px rgba(255, 255, 255, 0.5);
  transition: transform 0.5s ease;
}

.img-premium:hover {
  transform: scale(1.02);
}

.highlight-box {
  border-left: 4px solid var(--brand-primary);
  padding-left: 20px;
  margin-top: 40px;
}

body.dark-mode .indicators-list li {
  color: #ccc;
}

/* Custom background for Journey section */
#jornada {
  background-color: #efe9e0 !important;
}

body.dark-mode #jornada {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Intro Treatment Section */
#intro-tratamento {
  background-color: var(--brand-bg-light);
  position: relative;
  overflow: hidden;
}

#intro-tratamento .section-subtitle {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  color: var(--brand-primary);
  font-weight: 600;
}

.quote-box {
  position: relative;
  padding: 40px;
  background: rgba(166, 137, 83, 0.03);
  border-radius: 20px;
  border-left: 5px solid var(--brand-primary);
  margin-top: 50px;
}

.quote-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--brand-bg-dark);
  line-height: 1.6;
  margin: 0;
}

.quote-icon {
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 3rem;
  color: var(--brand-primary);
  opacity: 0.2;
}

body.dark-mode #intro-tratamento {
  background-color: var(--brand-bg-dark);
}

body.dark-mode .quote-box {
  background: rgba(255, 255, 255, 0.02);
}

body.dark-mode .quote-text {
  color: #fff;
}

/* Contact Icons in Footer */
.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Results Carousel */
.results-carousel {
  padding: 0 40px;
}

.results-img {
  height: 380px;
  object-fit: cover;
  border-radius: 15px;
  width: 100%;
}

@media (max-width: 991px) {
  .results-img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .results-img {
    height: 350px;
  }

  .results-carousel {
    padding: 0;
  }
}
