@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;600;700&family=Nunito:wght@300;400;600&display=swap');

:root {
--primary: #f3951f;
--primary-dark: #c87515;
--dark: #222;
--light: #fff;
--bg: #fff;
--radius: 10px;
}

/* Reset / base */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
    background: var(--orange); /* mesma cor do footer para mascarar o gap */
}

body {
  /* compensa EXATAMENTE a altura do header fixo */
  padding-top: 80px;              /* mantém só aqui */
  width: 100%;
  overflow-x: hidden !important;  /* sem scroll lateral */
  font-family: "Nunito", sans-serif;
  color: var(--dark);
  background: var(--bg);
}
footer {
  margin-top: auto;
  background: orange;
  position: relative;
  inset: 0;
}
/* Wrapper em coluna que empurra o footer pro fim */
.page {
  min-height: 100dvh;     /* usa viewport dinâmica moderna */
  display: flex;
  flex-direction: column;
}

/* Conteúdo cresce; footer fica embaixo */
.site-main {
  flex: 1;
  min-height: 0;
}

/* Truque do footer colado */
.footer {
  margin-top: auto;
}

/* Tira margem do último bloco pra não somar com o footer */
.site-main > *:last-child { margin-bottom: 0; }
/* Estilos gerais */
h1 {
  font-family: 'Titillium Web', sans-serif;
  font-weight: 700;
  text-align: center;
  margin: 3rem auto 1rem auto;
}

p {
  font-family: 'Nunito', sans-serif;
  font-weight: light;
  text-align: center;
  line-height: 1.7;
  margin: 0 auto 2.5rem auto;
  padding: 0 1rem;     /* menos padding lateral */
  max-width: 850px;    /* abre mais o espaço de texto */
}
h1, h2, p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
/* Título específico "O que oferecemos" */
h1.section-title {
  color: #8a5447;
  font-family: 'Titillium Web', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}

.section-intro, 
.hero-content, 
section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Header */
.main-header {
display: flex;
flex-direction: column;
align-items: center;
padding: 1.2rem 0 0.5rem 0;
background: var(--light);
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
position: fixed; 
top: 0; z-index: 1000;
width: 100%;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  height: 160px;
}
.header-center {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
.logo {
height: 70px;   /* maior no mobile */
max-width: 65vw;
margin-bottom: 0.2rem;
transition: height .2s;
}
.menu-btn {
background: none;
border: none;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
/* mais espaço embaixo do botão no mobile */
margin-bottom: 1rem;
}
.menu-btn svg rect {
fill: #f3951f !important; /* cor laranja */
transition: fill .2s;
}

.menu-btn svg {
width: 55px;
height: 55px;
}

.menu {
position: fixed;
top: 0;
right: 0;
left: 0;
background: #fff;
height: 100vh;
width: 100%;
flex-direction: column;
align-items: center;
gap: 2rem;
z-index: 1000;
display: none;
justify-content: center;
font-size: 1.35rem;
box-shadow: 0 2px 16px 0 rgba(0,0,0,.13);
}
.menu.open { display: flex; }
.menu-item {
text-decoration: none; color: var(--dark); font-weight: 700; transition: color .2s;
}
.menu-item.selected,
.menu-item:hover { color: var(--primary); }
.menu-close {
position: absolute;
top: 1rem;
right: 1rem;
background: transparent;
border: none;
z-index: 10;
cursor: pointer;
padding: 0.2rem;
display: flex;
align-items: center;
}
.menu-close svg {
width: 32px;
height: 32px;
display: block;
}

/*.header-actions { display: flex; align-items: center; gap: 1rem; }*/
.menu-instagram svg rect,
.menu-instagram svg circle { transition: transform .3s; }
.menu-instagram:hover svg rect,
.menu-instagram:hover svg circle { transform: scale(1.05); }

.btn-plantao {
background: #6ac5dc !important;
color: #fff !important;
font-weight: 700;
border-radius: 7px;
padding: 0.5rem 1.4rem;
text-decoration: none;
box-shadow: 0 0 0 0 rgba(106,197,220,0.5);
border: none;
transition: background .2s, transform .1s;
animation: pulse-plantao 1.5s infinite;
}
.btn-plantao:hover,
.btn-plantao:active,
.btn-plantao:focus {
background: #f3951f !important;
color: #fff !important;
}

@keyframes pulse-plantao {
0%   { box-shadow: 0 0 0 0 rgba(106,197,220,0.45);}
75%  { box-shadow: 0 0 0 20px rgba(106,197,220,0);}
100% { box-shadow: 0 0 0 0 rgba(106,197,220,0);}
}
.mobile-only { 
display: flex; 
flex-direction: column; 
align-items: center; 
text-align: center; 
padding-top: 5vh; 
padding-bottom: 2vh; 
}
.desktop-only { display: none; }

/* ===== Faixa full-bleed laranja com imagem flutuante ===== */

/* full-bleed real, ignorando containers do site */
.faixa-cirurgia {
  background: #f3951f;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 1.5rem 1rem 1rem;   /* faixa mais fina, sem “compensar” overlap */
  overflow: visible;           /* deixa a imagem vazar pra seção de baixo */
}

.faixa-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
  flex-direction: column;
}

/* bloco da imagem */
.faixa-media {
  margin: 0;
  margin-bottom: 1.5rem;
  overflow: visible;
}

.faixa-media img {
  display: block;
  width: 100%;               /* um pouco maior que o container da coluna */
  height: clamp(200px, 30vh, 560px); /* MAIS ALTA */
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
/* --- Animação vinda da ESQUERDA --- */
.js-reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: transform 700ms ease, opacity 700ms ease;
}

.js-reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* textos */
.faixa-conteudo h2,
.faixa-conteudo p {
  text-align: left;
}
.faixa-conteudo h2 {
  font-family: "Titillium Web", sans-serif;
  font-weight: 800;
  color: #fff;
  margin: 0 0 .75rem 0;
}
.faixa-conteudo {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faixa-conteudo p {
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  color: #fff;
  opacity: .95;
  margin: 0 0 .75rem 0;
  line-height: 1.65;
}

.galeria-tratamentos {
  position: relative;
  width: 100%;
  max-width: 100%; /* impede cálculo além da viewport */
  margin: 0;
  padding: 1rem 0 2rem;
  overflow-x: hidden;
}
.galeria-title {
  text-align: center;
  margin-bottom: 1rem;
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
}

.slider {
  width: 100%;
  max-width: 100%; /* limita o container ao viewport real */
  margin: 0 auto;
  overflow: hidden;
}

.slider-viewport {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain; /* bloqueia "arrasto" além das bordas no eixo X */
  touch-action: pan-y;  
  padding: 0 10px;
}
.slider-viewport::-webkit-scrollbar { display: none; }

.slider-track {
  --gap: 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 90%;      /* era ~100% - gap */
  gap: var(--gap);
  padding: 0;
  justify-content: center;     /* garante centragem do primeiro/último */
}

.card {
  width: 100%;                 /* não force 90% aqui */
  list-style: none;
  scroll-snap-align: center;   /* era start */
  display: block;
  overflow: hidden;
}
.card figure {
  width: 100%;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  background: #fff;
}

.card img {
  width: 100%;
  height: 280px;               /* seu valor atual */
  object-fit: cover;
  display: block;
}

.card figcaption {
display: none;
}

/* Setas */
.slider-btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: #ffffffcc;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #1f2937;
  z-index: 2;
}
.slider-btn:hover { background: #fff; }
.slider-btn.prev { left: 4px; }
.slider-btn.next { right: 4px; }

/* ===== EXAMES (mobile first) ===== */
.exames {
  padding: 2rem 1rem 3rem;
}

.exames-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;      /* mobile: empilhado */
  gap: 1.5rem;
}

.exames-text h2 {
  font-family: "Titillium Web", sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: #f3951f;              /* laranja pedido */
  margin: 0 0 .5rem;
}

.exames-text p {
  font-family: "Nunito", sans-serif;
  line-height: 1.8;
  color: #333;
  margin: 0 0 .75rem;
  text-align: left;
}

.exames-media {
  margin: 0;
  border-radius: 18px;
  overflow: visible;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.exames-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Animação: entra da direita */
.js-reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: transform 700ms ease, opacity 700ms ease;
}

.js-reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Respeita usuários com redução de movimento */
@media (prefers-reduced-motion: reduce) {
  .js-reveal-right { transition: none; transform: none; opacity: 1; }
}

.footer {
  width: 100%;
  background: #f8981d;
  position: relative;
  padding: 0;
  margin: 0;
  border: none;
}

.footer-inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 2.5rem 0 1.2rem 0;
}

.footer-dog {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 150px;
  height: auto;
  pointer-events: none;
  /* Faz a imagem subir para invadir a section acima */
  transform: translateY(-38px);
}

.footer-dog {
  display: none;
}
.footer-logo {
  width: 210px;
  max-width: 50vw;
  height: auto;
  z-index: 3;
  display: block;
  margin: 0 auto 0.8rem auto;
  position: relative;
}

.footer-copy {
  font-family: 'Nunito', Arial, sans-serif;
  color: #fff;
  font-size: 1.05rem;
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0;
  margin-bottom: 0;
}

/* Media queries */
@media (min-width: 1024px) {
  body {
    padding-top: 0; /* ou o valor exato da altura do cabeçalho */
  }
  h1 {
    margin-top: 6rem;
    font-size: 2.3rem;
  }

  p {
    font-size: 1.15rem;
    padding: 0 2rem;   /* equilíbrio no desktop */
    max-width: 80%; /* texto mais aberto em telas grandes */
    margin-bottom: 5rem;
  }
.mobile-only { 
  display: none !important; 
}
.desktop-only { 
  display: flex !important; 
  flex-direction: column; 
  align-items: flex-start; 
}
.main-header {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-left: 8.5rem;
  padding-right: 5.5rem;
  height: 110px;
}
.header-actions {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}
.header-center {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: auto;
}
.logo {
  height: 50px;
  max-width: 220px;
  margin-bottom: 0;
}
.menu {
  position: static;
  top: unset;
  left: unset;
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  display: flex !important;
  z-index: auto;
}
.menu-close {
  display: none !important;
}
.menu-btn { display: none; }
.menu-close { display: none !important; }
  .faixa-cirurgia {
    padding: 1.75rem 3rem 2.25rem;  /* ainda fina */
  }
  .faixa-wrap {
    display: grid;
    grid-template-columns: minmax(520px, 680px) 1fr;
    gap: 2rem 3rem;
    align-items: center;
  }

  .faixa-media { 
    margin-bottom: -130px;  
  }
  .faixa-media img {
    width: 84%;
    margin-left: 12%;
    height: clamp(300px, 49vh, 520px); 
    transform: translateX(4%);       
    border-radius: 26px;
  }

  .faixa-conteudo p {
    max-width: 60ch;
    margin-left: -5%;           
  }

  .faixa-conteudo h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
  }
  .sessao-seguinte { 
    margin-top: 8rem; 
  }
  .galeria-tratamentos{
    margin-top: 5rem;
  }
    .slider {
    position: relative;
    max-width: 1100px;      /* antes era 1200px — ajusta conforme quiser */
    margin: 0 auto;
  }
    .slider-track {
    /* 5 colunas; subtrai 4 gaps pra distribuir o espaço */
    grid-auto-columns: calc((100% - (var(--gap) * 4)) / 5);
    padding: 0;
    justify-content: initial;
  }
  .card {
  width: 100%;
  scroll-snap-align: start;
}

.card figure {
  width: 100%;
}
  .card img {
    height: 220px;
  }
  .card figcaption {
display: none;
  }
  .slider-btn.prev { left: -18px; }
  .slider-btn.next { right: -18px; }
    .exames {
    padding: 4rem 1.5rem 5rem;
  }

  .exames-wrap {
    display: grid;
    grid-template-columns: 1.1fr 1fr;  /* texto / imagem */
    align-items: center;
    gap: 3rem;
  }

  .exames-text p { max-width: 62ch; }
  .exames-media { border-radius: 22px; }
  .footer {
    height: 190px;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 180px;             /* Footer mais grosso */
    padding: 2.5rem 0 1.5rem 0;    /* Mais altura */
    position: relative;
    width: 100%;
    max-width: 100%;
  }
.footer-dog {
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(260px, 22vw, 400px);
  height: auto;
  transform: translateY(3%);  /* patas encostam, cabeça visível */
  transform-origin: left bottom;
  pointer-events: none;
  z-index: 2;
}
.footer-dog img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}
  .footer-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 380px;
    max-width: 420px;
    z-index: 3;
  }
  .footer-copy {
    position: absolute;
    right: 6vw;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.18rem;
    text-align: center;
    align-items: flex-end;
    margin: 0;
    z-index: 3;
  }
}