/* =================================================================
// ESTILOS NÃO-CRÍTICOS
// Carregados de forma assíncrona para não bloquear a renderização.
// ================================================================= */

/* =================================================================
// ESTILOS GERAIS E UTILITÁRIOS
// ================================================================= */
.hover-lift {
  transition: transform .35s ease, box-shadow .35s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.35);
}
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); }
::selection {
  background-color: rgba(165, 132, 71, 0.1);
  color: var(--brand);
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.5); }
::-webkit-scrollbar-thumb { background: rgb(254, 219, 107); }


/* =================================================================
// SEÇÃO 2: DEPOIMENTOS
// ================================================================= */
.testimonials-section {
  position: relative;
  margin-top: -7rem;
  padding: 3rem 0;
}
.testimonials-box {
  background-color: var(--white);
  border-radius: 1.5rem;
  padding: 2rem;
}
.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--brand);
  text-align: center;
  margin-bottom: 3rem;
}
.testimonials-grid {
  display: grid;
  gap: 2rem;
  text-align: center;
}
.testimonial-card {
  position: relative;
  padding-top: 2.5rem;
}
.testimonial-content {
  background-color: var(--bg-alt);
  padding: 3.5rem 2rem 2rem 2rem;
  border-radius: 1rem;
  height: 100%;
}
.testimonial-name { font-weight: 700; font-size: 1.125rem; }
.testimonial-location {
  color: var(--text-gray-light);
  margin: 0.25rem 0 1rem 0;
  font-size: 0.875rem;
  font-weight: 500;
}
.testimonial-text {
  color: var(--text-gray);
  font-size: 0.875rem;
  line-height: 1.6;
}
.testimonial-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  border: 4px solid var(--white);
  object-fit: cover;
}

/* =================================================================
// SEÇÕES GENÉRICAS
// ================================================================= */
.section-padding { padding: 5rem 0; }
.section-bg-alt { background-color: var(--bg-alt); }
.section-bg-white { background-color: var(--white); }
.section-bg-image {
  background-color: #3a2f15; /* Fallback color */
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.section-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  gap: 1rem;
}
.section-header-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--brand);
}
.section-header-subtitle {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  color: var(--text-gray);
}
.max-w-3xl { max-width: 48rem; margin: 0 auto; text-align: center;}
.max-w-3xl h2 { font-size: 2.25rem; line-height: 1.2; }
.max-w-3xl p { margin-top: 1rem; font-size: 1.125rem; line-height: 1.6; color: var(--text-gray); }
.section-bg-image .max-w-3xl p { color: rgba(255,255,255,0.8); }

/* =================================================================
// BOTÕES
// ================================================================= */
.button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  background-color: var(--brand-alt);
  border-radius: 9999px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.button-secondary:hover {
  transform: scale(1.03);
  background-color: var(--brand-darker);
}
.button-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--brand-alt);
  border-radius: 9999px;
  transition: transform 0.2s ease;
}
.button-tertiary:hover { transform: scale(1.03); }

/* =================================================================
// SEÇÃO 3: EXCELÊNCIA E MÍDIA
// ================================================================= */
#excelencia { padding: 5rem 0; }
.excelencia-grid { display: grid; gap: 3rem; align-items: center; }
.excelencia-content { text-align: center; }
.excelencia-content > * + * { margin-top: 1.5rem; }
.excelencia-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--brand-alt);
  line-height: 1.25;
}
.excelencia-text { color: var(--text-gray); font-size: 1.125rem; }
.excelencia-image { border-radius: 1rem; width: 100%; }
.midia-section {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.midia-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-gray-light);
  letter-spacing: 0.05em;
}
.midia-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  opacity: 0.8;
}
.midia-logos img { height: 1.75rem; width: auto; }
.midia-logos img:nth-child(2) { height: 1.5rem; }
.midia-logos img:nth-child(3) { height: 2rem; }

/* =================================================================
// SEÇÃO 4: PROCEDIMENTOS CORPORAIS
// ================================================================= */
.procedimentos-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}
.card-proc {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  height: 24rem;
}
.card-proc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.card-proc img { width: 100%; height: 100%; object-fit: cover; }
.card-proc-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1.5rem;
  color: var(--white);
  z-index: 2;
}
.card-proc-title { font-weight: 700; }
.card-proc-title.text-2xl { font-size: 1.5rem; }
.card-proc-title.text-xl { font-size: 1.25rem; }

/* =================================================================
// SEÇÃO 5: PADRÃO 5 ESTRELAS
// ================================================================= */
.estrelas-container {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}
.estrelas-box {
  background-color: var(--white);
  border-radius: 1.5rem;
  padding: 2rem;
}
.estrelas-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  font-size: 1.5rem;
  color: var(--yellow);
  margin-bottom: 2.5rem;
}
.estrelas-grid { display: grid; gap: 2rem; }
.estrela-item { text-align: center; padding: 1.5rem; }
.estrela-item-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.estrela-item-text {
  color: var(--text-gray);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
 
/* =================================================================
// SEÇÃO 6: TECNOLOGIA
// ================================================================= */
#tecnologia .grid {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
  text-align: center;
}
.tecnologia-item { display: flex; flex-direction: column; align-items: center; }
.tecnologia-image-wrapper {
  width: 16rem;
  height: 16rem;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.tecnologia-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.tecnologia-buttons {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.tecnologia-buttons button {
  background-color: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 0.75rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(4px);
  transition: background-color 0.2s ease;
}
.tecnologia-buttons button:hover { background-color: rgba(255,255,255,0.2); }
.centered-button-container {
    text-align: center;
    margin-top: 3rem;
}

/* =================================================================
// SEÇÃO 7: A CLÍNICA
// ================================================================= */
#a-clinica .grid { display: grid; gap: 3rem; align-items: center; }
#clinic-slider > * + * { margin-top: 1rem; }
#clinic-main {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 1rem;
  overflow: hidden;
  cursor: zoom-in;
}
#clinic-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}
#clinic-main img.is-active { opacity: 1; }
#clinic-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
#clinic-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: 0.25s;
  border: 2px solid transparent;
}
#clinic-thumbs img.is-active {
  transform: scale(1.05);
  border-color: var(--brand);
}
#a-clinica .content h2 { font-size: 2.25rem; line-height: 1.2; font-weight: 700; color: var(--brand); }
#a-clinica .content div { margin-top: 1rem; }
#a-clinica .content p { color: var(--text-gray); line-height: 1.6; }
#a-clinica .content p + p { margin-top: 1rem; }

/* =================================================================
// SEÇÃO 8: DÚVIDAS
// ================================================================= */
#duvidas .grid { display: grid; gap: 2rem; margin-top: 3rem; }
.duvida-card {
  background-color: rgba(255,255,255,0.95);
  color: var(--text-dark);
  padding: 2rem;
  border-radius: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.duvida-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.25);
}
.duvida-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--brand);
}
.duvida-card p {
  color: var(--text-gray);
  font-size: 0.875rem;
  line-height: 1.6;
}
 
/* =================================================================
// SEÇÃO 9: NOVOS DEPOIMENTOS
// ================================================================= */
#novos-depoimentos .flex-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
#novos-depoimentos .content { max-width: 36rem; }
#novos-depoimentos .content h2 { font-size: 2.25rem; line-height: 1.2; font-weight: 700; color: var(--brand); }
#novos-depoimentos .content p { margin-top: 1rem; color: var(--text-gray); }
.carousel-buttons { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.carousel-buttons button {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  border-radius: 9999px;
  color: var(--text-gray);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-md);
}
.carousel-buttons button:hover { background-color: #f3f4f6; }
.carousel-buttons .icon { font-size: 1.25rem; }
#testi-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
#testi-track::-webkit-scrollbar { display: none; }
#testi-track > * {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 90%;
  border-radius: 1rem;
}
 
/* =================================================================
// SEÇÃO 10: AVALIAÇÕES GOOGLE
// ================================================================= */
.google-box {
  background-color: var(--bg-alt-2);
  border-radius: 1rem;
  text-align: center;
  padding: 3rem 2rem;
}
.google-box h2 { font-size: 2.25rem; font-weight: 700; color: var(--brand-contrast); }
.google-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 0.5rem;
  margin-top: 1rem;
}
.google-rating .score { font-size: 1.875rem; font-weight: 700; color: var(--brand-contrast); }
.google-rating .stars { display: flex; color: var(--yellow); font-size: 1.5rem; }
.google-rating .count { color: var(--text-gray); font-size: 0.875rem; }
.google-box .button-container { margin-top: 2rem; }
 
/* =================================================================
// SEÇÃO 11: FAQ
// ================================================================= */
#faq-list { margin-top: 3rem; }
#faq-list > * + * { margin-top: 1rem; }
.faq-item {
  background-color: #f9fafb;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  transition: background-color 0.2s ease;
}
.faq-item:hover {
  background-color: #f3f4f6;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: 1rem;
}
.faq-q h3 { font-weight: 600; color: var(--text-darker); }
.faq-icon-wrapper {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}
.faq-icon-wrapper .icon {
  position: absolute;
  font-size: 1.25rem;
  transition: transform .3s ease, opacity .3s ease;
}
.faq-q .icon-minus { opacity: 0; transform: rotate(-90deg); transition: transform .3s ease, opacity .3s ease; }
.faq-q .icon-plus { opacity: 1; transform: rotate(0deg); transition: transform .3s ease, opacity .3s ease; }
.faq-q[aria-expanded="true"] .icon-plus { opacity: 0; transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .icon-minus { opacity: 1; transform: rotate(0); }
 
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s ease, padding .5s ease;
  color: var(--text-gray);
  font-size: 0.875rem;
  padding-right: 2.5rem;
  line-height: 1.6;
}
.faq-a > * + * { margin-top: 0.75rem; }
.faq-a strong { color: var(--text-darker); font-weight: 600; }
.faq-q[aria-expanded="true"] + .faq-a {
  max-height: 500px;
  padding-top: .75rem;
}

/* =================================================================
// FOOTER
// ================================================================= */
footer {
  padding: 3rem 0;
  background-color: var(--white);
  text-align: center;
  color: var(--text-gray-light);
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.footer-content img { width: 8rem; }
.footer-content p { font-size: 0.75rem; letter-spacing: 0.05em; }
.footer-content a { text-decoration: underline; }
.footer-content a:hover { color: var(--text-darker); }
 
/* =================================================================
// LIGHTBOX
// ================================================================= */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.9);
  z-index: 50;
  padding: 1rem;
}
#lightbox.is-active { display: grid; place-items: center; }
#lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}
#lb-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.5rem;
}
.lightbox-button {
  position: absolute;
  padding: 0.5rem;
  color: rgba(255,255,255,0.8);
  font-size: 2.25rem;
  transition: color 0.2s ease;
}
.lightbox-button:hover { color: var(--white); }
#lb-close { top: 0.5rem; right: 0.5rem; }
#lb-prev, #lb-next { top: 50%; transform: translateY(-50%); }
#lb-prev { left: -1rem; }
#lb-next { right: -1rem; }

/* =================================================================
// MEDIA QUERIES
// ================================================================= */
@media (min-width: 640px) {
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  #novos-depoimentos .container { padding-left: 1.5rem; padding-right: 1.5rem; }
  #novos-depoimentos #testi-track { margin-left: 0; margin-right: 0; padding-left: 0.25rem; padding-right: 0.25rem; }
  #testi-track > * { width: calc(50% - 1rem); }
  #avaliacoes-google h2 { font-size: 3rem; }
  .google-rating .count { font-size: 1rem; }
}
@media (min-width: 768px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
  .testimonials-section { margin-top: -6rem; }
  .testimonials-box { padding: 3rem; }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .excelencia-grid { grid-template-columns: 1fr 1fr; }
  .excelencia-content { text-align: left; }
  .excelencia-title { font-size: 2.25rem; }
  .midia-section { flex-direction: row; gap: 3rem; }
  .section-header { flex-direction: row; align-items: center; }
  .procedimentos-grid { grid-template-columns: repeat(2, 1fr); }
  .procedimentos-grid article.lg-span-2 { grid-column: span 2 / span 2; }
  .estrelas-grid { grid-template-columns: repeat(3, 1fr); }
  #tecnologia .grid { grid-template-columns: repeat(3, 1fr); }
  #a-clinica .grid { grid-template-columns: 1fr 1fr; }
  #duvidas .grid { grid-template-columns: repeat(3, 1fr); }
  #novos-depoimentos .flex-container { flex-direction: row; align-items: center; }
  #testi-track > * { width: calc(33.333% - 1.34rem); }
  #lb-prev { left: -2.5rem; }
  #lb-next { right: -2.5rem; }
}
@media (min-width: 1024px) {
  .procedimentos-grid { grid-template-columns: repeat(3, 1fr); }
}

