:root {
  /* Cores principais */
  --primary: #1a4b8c; /* Azul marinho escuro */
  --secondary: #2c7be5; /* Azul médio */
  --accent: #00b4d8; /* Azul claro */
  --light: #e6f3ff; /* Azul muito claro */
  --dark: #0a2b4e; /* Azul escuro */
  
  /* Cores de texto */
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-light: #ffffff;
  
  /* Cores de fundo */
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-accent: #ebf8ff;
  
  /* Cores de borda */
  --border-light: #e2e8f0;
  --border-dark: #cbd5e0;
  
  /* Cores de estado */
  --success: #48bb78;
  --warning: #ed8936;
  --error: #e53e3e;
  --info: #4299e1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  color: var(--color-text);
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--primary);
}

a {
  text-decoration: none;
  color: var(--secondary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header styles */
header {
  transition: all 0.3s ease;
  background: var(--primary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem 0;
}

header.scrolled {
  padding: 0.75rem 0;
  background-color: var(--dark) !important;
}

header h1,
header a {
  color: white !important;
}

header a:hover {
  opacity: 0.8;
}

/* Header Navigation */
header nav a,
header .text-white {
  color: #ffffff !important;
}

header nav a:hover {
  opacity: 0.8;
}

/* Header Logo */
header a img {
  height: 64px;
  width: auto;
  transition: all 0.3s ease;
}

header.scrolled a img {
  height: 48px;
}

@media (max-width: 768px) {
  header {
    height: 110px;
    min-height: 110px;
  }
  header a img {
    height: 48px;
  }
  
  header.scrolled a img {
    height: 40px;
  }
}

/* Hero Section */
.hero-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Hero Background Images */
.hero-background {
  background-image: url('../images/back-desk.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-gradient h1,
.hero-gradient p {
  color: white !important;
}

/* Textos do hero */
.hero-gradient h1 {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-gradient p {
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Ajuste do texto do hero para garantir legibilidade */
.hero-gradient h1,
.hero-gradient p,
.hero-gradient .text-white {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-gradient p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Botões do hero */
.hero-gradient .btn-whatsapp {
  background-color: #25D366;
  color: white;
  transition: all 0.3s ease;
}

.hero-gradient .btn-whatsapp:hover {
  background-color: #20ba57;
  transform: scale(1.05);
}

/* Section Gradient */
.section-gradient {
  background: linear-gradient(135deg, var(--light) 0%, var(--bg-accent) 100%);
}

/* Testimonial Card */
.testimonial-card {
  background: var(--bg-accent);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(138, 122, 164, 0.05);
}

.testimonial-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 180, 216, 0.1);
}

/* FAQ Styles */
.faq-answer.active {
  max-height: 500px !important;
  opacity: 1 !important;
}

.faq-btn span.active {
  transform: rotate(180deg);
}

/* Utility Classes */
.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.text-light {
  color: var(--light) !important;
}

.text-dark {
  color: var(--dark) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-secondary {
  background-color: var(--secondary) !important;
}

.bg-accent {
  background-color: var(--accent) !important;
}

.bg-light {
  background-color: var(--light) !important;
}

.bg-dark {
  background-color: var(--dark) !important;
}

.bg-white {
  background-color: white !important;
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-gradient {
    padding-top: 110px;
    background: none !important;
  }
  
  .section-gradient {
    background: linear-gradient(135deg, var(--light) 0%, var(--bg-accent) 100%);
  }
}

/* Button styles */
.btn-primary {
  background: var(--primary);
  color: var(--text-light);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--dark);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text-light);
  border: 2px solid var(--accent);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--accent);
}

/* Navigation hover effects */
nav a {
  color: var(--color-text) !important;
  opacity: 0.9;
}

nav a:hover {
  color: var(--accent) !important;
  opacity: 1;
}

/* FAQ section */
.faq-btn:hover {
  color: var(--secondary);
}

/* Footer styles */
footer {
  background: var(--primary);
  background-image: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-light);
}

footer h3 {
  color: var(--text-light) !important;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

footer a:hover {
  color: var(--accent) !important;
  opacity: 0.9;
}

/* WhatsApp button override */
.whatsapp-btn {
  background-color: #25D366 !important;
}

.whatsapp-btn:hover {
  background-color: #20ba57 !important;
}

/* WhatsApp button override */
.whatsapp-floating-btn {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-radius: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  animation: gentlePulse 4s infinite;
}

.whatsapp-floating-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
  animation: none;
}

.whatsapp-floating-btn svg {
  flex-shrink: 0;
}

.whatsapp-floating-btn span {
  white-space: nowrap;
  margin-left: 0.5rem;
  position: relative;
}

@keyframes gentlePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
}

/* Removendo o ponto verde e suas animações */
.whatsapp-floating-btn::before {
  display: none;
}

/* Header refinements */
#header {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#header.bg-opacity-90 {
  background-color: rgba(138, 122, 164, 0.85) !important;
}

/* Text contrast improvements */
.hero-gradient .text-white {
  color: var(--color-text) !important;
  text-shadow: none;
}

/* Animações e Transições */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Aplicação das animações */
.hero-content {
  animation: fadeIn 1s ease-out forwards;
}

.about-content {
  animation: slideInLeft 1s ease-out forwards;
}

.about-image {
  animation: slideInRight 1s ease-out forwards;
}

.treatment-card {
  animation: scaleIn 0.5s ease-out forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.testimonial-card {
  animation: fadeIn 0.8s ease-out forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.facility-item {
  animation: slideInLeft 0.8s ease-out forwards;
  transition: transform 0.3s ease;
}

.facility-item:hover {
  transform: translateX(5px);
}

.faq-item {
  animation: fadeIn 0.8s ease-out forwards;
  transition: all 0.3s ease;
}

.faq-btn {
  transition: all 0.3s ease;
}

.faq-btn:hover {
  transform: translateX(5px);
}

.faq-answer {
  transition: all 0.3s ease;
}

/* Botões com animação */
.btn-animate {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-animate:hover {
  transform: translateY(-2px);
}

.btn-animate::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-animate:hover::after {
  width: 300px;
  height: 300px;
}

/* Links com animação */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

footer .grid {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  text-align: center;
  gap: 2rem;
}

footer .grid > div {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
}

footer ul {
  align-items: center;
}

footer .text-left,
footer .text-right {
  text-align: center !important;
}

@media (max-width: 1024px) {
  footer .grid {
    flex-direction: column !important;
    align-items: center;
    gap: 2rem;
  }
}

/* Cor verde WhatsApp para destaques de contato */
.color-contact {
  color: #179c4b !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

/* Cookie Notice Styles */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: var(--text-light);
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-notice.show {
  transform: translateY(0);
}

.cookie-notice p {
  margin: 0;
  flex: 1;
  min-width: 250px;
  padding-right: 1rem;
}

.cookie-notice .cookie-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.cookie-notice button {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-notice .accept-btn {
  background: var(--secondary);
  color: var(--text-light);
  border: none;
}

.cookie-notice .accept-btn:hover {
  background: var(--accent);
}

.cookie-notice .decline-btn {
  background: transparent;
  border: 1px solid var(--text-light);
  color: var(--text-light);
}

.cookie-notice .decline-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .cookie-notice {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-notice p {
    padding-right: 0;
    margin-bottom: 1rem;
  }
  
  .cookie-notice .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* Scroll to Top Button */
#scroll-top-btn {
  background: var(--primary);
  color: var(--text-light);
}

#scroll-top-btn:hover {
  background: var(--secondary);
}

/* Header refinements */
#header {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#header.bg-opacity-90 {
  background-color: rgba(138, 122, 164, 0.85) !important;
}

/* Text contrast improvements */
.hero-gradient .text-white {
  color: var(--color-text) !important;
  text-shadow: none;
}

/* Animações e Transições */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Transições */
.transition-all {
  transition: all 0.3s ease;
}

/* Acessibilidade */
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Print */
@media print {
  :root {
    --primary: #000000;
    --secondary: #333333;
    --accent: #666666;
    --light: #ffffff;
    --dark: #000000;
  }
}

/* Swiper Custom Styles */
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  position: relative;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
  color: white !important;
  background: rgba(0, 0, 0, 0.3);
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.5);
}

.swiper-pagination-bullet {
  background: white !important;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--accent) !important;
}

/* Ajuste para os botões de navegação */
.swiper-button-next {
  right: 10px !important;
}

.swiper-button-prev {
  left: 10px !important;
}

/* Ajuste para a paginação */
.swiper-pagination {
  bottom: 10px !important;
}

@media (max-width: 768px) {
  #mobile-menu {
    background: #0a2b4e !important;
    opacity: 1 !important;
    z-index: 9999 !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-image: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }
}

/* Mobile Hero Background - Final override */
@media (max-width: 768px) {
  .hero-background {
    background-image: url('../images/back-mobile.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
  
  .hero-background::before {
    background: rgba(0, 0, 0, 0.5) !important;
  }
}
