/* GALERIA DA CLÍNICA */

.galeria-clinica{
    background: var(--bg);
    padding-top: 180px;
}

.intro-clinica{
    display:flex;
    align-items:center;
    gap:50px;
    margin-bottom:60px;
}

.intro-foto{
    width:50%;
}

.intro-foto img{
    width:100%;
    border-radius:15px;
    display:block;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.intro-texto{
    width:50%;
}

.intro-texto h4{
    margin-bottom:10px;
}

.intro-texto h2{
    margin-bottom:20px;
}

.galeria-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.galeria-item{
    overflow:hidden;
    border-radius:15px;
    background:#fff;
    border:1px solid var(--border-light);
    transition:.4s;
}

.galeria-item:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.galeria-item img{
    width:100%;
    height:280px;
    object-fit:cover;
    display:block;
}

@media(max-width:991px){

    .intro-clinica{
        flex-direction:column;
    }

    .intro-foto,
    .intro-texto{
        width:100%;
    }

    .galeria-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:575px){

    .galeria-grid{
        grid-template-columns:1fr;
    }

    .galeria-item img{
        height:auto;
    }
}

/* cursor nos itens da galeria */
.galeria-item {
    cursor: pointer;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .88);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-img-wrap {
    max-width: 900px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrap img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    object-fit: contain;
    display: block;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: .8;
    transition: opacity .2s;
    padding: 0;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: 1.5rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 16px;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,.25);
}

@media (max-width: 575px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin: 0 8px;
    }
}

/* =========================================
   FOOTER
========================================= */
footer { background: #1a0a00; color: rgba(255,255,255,0.7); }
.footer-map { width: 100%; height: 300px; overflow: hidden; }
.footer-map iframe { width: 100%; height: 100%; border: none; display: block; }

.footer-main { padding: 60px 0 40px; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
  gap: 0;
}
.footer-col {
  padding: 0 15px;
}
.footer-col-logo { width: 25%; }
.footer-col-contato { width: 30%; }
.footer-col-mapa { width: 22%; }
.footer-col-trat { width: 23%; }

.footer-logo img { height: 60px; width: auto; display: block; margin-bottom: 20px; }

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.footer-social a {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 14px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  transition: all 0.4s ease;
}
.footer-social a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.footer-col-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

/* Contatos */
.contato-list { list-style: none; padding: 0; margin: 0; }
.contato-list li {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
}
.contato-list li address,
.contato-list li span,
.contato-list li a {
  padding-left: 20px;
  position: relative;
  display: block;
  font-style: normal;
  color: rgba(255,255,255,0.7);
}
.contato-list li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--accent);
  font-size: 14px;
  width: 15px;
  text-align: center;
}
.contato-list li a:hover { opacity: 0.6; }

/* Links do footer */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: all 0.4s ease;
}
.footer-links li a:hover { color: var(--accent); }

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: var(--accent); }

@media (max-width: 991px) {
  .footer-col-logo,
  .footer-col-contato,
  .footer-col-mapa,
  .footer-col-trat {
    width: 50%;
    margin-bottom: 30px;
  }
}
@media (max-width: 575px) {
  .footer-col-logo,
  .footer-col-contato,
  .footer-col-mapa,
  .footer-col-trat { width: 100%; }
}

/* =========================================
   UTILIDADES
========================================= */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* Font Awesome icons fallback usando SVG inline */
.icon-location::before { content: '📍'; }
.icon-whatsapp::before { content: '📱'; }
.icon-phone::before { content: '📞'; }
.icon-email::before { content: '✉️'; }

/* =========================================
   ANIMAÇÃO DE ENTRADA
========================================= */
.anim-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-in.visible {
  opacity: 1;
  transform: translateY(0);
}