/* ACELC – custom styles (complementam o Tailwind via CDN) */
:root {
  --primary: #D61F26;
  --primary-dark: #b51a20;
  --primary-soft: #fbe9ea;
  --ink: #111111;
  --muted: #444444;
  --bg: #FFFFFF;
  --surface: #F8F8F8;
  --line: #EFEFEF;
  --whatsapp: #25D366;
  --radius: 1rem;
  --shadow-card: 0 10px 30px -12px rgba(0, 0, 0, .08);
  --shadow-cta: 0 12px 28px -10px rgba(214, 31, 38, .4);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Exo 2', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0
}

p {
  margin: 0
}

.container-page {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease
}

.site-header.scrolled {
  background: #fff;
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .25)
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--ink);
  transition: color .2s ease;
  padding: .25rem 0
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--primary);
  transition: width .25s ease
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary)
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--primary);
  color: #fff;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow-cta);
  transition: transform .2s ease, background-color .2s ease;
  border: 0;
  cursor: pointer
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--primary-dark)
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s ease, transform .2s ease;
  background: transparent;
  border: 0;
  cursor: pointer
}

.btn-ghost:hover {
  color: var(--primary);
  transform: translateY(-1px)
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #fff;
  color: var(--primary);
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .25);
  transition: transform .2s ease
}

.btn-white:hover {
  transform: translateY(-2px)
}

.btn-saiba {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--primary);
  color: #fff;
  padding: .55rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-cta);
  transition: transform .2s ease, background-color .2s ease
}

.btn-saiba:hover {
  transform: translateY(-2px);
  background: var(--primary-dark)
}

/* Cards */
.card-soft {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease
}

.card-soft:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .14)
}

.icon-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  flex: none
}

.icon-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: .6rem;
  background: var(--primary);
  color: #fff
}

/* Solution cards (8 grid like reference) */
.sol-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, .12);
  display: flex;
  flex-direction: column;
  gap: .85rem;
  transition: transform .25s ease, box-shadow .25s ease
}

.sol-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .18)
}

.sol-card h3 {
  font-size: 1.15rem
}

.sol-card p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
  flex: 1
}

.bgpageSeguro {
  position: absolute;
  object-fit: cover;
}

@media (max-width: 768px) {
  .bgpageSeguro {
    height: 100%;
    opacity: .08
  }
}

/* Hero with contained side image (saúde / odonto) */
.page-hero--with-image {
  overflow: hidden;
}

.hero-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  max-height: 420px;
  width: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .hero-image {
    max-height: 240px
  }
}

/* Page hero (interna) */
.page-hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  /* background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); */
  /* border-bottom: 1px solid var(--line) */
}

.page-hero .crumb {
  font-size: .85rem;
  color: var(--muted)
}

.page-hero h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-top: .5rem
}

.page-hero h1 span {
  color: var(--primary)
}

.page-hero p {
  margin-top: .9rem;
  color: var(--muted);
  max-width: 720px
}

/* Detail block */
.detail-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center
}

.detail-block.reverse>div:first-child {
  order: 2
}

.detail-block .copy h2 {
  font-size: clamp(1.6rem, 2.4vw, 2rem)
}

.detail-block .copy h2 span {
  color: var(--primary)
}

.detail-block .copy p {
  color: var(--muted);
  margin-top: .9rem;
  line-height: 1.65
}

.detail-block ul.feat {
  margin-top: 1.1rem;
  display: grid;
  gap: .55rem
}

.detail-block ul.feat li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  color: var(--ink);
  font-size: .95rem
}

.detail-block ul.feat li svg {
  flex: none;
  color: var(--primary);
  margin-top: .15rem
}

.detail-img {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .18);
  aspect-ratio: 4/3;
  background: var(--surface)
}

.detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

/* Hero red blob shape */
.hero-blob {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(60% 60% at 70% 45%, #D61F26 0%, #D61F26 55%, transparent 60%);
  pointer-events: none
}

/* Stats card */
.stats-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .15);
  padding: 1.25rem 1.5rem
}

/* Reveal */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform
}

.fade-up.in {
  opacity: 1;
  transform: none
}

/* Swiper overrides */
.client-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: var(--shadow-card)
}

.client-slide img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(15%)
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary) !important;
  background: #fff;
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px;
  box-shadow: var(--shadow-card)
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px !important;
  font-weight: 700
}

.swiper-pagination-bullet-active {
  background: var(--primary) !important
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .35);
  transition: transform .2s ease
}

.wa-float:hover {
  transform: translateY(-2px) scale(1.04)
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line)
}

.footer-link {
  color: var(--muted);
  transition: color .2s ease
}

.footer-link:hover {
  color: var(--primary)
}

/* Responsive helpers */
@media (max-width: 900px) {
  .detail-block {
    grid-template-columns: 1fr
  }

  .detail-block.reverse>div:first-child {
    order: 0
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr !important
  }

  .hero-visual {
    order: -1
  }
}

/* Solutions switch */
.sol-switch {
  position: relative;
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem;
  box-shadow: var(--shadow-card)
}

.sol-switch-btn {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: .92rem;
  color: var(--muted);
  padding: .65rem 1.5rem;
  border-radius: 999px;
  transition: color .25s ease
}

.sol-switch-btn.active {
  color: #fff
}

.sol-switch-thumb {
  position: absolute;
  top: .3rem;
  bottom: .3rem;
  left: .3rem;
  width: calc(50% - .3rem);
  background: var(--primary);
  border-radius: 999px;
  box-shadow: var(--shadow-cta);
  transition: transform .3s ease;
  z-index: 1
}

.sol-switch[data-active="seguros"] .sol-switch-thumb {
  transform: translateX(100%)
}

.sol-card[hidden] {
  display: none !important
}

/* Page loader */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.25rem;
  transition: opacity .4s ease, visibility .4s ease
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none
}

#page-loader .pl-logo {
  width: 120px;
  height: auto;
  animation: pl-pulse 1.6s ease-in-out infinite
}

#page-loader .pl-spinner {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 4px solid var(--primary-soft);
  border-top-color: var(--primary);
  animation: pl-spin .9s linear infinite
}

@keyframes pl-spin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes pl-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .7;
    transform: scale(.96)
  }
}