/* Home — direção editorial industrial premium */

.page-home {
  --hero-ink: #f4f7fb;
  --hero-muted: rgba(244, 247, 251, 0.72);
}

/* Header da Home: sempre legível (fundo claro + texto escuro) */
.page-home .site-header--hero {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(12, 31, 58, 0.08);
  backdrop-filter: blur(14px);
}

.page-home .site-header--hero .nav-desktop a,
.page-home .site-header--hero .brand-fallback {
  color: var(--navy);
}

.page-home .site-header--hero .nav-desktop a::after {
  background: var(--red);
}

.page-home .site-header--hero .menu-toggle {
  background: var(--white);
  border-color: rgba(12, 31, 58, 0.14);
}

.page-home .site-header--hero .menu-toggle span,
.page-home .site-header--hero .menu-toggle span::before,
.page-home .site-header--hero .menu-toggle span::after {
  background: var(--navy);
}

.page-home .site-header--hero .brand img {
  filter: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.page-home .site-header.is-scrolled .brand img {
  background: transparent;
  padding: 0;
}

/* ========== HERO ========== */
.hero-v2 {
  position: relative;
  /* Proporção próxima da arte (1672×941) evita crop vertical no rosto */
  min-height: clamp(560px, 58vw, 820px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2.25rem) 0 3.75rem;
  overflow: hidden;
  color: var(--hero-ink);
  background: #07111f;
}

.hero-v2__bg {
  position: absolute;
  inset: 0;
  background-color: #07111f;
  background-image: url("/heronovo.webp");
  /*
    Altura da arte sempre completa no eixo Y (rosto sem crop vertical).
    Excesso horizontal ancorado à direita.
  */
  background-size: auto 100%;
  background-position: right top;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero-v2__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 10, 18, 0.94) 0%,
    rgba(7, 14, 24, 0.86) 32%,
    rgba(7, 14, 24, 0.4) 58%,
    rgba(7, 14, 24, 0.12) 100%
  );
}

.hero-v2__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.hero-v2__content {
  max-width: 40rem;
}

.hero-v2__title {
  margin: 0 0 1.15rem;
  font-size: clamp(2.35rem, 3.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 100%;
}

.hero-v2__lead {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--hero-muted);
}

.hero-search {
  max-width: 540px;
  margin-bottom: 0;
}

.hero-search__field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 64px;
  padding: 0.45rem 0.45rem 0.45rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.hero-search__icon {
  flex-shrink: 0;
  color: #5b6775;
}

.hero-search__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 1.02rem;
  color: var(--ink);
  padding: 0.4rem 0;
}

.hero-search__field input::placeholder {
  color: #8a95a3;
}

.hero-search__btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 1.4rem;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.hero-search__btn:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* ========== AUTHORITY ========== */
.authority {
  background: var(--navy-deep);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.authority__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2.75rem 0;
}

.authority__item {
  text-align: left;
  padding-right: 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.authority__item:last-child {
  border-right: 0;
}

.authority__value {
  display: block;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.55rem;
}

.authority__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ========== SHARED EDITORIAL ========== */
.section-editorial {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section-editorial--muted {
  background: #f6f7f9;
}

#destaques.section-editorial {
  padding: clamp(3.25rem, 6vw, 4.5rem) 0;
}

.section-editorial__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-editorial__head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--navy);
}

#destaques .section-editorial__head {
  margin-bottom: 1.75rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid rgba(12, 31, 58, 0.25);
  padding-bottom: 0.15rem;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.text-link:hover {
  gap: 0.65rem;
  color: var(--red);
  border-color: var(--red);
}

.btn-lg {
  min-height: 54px;
  padding-inline: 1.75rem;
  font-size: 0.88rem;
}

/* ========== CATEGORIES STRIP (~150px) ========== */
.cat-strip {
  background: #fbfcfd;
  border-bottom: 1px solid rgba(12, 31, 58, 0.08);
  min-height: 148px;
  max-height: 160px;
  display: flex;
  align-items: center;
}

.cat-strip__inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  padding: 1rem 0 1.1rem;
  display: grid;
  gap: 0.7rem;
}

.cat-strip__label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.cat-strip__track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid rgba(12, 31, 58, 0.1);
}

.cat-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 68px;
  padding: 0.55rem 1rem;
  border: 0;
  border-right: 1px solid rgba(12, 31, 58, 0.1);
  color: var(--navy);
  text-decoration: none;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.cat-chip:last-child {
  border-right: 0;
}

.cat-chip::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: -1px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.cat-chip:hover,
.cat-chip:focus-visible {
  color: var(--red);
  background: transparent;
  outline: none;
}

.cat-chip:hover::after,
.cat-chip:focus-visible::after {
  transform: scaleX(1);
}

.cat-chip__main {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.cat-chip__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--red);
  opacity: 0.92;
}

.cat-chip__name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cat-chip__arrow {
  font-size: 0.95rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
}

.cat-chip:hover .cat-chip__arrow,
.cat-chip:focus-visible .cat-chip__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ========== FEATURED PRODUCT GRID ========== */
.product-grid--featured {
  gap: 1.15rem;
}

#destaques .product-card {
  background: #fff;
  border: 1px solid rgba(12, 31, 58, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(12, 31, 58, 0.03);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#destaques .product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(12, 31, 58, 0.07);
  border-color: rgba(200, 16, 46, 0.18);
}

#destaques .product-card-media {
  background: linear-gradient(145deg, #f2f4f7, #fafbfc);
}

#destaques .product-card:hover .product-card-media img {
  transform: scale(1.03);
}

#destaques .product-card-body {
  padding: 0.95rem 1rem 1.05rem;
}

#destaques .product-card .product-card-link {
  display: inline-flex;
}

#destaques .product-card p {
  display: none;
}

/* ========== APPLICATIONS ========== */
.apps-editorial {
  background: var(--navy-deep);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.75rem) 0;
}

.apps-editorial__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.apps-editorial__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.apps-editorial__head h2 {
  color: #fff;
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 2.9vw, 2.5rem);
  letter-spacing: -0.03em;
}

.apps-editorial__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  max-width: 34ch;
  font-size: 1.02rem;
}

.apps-editorial__detail {
  margin: 1.25rem 0 0;
  min-height: 3.1em;
  color: rgba(255, 255, 255, 0.72);
  max-width: 38ch;
  font-size: 0.95rem;
  line-height: 1.55;
  transition: opacity 0.3s var(--ease);
}

.apps-editorial__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.apps-list {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.apps-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem;
  gap: 0.35rem 0.85rem;
  align-items: center;
  width: 100%;
  padding: 1.05rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.apps-row:hover,
.apps-row.is-active {
  color: #fff;
}

.apps-row__num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--red);
}

.apps-row__name {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 0.3s var(--ease);
}

.apps-row__arrow {
  justify-self: end;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.35;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.apps-row:hover .apps-row__name,
.apps-row.is-active .apps-row__name {
  transform: translateX(5px);
}

.apps-row:hover .apps-row__arrow,
.apps-row.is-active .apps-row__arrow {
  opacity: 1;
  transform: translateX(5px);
  color: var(--red);
}

.apps-row__text {
  display: none;
  grid-column: 2 / -1;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

.apps-editorial__preview {
  position: relative;
  margin-top: 1.75rem;
  width: 280px;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #0a1526;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.apps-editorial__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}

.apps-editorial__preview img.is-switching {
  opacity: 0;
  transform: scale(1.04);
}

/* ========== DIFFERENTIALS OPEN ========== */
.diff-open {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.diff-open__item {
  padding: 2rem 2rem 2rem 0;
  border-top: 1px solid var(--line);
}

.diff-open__item:nth-child(odd) {
  padding-right: 2.5rem;
  border-right: 1px solid var(--line);
}

.diff-open__item:nth-child(even) {
  padding-left: 2.5rem;
}

.diff-open__num {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--red);
}

.diff-open__item h3 {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.diff-open__item p {
  margin: 0;
  color: var(--muted);
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.55;
}

/* ========== FINAL CTA ========== */
.cta-finale {
  position: relative;
  overflow: visible;
  padding: clamp(5rem, 9vw, 7rem) 0 clamp(6rem, 10vw, 8rem);
  background:
    radial-gradient(ellipse 55% 70% at 88% 45%, rgba(200, 16, 46, 0.1), transparent 60%),
    linear-gradient(180deg, #f4f6f9 0%, #eef1f5 100%);
}

.cta-finale__wrap {
  position: relative;
  overflow: visible;
}

.cta-finale__card {
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  align-items: center;
  min-height: clamp(320px, 34vw, 420px);
  padding: clamp(2.4rem, 4.5vw, 3.75rem) clamp(2rem, 4vw, 3.5rem);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 90% at 100% 20%, rgba(200, 16, 46, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(22, 50, 90, 0.55), transparent 50%),
    linear-gradient(125deg, #071427 0%, #0c1f3a 48%, #143356 78%, #1a2438 100%);
  box-shadow:
    0 28px 60px rgba(7, 20, 39, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.06) inset;
}

.cta-finale__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.04) 58%, transparent 72%);
  z-index: 1;
}

.cta-finale__content {
  position: relative;
  z-index: 3;
  max-width: 34rem;
  padding-right: 1rem;
}

.cta-finale__content h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-weight: 800;
}

.cta-finale__content p {
  margin: 0 0 1.85rem;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  color: rgba(244, 247, 251, 0.74);
  max-width: 36ch;
  line-height: 1.6;
}

.cta-finale__btn {
  box-shadow: 0 12px 28px rgba(200, 16, 46, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.cta-finale__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(200, 16, 46, 0.42);
}

.cta-finale__figure {
  position: absolute;
  right: clamp(0.5rem, 2.5vw, 2rem);
  bottom: 0;
  z-index: 4;
  width: min(40%, 400px);
  line-height: 0;
  pointer-events: none;
  filter: drop-shadow(0 26px 38px rgba(0, 0, 0, 0.42));
}

.cta-finale__figure img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

/* Stagger helpers */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
