html, body {
  margin: 0;
  padding: 0;
    overflow-x: hidden;

}

*, *::before, *::after {
  box-sizing: border-box;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

/* ============================= */
    /* IMPORTAÇÃO DA FONTE */
    /* ============================= */

@font-face {
    font-family: 'BradescoSans';
    src: url('/fonts/WOFF2/BradescoSans-Light.woff2') format('woff2'),
         url('/fonts/WOFF/BradescoSans-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'BradescoSans';
    src: url('/fonts/WOFF2/BradescoSans-Regular.woff2') format('woff2'),
         url('/fonts/WOFF/BradescoSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'BradescoSans';
    src: url('/fonts/WOFF2/BradescoSans-Medium.woff2') format('woff2'),
         url('/fonts/WOFF/BradescoSans-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'BradescoSans';
    src: url('/fonts/WOFF2/BradescoSans-Bold.woff2') format('woff2'),
         url('/fonts/WOFF/BradescoSans-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}
body {
  font-family: 'BradescoSans';
  margin: 0;
  color: #000000;

}

/* ============================= */
/* HEADER */
/* ============================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  z-index: 999;
  background: linear-gradient(90deg, #CC092F, #B81570);
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  flex-wrap: wrap;
  transition: background 0.3s, box-shadow 0.3s, color 0.3s;
}

header.scrolled {
  background: #ffffff;
  color: #CC092F;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 100px;
  width: auto;
  transition: all 0.3s ease;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}

header.scrolled nav ul li a {
  color: #CC092F;
}



.btn-cotacao {
  background: white;
  color: #CC092F;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
}

header.scrolled .btn-cotacao {
  background: #CC092F;
  color: #ffffff;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px 0;
  background: #ffffff;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 9998;
}

/* ============================= */
/* MENU MOBILE CORRIGIDO */
/* ============================= */
@media (max-width: 802px) {
  #header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 15px;
  }

  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10002; /* AUMENTEI O Z-INDEX */
    position: relative;
  }

  .menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #ffffff;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  #header.scrolled .menu-toggle span {
    background-color: #CC092F;
  }

  /* MENU ABERTO - BOTÃO X */
  body.menu-open .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  body.menu-open .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* MENU NAVEGAÇÃO */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 300px;
    height: 100vh;
    background: #b5123b;
    padding: 100px 25px 25px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10001; /* MENU ABAIXO DO BOTÃO */
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    overflow-y: auto;
  }

  .main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .main-nav a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    padding: 16px 0;
    display: block;
    width: 100%;
    cursor: pointer;
    position: relative;
    z-index: 10002; /* LINKS COM Z-INDEX ALTO */
    transition: all 0.2s ease;
  }

  .main-nav a:hover {
    background-color: rgba(255,255,255,0.1);
    padding-left: 10px;
  }

  /* Quando abrir o menu */
  body.menu-open .main-nav {
    transform: translateX(0);
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000; /* OVERLAY ABAIXO DO MENU */
  }
  
/* REMOVER COMPLETAMENTE O OVERLAY DO FLUXO DE CLICKS QUANDO MENU ABERTO */
body.menu-open .menu-overlay {
    pointer-events: none !important;
}


  /* Garantir que body não role com menu aberto */
  body.menu-open {
    overflow: hidden;
  }

  /* Remover botão cotação no mobile */
  .btn-cotacao {
    display: none;
  }
}

/* ============================= */
/* HERO */
/* ============================= */
.hero {
  position: relative;
  min-height: 600px;
  background-image: url('../Components/img/capa-hero-bradesco.png');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 75px;
  margin-top: 50px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  left: 75px;           /* alinha no mesmo “grid” do seu padding do hero */
  top: 50%;
  transform: translateY(-50%);
  max-width: 620px;
  z-index: 2;
  text-align: left;
}

.hero-copy h1 {
  margin: 0;
  font-family: 'BradescoSans', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.12;
  font-size: 44px;
  color: #ffffff;
}

.form-box {
  position: relative;
  z-index: 3; /* fica acima do overlay */
}

.form-box {
  background: rgba(255, 255, 255, 0.92);
  padding: 30px;
  width: 360px;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.form-box h3 {
  margin-top: 0;
  color: #CC092F;
}

.form-box label {
  font-weight: bold;
  margin-top: 10px;
  display: block;
}

.form-box input,
.form-box select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #aaa;
  border-radius: 5px;
}

.form-box button {
  width: 100%;
  padding: 12px;
  background: #CC092F;
  color: white;
  border: none;
  margin-top: 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

.form-box button:hover {
  background: #B81570;
}

/* ============================= */
/* NOVAMED */
/* ============================= */
.novamed-section {
  padding: 60px 20px;
  background: #900f15;
}

.novamed-layout {
  max-width: 1700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.novamed-text {
  font-size: 18px;
  line-height: 1.6;
  color: #ffffff;
}

.novamed-text h2 {
  color: #ffffff;
  font-size: 32px;
  margin-bottom: 20px;
}

.novamed-btn {
  margin-top: 25px;
  background: #ffffff;
  color: #CC092F;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

.novamed-btn:hover {
  background: #0260E6;
  color: #ffffff;
}

.novamed-img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  background-image: url('../Components/img/Meu-Doutor-Novamed.png');
}

/* ============================= */
/* NOSSOS PLANOS */
/* ============================= */
.planos-container {
  padding: 60px 20px;
  background: #f7f7f7;
}

.planos-container h2 {
  width: 100%;
  text-align: center;
  font-size: 32px;
  color: #CC092F;
  margin: 0 auto 60px;
}

/* Layout */
.planos-layout {
  max-width: 1700px;
  margin: 0 auto;
  margin-bottom: 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: stretch;
}

/* Accordion */
.planos-accordion {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border-left: 6px solid #CC092F;
}

.plano-item {
  width: 100%;
  background: #ffffff;
  border: none;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 800;
  font-size: 17px;
  color: #CC092F;
  transition: background-color 0.35s ease;
}

.plano-item:hover {
  background: rgba(204, 9, 47, 0.06);
}

.plano-arrow {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(204, 9, 47, 0.10);
  border: 1px solid rgba(204, 9, 47, 0.25);
  position: relative;
}

.plano-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #CC092F;
  border-bottom: 2px solid #CC092F;
  transform: translate(-50%, -60%) rotate(45deg);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.plano-item.is-open .plano-arrow::before {
  transform: translate(-50%, -40%) rotate(-135deg);
}

.plano-panel {
  padding: 0 18px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease,
              transform 0.35s ease;
}

.plano-item.is-open + .plano-panel {
  opacity: 1;
  transform: translateY(0);
}

.plano-panel p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.plano-panel strong {
  color: #9D0D21;
}

/* Foto */
.planos-photo {
  width: 100%;
  min-height: 420px;
  border-radius: 9px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  background-image: url('../Components/img/foto-nossos-planos.png');
}

/* ============================= */
/* ANIMAÇÃO - ENTRADA (NOSSOS PLANOS) */
/* ============================= */
.planos-animate-left,
.planos-animate-right {
  opacity: 0;
  transform: translateX(0);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.6s ease;
  will-change: transform, opacity;
}

.planos-animate-left {
  transform: translateX(-130px);
}

.planos-animate-right {
  transform: translateX(130px);
}

.planos-animate-left.is-visible,
.planos-animate-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================= */
/* ANIMAÇÃO - ENTRADA (NOVAMED) */
/* ============================= */

/* Base comum: sem direção fixa */
.novamed-animate {
  opacity: 0;
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.6s ease;
  will-change: transform, opacity;
}

/* BOTÃO: 130px (direita -> esquerda) */
.novamed-btn-animate {
  transform: translateX(-130px);
}

/* IMAGEM: -130px (esquerda -> direita) */
.novamed-img-animate {
  transform: translateX(130px);
}

/* Estado visível (serve para os dois) */
.novamed-animate.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Delay do botão (use a classe que você já colocou no HTML: delay-btn) */
.novamed-animate.delay-btn {
  transition-delay: 0.18s;
}

/* ============================= */
/* BENEFÍCIOS BRADESCO SAÚDE */
/* ============================= */
.beneficios-section {
  padding: 60px 20px;
  background: #ffffff;
}

.beneficios-section h2 {
  width: 100%;
  text-align: center;
  font-size: 32px;
  color: #CC092F;
  margin: 0 auto 60px;
}

.beneficios-layout {
  max-width: 1400px; /* use o mesmo max-width do .planos-layout */
  margin: 0 auto;
}

.beneficios-video {
  width: 100%;
  max-width: 900px; /* ← CONTROLA O TAMANHO DO VÍDEO */
  margin: 0 auto;    /* ← centraliza */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  background: #000;
  aspect-ratio: 16 / 9;
}


.beneficios-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================= */
/* CTA */
/* ============================= */
.cta-section {
  padding: 60px 20px;
  background: #f7f7f7;
}

.cta-section h2 {
  text-align: center;
  font-size: 32px;
  color: #CC092F;
  margin-bottom: 40px;
}

.cta-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 90px;
}

.cta-card {
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 12px;
  border-left: 6px solid #CC092F;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(204, 9, 47, 0.10);
  border: 2px solid rgba(204, 9, 47, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cta-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cta-btn {
  background: #CC092F;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
  display: inline-block;
}

.cta-btn:hover {
  background: #B81570;
}

/* ============================= */
/* ANIMAÇÃO - ENTRADA (CTA CARDS) */
/* ============================= */
.cta-animate-up {
  opacity: 0;
  transform: translateY(80px);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.2s ease;
  will-change: transform, opacity;
}

.cta-animate-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* (Opcional) delays para efeito em cascata */
.cta-animate-up.delay-1 { transition-delay: 0.10s; }
.cta-animate-up.delay-2 { transition-delay: 0.20s; }
.cta-animate-up.delay-3 { transition-delay: 0.30s; }

/* ============================= */
/* RODAPÉ */
/* ============================= */
footer {
  background: #ffffff;
  border-top: 1px solid #eee;
  padding: 35px 20px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.footer-left {
  text-align: left;
}

.footer-left img {
  width: 160px;
  height: auto;
  display: block;
  margin-bottom: 14px;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(204, 9, 47, 0.25);
  background: rgba(204, 9, 47, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-btn i {
  font-size: 18px;
  color: #CC092F;
}

.footer-center {
  text-align: center;
  color: #111;
  font-size: 14px;
  line-height: 1.5;
}

.footer-title {
  margin: 0 0 8px;
  font-weight: bold;
  color: #CC092F;
  font-size: 15px;
}

.footer-right {
  color: #111;
  font-size: 14px;
  line-height: 1.55;
}

.footer-right p {
  margin: 0;
}

/* ============================= */
/* RESPONSIVO */
/* ============================= */
@media (max-width: 992px) {
  .novamed-layout {
  grid-template-columns: 1fr;
  text-align: center;
}

  .planos-layout {
    grid-template-columns: 1fr;
  }

  .novamed-btn {
  margin-left: auto;
  margin-right: auto;
  
}


  .planos-photo {
    order: -1;
    min-height: 260px;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
   header {
    padding: 15px;
    flex-direction: row;
    text-align: center;
  }

  .hero {
    padding: 15px;
    min-height: 500px;
    margin-top: 140px;
  }

   .hero-copy {
    left: 15px;         /* acompanha o padding do hero no mobile */
    right: 15px;
    top: 22px;
    transform: none;
    max-width: none;
  }

  .hero-copy h1 {
    font-size: 26px;
    line-height: 1.15;
  }

  .form-box {
    width: 100%;
  }

    .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ============================= */
/* OVERRIDE - FORMULÁRIO (FINAL DO ARQUIVO) */
/* ============================= */

.form-box,
.form-box * {
  box-sizing: border-box;
}

.form-box {
  padding: 20px;
}

.form-box h3 {
  margin: 0 0 14px 0;
}

.form-box label {
  display: block;
  margin: 12px 0 6px 0;
  font-size: 14px;
  line-height: 1.2;
}

.form-box input,
.form-box select {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  margin: 0;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 14px;
  outline: none;
}

.form-box input::placeholder {
  color: #98a2b3;
}

.form-box input:focus,
.form-box select:focus {
  border-color: #CC092F;
  box-shadow: 0 0 0 3px rgba(204, 9, 47, 0.15);
}

.form-box button {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  margin-top: 18px;
  border-radius: 10px;
}

/* ============================= */
/* CORREÇÃO – CENTRALIZAR LOGO DO RODAPÉ */
/* ============================= */

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;   /* <<< ISSO é o principal */
  text-align: center;
}

.footer-left img {
  margin: 0 0 14px 0;    /* remove qualquer auto-margin */
  display: block;
}

.footer-right .footer-title {
  text-align: center;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  text-decoration: none;
}

.whatsapp-float img {
  width: 60px;
  height: 60px;
  display: block;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  transition: transform 0.15s ease;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  z-index: 9999;
  text-decoration: none;
}

.whatsapp-float img {
  width: 40px;
  height: 40px;
  display: block;
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px); /* como o botão está à esquerda, o balão vai à direita */
  bottom: 50%;
  transform: translateY(50%) translateX(-6px);
  background: #CC092F;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 7px;
  border-style: solid;
  border-color: transparent transparent transparent #CC092F;
}

/* Estado visível (usado no carregamento e no hover) */
.whatsapp-float.is-tooltip-visible .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(50%) translateX(0);
}

/* Hover: mostrar e animar por 1s */
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(50%) translateX(0);
  animation: whatsappTooltipPulse 1s ease;
}

/* Animação (1s) */
@keyframes whatsappTooltipPulse {
  0%   { transform: translateY(50%) translateX(0) scale(1); }
  30%  { transform: translateY(50%) translateX(0) scale(1.05); }
  60%  { transform: translateY(50%) translateX(0) scale(1); }
  100% { transform: translateY(50%) translateX(0) scale(1); }
}

#inicio, #planos, #novamed, #Cotacao {
  scroll-margin-top: 12px;
}

/* Garante BradescoSans apenas na seção de Planos/Benefícios */
#planos,
#planos * {
  font-family: 'BradescoSans', Arial, sans-serif !important;
}

