/* --- RAÍZ: TEMA "PERFEIÇÃO FINAL" --- */
:root {
  --dark-teal: #30414b;
  --ivory-white: #fcfcfc;
  --soft-gold: #c0b283;
  --text-primary: #2c2c2c;
  --text-secondary: #5c5c5c;
  --section-bg: #f5f7f9;
  --border-color: #eaeaea;
  --heading-font: "Playfair Display", serif;
  --body-font: "Lato", sans-serif;
  --shadow-soft: 0 5px 20px rgba(48, 65, 75, 0.07);
  --shadow-medium: 0 12px 35px rgba(48, 65, 75, 0.1);
  --transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- RESET E GLOBAIS --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--body-font);
  background-color: var(--ivory-white);
  color: var(--text-primary);
  font-size: 115%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.no-scroll {
  overflow: hidden;
}

/* --- PRELOADER --- */
.preloader {
  position: fixed;
  inset: 0;
  background-color: var(--dark-teal);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader img {
  height: 120px;
  filter: brightness(0) invert(1);
  animation: pulse 2s infinite ease-in-out;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* --- COMPONENTES GERAIS --- */
.section-container {
  padding: 140px 5%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}
.section-bg {
  background: var(--section-bg);
  background-image: linear-gradient(-45deg, #f5f7f9, #ffffff, #f5f7f9);
  background-size: 400% 400%;
  animation: aurora 15s ease infinite;
}
.section-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Tratamentos Sob Medida - Imagem destacada */
.tratamento-header {
  text-align: center;
}
.tratamento-img-wrapper {
  display: flex;
  justify-content: center;
  margin: 24px auto 0 auto;
}
.tratamento-img-wrapper img {
  width: 220px;
  max-width: 90vw;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(48,65,75,0.13);
  border: 2.5px solid var(--soft-gold);
  background: #fff;
  transition: box-shadow 0.18s, transform 0.18s;
}
.tratamento-img-wrapper img:hover {
  box-shadow: 0 12px 36px rgba(192,178,131,0.18);
  transform: scale(1.025);
}
@media (max-width: 600px) {
  .tratamento-img-wrapper img {
    width: 140px;
    border-radius: 12px;
  }
  .tratamento-img-wrapper {
    margin-top: 16px;
  }
}
.section-title {
  font-family: var(--heading-font);
  font-size: clamp(3rem, 5vw, 4rem);
  color: var(--dark-teal);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.btn-primary {
  background-color: var(--dark-teal);
  color: var(--ivory-white);
  padding: 1.1rem 2.8rem;
  border: 2px solid var(--dark-teal);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover {
  background-color: var(--soft-gold);
  border-color: var(--soft-gold);
  color: var(--dark-teal);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(192, 178, 131, 0.3);
}

/* --- HEADER FINAL E PERFEITO --- */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001; /* Z-INDEX AUMENTADO */
  padding: 20px 0;
  transition: all var(--transition);
}
.header.scrolled {
  background-color: rgba(252, 252, 252, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  padding: 10px 0;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}
.nav-logo img {
  height: 100px;
  transition: height var(--transition), filter var(--transition);
  filter: brightness(0) invert(1);
}
.header.scrolled .nav-logo img {
  height: 70px;
  filter: none;
}
.nav-menu {
  display: flex;
  gap: 3rem;
}
.nav-link {
  text-decoration: none;
  color: var(--ivory-white);
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 8px;
  transition: color var(--transition);
}
.header.scrolled .nav-link {
  color: var(--dark-teal);
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--soft-gold);
  transition: width var(--transition);
}
.nav-link:hover::after {
  width: 100%;
}

/* --- SEÇÃO HERO --- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ivory-white);
  overflow: hidden;
  padding-top: 140px;
}
.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1);
}
.hero-video.fadeout {
  opacity: 0;
}
.hero-video.fadein {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(48, 65, 75, 0.9) 0%,
    rgba(48, 65, 75, 0.6) 100%
  );
  z-index: -1;
}
.hero-content {
  opacity: 0;
}
.hero-title {
  font-family: var(--heading-font);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 1.15;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.hero-subtitle {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 300;
  margin: 2rem auto 3rem auto;
  max-width: 800px;
  line-height: 1.8;
}
.btn-hero {
  font-size: 1.2rem;
}

/* --- CARDS E GRIDS --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}
.feature-item {
  background: var(--ivory-white);
  padding: 3.5rem;
  text-align: center;
  border-radius: 16px;
  box-shadow: var(--shadow-medium);
}
.feature-icon {
  font-size: 3.5rem;
  color: var(--soft-gold);
  margin-bottom: 2rem;
}
.feature-item h4 {
  font-family: var(--heading-font);
  color: var(--dark-teal);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.feature-item p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.service-card {
  background-color: var(--ivory-white);
  padding: 3rem 2.5rem;
  text-align: center;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}
.service-icon {
  font-size: 3.5rem;
  color: var(--soft-gold);
  margin-bottom: 2rem;
}
.service-card h3 {
  font-family: var(--heading-font);
  color: var(--dark-teal);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.service-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* --- NOVA SEÇÃO ABORDAGEM (COM CORREÇÃO DE RESPONSIVIDADE) --- */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  position: relative;
}
.steps-container::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 1rem;
  bottom: 1rem;
  width: 2px;
  background-color: var(--border-color);
}
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}
.step-number {
  font-family: var(--heading-font);
  font-size: 3rem;
  color: var(--soft-gold);
  line-height: 1;
  background-color: var(--ivory-white);
  padding-right: 1rem;
  z-index: 2;
}
.step-content h3 {
  font-family: var(--heading-font);
  font-size: 2rem;
  color: var(--dark-teal);
  margin-bottom: 1rem;
}
.step-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* --- SEÇÃO SOBRE --- */
.about-section {
  display: flex;
  align-items: center;
  gap: 6rem;
}
.about-image {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}
.about-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* --- SEÇÃO DESTAQUES (MOSAICO) --- */
.highlight-section .section-header {
  margin-bottom: 2rem;
}
.highlight-gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.highlight-gallery .large {
  border: none;
  padding: 0;
  background: none;
  border-radius: 16px;
  overflow: hidden;
}
.highlight-gallery .large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.highlight-grid-right {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 1rem;
}
.highlight-grid-right .small {
  border: none;
  padding: 0;
  background: none;
  border-radius: 12px;
  overflow: hidden;
}
.highlight-grid-right .small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 992px) {
  .highlight-gallery {
    grid-template-columns: 1fr;
  }
  .highlight-grid-right {
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: column;
  }
}
.about-content {
  flex: 1;
}
.about-content .section-title {
  text-align: left;
}
.about-highlight {
  font-family: var(--heading-font);
  font-size: 2rem;
  color: var(--soft-gold);
  margin-bottom: 2rem;
  line-height: 1.4;
}
.about-content p {
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 3rem;
  font-size: 1.2rem;
}

/* Seção de Boas-Vindas personalizada */
.bem-vindo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 0;
  flex-wrap: wrap;
}
.bem-vindo-conteudo {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 18px;
}
.bem-vindo-imagem {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.bem-vindo-imagem img {
  max-width: 350px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  background: #fff;
  display: block;
  object-fit: cover;
}

.bem-vindo .section-title {
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  color: var(--dark-teal);
  margin-bottom: 1.2rem;
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(48,65,75,0.07);
}
.bem-vindo .about-highlight {
  font-size: 1.7rem;
  color: var(--soft-gold);
  margin-bottom: 1.2rem;
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 6px rgba(192,178,131,0.08);
}
.bem-vindo-conteudo p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
  line-height: 1.7;
  font-family: var(--body-font);
}
@media (max-width: 900px) {
  .bem-vindo .section-title,
  .bem-vindo .about-highlight,
  .bem-vindo-conteudo p {
    text-align: center;
  }
  .bem-vindo-conteudo {
    padding-right: 0;
  }
}


/* Galeria de Fotos Aleatórias */
.galeria {
  padding: 40px 0;
  text-align: center;
}
.galeria h2 {
  margin-bottom: 24px;
  font-size: 2rem;
  color: #1a1a1a;
}
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.galeria-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.2s;
  cursor: pointer;
}
.galeria-grid img:hover {
  transform: scale(1.04);
}

@media (max-width: 800px) {
  .bem-vindo {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .bem-vindo-imagem img {
    max-width: 90vw;
  }
}

/* --- CONTATO --- */
.contact-wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 700;
}
.info-item i {
  color: var(--soft-gold);
  font-size: 1.5rem;
}
.btn-contact {
  margin-top: 4rem;
}

/* --- FOOTER PROFISSIONAL E CORRIGIDO --- */
.footer {
  background-color: var(--dark-teal);
  color: var(--ivory-white);
  padding: 6rem 5%;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-col {
  flex: 1;
  min-width: 280px;
}
.footer-logo-col {
  display: flex;
  justify-content: flex-start;
}
.footer-logo {
  height: 120px;
  filter: brightness(0) invert(1);
  transition: transform var(--transition);
}
.footer-logo:hover {
  transform: scale(1.05);
}
.footer-contact-col {
  text-align: center;
}
.footer-col h4 {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--soft-gold);
  font-weight: 700;
}
.footer-contact-col p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: rgba(252, 252, 252, 0.9);
  font-size: 1.1rem;
}
.footer-contact-col p i {
  color: var(--soft-gold);
}
.footer-social-col {
  text-align: right;
}
.social-icons-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}
.social-icons-footer a {
  color: var(--ivory-white);
  font-size: 1.8rem;
  transition: color var(--transition), transform var(--transition);
}
.social-icons-footer a:hover {
  color: var(--soft-gold);
  transform: translateY(-4px);
}
.footer-bottom {
  text-align: center;
  padding-top: 4rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(252, 252, 252, 0.2);
  font-size: 1rem;
  color: rgba(252, 252, 252, 0.7);
}

/* --- RESPONSIVIDADE E MENU MOBILE CORRIGIDO --- */
.hamburger {
  display: none;
  z-index: 1002;
  cursor: pointer;
  position: relative;
  width: 30px;
  height: 24px;
}
.bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--ivory-white);
  transition: all 0.4s ease-in-out;
  position: absolute;
  border-radius: 3px;
}
.header.scrolled .bar {
  background-color: var(--dark-teal);
}
.bar:nth-child(1) {
  top: 0;
}
.bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.bar:nth-child(3) {
  bottom: 0;
}
.hamburger.active .bar {
  background-color: var(--ivory-white);
}
.hamburger.active .bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.mobile-nav-overlay {
  display: none;
}

@media (max-width: 992px) {
  body {
    font-size: 100%;
  }
  .section-container {
    padding: 80px 5%;
  }
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-teal);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1);
    transform: translateY(-100%);
    z-index: 1000;
  }
  .mobile-nav-overlay.active {
    transform: translateY(0);
  }
  .mobile-nav-overlay .mobile-nav-link {
    color: var(--ivory-white);
    font-size: 2.5rem;
    font-family: var(--heading-font);
    margin: 1rem 0;
    text-decoration: none;
    opacity: 0;
  }

  .steps-container::before {
    left: 18px;
  } /* Ajuste da linha para mobile */
  .step-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .step-number {
    background: none;
    padding-right: 0;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3.5rem;
  }
  .footer-logo-col,
  .footer-social-col {
    justify-content: center;
    text-align: center;
  }
  .social-icons-footer {
    justify-content: center;
  }
  .about-section,
  .contact-wrapper {
    flex-direction: column;
    gap: 3rem;
  }
}

/* --- GALERIA DE IMAGENS --- */
.gallery-section .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.gallery-item {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(48,65,75,0.12);
}
.gallery-item:hover img {
  transform: scale(1.06);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 92%;
  max-height: 86%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 6px 10px;
  opacity: 0.95;
}
.lightbox .lightbox-caption {
  position: absolute;
  bottom: 36px;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  text-align: center;
  width: 100%;
  pointer-events: none;
}

/* Lightbox para galeria */
.galeria-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.galeria-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.galeria-lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  background: #fff;
}
.galeria-lightbox .close-btn {
  position: absolute;
  top: 32px;
  right: 38px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1;
  opacity: 0.95;
}
@media (max-width: 600px) {
  .galeria-lightbox img {
    max-width: 98vw;
    max-height: 60vh;
  }
  .galeria-lightbox .close-btn {
    top: 12px;
    right: 16px;
    font-size: 2rem;
  }
}

@keyframes aurora {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
