/* =============================================================
   BOX EXPRESS | SERVICOS V2.2
   Carregar DEPOIS de css/style.css.
   Isolado na secao .services-accordion-section.
   Compativel com o HTML e JS atuais de service.php (Fase 1).
   ============================================================= */

.services-accordion-section {
  --sv-blue: #1b3563;
  --sv-yellow: #f3cc1f;
  --sv-ink: #183358;
  --sv-radius: 22px;
  position: relative;
  overflow: visible;
  padding-bottom: clamp(1rem, 3vw, 2.5rem);
}
.services-accordion-section .services-label {
  display: inline-block;
  color: #836300;
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: .13em;
}
.services-accordion-section .services-title {
  color: var(--sv-blue);
  font-size: clamp(1.75rem, 3.3vw, 2.8rem);
  line-height: 1.18;
  margin-top: .65rem;
}
.services-accordion-section .services-subtitle {
  color: #425777;
  max-width: 780px;
  font-size: clamp(.96rem, 1.15vw, 1.06rem);
  line-height: 1.75;
}

/* Desktop: seis painéis, apenas um expandido */
.services-accordion-section .services-accordion {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: clamp(9px, 1.05vw, 16px);
  height: clamp(480px, 38vw, 520px);
  overflow: visible;
}
.services-accordion-section .service-panel {
  position: relative;
  isolation: isolate;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  border: 1px solid rgba(27, 53, 99, .12);
  border-radius: var(--sv-radius);
  background: #132947;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 7px 22px rgba(27, 53, 99, .10);
  transition: flex-grow .5s cubic-bezier(.2,.75,.2,1), box-shadow .3s ease;
}
.services-accordion-section .service-panel.active {
  flex-grow: 5.8;
  border-color: rgba(27, 53, 99, .14);
  box-shadow: 0 14px 36px rgba(27, 53, 99, .16);
}
.services-accordion-section .service-panel img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  filter: brightness(.92);
  transition: transform .6s ease, filter .3s ease;
}
.services-accordion-section .service-panel.active img {
  transform: scale(1.025);
  filter: brightness(1);
}
.services-accordion-section .service-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(7, 19, 40, .91) 0%, rgba(7,19,40,.68) 28%, rgba(7,19,40,.18) 70%, rgba(7,19,40,.08) 100%);
}
.services-accordion-section .service-panel:not(.active) .service-overlay {
  background: linear-gradient(90deg, rgba(7,19,40,.68), rgba(7,19,40,.32));
}
.services-accordion-section .service-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(22px, 3vw, 42px);
  color: #fff;
  text-align: left;
}
.services-accordion-section .service-number {
  flex: 0 0 auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border: 1px solid rgba(243,204,31,.6);
  border-radius: 50%;
  background: rgba(27,53,99,.78);
  color: #ffdf56;
  font-size: .9rem;
  font-weight: 800;
}
.services-accordion-section .service-content h3 {
  max-width: 540px;
  color: #fff;
  font-size: clamp(1.3rem, 2.1vw, 1.95rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 15px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.services-accordion-section .service-content p {
  max-width: 530px;
  color: #fff;
  font-size: .96rem;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}
.services-accordion-section .service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  width: auto;
  padding: 14px 22px;
  background: #ffcf2c;
  border: 1px solid #e9b600;
  border-radius: 9px;
  color: #172e53;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(12px);
  transition: background .2s ease, opacity .25s ease, transform .25s ease;
}
.services-accordion-section .service-btn:hover,
.services-accordion-section .service-btn:focus-visible {
  background: #ffe077;
  color: #172e53;
}
.services-accordion-section .service-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.services-accordion-section .service-panel.active .service-content p,
.services-accordion-section .service-panel.active .service-btn {
  opacity: 1;
  transform: translateY(0);
}
.services-accordion-section .service-panel:not(.active) .service-content {
  justify-content: center;
  align-items: center;
  padding: 12px 5px;
}
.services-accordion-section .service-panel:not(.active) .service-number {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
}
.services-accordion-section .service-panel:not(.active) h3 {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0;
  max-height: calc(100% - 70px);
  max-width: none;
  font-size: clamp(.9rem, 1.2vw, 1.18rem);
  letter-spacing: .04em;
  line-height: 1.15;
  text-align: center;
  overflow: hidden;
}
.services-accordion-section .service-panel:not(.active) p,
.services-accordion-section .service-panel:not(.active) .service-btn {
  display: none;
}

/* Tablet e mobile: cartões completos, sem títulos verticais.
   O JS de hover atual deixa de ser necessário visualmente aqui. */
@media (max-width: 991.98px) {
  .services-accordion-section .services-accordion {
    flex-direction: column;
    height: auto;
    gap: 18px;
  }
  .services-accordion-section .service-panel,
  .services-accordion-section .service-panel.active {
    flex: none;
    width: 100%;
    min-height: 390px;
    height: auto;
    box-shadow: 0 8px 24px rgba(27,53,99,.12);
  }
  .services-accordion-section .service-panel img,
  .services-accordion-section .service-panel.active img {
    transform: none;
  }
  .services-accordion-section .service-panel:not(.active) .service-overlay {
    background: linear-gradient(0deg, rgba(7,19,40,.90), rgba(7,19,40,.45) 45%, rgba(7,19,40,.06));
  }
  .services-accordion-section .service-content,
  .services-accordion-section .service-panel:not(.active) .service-content {
    position: relative;
    min-height: 390px;
    padding: 28px;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
  }
  .services-accordion-section .service-panel:not(.active) .service-number {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }
  .services-accordion-section .service-content h3,
  .services-accordion-section .service-panel:not(.active) h3 {
    writing-mode: horizontal-tb;
    transform: none;
    max-width: 100%;
    max-height: none;
    overflow: visible;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin: 0 0 14px;
    text-align: left;
  }
  .services-accordion-section .service-panel .service-content p,
  .services-accordion-section .service-panel:not(.active) p {
    display: block;
    opacity: 1;
    transform: none;
    margin-bottom: 18px;
    font-size: .95rem;
  }
  .services-accordion-section .service-panel .service-btn,
  .services-accordion-section .service-panel:not(.active) .service-btn {
    display: inline-flex;
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 575.98px) {
  .services-accordion-section .service-panel,
  .services-accordion-section .service-panel.active,
  .services-accordion-section .service-content,
  .services-accordion-section .service-panel:not(.active) .service-content {
    min-height: 410px;
  }
  .services-accordion-section .service-content,
  .services-accordion-section .service-panel:not(.active) .service-content {
    padding: 24px 20px;
  }
  .services-accordion-section .service-number { width: 43px; height: 43px; }
  .services-accordion-section .service-btn { padding: 13px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .services-accordion-section .service-panel,
  .services-accordion-section .service-panel img,
  .services-accordion-section .service-content p,
  .services-accordion-section .service-btn {
    transition: none !important;
  }
}

/* V2.2 — largura de leitura e proporção no desktop */
@media (min-width: 992px) {
  .services-accordion-section > .container {
    width: min(1200px, calc(100vw - 72px));
    max-width: none;
    margin-left: 50%;
    margin-right: 0;
    transform: translateX(-50%);
  }
  .services-accordion-section .services-accordion {
    width: 100%;
  }
  .services-accordion-section .service-panel.active {
    flex-grow: 6.3;
  }
}

/* ==========================================================
   BOX EXPRESS | SERVIÇOS V2.3 — CTA FINAL
   Isolado da navegação, do rodapé e dos restantes componentes.
   ========================================================== */
.service-final-cta {
  position: relative;
  padding: clamp(32px, 5vw, 80px) 16px clamp(72px, 7vw, 112px);
}
.service-final-cta .container {
  max-width: 1200px;
  margin-inline: auto;
}
.service-final-cta__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(27,53,99,.11);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 64px rgba(27,53,99,.10), 0 4px 12px rgba(27,53,99,.04);
}
.service-final-cta__card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #f3cc1f;
}
.service-final-cta__card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 460px;
  height: 460px;
  right: -160px;
  top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,204,31,.15), rgba(243,204,31,0) 70%);
  pointer-events: none;
}
.service-final-cta__body {
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(34px, 5.2vw, 72px) clamp(24px, 5.4vw, 76px);
  text-align: center;
}
.service-final-cta__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #846600;
  font-family: var(--font-primary, 'Quicksand', sans-serif);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}
.service-final-cta__body h2 {
  margin: 0 auto 18px;
  max-width: 780px;
  color: #1b3563;
  font-family: var(--font-primary, 'Quicksand', sans-serif);
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  line-height: 1.22;
  font-weight: 700;
}
.service-final-cta__body > p {
  max-width: 700px;
  margin: 0 auto 28px;
  color: #465773;
  font-family: var(--font-secondary, 'Open Sans', sans-serif);
  font-size: clamp(.98rem, 1.35vw, 1.08rem);
  font-weight: 400;
  line-height: 1.8;
}
.service-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 30px;
}
.service-final-cta__actions a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 9px;
  font-family: var(--font-primary, 'Quicksand', sans-serif);
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.service-final-cta__primary {
  border: 2px solid #f3cc1f;
  background: #f3cc1f;
  color: #1b3563;
  box-shadow: 0 8px 20px rgba(243,204,31,.24);
}
.service-final-cta__primary:hover {
  background: #1b3563;
  border-color: #1b3563;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(27,53,99,.20);
}
.service-final-cta__secondary {
  border: 2px solid rgba(27,53,99,.18);
  background: #fff;
  color: #1b3563;
}
.service-final-cta__secondary:hover {
  border-color: #1b3563;
  background: #f3f7fd;
  color: #1b3563;
  transform: translateY(-2px);
}
.service-final-cta__actions a:focus-visible {
  outline: 3px solid #145a9c;
  outline-offset: 4px;
}
.service-final-cta__benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(27,53,99,.10);
}
.service-final-cta__benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #344967;
  font-family: var(--font-secondary, 'Open Sans', sans-serif);
  font-size: .87rem;
  font-weight: 600;
  line-height: 1.5;
}
.service-final-cta__benefits i { color: #21845a; font-size: 1rem; }
@media (max-width: 767.98px) {
  .service-final-cta { padding: 22px 12px 68px; }
  .service-final-cta__card { border-radius: 16px; }
  .service-final-cta__body { padding: 38px 22px; }
  .service-final-cta__actions { flex-direction: column; align-items: stretch; }
  .service-final-cta__actions a { width: 100%; }
  .service-final-cta__benefits { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-final-cta__actions a { transition: none; }
  .service-final-cta__actions a:hover { transform: none; }
}


/* ==========================================================
   BOX EXPRESS | SERVIÇOS V2.4 — CTA COM FOTOGRAFIA WEBP
   ========================================================== */
@media (min-width: 992px) {
  .service-final-cta__card {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    align-items: stretch;
    min-height: 420px;
  }
  .service-final-cta__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    padding: clamp(30px, 3.4vw, 54px);
    text-align: left;
  }
  .service-final-cta__body h2,
  .service-final-cta__body > p {
    margin-left: 0;
    margin-right: 0;
  }
  .service-final-cta__actions,
  .service-final-cta__benefits {
    justify-content: flex-start;
  }
  .service-final-cta__benefits {
    gap: 10px 18px;
  }
}
.service-final-cta__visual {
  position: relative;
  min-width: 0;
  min-height: 270px;
  overflow: hidden;
  background: #1b3563;
}
.service-final-cta__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 991.98px) {
  .service-final-cta__visual {
    height: clamp(230px, 42vw, 380px);
  }
}
@media (max-width: 575.98px) {
  .service-final-cta__visual {
    height: 230px;
  }
}