/* Royal Seguros — Enterprise polish layer */
:root {
  --rs-deep-1: #071b33;
  --rs-deep-2: #0b2545;
  --rs-royal-2: #123e7c;
  --rs-gold-2: #f4b000;
  --rs-muted-2: #475569;
  --rs-surface-2: #f8fafc;
}

body {
  background: var(--rs-surface-2);
}

/* Header/Nav premium finish */
.portal-header {
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.portal-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.portal-nav-link {
  position: relative;
  cursor: pointer;
}

.portal-nav-link:hover {
  color: var(--rs-royal-2) !important;
}

.portal-nav-link.is-active {
  color: var(--rs-royal-2) !important;
  background: rgba(18, 62, 124, 0.09);
}

/* Global Royal CTA standards */
.btn-royal-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.78rem 1.3rem;
  border-radius: 14px;
  background: var(--rs-gold-2);
  color: #071b33 !important;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(7, 27, 51, 0.12);
  box-shadow: 0 10px 24px rgba(244, 176, 0, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-royal-primary:hover {
  transform: translateY(-2px);
  filter: brightness(0.97);
  box-shadow: 0 14px 30px rgba(244, 176, 0, 0.3);
}

.btn-royal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.78rem 1.3rem;
  border-radius: 14px;
  background: #ffffff;
  color: var(--rs-royal-2) !important;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(18, 62, 124, 0.28);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-royal-secondary:hover {
  transform: translateY(-2px);
  background: #edf4ff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

/* Regresso explícito à página principal — reutilizável em páginas internas */
.btn-royal-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.72rem 1.25rem;
  border-radius: 14px;
  background: #ffffff;
  color: var(--rs-deep-1) !important;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--rs-royal-2);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-royal-home:hover {
  background: #e8f0fc;
  border-color: #0d4a94;
  box-shadow: 0 10px 22px rgba(18, 62, 124, 0.12);
}

.btn-royal-home:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(244, 176, 0, 0.45), 0 8px 20px rgba(18, 62, 124, 0.12);
}

.return-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin: 28px auto 36px;
  flex-wrap: wrap;
  position: relative;
  z-index: 999;
}

.btn-back,
.btn-home {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative;
  z-index: 1000;
}

.btn-back {
  background: #081f4d;
  color: #ffffff;
  border: 1px solid #081f4d;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 800;
}

.btn-home {
  background: #ffffff;
  color: #081f4d;
  border: 1px solid #081f4d;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
}

.btn-back:hover,
.btn-home:hover {
  transform: translateY(-1px);
}

/* Marca no header — sempre clicável para / */
.brand-link {
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
}

.brand-link:hover .font-semibold {
  color: var(--rs-royal-2);
}

.brand-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(244, 176, 0, 0.45);
}

.portal-breadcrumb__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(244, 176, 0, 0.55);
  border-radius: 4px;
}

.portal-home-link-row {
  position: relative;
  z-index: 2;
}

.clickable-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.clickable-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

/* Cartões de produtos — lista /produtos */
a.product-card {
  cursor: pointer;
}

a.product-card:hover {
  border-color: rgba(10, 42, 102, 0.18);
}

/* Main spacing balance to avoid large dead areas */
main {
  margin-bottom: 0;
}

/* Card depth and hover */
.ds-card,
.card,
.hero-stat {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.ds-card:hover,
a.card:hover,
a.hero-stat:hover,
.rs-strategic-card:hover,
.home-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

/* Homepage — bloco notícias institucionais */
body.home-page .home-news-block {
  border-top: 1px solid rgba(10, 42, 102, 0.08);
}

/* Hero — botão premium Sector Financeiro */
body.home-page .home-main .hero .hero-setor-financeiro {
  color: #ffffff;
}

@media (min-width: 1024px) {
  body.home-page .home-main .hero .hero-setor-financeiro-wrap {
    width: min(100%, 380px);
    max-width: 380px;
    margin-left: auto;
    justify-self: end;
  }
}

/* Institutional badges */
.ds-badge {
  border: 1px solid rgba(15, 23, 42, 0.14);
  padding: 0.28rem 0.62rem;
}

.ds-badge--royal {
  background: rgba(18, 62, 124, 0.12);
  color: #0f2f60;
}

.ds-badge--gold {
  background: rgba(244, 176, 0, 0.17);
  color: #5b4300;
}

/* Footer enterprise contrast */
.rs-footer {
  background: linear-gradient(180deg, var(--rs-deep-1), var(--rs-deep-2));
  color: #ffffff;
}

.rs-footer p,
.rs-footer li,
.rs-footer span {
  color: rgba(255, 255, 255, 0.9);
}

.rs-footer__link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.rs-footer__link:hover,
.rs-footer__link:focus-visible {
  color: var(--rs-gold-2);
}

/* Safety: clickable layers above decorative overlays */
.hero .relative,
.home-main a,
.home-main button,
footer a {
  position: relative;
  z-index: 1;
}

#rcav .pointer-events-none {
  pointer-events: none !important;
}

#rcav a.btn-primary,
#rcav a.btn-secondary,
#rcav .rcav-preview-card,
#rcav .rcav-preview-card a[href] {
  cursor: pointer;
  pointer-events: auto;
}

#rcav .rcav-preview-card a[href]:hover {
  text-decoration: none;
}

/* Responsive harmonization */
@media (max-width: 1024px) {
  .rs-footer .grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .rs-footer {
    margin-top: 2rem;
  }
  .portal-drawer-panel {
    z-index: 120;
  }
}

@media (max-width: 430px) {
  .rs-footer {
    font-size: 0.92rem;
  }
  .rs-footer .max-w-6xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Home — Call Center compacto (strip premium, omnichannel-ready)           */
/* -------------------------------------------------------------------------- */

.call-center-strip-wrap {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .call-center-strip-wrap {
    padding: 0 1.5rem;
  }
}

.call-center-strip {
  max-width: 70rem;
  margin: clamp(1.25rem, 3vw, 2rem) auto;
  padding: clamp(1.25rem, 2.8vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: 24px;
  background: linear-gradient(135deg, #071b33 0%, #0b2f63 55%, #123e7c 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(7, 27, 51, 0.22);
}

.call-center-strip .call-center-text a {
  color: inherit;
}

.call-center-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.call-center-text {
  min-width: 0;
}

.call-center-strip .eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f4b000 !important;
  margin-bottom: 0.35rem;
  font-family: inherit;
}

.call-center-strip h2 {
  font-size: clamp(1.35rem, 2.8vw, 2.05rem);
  margin: 0.35rem 0 0.5rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff !important;
}

.call-center-strip p {
  margin: 0;
  max-width: 620px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84) !important;
}

.call-center-strip .call-center-strip__fineprint {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84) !important;
}

.call-center-strip__fineprint-sep {
  opacity: 0.45;
  margin: 0 0.35rem;
}

.call-center-strip .contact-link {
  color: #ffd34d !important;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.call-center-strip .contact-link:hover {
  color: #fff2a8 !important;
}

.call-center-strip .contact-link:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(244, 176, 0, 0.5);
}

.call-center-strip__fineprint a:not(.contact-link) {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

.call-center-strip__fineprint a:not(.contact-link):hover {
  color: #ffffff;
}

.call-center-strip__fineprint a:not(.contact-link):focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(244, 176, 0, 0.45);
}

.call-center-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: flex-end;
}

.btn-call-primary,
.btn-call-secondary,
.btn-call-ai {
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-call-primary {
  background: #f4b000;
  color: #071b33 !important;
  border-color: rgba(7, 27, 51, 0.12);
  box-shadow: 0 12px 28px rgba(244, 176, 0, 0.24);
}

.btn-call-primary:hover {
  transform: translateY(-2px);
  transition: all 0.2s ease;
  filter: brightness(1.03);
  box-shadow: 0 14px 30px rgba(244, 176, 0, 0.28);
}

.btn-call-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-call-secondary:hover {
  transform: translateY(-2px);
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-call-ai {
  background: #ffffff;
  color: #071b33 !important;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn-call-ai:hover {
  transform: translateY(-2px);
  transition: all 0.2s ease;
  background: #f8fafc;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.btn-call-primary:focus-visible,
.btn-call-secondary:focus-visible,
.btn-call-ai:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(244, 176, 0, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 900px) {
  .call-center-content {
    flex-direction: column;
    align-items: stretch;
  }

  .call-center-actions {
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
  }

  .btn-call-primary,
  .btn-call-secondary,
  .btn-call-ai {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}

/* Reforço: enterprise.css carrega por último na base — garante contraste mesmo com outros !important na home */
body.home-page .home-main .call-center-strip-wrap .call-center-strip h2,
body.home-page .home-main .call-center-strip-wrap .call-center-strip p,
body.home-page .home-main .call-center-strip-wrap .call-center-strip .eyebrow {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

body.home-page .home-main .call-center-strip-wrap .call-center-strip h2 {
  color: #ffffff !important;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

body.home-page .home-main .call-center-strip-wrap .call-center-strip p {
  color: rgba(255, 255, 255, 0.84) !important;
}

body.home-page .home-main .call-center-strip-wrap .call-center-strip .eyebrow {
  color: #f4b000 !important;
}

body.home-page .home-main .call-center-strip-wrap .call-center-strip .contact-link {
  color: #ffd34d !important;
  font-weight: 800;
}
