.rule-electric { height: 3px; width: 56px; background: #146CFF; display: block; }

/* ── Buttons ── */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #146CFF; color: #fff; text-transform: uppercase; font-weight: 700;
  letter-spacing: 0.04em; font-size: 0.875rem; padding: 0.875rem 1.5rem;
  border-radius: 4px; position: relative; overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, filter 0.2s;
}
.btn-cta::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.55s ease;
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20, 108, 255, 0.4); filter: brightness(1.08); }
.btn-cta:hover::before { transform: translateX(120%); }
.btn-cta:active { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(20, 108, 255, 0.3); }
.btn-cta svg { transition: transform 0.25s ease; }
.btn-cta:hover svg { transform: translateX(4px); }

.btn-ghost-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: transparent; color: #fff; text-transform: uppercase; font-weight: 700;
  letter-spacing: 0.04em; font-size: 0.875rem; padding: 0.875rem 1.5rem;
  border: 2px solid rgba(255,255,255,0.4); border-radius: 4px; position: relative; overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn-ghost-light::before {
  content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.06);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.btn-ghost-light:hover::before { transform: scaleX(1); }
.btn-ghost-light:active { transform: translateY(-1px); }
.btn-ghost-light svg { transition: transform 0.25s ease; }
.btn-ghost-light:hover svg { transform: translateX(4px); }

.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #25D366; color: #fff; text-transform: uppercase; font-weight: 700;
  letter-spacing: 0.04em; font-size: 0.875rem; padding: 0.875rem 1.5rem;
  border-radius: 4px; position: relative; overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s, filter 0.2s;
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4); filter: brightness(1.1); }
.btn-whatsapp:active { transform: translateY(-1px); }

.container-page { width:100%; margin-inline:auto; max-width:1280px; padding-inline:1rem; }
@media (min-width:768px) { .container-page { padding-inline:2rem; } }
body { font-family: 'Barlow', system-ui, sans-serif; }

/* ── Header fixo — fallback caso Tailwind não carregue ── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
#site-header-spacer {
  height: var(--site-header-height, 7.25rem);
  flex-shrink: 0;
}
@media (min-width: 768px) {
  #site-header-spacer { height: var(--site-header-height, 9.5rem); }
}
html { scroll-padding-top: var(--site-header-height, 7.25rem); }
.font-display { font-family: 'Barlow', system-ui, sans-serif; font-weight: 800; letter-spacing: 0.02em; }

.heading-h2 {
  font-family: 'Barlow', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 2.25rem;
  line-height: 1.2;
  color: #0D1E6B;
}
.heading-h2--light { color: #fff; }

.barlow-thin { font-family: "Barlow", sans-serif; font-weight: 100; font-style: normal; }
.barlow-extralight { font-family: "Barlow", sans-serif; font-weight: 200; font-style: normal; }
.barlow-light { font-family: "Barlow", sans-serif; font-weight: 300; font-style: normal; }
.barlow-regular { font-family: "Barlow", sans-serif; font-weight: 400; font-style: normal; }
.barlow-medium { font-family: "Barlow", sans-serif; font-weight: 500; font-style: normal; }
.barlow-semibold { font-family: "Barlow", sans-serif; font-weight: 600; font-style: normal; }
.barlow-bold { font-family: "Barlow", sans-serif; font-weight: 700; font-style: normal; }
.barlow-extrabold { font-family: "Barlow", sans-serif; font-weight: 800; font-style: normal; }
.barlow-black { font-family: "Barlow", sans-serif; font-weight: 900; font-style: normal; }
.barlow-thin-italic { font-family: "Barlow", sans-serif; font-weight: 100; font-style: italic; }
.barlow-extralight-italic { font-family: "Barlow", sans-serif; font-weight: 200; font-style: italic; }
.barlow-light-italic { font-family: "Barlow", sans-serif; font-weight: 300; font-style: italic; }
.barlow-regular-italic { font-family: "Barlow", sans-serif; font-weight: 400; font-style: italic; }
.barlow-medium-italic { font-family: "Barlow", sans-serif; font-weight: 500; font-style: italic; }
.barlow-semibold-italic { font-family: "Barlow", sans-serif; font-weight: 600; font-style: italic; }
.barlow-bold-italic { font-family: "Barlow", sans-serif; font-weight: 700; font-style: italic; }
.barlow-extrabold-italic { font-family: "Barlow", sans-serif; font-weight: 800; font-style: italic; }
.barlow-black-italic { font-family: "Barlow", sans-serif; font-weight: 900; font-style: italic; }
.nav-dropdown { display:none; position:absolute; top:100%; left:0; background:#fff; border:1px solid #e5e7eb; border-top:3px solid #146CFF; min-width:220px; box-shadow:0 8px 24px rgba(0,0,0,0.12); z-index:50; }
.nav-dropdown-parent:hover .nav-dropdown { display:block; }
/* ── Scrollbar hide utility ── */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ── Category sub-nav ── */
.category-subnav { overflow: visible; position: relative; z-index: 40; }
.category-subnav__track { overflow-x: auto; overflow-y: hidden; }
.category-subnav__list { display: flex; align-items: stretch; min-width: max-content; }
.category-subnav__trigger { border-top: 2px solid transparent; }
.cat-dropdown-parent { position: relative; }
.cat-dropdown-parent:hover,
.cat-dropdown-parent.is-open { z-index: 70; }
.cat-dropdown-parent:hover .category-subnav__trigger,
.cat-dropdown-parent--active .category-subnav__trigger,
.cat-dropdown-parent.is-open .category-subnav__trigger { background: rgba(20, 108, 255, 0.25); border-top-color: #146CFF; }
.cat-dropdown-parent.is-open .cat-dropdown-chevron { transform: rotate(180deg); }
.cat-dropdown { display: none; position: absolute; top: 100%; left: 0; background: #0D1E6B; min-width: 260px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); z-index: 80; border-top: 2px solid #146CFF; }
.cat-dropdown-parent:hover .cat-dropdown,
.cat-dropdown-parent.is-open .cat-dropdown { display: block; }
.cat-dropdown__link { border-bottom: 1px solid rgba(255,255,255,0.08); white-space: nowrap; }
.cat-dropdown__link:last-child { border-bottom: none; }
.subcategory-pills-sticky { top: var(--site-header-height, 7.25rem); }

@media (min-width: 1024px) {
  .category-subnav__track { overflow: visible; }
  #sticky-header { overflow: visible; }
}

@media (max-width: 1023px) {
  .cat-dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    min-width: 100%;
  }
  .cat-dropdown__link { padding-left: 1.5rem; background: rgba(0,0,0,0.15); }
}
.form-input { width:100%; border:1px solid #d1d5db; border-radius:4px; padding:0.625rem 0.875rem; font-size:0.875rem; color:#1A1A2E; transition:border-color .2s; outline:none; }
.form-input:focus { border-color:#146CFF; }
.form-label { display:block; font-size:0.8125rem; font-weight:600; color:#1A1A2E; margin-bottom:0.375rem; text-transform:uppercase; letter-spacing:0.04em; }
.thumb-active { border-color: #146CFF; }

/* ── Image hover ── */
.img-hover { overflow: hidden; }
.img-hover > img,
.img-hover img.img-hover-target {
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
  will-change: transform;
}
.img-hover:hover > img,
.img-hover:hover img.img-hover-target,
.group:hover .img-hover img.img-hover-target {
  transform: scale(1.08);
  filter: brightness(1.06);
}

/* ── Scroll reveal (initial state set by JS) ── */
[data-reveal] { will-change: transform, opacity; }

/* ── Typewriter hero ── */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: #146CFF;
  margin-left: 4px;
  vertical-align: baseline;
  animation: cursor-blink 0.8s step-end infinite;
}
.typewriter-cursor.is-done { animation: cursor-blink 1.2s step-end infinite; }
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Seção Soluções (full-width strip) ── */
.solucoes-section__intro {
  clip-path: polygon(0 0, 100% 0, calc(100% - 4rem) 100%, 0 100%);
}

.solucoes-section__cards .solucao-strip {
  flex: 1;
  min-height: 28rem;
  transition: flex 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.solucoes-section__cards:hover .solucao-strip {
  flex: 0.75;
}

.solucoes-section__cards .solucao-strip:hover {
  flex: 2.8;
}

.solucao-strip__img {
  filter: grayscale(100%) brightness(1.35);
  transition: filter 0.55s ease, transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.solucao-strip__overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0.35) 100%);
}

.solucao-strip:hover .solucao-strip__img {
  transform: scale(1.06);
}

.solucao-strip:hover .solucao-strip__overlay {
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.15) 0%, rgba(26, 26, 46, 0.55) 50%, rgba(26, 26, 46, 0.92) 100%);
}

.solucao-strip__content {
  justify-content: center;
}

.solucao-strip__title {
  color: #1A1A2E;
  text-align: center;
}

.solucao-strip__details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.45s ease;
}

.solucao-strip:hover .solucao-strip__content {
  justify-content: flex-end;
}

.solucao-strip:hover .solucao-strip__title {
  color: #fff;
  text-align: left;
}

.solucao-strip:hover .solucao-strip__details {
  max-height: 12rem;
  opacity: 1;
}



@media (prefers-reduced-motion: reduce) {
  .solucoes-section__cards .solucao-strip,
  .solucao-strip__img,
  .solucao-strip__overlay,
  .solucao-strip__details {
    transition: none;
  }
  .solucoes-section__cards:hover .solucao-strip,
  .solucoes-section__cards .solucao-strip:hover {
    flex: 1;
  }
  .solucao-strip:hover .solucao-strip__img {
    transform: none;
  }
}

/* ── Hero carousel ── */
.hero-carousel__content {
  display: grid;
  width: 100%;
}

.hero-carousel__panel {
  grid-area: 1 / 1;
  width: 100%;
  align-self: start;
}

.hero-carousel__panel [data-hero-reveal] {
  opacity: 0;
}

.hero-carousel__dot {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero-carousel__panel {
    align-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel__slide,
  .hero-carousel__panel {
    transition: none !important;
  }
  .hero-carousel__panel [data-hero-reveal] {
    opacity: 1 !important;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .scroll-reveal { opacity: 1 !important; transform: none !important; visibility: visible !important; }
  .img-hover > img, .img-hover img.img-hover-target { transition: none; }
  .btn-cta, .btn-ghost-light, .btn-whatsapp { transition: filter 0.2s; }
  .btn-cta:hover, .btn-ghost-light:hover, .btn-whatsapp:hover { transform: none; }
  .typewriter-cursor { display: none; }
}


.heading-h2 {
  font-family: 'Barlow', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 2.25rem;      /* antes variava entre 2xl, 3xl, 4xl e 5xl */
  line-height: 1.2;
  color: #0D1E6B;            /* navy */
}
.heading-h2--light { color: #fff; }  /* fundos escuros */

/* ── Search overlay ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.search-open { overflow: hidden; }

#sticky-header.search-active {
  z-index: 70;
}

.search-overlay {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  background: #fff;
  border-bottom: 0 solid #146CFF;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-bottom-width 0.25s ease;
}

.search-overlay.is-open {
  grid-template-rows: 1fr;
  border-bottom-width: 3px;
}

.search-overlay__panel {
  min-height: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 40px rgba(13, 30, 107, 0.12);
  opacity: 0;
  transition: opacity 0.3s ease 0.08s;
}

.search-overlay.is-open .search-overlay__panel {
  opacity: 1;
}

.search-overlay__backdrop {
  position: fixed;
  top: var(--site-header-height, 0);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: rgba(13, 30, 107, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-overlay__backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.search-overlay__form {
  max-width: 56rem;
  margin-inline: auto;
}

.search-overlay__field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 2px solid #146CFF;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  transition: box-shadow 0.25s ease;
}

.search-overlay__field:focus-within {
  box-shadow: 0 0 0 4px rgba(20, 108, 255, 0.12);
}

.search-overlay__icon {
  flex-shrink: 0;
  color: #146CFF;
  display: flex;
  align-items: center;
}

.search-overlay__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: #1A1A2E;
  outline: none;
  padding: 0.5rem 0;
}

.search-overlay__input::placeholder {
  color: #9ca3af;
}

.search-overlay__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-overlay__submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background: #146CFF;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.625rem 1.25rem;
  border-radius: 4px;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.search-overlay__submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.search-overlay__submit:active {
  transform: translateY(0);
}

.search-overlay__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 4px;
  color: #6b7280;
  transition: color 0.2s ease, background 0.2s ease;
}

.search-overlay__close:hover {
  color: #1A1A2E;
  background: rgba(26, 26, 46, 0.08);
}

.search-overlay__hint {
  margin-top: 0.625rem;
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
}

.search-overlay__hint kbd {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  font-size: 0.6875rem;
  font-family: inherit;
  background: #e5e7eb;
  border-radius: 3px;
  border: 1px solid #d1d5db;
}

@media (max-width: 639px) {
  .search-overlay__field {
    flex-wrap: wrap;
    padding: 0.625rem;
  }

  .search-overlay__input {
    width: 100%;
    order: 1;
  }

  .search-overlay__icon {
    order: 0;
  }

  .search-overlay__submit {
    order: 2;
    flex: 1;
  }

  .search-overlay__close {
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-overlay,
  .search-overlay__panel,
  .search-overlay__backdrop {
    transition: none;
  }
}

/* ── Subcategory pills — mobile select ── */
.subcategory-select {
  position: relative;
}

.subcategory-select.is-open .subcategory-select__chevron {
  transform: rotate(180deg);
}

.subcategory-select.is-open .subcategory-select__trigger {
  border-color: #146CFF;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.subcategory-select__menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  max-height: min(60vh, 320px);
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(13, 30, 107, 0.12);
}

.subcategory-select.is-open .subcategory-select__menu {
  display: block;
}

.subcategory-select.is-open .subcategory-select__option:first-child {
  border-top: none;
  border-radius: 0;
}

/* ── Nav Links ── */
.nav-link { font-size: 0.875rem; font-weight: 600; color: #1A1A2E; text-transform: uppercase; letter-spacing: 0.04em; transition: color 0.2s; }
.nav-link:hover, .nav-link--active { color: #146CFF; }

/* ── btn-ghost-dark ── */
.btn-ghost-dark { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; background: transparent; color: #1A1A2E; text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; font-size: 0.875rem; padding: 0.875rem 1.5rem; border: 2px solid #d1d5db; border-radius: 4px; transition: border-color 0.2s, color 0.2s; }
.btn-ghost-dark:hover { border-color: #146CFF; color: #146CFF; }

/* ── Prose ── */
.prose h2 { font-size: 1.5rem; font-weight: 800; color: #0D1E6B; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h3 { font-size: 1.25rem; font-weight: 700; color: #0D1E6B; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose p { margin-bottom: 1rem; line-height: 1.75; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.375rem; }
.prose a { color: #146CFF; text-decoration: underline; }
.prose blockquote { border-left: 4px solid #146CFF; padding-left: 1rem; color: #6b7280; margin: 1.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.prose th, .prose td { border: 1px solid #e5e7eb; padding: 0.5rem 0.75rem; font-size: 0.875rem; }
.prose th { background: #F2F4F7; font-weight: 600; }

/* ── Scroll reveal (estado inicial gerenciado pelo GSAP) ── */
.scroll-reveal { visibility: hidden; }
.scroll-reveal.revealed { visibility: visible; }

/* Fallback sem GSAP */
.no-gsap .scroll-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; visibility: visible; }
.no-gsap .scroll-reveal.revealed { opacity: 1; transform: translateY(0); }