/* Sistema visual da experiência pública RNR Care. Inspirado em interfaces claras e simples. */
:root {
  --refresh-ink: #122743;
  --refresh-muted: #5f7188;
  --refresh-blue: #2876f6;
  --refresh-line: #e2eaf3;
  --refresh-paper: #f6f9fd;
}

html { scroll-behavior: smooth; }
body { color: var(--refresh-ink); background-color: var(--refresh-paper); }

.site-header,
header.top {
  position: sticky;
  top: 0;
  z-index: 30;
  color: var(--refresh-ink);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--refresh-line);
  box-shadow: 0 5px 20px rgba(9, 35, 72, .035);
  backdrop-filter: blur(16px);
}

.site-header .nav,
header.top .nav {
  min-height: 76px;
  height: auto;
  gap: 22px;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand .brand-original {
  display: block;
  width: 196px;
  height: 58px;
  max-width: min(34vw, 196px);
  padding: 5px 9px;
  border: 1px solid #edf1f6;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}
.brand-copy { display: none !important; }
.nav-links,
.navlinks {
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  color: #40536d;
  font-size: 13px;
  font-weight: 680;
}
.nav-links a,
.navlinks a { color: inherit; transition: color .18s ease; }
.nav-links a:hover,
.navlinks a:hover { color: var(--refresh-blue); }

.site-header .button-outline {
  color: #17314f;
  border-color: #dce5ef;
  background: #fff;
}
.site-header .button-primary,
header.top .btn {
  color: #fff;
  border: 1px solid transparent;
  border-radius: 14px;
  background: linear-gradient(110deg, #2876f6, #5055ee);
  box-shadow: 0 9px 22px rgba(40, 118, 246, .2);
}
.menu-toggle {
  color: #17314f;
  border-color: #dce5ef;
  background: #fff;
}

.hero-audience-card {
  position: relative;
  min-height: 168px;
  padding: 19px 17px 17px 76px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .075);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .09);
}
.hero-audience-card:first-child {
  border-color: rgba(112, 219, 204, .5);
  background: rgba(14, 53, 68, .8);
}
.hero-audience-icon {
  position: absolute;
  top: 18px;
  left: 17px;
  display: grid !important;
  width: 44px;
  height: 44px;
  margin: 0 !important;
  padding: 0 !important;
  place-items: center;
  border: 1px solid rgba(34, 211, 214, .32);
  border-radius: 14px;
  background: rgba(40, 118, 246, .18);
  color: #64e9df !important;
}
.hero-audience-icon svg { width: 23px; height: 23px; }
.hero-audience-card strong { font-size: 16px; }
.hero-audience-card b { margin-top: 12px; }

.hero:not(#inicio) {
  background-color: #071426;
  background-image:
    url("/images/tech-circuit-hero.svg"),
    radial-gradient(ellipse at 82% 8%, rgba(34, 211, 214, .18), transparent 38%),
    linear-gradient(135deg, #071426, #0b1d36 60%, #102a45);
  background-size: cover, auto, auto;
  background-position: center, center, center;
  background-repeat: no-repeat;
  color: #fff;
}

.section-heading h2,
.section-title h2 { color: var(--refresh-ink); }
.section-heading p,
.section-title p,
.section p,
.content p { text-wrap: pretty; }
.section:not(.section-dark),
.content { background-color: transparent; }

.info-card,
.service-card,
.how-card,
.faq-item,
.local-card,
.card,
.photo-band,
.contact-card {
  border-color: var(--refresh-line);
  border-radius: 20px;
  box-shadow: 0 8px 26px rgba(9, 35, 72, .055);
}
.info-card,
.service-card,
.how-card,
.faq-item,
.local-card,
.card,
.photo-band,
.contact-card { background-color: #fff; }
.faq-item summary { cursor: pointer; }
.kicker,
.eyebrow:not(.hero .eyebrow) { color: #276cdb; }

.site-footer,
footer.foot {
  color: #b9c9da;
  background-color: #071426;
}
.site-footer .brand .brand-original,
footer.foot .brand .brand-original { box-shadow: 0 8px 24px rgba(0, 0, 0, .16); }

@media (max-width: 760px) {
  .site-header .nav,
  header.top .nav { min-height: 68px; gap: 10px; }
  .brand .brand-original { width: 166px; height: 50px; max-width: 44vw; padding: 4px 7px; }
  .hero-audience-card { min-height: 0; padding-left: 69px; }
  .hero-audience-icon { left: 14px; width: 42px; height: 42px; }
  .site-header .nav-actions { gap: 7px; }
  .site-header .nav-actions .button { min-height: 42px; padding-inline: 12px; font-size: 12px; }
  header.top .navlinks { gap: 10px; }
}

/* Pequenos acentos de cor por assunto, mantendo a paleta RNR Care. */
.hero-audience-card:first-child .hero-audience-icon,
.path-card:first-child .icon {
  color: #13877d;
  border-color: #d1eee7;
  background: #e8f7f3;
}
.hero-audience-card:nth-child(2) .hero-audience-icon,
.path-card:nth-child(2) .icon {
  color: #2876f6;
  border-color: #d8e7ff;
  background: #eaf3ff;
}

.problem:nth-child(1) .icon,
.service-card:nth-child(4n + 1) .service-icon,
.info-card:nth-child(4n + 1) .icon-box {
  color: #a96b16;
  border-color: #f1dfbd;
  background: #fff4df;
}
.problem:nth-child(2) .icon,
.service-card:nth-child(4n + 2) .service-icon,
.info-card:nth-child(4n + 2) .icon-box {
  color: #b45b61;
  border-color: #f0d7d9;
  background: #fbeced;
}
.problem:nth-child(3) .icon,
.service-card:nth-child(4n + 3) .service-icon,
.info-card:nth-child(4n + 3) .icon-box {
  color: #13877d;
  border-color: #d1eee7;
  background: #e8f7f3;
}
.problem:nth-child(4) .icon,
.service-card:nth-child(4n + 4) .service-icon,
.info-card:nth-child(4n + 4) .icon-box {
  color: #7257b7;
  border-color: #e2daf5;
  background: #f2eefb;
}

.step:nth-child(3n + 1) .number,
.how-card:nth-child(3n + 1) b { color: #2876f6; background: #eaf3ff; }
.step:nth-child(3n + 2) .number,
.how-card:nth-child(3n + 2) b { color: #13877d; background: #e8f7f3; }
.step:nth-child(3n + 3) .number,
.how-card:nth-child(3n + 3) b { color: #568b3d; background: #eff6e8; }

.card:nth-child(3n + 1) .num { color: #2876f6; }
.card:nth-child(3n + 2) .num { color: #13877d; }
.card:nth-child(3n + 3) .num { color: #7257b7; }

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  background: #1fb96c;
  color: #fff;
  box-shadow: 0 9px 24px rgba(14, 132, 77, .24);
  animation: whatsapp-pulse 2.8s ease-out infinite;
}
.whatsapp-float::before {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(31, 185, 108, .42);
  border-radius: inherit;
  content: "";
  pointer-events: none;
  animation: whatsapp-ring 2.8s ease-out infinite;
}
.whatsapp-float svg { display: block; width: 27px; height: 27px; }
.whatsapp-float:hover { color: #fff; transform: translateY(-2px); }
@keyframes whatsapp-pulse {
  0%, 72%, 100% { box-shadow: 0 9px 24px rgba(14, 132, 77, .24), 0 0 0 0 rgba(31, 185, 108, 0); }
  84% { box-shadow: 0 9px 24px rgba(14, 132, 77, .24), 0 0 0 8px rgba(31, 185, 108, .12); }
}
@keyframes whatsapp-ring {
  0%, 72% { transform: scale(.94); opacity: 0; }
  82% { opacity: .55; }
  100% { transform: scale(1.18); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float, .whatsapp-float::before { animation: none; }
}
@media (max-width: 760px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
