html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

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

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

@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', Arial, sans-serif;
  color: #000000;
  background: #ffffff;
}

body.privacy-banner-visible {
  padding-bottom: 112px;
}

.privacy-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(204, 9, 47, 0.18);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.privacy-banner[hidden] {
  display: none;
}

.privacy-banner-content {
  min-width: 0;
}

.privacy-banner-title {
  margin: 0 0 4px;
  color: #CC092F;
  font-size: 15px;
  font-weight: 700;
}

.privacy-banner-text {
  margin: 0;
  color: #444444;
  font-size: 13px;
  line-height: 1.55;
}

.privacy-banner-text a {
  color: #CC092F;
  font-weight: 700;
  text-decoration: none;
}

.privacy-banner-button {
  flex-shrink: 0;
  min-width: 104px;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  background: #CC092F;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.privacy-banner-button:hover {
  background: #B81570;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 999;
  background: linear-gradient(90deg, #CC092F, #B81570);
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  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: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

header.scrolled nav ul li a {
  color: #CC092F;
}

.btn-cotacao {
  background: #ffffff;
  color: #CC092F;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

header.scrolled .btn-cotacao {
  background: #CC092F;
  color: #ffffff;
}

.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;
}

@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;
    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;
  }

  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);
  }

  .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;
    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;
    transition: all 0.2s ease;
  }

  .main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 10px;
  }

  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;
  }

  body.menu-open .menu-overlay {
    pointer-events: none !important;
  }

  body.menu-open {
    overflow: hidden;
  }

  .btn-cotacao {
    display: none;
  }
}

.hero {
  position: relative;
  min-height: 640px;
  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: 96px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.hero-notice {
  position: absolute;
  top: 26px;
  left: 75px;
  right: 75px;
  max-width: 640px;
  z-index: 2;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.notice-pill {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #CC092F;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-notice p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.form-box {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.93);
  padding: 26px 30px;
  width: 360px;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.form-box h3 {
  margin: 0;
  color: #CC092F;
}

.form-helper {
  margin: 10px 0 0;
  color: #4a4a4a;
  font-size: 14px;
  line-height: 1.5;
}

.form-box label {
  display: block;
  margin: 12px 0 6px 0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

.form-box input,
.form-box select {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  margin: 0;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #ffffff;
  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;
  background: #CC092F;
  color: #ffffff;
  border: none;
  margin-top: 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.form-box button:hover {
  background: #B81570;
}

.form-legal {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #555555;
}

.form-legal a {
  color: #CC092F;
  font-weight: 700;
  text-decoration: none;
}

.institutional-strip {
  max-width: 1280px;
  margin: -26px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.institutional-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  border-top: 4px solid #CC092F;
  color: #3f3f46;
  font-size: 14px;
  line-height: 1.5;
}

.institutional-item strong,
.institutional-item span {
  display: block;
}

.institutional-item strong {
  color: #CC092F;
  margin-bottom: 4px;
}

.institutional-item span {
  color: #111111;
  font-weight: 500;
}

.planos-container {
  padding: 70px 20px 60px;
  background: #f7f7f7;
}

.planos-container h2,
.beneficios-section h2,
.cta-section h2 {
  width: 100%;
  text-align: center;
  font-size: 32px;
  color: #CC092F;
  margin: 0 auto 16px;
}

.section-subtitle {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
}

.planos-layout {
  max-width: 1700px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: stretch;
}

.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;
}

.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');
}

.planos-animate-left,
.planos-animate-right {
  opacity: 1;
  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(0);
}

.planos-animate-right {
  transform: translateX(0);
}

.planos-animate-left.is-visible,
.planos-animate-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.beneficios-section {
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 14px;
}

.beneficios-layout {
  max-width: 1400px;
  margin: 0 auto;
}

.beneficios-video {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  background: #000000;
  aspect-ratio: 16 / 9;
}

.beneficios-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.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: 0 0 20px;
}

.novamed-text p {
  margin-top: 0;
}

.novamed-note {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.novamed-btn {
  margin-top: 25px;
  background: #ffffff;
  color: #CC092F;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  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');
}

.novamed-animate {
  opacity: 1;
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.6s ease;
  will-change: transform, opacity;
}

.novamed-btn-animate {
  transform: translateX(0);
}

.novamed-img-animate {
  transform: translateX(0);
}

.novamed-animate.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.novamed-animate.delay-btn {
  transition-delay: 0.18s;
}

.cta-section {
  padding: 60px 20px;
  background: #f7f7f7;
}

.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: 700;
  white-space: nowrap;
  display: inline-block;
}

.cta-description {
  margin: -2px 0 0;
  min-height: 44px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
}

.cta-btn:hover {
  background: #B81570;
}

.cta-animate-up {
  opacity: 1;
  transform: translateY(0);
  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);
}

.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;
}

footer {
  background: #ffffff;
  border-top: 1px solid #eeeeee;
  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 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand img {
  width: 160px;
  height: auto;
  display: block;
  margin: 0 0 14px 0;
}

.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: #111111;
  font-size: 14px;
  line-height: 1.6;
}

.footer-center p,
.footer-right p {
  margin: 0 0 8px;
}

.footer-title {
  margin: 0 0 12px;
  font-weight: 700;
  color: #CC092F;
  font-size: 15px;
}

.footer-right {
  color: #111111;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.footer-disclaimer {
  margin-top: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.footer-links a {
  color: #CC092F;
  text-decoration: none;
  font-weight: 700;
}

.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-float:hover {
  transform: translateY(-2px);
  transition: transform 0.15s ease;
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  bottom: 50%;
  transform: translateY(50%) translateX(-6px);
  background: #CC092F;
  color: #ffffff;
  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;
}

.whatsapp-float.is-tooltip-visible .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(50%) translateX(0);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(50%) translateX(0);
  animation: whatsappTooltipPulse 1s ease;
}

@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,
#form,
#planos,
#novamed,
#Cotacao {
  scroll-margin-top: 12px;
}

#planos,
#planos * {
  font-family: 'BradescoSans', Arial, sans-serif !important;
}

@media (max-width: 992px) {
  .institutional-strip,
  .novamed-layout,
  .planos-layout,
  .cta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .institutional-strip {
    gap: 14px;
  }

  .novamed-layout {
    text-align: center;
  }

  .novamed-btn {
    margin-left: auto;
    margin-right: auto;
  }

  .planos-photo {
    order: -1;
    min-height: 260px;
  }

  .cta-grid {
    max-width: 100%;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  header {
    padding: 15px;
    flex-direction: row;
    text-align: center;
  }

  .logo img {
    height: 72px;
  }

  .hero {
    padding: 15px;
    min-height: auto;
    margin-top: 92px;
    padding-top: 125px;
  }

  .hero-notice {
    left: 15px;
    right: 15px;
    top: 16px;
    max-width: none;
    padding: 12px 14px;
  }

  .hero-notice p {
    font-size: 14px;
  }

  .form-box {
    width: 100%;
    padding: 20px;
  }

  .institutional-strip {
    margin-top: 0;
    padding: 16px;
  }

  .section-subtitle {
    margin-bottom: 28px;
    font-size: 14px;
  }

  .footer-grid {
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links {
    gap: 10px;
  }

  body.privacy-banner-visible {
    padding-bottom: 152px;
  }

  .privacy-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  .privacy-banner-button {
    width: 100%;
  }
}
