:root {
  --primary: #FF2A7F;
  --primary-soft: #FFE3EE;
  --dark: #1a1a1a;
  --gray: #666;
  --light: #fafafa;
  --border: #ececec;
  --max-width: 1100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  line-height: 1.75;
  letter-spacing: 0.2px;
  background: #fff;
}

h1, h2, h3 {
  letter-spacing: -0.5px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
}
.logo img {
  height: 56px; /* desktop */
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo img {
    height: 44px; /* mobile */
  }
}

.nav {
  display: flex;
  align-items: center;
}


.nav a {
  margin-left: 28px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
}



.nav .btn-outline {
  border-width: 1px;
  font-weight: 600;
}

.btn-outline {
  padding: 8px 18px;
  border: 1px solid var(--primary);
  border-radius: 30px;
  color: var(--primary);
  transition: all .3s ease;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* HERO */
.hero {
  padding: 120px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero h1 {
  font-size: 42px;
  max-width: 520px;
}

.hero p {
  margin: 24px 0 36px;
  font-size: 17px;
  max-width: 480px;
  color: var(--gray);
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
}

/* BUTTON */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 15px 34px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: all .35s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255,42,127,.25);
}

/* SECTIONS */
.section {
  padding: 110px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all .8s ease;
}

.section.show {
  opacity: 1;
  transform: translateY(0);
}


.section.light {
  background: linear-gradient(to bottom, #fafafa, #fff);
}

.section h2 {
  font-size: 30px;
}

.section a{
  margin-top: 10px;
}

/* DIVIDER */
.divider {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 20px 0 30px;
  border-radius: 2px;
}

/* TWO COLUMNS */
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.image-box {
  width: 100%;
  height: 380px;
  background: var(--primary-soft);
  border-radius: 24px;
}

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature {
  padding: 42px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border);
  transition: all .3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,.05);
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  padding: 52px 32px;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  transition: all .3s ease;
}

.card:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.card-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: #0f0f0f;
}

.card-link:hover {
  text-decoration: none;
}

.card-title {
  font-weight: 600;
  font-size: 18px;
}

.card-cta {
  font-size: 13px;
  font-weight: 500;
  opacity: .6;
  transition: all .3s ease;
}

.card-link:hover .card-cta {
  opacity: 1;
  transform: translateX(4px);
}


/* CTA */
.cta {
  background: linear-gradient(135deg, #FF2A7F, #ff5c9c);
  color: #fff;
  text-align: center;
}

.cta h2 {
  margin-bottom: 16px;
}

/* FOOTER */
.footer {
  background-color: #0f0f0f; /* exemplo */
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer strong {
  font-weight: 600;
  color: #ffffff;
}

.footer p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #cfcfcf;
}

.footer-legal {
  margin-top: 8px;
  font-size: 12px;
  opacity: .75;
  line-height: 1.6;
}



/* MOBILE */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
}

@media (max-width: 768px) {
  .footer {
    padding: 32px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr; /* 🔥 isso resolve o encavalamento */
    gap: 20px;
  }

  .footer-grid > div {
    width: 100%;
  }
}


@media (max-width: 900px) {
  .hero-grid,
  .two-columns,
  .features,
  .cards {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;

    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;

    border-bottom: 1px solid var(--border);
    z-index: 1000; 
  }

  .nav.open {
    max-height: 500px;
  }

  .nav a {
    margin: 16px 0;
  }
}

@media (min-width: 901px) {
  .nav {
    display: block;
    max-height: none;
    position: static;
  }
}

/* =========================================
   IMAGE PLACEHOLDERS
   TROCAR SOMENTE AS IMAGENS
   ========================================= */

/* SOBRE – IMAGEM DE FUNDO
   📐 Ideal: 1000 x 1000 px
   📐 Proporção: 1:1 */
.image-box {
  background-image: url("../images/home/sobre-clinica.jpg");
  background-size: cover;
  background-position: center;
}


/* =========================================================
   PÁGINA INTERNA – ESTÉTICA CORPORAL
   ========================================================= */

/* HERO INTERNO */
.hero-internal {
  padding: 110px 0 90px;
  background: linear-gradient(to bottom, #fafafa, #fff);
}

.hero-internal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-internal h1 {
  font-size: 38px;
  max-width: 520px;
}

.hero-internal p {
  margin-top: 22px;
  font-size: 16px;
  color: var(--gray);
  max-width: 500px;
}

.hero-internal-image img {
  width: 100%;
  border-radius: 22px;
}

/* =========================================================
   LISTAGEM DE PROCEDIMENTOS
   ========================================================= */

.procedures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 60px;
}

.procedure-card {
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 34px;
  transition: all .35s ease;
}

.procedure-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.06);
}

.procedure-card img {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 22px;
}

/* 📐 Ideal: 800 x 800 px */

.procedure-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.procedure-card p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 22px;
}

/* =========================================================
   DETALHE DE PROCEDIMENTO (ÂNCORA)
   ========================================================= */

.procedure-detail {
  padding-top: 80px;
}

.procedure-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.procedure-detail p {
  font-size: 15px;
  color: var(--gray);
}

/* 📐 Ideal: 1000 x 600 px */
.procedure-detail-image {
  background: linear-gradient(135deg, #ff2a7f15, #ff2a7f05);
  border-radius: 28px;
  min-height: 380px;
  position: relative;
}

.procedure-detail-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, #ff2a7f25, transparent 60%);
  border-radius: 28px;
}


/* =========================================================
   BENEFÍCIOS – ESTÉTICA CORPORAL
   ========================================================= */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 50px;
}

.benefit {
  background: #fff;
  border-radius: 20px;
  padding: 34px 26px;
  border: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  transition: all .3s ease;
}

.benefit:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* =========================================================
   FAQ – ESTÉTICA CORPORAL
   ========================================================= */

.faq {
  max-width: 720px;
}

.faq-item {
  margin-bottom: 26px;
}

.faq-item strong {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 14px;
  color: var(--gray);
}


/* RESULTADOS */
.results-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 34px;
  margin-top: 28px;
}

.result-card{
  background:#fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.result-images{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.result-images.single{
  grid-template-columns: 1fr;
}

.result-images img{
  width:100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  display:block;
}

.result-images figure{
  margin:0;
}

.result-images figcaption{
  font-size: 12px;
  opacity: .75;
  margin-top: 6px;
}

.result-info h3{
  margin: 6px 0 10px;
  font-size: 18px;
}

.result-info p{
  margin: 6px 0;
  line-height: 1.45;
}

/* =========================================================
   RESPONSIVO – PÁGINA INTERNA
   ========================================================= */

@media (max-width: 900px) {
  .hero-internal-grid,
  .procedures-grid,
  .procedure-detail-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .hero-internal {
    padding: 90px 0 70px;
  }

  .procedure-card img {
    height: 200px;
  }

  .procedure-detail{
    padding-top: 0;
  }
  .procedure-detail-image {
    min-height: 100px;
  }
}



.procedure-card img {
  background: #eee;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);

  color: inherit;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 999;
}

.back-to-top:hover {
  transform: translateY(0);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Acessibilidade: foco visível */
.back-to-top:focus-visible {
  outline: 2px solid rgba(0,0,0,0.35);
  outline-offset: 3px;
}

/* Mobile: sobe um pouco se você tiver um botão flutuante de Whats no canto */
@media (max-width: 720px) {
  .back-to-top {
    right: 14px;
    bottom: 78px; /* ajuste se necessário */
  }
}

/* Respeita usuários que preferem menos animação */
@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}




