.service-page { min-height: 100vh; color: #202326; background: #fff; }
.service-hero { position: relative; min-height: 700px; height: min(92svh, 980px); overflow: hidden; isolation: isolate; color: #f7f7f7; background: #071016 url("assets/bmw-servicos-financeiros-capa-video.webp") center 52% / cover no-repeat; }
.service-hero .hero__video { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.service-hero .hero-copy { position: absolute; left: 7.75%; top: 25%; width: min(54vw, 790px); }
.service-hero .site-header { position: absolute; }
.service-content { width: min(100% - 48px, 1080px); margin: 0 auto; padding: 54px 0 80px; }
.service-eyebrow { color: #555d62; font-size: 12px; font-weight: 600; letter-spacing: .13em; }
.service-content h1 { max-width: 860px; margin: 12px 0 16px; font-size: clamp(36px, 5vw, 58px); font-weight: 300; line-height: 1.12; }
.service-intro { max-width: 780px; margin: 0; color: #50585d; font-size: 19px; line-height: 1.6; }
.service-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 50px; }
.service-actions--compact { margin: 16px 0 4px; }
.service-action-note { width: 100%; margin: -36px 0 0 !important; color: #70777c !important; font-size: 13px !important; line-height: 1.5 !important; }
.service-page--irpf .service-action-note { margin: -30px 0 24px !important; }
.service-actions .button--outline { color: #25292c; border-color: #59636a; background: #fff; }
.service-content h2 { margin: 42px 0 16px; font-size: clamp(26px, 3vw, 34px); font-weight: 300; line-height: 1.2; }
.service-content h3 { margin: 0 0 8px; font-size: 20px; font-weight: 400; }
.service-content p, .service-content li { color: #50585d; font-size: 16px; line-height: 1.7; }
.service-content p { margin: 0 0 14px; }
.service-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 22px 0 34px; }
.service-steps--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-benefits { margin: 42px 0; }
.service-benefits > p { max-width: 820px; }
.service-benefits__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
#entender-antecipacao .service-benefits__grid + p { margin-top: 24px; }
.service-benefit { padding: 22px; background: #f3f5f6; border: 1px solid #e0e3e5; border-radius: 8px; }
.service-benefit h3 { margin: 0 0 9px; color: #25292c; font-size: 19px; line-height: 1.3; font-weight: 500; }
.service-benefit p { margin: 0; font-size: 15px; line-height: 1.6; }
.service-benefit a { color: #1258a7; text-decoration: underline; text-underline-offset: 3px; }
.service-step { min-height: 174px; padding: 22px; background: #f3f5f6; border-top: 2px solid #1769cb; }
.service-step span { display: block; margin-bottom: 16px; color: #1258a7; font-size: 13px; font-weight: 600; letter-spacing: .12em; }
.service-step p { margin: 0; font-size: 15px; }
.service-step a { display: inline-block; margin-top: 8px; color: #1258a7; text-decoration: underline; text-underline-offset: 3px; }
.service-callout { margin: 30px 0; padding: 22px 24px; background: #f5f8fb; border-left: 3px solid #1769cb; }
.service-callout strong { color: #25292c; font-weight: 500; }
.service-callout a, .service-source a { color: #1258a7; text-decoration: underline; text-underline-offset: 3px; }
.service-callout a.button--primary { color: #fff; text-decoration: none; }
.service-related-section { margin-top: 44px; padding: 34px 32px; background: #f1f3f4; border-radius: 18px; }
.service-content .service-related-section > h2 { max-width: 760px; margin: 0 0 24px; font-size: clamp(30px, 4.5vw, 46px); line-height: 1.18; }
.service-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.service-related li { min-width: 0; min-height: 154px; padding: 24px; background: #fff; border: 1px solid #dfe3e5; border-radius: 14px; box-shadow: 0 4px 16px rgba(16,34,51,.045); }
.service-related a { display: block; color: #1258a7; font-size: clamp(19px, 2vw, 23px); line-height: 1.35; font-weight: 500; text-decoration: none; }
.service-related a:hover, .service-related a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.service-related li p { margin: 10px 0 0; color: #596168; font-size: 17px; line-height: 1.55; }
.service-page--boleto .service-content a:not(.button) { color: #1258a7; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.service-page--boleto .service-content a:not(.button):hover { color: #0b4385; text-decoration-thickness: 2px; }
.service-page--boleto .service-content a:not(.button):focus-visible { outline: 2px solid #1258a7; outline-offset: 3px; border-radius: 2px; }
.service-source { margin-top: 40px !important; padding-top: 18px; border-top: 1px solid #d9dcde; font-size: 13px !important; }
.service-meta { margin-top: 10px !important; color: #555d62 !important; font-size: 13px !important; }
.service-editorial { margin-top: 36px; padding: 18px 20px; background: #f5f6f7; border-top: 1px solid #d9dcde; }
.service-editorial p { margin: 0 0 7px; color: #555d62; font-size: 13px; line-height: 1.55; }
.service-editorial p:last-child { margin-bottom: 0; }
.service-editorial strong { color: #353b3f; font-weight: 500; }
@media (max-width: 700px) {
  .service-hero { min-height: 720px; height: 100svh; max-height: 960px; background-position: 56% center; }
  .service-hero .hero-copy { left: 50%; top: auto; bottom: 11%; transform: translateX(-50%); width: min(88%, 650px); text-align: center; }
  .service-content { width: min(100% - 36px, 1080px); padding: 35px 0 58px; }
  .service-intro { font-size: 17px; }
  .service-actions { display: grid; margin-bottom: 38px; }
  .service-actions .button { width: 100%; }
  .service-steps { grid-template-columns: 1fr; gap: 10px; }
  .service-benefits__grid { grid-template-columns: 1fr; gap: 10px; }
  .service-step { min-height: 0; }
  .service-related-section { padding: 24px 20px; border-radius: 16px; }
  .service-content .service-related-section > h2 { margin-bottom: 20px; font-size: 32px; }
  .service-related { grid-template-columns: 1fr; gap: 10px; }
  .service-related li { min-height: 0; padding: 22px; }
  .service-related a { font-size: 21px; }
  .service-related li p { font-size: 17px; }
}

/* Boleto: practical verification table. */
.boleto-table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid #dce2e7; border-radius: 8px; }
.boleto-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 16px; }
.boleto-table caption { padding: 16px 20px; text-align: left; color: #535e67; font-size: 14px; background: #f5f7f9; }
.boleto-table th, .boleto-table td { padding: 16px 20px; border-top: 1px solid #dce2e7; line-height: 1.6; vertical-align: top; }
.boleto-table thead th { background: #eef3f8; font-weight: 600; }
.boleto-table tbody th { font-weight: 500; }
@media (max-width: 700px) { .boleto-table { min-width: 570px; font-size: 14px; } .boleto-table th, .boleto-table td { padding: 12px 14px; } }

.service-content .atraso-after-cards { margin-top: 24px; }

.service-content .quitacao-after-cards { margin-top: 24px; }

/* Páginas de serviço usam as mesmas proporções e margens do hero da home no desktop. */
@media (min-width: 821px) {
  .service-hero { width: 100%; min-height: 0; height: auto; aspect-ratio: 16 / 7; }
  .service-content { padding-top: 56px; }
  .service-content > h2:first-child,
  .service-content > section:first-child > h2:first-child { margin-top: 0; }
  .service-content > .service-eyebrow:first-child + h2 { margin-top: 12px; }
  .service-hero .hero-copy { left: max(8.125%, calc((100% - 1320px) / 2)); top: 50%; width: 48%; max-width: 880px; transform: translateY(-50%); text-align: left; }
  .service-hero .hero-copy h1 { margin: 0; max-width: none; font-size: clamp(32px, 3vw, 60px); line-height: 1.35; letter-spacing: 0; }
  .service-hero .hero-copy__lead { margin: 16px 0 0; max-width: none; font-size: 18px; line-height: 1.55; letter-spacing: 0; }
  .service-hero .hero-buttons { margin-top: 32px; gap: 24px; justify-content: flex-start; }
  .service-hero .button { min-height: 52px; min-width: 232px; padding: 12px 24px; font-size: 15px; font-weight: 600; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .service-hero { min-height: 500px; }
  .service-hero .hero-copy { left: 6%; top: 55%; width: 64%; }
}
.service-page--guidance .service-content a:not(.button) { color: #1258a7; text-decoration: underline; text-underline-offset: 3px; }
.service-page--guidance .service-content li { margin-bottom: 8px; }
@media (max-width: 820px) {
  .service-page--centered .service-hero .hero-copy { left: 50%; top: auto; bottom: 11%; width: min(88%, 650px); transform: translateX(-50%); text-align: center; }
  .service-page--centered .hero-copy h1, .service-page--centered .hero-copy__lead { margin-inline: auto; }
  .service-page--centered .hero-buttons { justify-content: center; }
}
