/* ==========================================================================
   Live Fisioterapia — landing page
   Valores (cores, tamanhos, espaçamentos) replicados do layout original.
   Breakpoints: tablet <= 1024px, mobile <= 767px
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/montserrat-italic-latin.woff2") format("woff2");
}

:root {
  --primary: #003776;     /* azul da marca */
  --secondary: #E77800;   /* laranja */
  --text: #EDF0F5;        /* texto claro */
  --accent: #1D1D1D;      /* texto escuro */
  --navy: #0C2D53;        /* fundo das seções (azul + overlay 40% #1D1D1D) */
  --content: 1140px;
  --font: "Montserrat", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; border: none; vertical-align: middle; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.accent { color: var(--secondary); }

.container {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn-wrap--center { text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  line-height: 25px;
  border: 2px solid var(--secondary);
  border-radius: 47px;
  transition: all .3s;
  cursor: pointer;
}
.btn__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transform-origin: center;
  transform-box: fill-box;
  transform: rotate(0deg) scale(.8);
  transition: transform .5s;
}
.btn:hover .btn__icon,
.btn:focus-visible .btn__icon {
  transform: rotate(-45deg) scale(1);
}

.btn--navy { background-color: var(--primary); color: var(--secondary); }
.btn--orange { background-color: var(--secondary); color: var(--primary); }
.btn--navy:hover, .btn--navy:focus-visible,
.btn--orange:hover, .btn--orange:focus-visible {
  background-color: transparent;
  color: var(--secondary);
}

/* botão do CTA final (gradiente com cantos recortados) */
.btn--cta {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  color: var(--secondary);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5);
  clip-path: polygon(0 0, 95% 0, 100% 25%, 100% 100%, 5% 100%, 0 75%);
  background: linear-gradient(to left, #0c2d53 0%, #0096C6 50%) right;
  background-size: 200%;
  transition: all .2s ease-in;
}
.btn--cta:hover, .btn--cta:focus-visible {
  background-position: left bottom;
  border-color: transparent;
  transform: scale(1.01);
  transition: all .3s ease-out;
}
.btn--cta:active {
  box-shadow: inset 0 0 5px 5px #EAD754, 0 5px 0 0 #EAD754, 0 10px 5px 0 #EAD754;
  transform: scale(1);
  transition: all .1s ease-in;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 60px 0;
  background: var(--primary) url("../img/hero-bg.webp") no-repeat right bottom / cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: .5;
}
.hero__inner {
  position: relative;
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero__inner > .btn-wrap { width: 100%; }

.hero__title {
  width: 80%;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-align: center;
}
.hero__sub {
  width: 80%;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  color: #fff;
  text-align: center;
}

/* vídeo (YouTube carregado só no clique) */
.video {
  position: relative;
  width: 66%;
  border: 1px solid #D8B78D;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 50px -10px rgba(0, 0, 0, .83);
  background: #000;
}
.video::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}
.video__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video__play {
  position: relative;
  width: 180px;
  height: 180px;
  transform: translateY(-3px);
  fill: #fff;
  filter: drop-shadow(1px 0 6px rgba(0, 0, 0, .3));
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   DIFERENCIAIS (cards com borda laranja)
   -------------------------------------------------------------------------- */
.sobre { position: relative; background: var(--navy); }
.sobre--top { padding-top: 100px; }
.sobre--bottom { padding-bottom: 100px; }

/* linha em gradiente no topo e na base do primeiro bloco
   (#e77800 / #f6c796 sob o overlay de 40% #1D1D1D do original) */
.sobre--top {
  border: 1px solid;
  border-image: linear-gradient(to right, transparent, #96540c, #9f8366, transparent) 1;
}

.sobre__row {
  display: flex;
  gap: 20px;
  padding: 10px;
}
.card-sobre {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  border: 2px solid var(--secondary);
  border-radius: 10px;
}
.card-sobre__icon {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 68px;
}
.card-sobre__icon svg {
  box-sizing: content-box;
  width: 29px;
  height: 29px;
  padding: 14.5px;
  border: 3px solid var(--secondary);
  border-radius: 50%;
  fill: var(--secondary);
}
.card-sobre__text {
  font-size: 18px;
  font-weight: 200;
  line-height: 25px;
  color: #fff;
  text-align: center;
}

/* --------------------------------------------------------------------------
   EQUIPE + carrossel
   -------------------------------------------------------------------------- */
.equipe {
  max-width: var(--content);
  margin: 0 auto;
  padding-bottom: 100px;
}
.equipe__title {
  padding-bottom: 15px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--secondary);
  text-align: center;
}
.equipe__link {
  width: 26%;
  margin: 0 auto 30px;
  padding: 2px 0;
  font-size: 15px;
  font-weight: 200;
  line-height: 1;
  color: #fff;
  text-align: center;
}

.carousel {
  --per-view: 3;
  position: relative;
  padding-bottom: 30px;
}
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  will-change: transform;
}
.carousel__slide {
  flex: 0 0 calc(100% / var(--per-view));
  display: block;
  padding-bottom: 5.6px;
}
.carousel__slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11px;
  display: flex;
  justify-content: center;
  height: 6px;
}
.carousel__dot {
  width: 6px;
  height: 6px;
  margin: 0 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  cursor: pointer;
  position: relative;
}
.carousel__dot::after { /* área de toque maior sem mudar o visual */
  content: "";
  position: absolute;
  inset: -8px;
}
.carousel__dot.is-active { background: var(--secondary); }

/* --------------------------------------------------------------------------
   CASOS (Futebol / Vôlei)
   -------------------------------------------------------------------------- */
.caso {
  padding-bottom: 100px;
  background: var(--navy);
}
.caso__row { display: flex; }
.caso__media,
.caso__content {
  flex: 0 0 50%;
  min-width: 0;
  padding: 10px;
}
.caso__media img {
  display: block;
  width: 100%;
  border: 5px solid var(--secondary);
}
.caso__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.caso__tag {
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
  color: var(--secondary);
}
.caso__title {
  font-size: 31px;
  font-weight: 800;
  line-height: 50px;
  color: var(--text);
}
.caso__text {
  font-size: 18px;
  font-weight: 300;
  line-height: 25px;
  color: var(--text);
}
.caso__text p { margin-bottom: 14.4px; }

/* --------------------------------------------------------------------------
   DEPOIMENTOS
   -------------------------------------------------------------------------- */
.depo {
  padding-bottom: 100px;
  background: var(--navy);
}
.depo > .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.depo__label {
  margin-bottom: 14.4px;
  font-size: 18px;
  font-weight: 300;
  line-height: 27px;
  color: var(--secondary);
  text-align: center;
}
.depo__title {
  font-size: 31px;
  font-weight: 800;
  line-height: 50px;
  color: var(--text);
  text-align: center;
}
.depo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 10px;
}
.depo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  background: #fff;
  border-radius: 10px;
  text-align: center;
}
.depo-card__avatar {
  width: 90px;
  height: 90px;
  border-radius: 50px;
  object-fit: cover;
}
.stars {
  display: flex;
  justify-content: center;
  height: 16px;
}
.stars svg {
  width: 16px;
  height: 16px;
  fill: var(--secondary);
}
.depo-card__text,
.depo-card__name {
  font-size: 15px;
  line-height: 25px;
  color: var(--accent);
}
.depo-card__text { font-weight: 300; }
.depo-card__name { font-weight: 600; margin-bottom: -16px; }
.depo-card__text p,
.depo-card__name p { margin-bottom: 14.4px; }

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  padding: 150px 0;
  background: var(--primary) url("../img/cta-bg.webp") no-repeat center center / cover;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #525252;
  opacity: .3;
}
.cta__inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cta__title {
  font-size: 31px;
  font-weight: 800;
  line-height: 56px;
  color: #000;
  text-shadow: 0 0 2px #EDF0F5;
  text-align: center;
}
.btn-wrap--cta { padding-bottom: 6px; }

/* --------------------------------------------------------------------------
   RODAPÉ
   -------------------------------------------------------------------------- */
.footer {
  padding: 20px 0;
  background: var(--navy);
}
.footer__row { display: flex; }
.footer__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 10px;
  text-align: center;
}
.footer__logo { width: 54%; }
.footer__heading {
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
  line-height: 25px;
  color: var(--text);
}
.footer__link {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  line-height: 25px;
  color: var(--text);
  transition: color .3s;
}
.footer__link svg {
  width: 22px;
  height: 22px;
  fill: var(--text);
  transition: fill .3s;
}
.footer__link span { padding-left: 5px; }
.footer__link:hover,
.footer__link:focus-visible { color: var(--secondary); }
.footer__link:hover svg,
.footer__link:focus-visible svg { fill: var(--secondary); }

/* foco visível para navegação por teclado */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

/* ==========================================================================
   TABLET (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero { padding: 80px 40px; }
  .sobre--top { padding: 100px 20px 0; }
  .sobre--bottom { padding: 0 20px 100px; }
  .caso { padding: 0 20px 100px; }
  .caso__title { font-size: 33px; }
  .depo { padding: 0 20px 100px; }
  .depo__title { font-size: 33px; }
  .cta { padding: 150px 20px; }
  .cta__title { font-size: 32px; }
  .footer { padding: 20px; }
  .carousel { --per-view: 2; }
}

/* ==========================================================================
   MOBILE (<= 767px)
   ========================================================================== */
@media (max-width: 767px) {
  .hero {
    padding: 160px 20px;
    background-position: left bottom;
  }
  .hero__title {
    width: 100%;
    font-size: 29px;
  }
  .hero__sub {
    width: 264px;
    max-width: 264px;
    margin-top: -10px;
    font-size: 15px;
  }
  .video {
    width: 100%;
    border-radius: 10px;
  }
  .video__play { width: 25%; height: auto; aspect-ratio: 1; }

  .sobre__row { flex-direction: column; }
  .card-sobre__text { font-size: 15px; line-height: 1.2em; }

  .equipe__link { width: 267px; }
  .carousel { --per-view: 1; }

  .caso { padding: 0 20px 100px; }
  .caso--futebol { padding-bottom: 50px; }
  .caso__row { flex-direction: column; }
  .caso__media, .caso__content { flex-basis: auto; }
  .caso__content { gap: 0; }
  .caso__tag { padding-bottom: 15px; font-size: 20px; }
  .caso__title { font-size: 26px; }
  .btn-wrap--volei { margin-top: 5px; }

  .depo__title { font-size: 26px; }
  .depo__grid { grid-template-columns: 1fr; }

  .cta__title { font-size: 25px; }

  .footer__row { flex-direction: column; }
  .footer__heading { margin: 15px 0 -15px; }
}
