/* ==========================================================================
   Live Fisioterapia — componentes institucionais
   (cabeçalho, rodapé, páginas de serviço, vitrine de serviços da home,
   botão flutuante do WhatsApp). Usa os mesmos tokens de style.css.
   Breakpoints: tablet <= 1024px, mobile <= 767px
   ========================================================================== */

/* --------------------------------------------------------------------------
   Utilitários de seção (rótulo laranja + título, como "DEPOIMENTOS")
   -------------------------------------------------------------------------- */
.sec {
  padding: 90px 0;
  background: var(--navy);
}
.sec--tight { padding: 60px 0; }
.sec__inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 10px;
}
.sec__head {
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}
.sec__label {
  margin-bottom: 14.4px;
  font-size: 18px;
  font-weight: 300;
  line-height: 27px;
  color: var(--secondary);
  text-transform: uppercase;
}
.sec__title {
  font-size: 31px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}
.sec__lead {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 300;
  line-height: 27px;
  color: var(--text);
}
/* linha em gradiente (mesma da seção de cards da home) */
.sec--line {
  border-top: 1px solid;
  border-image: linear-gradient(to right, transparent, #96540c, #9f8366, transparent) 1;
}

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, transparent, #96540c, #9f8366, transparent) 1;
}
.site-header__inner {
  max-width: var(--content);
  height: 72px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand__icon { width: auto; height: 50px; }
.site-footer .brand__icon { height: 80px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
}
.brand__sub {
  margin-top: 3px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--secondary);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .2s;
}
.nav__link:hover,
.nav__link[aria-current="page"],
.nav__item--open > .nav__link { color: var(--secondary); }
.nav__caret {
  width: 10px;
  height: 10px;
  fill: currentColor;
  transition: transform .2s;
}
.nav__item--open .nav__caret { transform: rotate(180deg); }

/* submenu de serviços */
.nav__item--drop { position: relative; }
.nav__drop {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 300px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__drop::before { /* área "ponte" para o mouse não perder o menu */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}
.nav__item--drop:hover .nav__drop,
.nav__item--open .nav__drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav__drop a {
  display: block;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  transition: background-color .2s, color .2s;
}
.nav__drop a:hover,
.nav__drop a[aria-current="page"] { background: #FFF3E6; color: var(--primary); box-shadow: inset 3px 0 0 var(--secondary); }

.header-cta {
  padding: 9px 18px;
  font-size: 14px;
  line-height: 20px;
}
.header-cta .btn__icon { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Páginas de serviço — topo
   -------------------------------------------------------------------------- */
.svc-hero {
  position: relative;
  padding: 70px 0 90px;
  background: var(--navy);
  overflow: hidden;
}
.svc-hero__inner {
  position: relative;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: center;
}
.svc-hero__label {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 300;
  line-height: 27px;
  color: var(--secondary);
  text-transform: uppercase;
}
.svc-hero__title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}
.svc-hero__text {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 300;
  line-height: 27px;
  color: var(--text);
}
.checklist {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 400;
  line-height: 25px;
  color: var(--text);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L21.1 7.4 19.7 6z'/%3E%3C/svg%3E") no-repeat center / 14px;
}
.svc-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.btn--ghost {
  color: var(--text);
  background: transparent;
  border-color: rgba(237, 240, 245, .45);
}
.btn--ghost:hover,
.btn--ghost:focus-visible { color: var(--secondary); border-color: var(--secondary); }

/* contraste mínimo de 4,5:1 nos botões herdados da landing page */
.btn--orange { color: var(--navy); }
.btn--navy { background-color: var(--navy); }
.btn--cta {
  color: #fff;
  background: linear-gradient(to left, #0c2d53 0%, #0077A3 50%) right;
  background-size: 200%;
}
.svc-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 5px solid var(--secondary);
}

/* faixa de confiança */
.trust {
  background: var(--navy);
  padding: 0 0 70px;
}
.trust__list {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 10px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
  color: var(--text);
}
.icon-ring {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 3px solid var(--secondary);
  border-radius: 50%;
}
.icon-ring svg { width: 22px; height: 22px; fill: var(--secondary); }

/* --------------------------------------------------------------------------
   Cards com borda laranja (mesmo estilo dos cards da home)
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border: 2px solid var(--secondary);
  border-radius: 10px;
}
.card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.card__text {
  font-size: 16px;
  font-weight: 300;
  line-height: 25px;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Etapas (cards brancos, como os depoimentos)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: passo;
}
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.step {
  padding: 34px 30px;
  background: #fff;
  border-radius: 10px;
}
.step__num {
  display: block;
  margin-bottom: 14px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: #C96800;
}
.step__title {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--primary);
}
.step__text {
  font-size: 15px;
  font-weight: 300;
  line-height: 25px;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Bloco imagem + texto (mesmo estilo dos casos Futebol/Vôlei)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media img {
  display: block;
  width: 100%;
  border: 5px solid var(--secondary);
}
.split__content .sec__label,
.split__content .sec__title { text-align: left; }
.split__text {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 300;
  line-height: 25px;
  color: var(--text);
}
.split__text p { margin-bottom: 14.4px; }
.split .btn-wrap { margin-top: 26px; }

/* responsável técnico */
.rt {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border: 2px solid var(--secondary);
  border-radius: 10px;
}
.rt__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--secondary);
}
.rt__name {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
}
.rt__role {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary);
}
.rt .checklist li { font-size: 16px; font-weight: 300; }

/* --------------------------------------------------------------------------
   Perguntas frequentes
   -------------------------------------------------------------------------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid rgba(237, 240, 245, .16); }
.faq__item summary {
  position: relative;
  padding: 22px 50px 22px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  color: #fff;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  content: "+" / "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  font-size: 24px;
  font-weight: 400;
  line-height: 26px;
  text-align: center;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  border-radius: 50%;
  transition: transform .2s;
}
.faq__item[open] summary::after { content: "−"; content: "−" / ""; }
.faq__item summary:hover { color: var(--secondary); }
.faq__answer {
  padding: 0 50px 24px 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 26px;
  color: var(--text);
}
.faq__answer p + p { margin-top: 12px; }

/* --------------------------------------------------------------------------
   Vitrine de serviços (home e "outros serviços")
   -------------------------------------------------------------------------- */
.servicos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.servico {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--secondary);
  border-radius: 10px;
  transition: transform .25s, box-shadow .25s;
}
.servico:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0, 0, 0, .35); }
.servico__img img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.servico__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 28px;
}
.servico__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}
.servico__text {
  flex: 1;
  font-size: 15px;
  font-weight: 300;
  line-height: 23px;
  color: var(--text);
}
.servico__more {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--secondary);
}
.servico__more::after { content: " →"; }
/* vitrine da home: 4 colunas (8 serviços = 2 fileiras completas) */
.servicos__grid--4 { grid-template-columns: repeat(4, 1fr); }
.servicos__grid--4 .servico__body { padding: 20px 20px 24px; }
.servicos__grid--4 .servico__title { font-size: 18px; }

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  border-top: 1px solid;
  border-image: linear-gradient(to right, transparent, #96540c, #9f8366, transparent) 1;
}
.site-footer__grid {
  max-width: var(--content);
  margin: 0 auto;
  padding: 56px 10px 40px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 34px;
}
.site-footer__about {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 300;
  line-height: 23px;
  color: var(--text);
}
.site-footer__title {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
  line-height: 25px;
  color: var(--text);
}
.site-footer__list { margin: 0; padding: 0; list-style: none; }
.site-footer__list li + li { margin-top: 10px; }
.site-footer__list a,
.site-footer__list span {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  line-height: 22px;
  color: var(--text);
  transition: color .3s;
}
.site-footer__list svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: var(--text);
  transition: fill .3s;
}
.site-footer__list a:hover { color: var(--secondary); }
.site-footer__list a:hover svg { fill: var(--secondary); }
.site-footer__bottom {
  border-top: 1px solid rgba(237, 240, 245, .1);
}
.site-footer__bottom-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 18px 10px 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: rgba(237, 240, 245, .72);
}
.site-footer__bottom a { text-decoration: underline; }
.site-footer__bottom a:hover { color: var(--secondary); }

/* --------------------------------------------------------------------------
   Botão flutuante do WhatsApp
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ==========================================================================
   TABLET (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .site-header__inner { padding: 0 20px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 40px;
    overflow-y: auto;
    background: var(--navy);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  body.nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid rgba(237, 240, 245, .12); }
  .nav__link { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 17px; }
  .nav__drop {
    position: static;
    min-width: 0;
    padding: 0 0 12px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__drop::before { display: none; }
  .nav__item--open .nav__drop { display: block; }
  .nav__item--drop:hover .nav__drop { transform: none; }
  .nav__drop a { padding: 10px 0 10px 14px; color: var(--text); font-weight: 400; }
  .nav__drop a:hover, .nav__drop a[aria-current="page"] { background: transparent; color: var(--secondary); box-shadow: none; }
  .header-cta { margin-top: 24px; align-self: flex-start; padding: 12px 24px; font-size: 16px; }

  .sec { padding: 80px 20px; }
  .svc-hero { padding: 60px 20px 80px; }
  .svc-hero__inner { gap: 36px; }
  .svc-hero__title { font-size: 34px; }
  .trust { padding: 0 20px 60px; }
  .trust__list { grid-template-columns: repeat(2, 1fr); }
  .cards, .servicos__grid, .servicos__grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .rt { grid-template-columns: 220px 1fr; gap: 30px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; padding: 50px 20px 36px; }
  .site-footer__bottom-inner { padding: 18px 20px 22px; }
}

/* ==========================================================================
   MOBILE (<= 767px)
   ========================================================================== */
@media (max-width: 767px) {
  .site-header__inner { height: 64px; }
  .nav { top: 65px; }
  .brand__name { font-size: 21px; }
  .brand__icon { height: 44px; }

  .sec { padding: 64px 20px; }
  .sec__title { font-size: 26px; }
  .sec__lead { font-size: 16px; line-height: 25px; }
  .svc-hero { padding: 28px 20px 60px; }
  .svc-hero__content { display: flex; flex-direction: column; }
  .svc-hero__ctas { order: 1; margin-top: 24px; }
  .svc-hero .checklist { order: 2; }
  .svc-hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .svc-hero__title { font-size: 29px; }
  .svc-hero__text { font-size: 16px; line-height: 25px; }
  .svc-hero__ctas .btn, .split__content .btn { width: 100%; padding: 12px 16px; font-size: 16px; }
  .trust__list { grid-template-columns: 1fr; gap: 16px; }
  .cards, .cards--2, .servicos__grid, .servicos__grid--4, .steps, .steps--3 { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split--reverse .split__media { order: 0; }
  .rt { grid-template-columns: 1fr; padding: 28px; text-align: center; }
  .rt__photo { max-width: 200px; margin: 0 auto; }
  .rt .checklist { text-align: left; }
  .faq__item summary { font-size: 16px; line-height: 24px; padding-right: 46px; }
  .faq__answer { padding-right: 0; font-size: 15px; line-height: 25px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 30px; padding: 44px 20px 30px; }
  .site-footer__bottom-inner { flex-direction: column; text-align: center; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}
