/* ==========================================================================
   Neofolic · Paciente Modelo — CSS puro (migrado de Elementor/WordPress)
   Breakpoints (iguais ao Elementor): laptop ≤1366 · tablet ≤1024 · mobile ≤767
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/SpaceGrotesk-SemiBold.woff2') format('woff2');
}

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

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  cursor: url('assets/icons/cursor.svg'), auto;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}

/* Granulado fixo sobre a página (efeito original do site) */
html::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: radial-gradient(at 20% 80%, #fff 1px, transparent 0);
  background-size: 3px 3px;
  pointer-events: none;
  z-index: 999;
  opacity: .03;
  mix-blend-mode: plus-lighter;
}

body {
  margin: 0;
  background-color: #f7f7f8;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::-webkit-scrollbar { display: none; }

img { border: 0; height: auto; max-width: 100%; display: inline-block; vertical-align: middle; }
p { margin: 0; }
h1, h2 { margin: 0; padding: 0; line-height: 1; font-weight: 500; }
a { color: inherit; text-decoration: none; background-color: transparent; }
figure { margin: 0; }
button { font: inherit; margin: 0; padding: 0; border: 0; background: none; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* ---------- Faixa vermelha (topo) ---------- */
.topbar {
  display: flex;
  flex-direction: column;
  min-height: 60px;
  background-color: #a80f0f;
  padding: 0;
}
.topbar__inner {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  column-gap: 10px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
.topbar p {
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  line-height: 18px;
  color: #fff;
}

/* ---------- Seção principal (fundo verde-escuro) ---------- */
.hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #001510;
  padding: 50px 0 100px;
}
.hero__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  row-gap: 25px;
  column-gap: 20px;
}

/* Logos IBRAMEC + Neofolic */
.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 30px;
  padding: 10px;
}
.brand__ibramec { line-height: 0; text-align: center; }
.brand__ibramec img { height: 45px; width: auto; }
.brand__logo { text-align: center; }
.brand__logo img { width: 250px; height: auto; }

/* Título principal */
.headline {
  width: 860px;
  max-width: 100%;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 52px;
  color: #fff;
}
.headline .strike { text-decoration: line-through; }

/* Texto de apoio */
.lead {
  width: 450px;
  max-width: 100%;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  color: #b8b8b8;
}

/* Vídeo (YouTube) */
.video {
  position: relative;
  width: 700px;
  max-width: 100%;
  margin: 10px 0;
  aspect-ratio: 1.77777;
  border-radius: 40px;
  overflow: hidden;
  transform: translateZ(0);
  background-color: #000;
}
.video iframe,
.video__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video__play { cursor: pointer; }
.video__play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video__icon {
  position: absolute;
  top: 50%; left: 50%;
  width: 68px; height: 48px;
  transform: translate(-50%, -50%);
  transition: filter .1s cubic-bezier(0, 0, .2, 1);
}
.video__icon path.bg { fill: #212121; fill-opacity: .8; transition: fill .1s cubic-bezier(0, 0, .2, 1), fill-opacity .1s cubic-bezier(0, 0, .2, 1); }
.video__play:hover .video__icon path.bg,
.video__play:focus-visible .video__icon path.bg { fill: #f00; fill-opacity: 1; }

/* Botão CTA "SEJA PACIENTE MODELO" */
.cta { margin: 0; padding: 0; }
.btn {
  position: relative;
  display: flex;
  overflow: hidden;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-color: transparent;
  background-image: linear-gradient(270deg, #00a378 0, #00cd64 100%);
  border-radius: 100px;
  padding: 25px 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -.2px;
  transition: ease-in-out .5s;
  cursor: pointer;
}
.btn:hover, .btn:focus, .btn:visited { color: #fff; }
.btn:hover { transform: translateY(-5px); }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-45deg);
  opacity: 0;
  animation: 2s infinite sh02;
}
.btn__wrap { display: flex; flex-direction: row; gap: 5px; justify-content: center; }
.btn__text { display: inline-block; }
@keyframes sh02 {
  from { opacity: 0; left: 0; }
  50%  { opacity: 1; }
  to   { opacity: 0; left: 100%; }
}

/* Títulos das seções */
.title {
  max-width: 100%;
  margin: 100px 0 0;
  padding: 0;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 50px;
  color: #fff;
}
.title--depo { width: 600px; }
.title--hosp { width: 760px; }

/* Grade de depoimentos (3 colunas) */
.depos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(1, 1fr);
  grid-auto-flow: row;
  gap: 30px;
  width: 100%;
  padding: 0;
}
.depos__col {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}
.depos__item { text-align: center; }
.depos__item + .depos__item { margin-top: 32px; }

/* Carrossel do hospital */
.carousel {
  position: relative;
  width: 100%;
  --spv: 2;
  --gap: 20px;
}
.carousel__viewport {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  touch-action: pan-y;
}
.carousel__track {
  display: flex;
  width: 100%;
  transition: transform .5s;
}
.carousel__slide {
  flex: 0 0 auto;
  width: calc((100% - var(--gap) * (var(--spv) - 1)) / var(--spv));
  margin-right: var(--gap);
  text-align: center;
}
.carousel__slide img {
  display: block;
  width: 100%;
  border-radius: 10px;
}
.carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  transform: translateY(-50%);
  font-size: 80px;
  color: hsla(0, 0%, 93%, .9);
  cursor: pointer;
  left: -40px;
}
.carousel__btn--next { left: auto; right: -40px; }
.carousel__btn svg { width: 1em; height: .5em; display: block; }
.carousel__btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 100px; }

/* Ponto de montagem do formulário Supabase (vira modal ao carregar) */
.form-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

/* Laptop ≤ 1366px */
@media (max-width: 1366px) {
  .topbar { min-height: 55px; padding: 0 4em; }
  .hero { padding: 100px 50px; }
  .hero__content { justify-content: space-between; }
  .brand__ibramec img { height: 40px; }
  .headline { width: 430px; font-size: 38px; line-height: 38px; }
  .lead { width: 400px; font-size: 18px; line-height: 24px; }
  .title--depo { width: 525px; }
  .title--hosp { width: 660px; }
  .title { font-size: 38px; line-height: 44px; }
}
@media (max-width: 1366px) and (min-width: 768px) {
  .hero__inner { width: 90%; }
}

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .topbar { padding: 0 3em; }
  .topbar p { font-size: 16px; line-height: 16px; }
  .hero__content { max-width: 1024px; }
  .hero__inner { row-gap: 20px; column-gap: 20px; }
  .brand__ibramec img { height: 38px; }
  .headline { line-height: 42px; }
  .lead { width: 410px; }
  .video { width: 600px; }
  .btn { font-size: 22px; line-height: 22px; padding: 22px 42px; }
  .title--depo { width: 520px; }
  .title--hosp { width: 650px; }
  .title { line-height: 42px; }
}

/* Mobile ≤ 767px */
@media (max-width: 767px) {
  .topbar { min-height: 60px; padding: .875em 1.5em; }
  .topbar p { font-size: 14px; line-height: 14px; }
  .hero { padding: 3em 1.5em; }
  .hero__content { justify-content: flex-start; }
  .hero__inner { width: 100%; row-gap: 10px; column-gap: 10px; }
  .brand { flex-direction: column; gap: 15px; padding: 0; }
  .brand__ibramec { order: 2; }
  .brand__ibramec img { height: 20px; }
  .brand__logo img { width: 200px; }
  .headline { width: 100%; margin-top: 5px; font-size: 30px; line-height: 30px; }
  .lead { width: 100%; margin: 10px -10px 0; font-size: 16px; line-height: 20px; }
  .video { width: 100%; border-radius: 20px; }
  .btn { font-size: 20px; line-height: 20px; padding: 20px 35px; }
  .title { width: 100%; margin-top: 50px; font-size: 30px; line-height: 34px; }
  .depos { grid-template-columns: repeat(1, 1fr); gap: 0; }
  .depos__item + .depos__item,
  .depos__col + .depos__col .depos__item:first-child { margin-top: 20px; }
  .carousel { --spv: 1; }
  .carousel__btn { font-size: 60px; left: -20px; }
  .carousel__btn--next { left: auto; right: -20px; }
}
