/*
 * home.css — Nectech Child Theme
 * Carregado via: wp_enqueue_style( 'nectech-home', ... ) apenas em is_front_page()
 * Gerado em: Maio 2026 — Fase 3: Home (Opção D)
 *
 * ÍNDICE
 * 01. Seção Hero
 * 02. Seção Barra de Credibilidade
 * 03. Seção Kit de Reparo
 * 04. Seção Nossas Soluções
 * 05. Seção Produtos em Destaque
 * -- (próximas seções serão acumuladas aqui)
 */


/* ==========================================================================
   SEÇÃO 01 — HERO
   ========================================================================== */

/* ── Container principal ─────────────────────────────────────────────────── */

.nec-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-primary);
}

/* ── Camada de imagem de fundo ───────────────────────────────────────────── */

.nec-hero__bg {
  position: absolute;
  inset: 0;
  /*
   * ⚠️  SUBSTITUIR pelo caminho real da imagem de fundo após upload.
   * Recomendado: foto industrial/galpão, escura, ≥ 1920×1080px, JPEG otimizado.
   */
  background-image: url('/wp-content/themes/nectech-child/assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  opacity: 0.22;
  z-index: 0;
}

/* ── Gradiente direcional: garante legibilidade do texto à esquerda ───────── */

.nec-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    rgba(27, 36, 65, 1)   0%,
    rgba(27, 36, 65, 0.92) 40%,
    rgba(27, 36, 65, 0.55) 75%,
    rgba(27, 36, 65, 0.30) 100%
  );
  z-index: 1;
}

/* ── Borda inferior laranja (separador visual para Seção 02) ─────────────── */

.nec-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-accent);
  z-index: 3;
}

.nec-hero .nec-container {
  position: relative;
  z-index: 2;
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

/* ── Grade principal: conteúdo + visual ──────────────────────────────────── */

.nec-hero__grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: var(--space-16);
  align-items: center;
}

/* ── Coluna esquerda: conteúdo ───────────────────────────────────────────── */

.nec-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* H1 — título hero */
.nec-hero__title {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
}

.nec-hero__title-main {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  color: var(--color-white);
  text-transform: uppercase;
}

.nec-hero__title-sub {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-wide);
  color: var(--color-accent);
  text-transform: uppercase;
}

/* Lead */
.nec-hero__lead {
  max-width: 500px;
}

/* CTAs */
.nec-hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

/* ── Coluna direita: imagem + badges ─────────────────────────────────────── */

.nec-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nec-hero__image-wrap {
  position: relative;
  width: 100%;
}

/* Halo laranja decorativo por trás da imagem */
.nec-hero__image-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(232, 71, 16, 0.14) 0%, transparent 68%);
  z-index: 0;
}

.nec-hero__image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  /* Área reservada enquanto imagem não carrega */
  min-height: 300px;
}

/* ── Badges flutuantes ───────────────────────────────────────────────────── */

.nec-hero__badge {
  position: absolute;
  z-index: 2;
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-lg);
  min-width: 148px;
}

/* Badge superior direito */
.nec-hero__badge--anos {
  top: 8%;
  right: -2%;
}

/* Badge inferior direito */
.nec-hero__badge--marcas {
  bottom: 12%;
  right: -2%;
}

.nec-hero__badge-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-accent);
  line-height: 1;
  flex-shrink: 0;
}

.nec-hero__badge-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nec-hero__badge-line1 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  line-height: 1.2;
}

.nec-hero__badge-line2 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  line-height: 1.3;
}

/* ==========================================================================
   RESPONSIVIDADE — HERO
   ========================================================================== */

/* Tablet landscape (960px) */
@media (max-width: 960px) {
  .nec-hero {
    min-height: auto;
  }

  .nec-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  /* Imagem sobe, texto desce */
  .nec-hero__visual {
    order: -1;
  }

  .nec-hero__image-wrap {
    max-width: 300px;
    margin: 0 auto;
  }

  .nec-hero__badge--anos {
    top: -6%;
    right: 2%;
  }

  .nec-hero__badge--marcas {
    bottom: -6%;
    right: 2%;
  }

  .nec-hero .nec-container {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

/* Mobile (640px) */
@media (max-width: 640px) {
  .nec-hero .nec-container {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .nec-hero__title-main {
    font-size: var(--text-4xl);
  }

  .nec-hero__title-sub {
    font-size: var(--text-2xl);
  }

  .nec-hero__image-wrap {
    max-width: 240px;
  }

  .nec-hero__badge {
    min-width: 128px;
    padding: var(--space-3) var(--space-4);
  }

  .nec-hero__badge-number {
    font-size: var(--text-xl);
  }

  .nec-hero__ctas {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nec-hero__ctas .nec-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile pequeno (480px) */
@media (max-width: 480px) {
  .nec-hero__title-main {
    font-size: var(--text-3xl);
  }

  .nec-hero__title-sub {
    font-size: var(--text-xl);
  }

  .nec-hero__image-wrap {
    max-width: 200px;
  }
}


/* ==========================================================================
   SEÇÃO 02 — BARRA DE CREDIBILIDADE
   Componente base: .nec-credential-bar (style.css)
   Acréscimos home-específicos abaixo.
   ========================================================================== */

/*
 * O componente .nec-credential-bar já cobre em style.css:
 * — fundo laranja (var(--color-accent))
 * — grid horizontal com flex space-between
 * — separadores verticais entre itens
 * — .nec-credential-item__number (30px, extrabold)
 * — .nec-credential-item__label (14px, opacity 0.9)
 *
 * Único acréscimo necessário: dimensionar SVG icons,
 * pois __icon foi projetado para font-icons (font-size: 1.5rem).
 */

.nec-credential-item__icon svg {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
  color: var(--color-white);
}


/* ==========================================================================
   SEÇÃO 03 — KIT DE REPARO
   ========================================================================== */

/* ── Container da seção ──────────────────────────────────────────────────── */

.nec-kit {
  background-color: var(--color-white);
}

/* ── Parte 1: Hero — eyebrow + H2 + imagem ───────────────────────────────── */

.nec-kit__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin-bottom: var(--space-16);
}

.nec-kit__hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.nec-kit__hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--color-primary-dark);
}

.nec-kit__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Parte 2: Processo em 3 passos ──────────────────────────────────────── */

.nec-kit__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}

.nec-kit__step {
  position: relative;
  background-color: var(--color-off-white);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--color-accent);
  padding: var(--space-8) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow: hidden;
}

/* Número: ghost gigante no fundo da card */
.nec-kit__step-number {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--fw-extrabold);
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.18;
  user-select: none;
  pointer-events: none;
}

.nec-kit__step-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin: 0;
}

.nec-kit__step-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin: 0;
}

/* Conector visual entre steps: linha pontilhada no pseudo-elemento */
.nec-kit__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(var(--space-8) + 4px);   /* alinha com o topo do título */
  right: calc(-1 * var(--space-5) / 2);
  width: var(--space-5);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-accent) 0,
    var(--color-accent) 4px,
    transparent 4px,
    transparent 8px
  );
  z-index: var(--z-raised);
}

/* ── Parte 3: Perspectivas Oficina / Frota ──────────────────────────────── */

.nec-kit__perspectives {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.nec-kit__perspective {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.nec-kit__perspective-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent);
}

.nec-kit__perspective-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  line-height: var(--lh-snug);
  margin: 0;
}

.nec-kit__perspective-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin: 0;
}

/* ── Parte 4: Linha de reforço Umicore ──────────────────────────────────── */

.nec-kit__reinforcement {
  background-color: var(--color-off-white);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-5) var(--space-8);
  margin-bottom: var(--space-8);
}

.nec-kit__reinforcement-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin: 0;
}

.nec-kit__reinforcement-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-2);
}

/* ── Parte 5: CTA ────────────────────────────────────────────────────────── */

.nec-kit__cta {
  display: flex;
  justify-content: flex-start;
}

/* ── Responsividade ──────────────────────────────────────────────────────── */

/* Tablet landscape (960px) */
@media (max-width: 960px) {
  .nec-kit__hero {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
  }

  /* Imagem sobe, texto desce */
  .nec-kit__hero-image {
    order: -1;
    aspect-ratio: 16 / 7;
  }

  .nec-kit__steps {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Remove conector lateral em coluna única */
  .nec-kit__step:not(:last-child)::after {
    display: none;
  }
}

/* Mobile (640px) */
@media (max-width: 640px) {
  .nec-kit__perspectives {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .nec-kit__perspective {
    padding: var(--space-5) var(--space-6);
  }

  .nec-kit__reinforcement {
    padding: var(--space-5) var(--space-6);
  }

  .nec-kit__cta {
    justify-content: stretch;
  }

  .nec-kit__cta .nec-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   SEÇÃO 04 — NOSSAS SOLUÇÕES
   Tabs CSS-only: radio inputs como irmãos do .nec-container
   ========================================================================== */

/* ── Radio inputs: ocultos, servem apenas ao mecanismo CSS ──────────────── */

.nec-solutions__inp {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ── Header: eyebrow + H2 + imagem decorativa ──────────────────────────── */

.nec-solutions__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.nec-solutions__header-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.nec-solutions__header-image {
  flex-shrink: 0;
  opacity: 0.7;
}

.nec-solutions__header-image img {
  width: 180px;
  height: auto;
  display: block;
  /* Leve rotação decorativa */
  transform: rotate(8deg);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
}

/* ── Tab nav ─────────────────────────────────────────────────────────────── */

.nec-solutions__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: var(--space-8);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nec-solutions__tabs::-webkit-scrollbar {
  display: none;
}

.nec-solutions__tab-btn {
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color var(--transition-base),
    border-color var(--transition-base);
  user-select: none;
}

.nec-solutions__tab-btn:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ── Tab ativa: label correspondente ao radio marcado ───────────────────── */

#nec-sol-1:checked ~ .nec-container .nec-solutions__tab-btn[for="nec-sol-1"],
#nec-sol-2:checked ~ .nec-container .nec-solutions__tab-btn[for="nec-sol-2"],
#nec-sol-3:checked ~ .nec-container .nec-solutions__tab-btn[for="nec-sol-3"],
#nec-sol-4:checked ~ .nec-container .nec-solutions__tab-btn[for="nec-sol-4"] {
  color: var(--color-white);
  border-bottom-color: var(--color-accent);
}

/* ── Painéis: ocultos por padrão ────────────────────────────────────────── */

.nec-tab-panel {
  display: none;
}

/* ── Painel visível: radio marcado → painel correspondente ──────────────── */

#nec-sol-1:checked ~ .nec-container .nec-tab-panel--cat     { display: block; }
#nec-sol-2:checked ~ .nec-container .nec-tab-panel--flex    { display: block; }
#nec-sol-3:checked ~ .nec-container .nec-tab-panel--kit     { display: block; }
#nec-sol-4:checked ~ .nec-container .nec-tab-panel--remanuf { display: block; }

/* ── Footer do painel: link "Ver todos" ─────────────────────────────────── */

.nec-solutions__panel-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-6);
}

/* ── Responsividade ─────────────────────────────────────────────────────── */

/* Tablet landscape (960px) */
@media (max-width: 960px) {
  .nec-solutions__header-image {
    display: none;   /* retira decoração em telas menores */
  }

  .nec-solutions__tab-btn {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
  }
}

/* Mobile (640px) */
@media (max-width: 640px) {
  .nec-solutions__panel-footer {
    justify-content: flex-start;
    margin-top: var(--space-5);
  }
}


/* ==========================================================================
   SEÇÃO 05 — PRODUTOS EM DESTAQUE
   ========================================================================== */

/* ── Identificador da seção ──────────────────────────────────────────────── */

.nec-featured {
  background-color: var(--color-primary);
}

/* ── Header: heading (esq.) + link catálogo (dir.) ──────────────────────── */

.nec-featured__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.nec-featured__heading-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Link "Acesse o catálogo completo" — alinha com a base do H2 */
.nec-featured__catalog-link {
  padding-bottom: var(--space-2);
  flex-shrink: 0;
}

/* ── Busca ───────────────────────────────────────────────────────────────── */

.nec-featured__search {
  margin-bottom: var(--space-10);
}

.nec-featured__search-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Label "Pesquise em nosso catálogo" — pequeno, uppercase, acima do input */
.nec-featured__search-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* Wrapper: input + botão lado a lado */
.nec-featured__search-field {
  display: flex;
  align-items: stretch;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 600px;
}

.nec-featured__search-input {
  flex: 1;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: transparent;
  border: none;
  outline: none;
  min-width: 0;
}

.nec-featured__search-input::placeholder {
  color: var(--color-gray-400);
}

/* Limpa o ícone nativo do Chrome no type=search */
.nec-featured__search-input::-webkit-search-decoration,
.nec-featured__search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.nec-featured__search-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-5);
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.nec-featured__search-btn:hover {
  background-color: var(--color-accent-hover);
}

/* ── Grid: usa .nec-product-grid do style.css (sem CSS extra aqui) ───────── */
/* Responsividade do grid já coberta em style.css Seção 17 */

/* ── Responsividade ──────────────────────────────────────────────────────── */

/* Tablet landscape (960px) */
@media (max-width: 960px) {
  .nec-featured__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
  }

  .nec-featured__catalog-link {
    padding-bottom: 0;
  }

  .nec-featured__search-field {
    max-width: 100%;
  }
}

/* Mobile (640px) */
@media (max-width: 640px) {
  .nec-featured__search {
    margin-bottom: var(--space-8);
  }

  .nec-featured__search-input {
    font-size: var(--text-sm);
    padding: var(--space-3) var(--space-4);
  }

  .nec-featured__search-btn {
    padding: var(--space-3) var(--space-4);
  }
}


/* ==========================================================================
   SEÇÃO 06 — ENCONTRE PARA O SEU VEÍCULO
   ========================================================================== */

/* ── Seção compacta: usa nec-section--sm do style.css ───────────────────── */

.nec-brands {
  background-color: var(--color-off-white);
}

/* ── Label "ENCONTRE PARA O SEU VEÍCULO" ────────────────────────────────── */

.nec-brands__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-8);
}

/* ── Grade de logos: 7 itens em linha ───────────────────────────────────── */

.nec-brands__logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

/* ── Item: link com logo + nome de fallback ──────────────────────────────── */

.nec-brands__logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex: 1;
  min-width: 80px;
  max-width: 140px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nec-brands__logo-item:hover {
  transform: translateY(-3px);
  opacity: 0.7;
}

/* Logo image */
.nec-brands__logo-item img {
  width: 100%;
  max-width: 110px;
  height: 48px;
  object-fit: contain;
  display: block;
  /* Enquanto imagem não carregada: área reservada com fundo */
  background-color: var(--color-gray-100);
  border-radius: var(--radius-md);
  padding: var(--space-2);
}

/*
 * Fallback visual: se a imagem não carregar, mostra o .nec-brands__logo-name
 * em estilo de nome de marca. Com imagem carregada, o nome fica oculto.
 */
.nec-brands__logo-name {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;

  /* Oculto por padrão — aparece apenas se a img falhar (via CSS img + sibling)
     Solução alternativa: manter visível como legenda abaixo do logo */
}

/* ── Responsividade ──────────────────────────────────────────────────────── */

/* Tablet (960px): logos menores, mantém linha única se possível */
@media (max-width: 960px) {
  .nec-brands__logos {
    gap: var(--space-4);
    justify-content: center;
  }

  .nec-brands__logo-item {
    min-width: 70px;
    max-width: 110px;
  }

  .nec-brands__logo-item img {
    height: 40px;
  }
}

/* Mobile (640px): 4 + 3 em duas linhas, centralizados */
@media (max-width: 640px) {
  .nec-brands__logos {
    gap: var(--space-4) var(--space-3);
    justify-content: center;
  }

  .nec-brands__logo-item {
    flex: 0 0 calc(25% - var(--space-3));
    min-width: 64px;
    max-width: 96px;
  }

  .nec-brands__logo-item img {
    height: 36px;
  }
}

/* Mobile pequeno (400px): 3 por linha */
@media (max-width: 400px) {
  .nec-brands__logo-item {
    flex: 0 0 calc(33.333% - var(--space-3));
  }
}


/* ==========================================================================
   SEÇÃO 07 — BLOCO UMICORE
   ========================================================================== */

/* ── Seção: fundo branco ─────────────────────────────────────────────────── */

.nec-umicore {
  background-color: var(--color-white);
}

/* ── Grid: box Umicore (esq.) + conteúdo (dir.) ─────────────────────────── */

.nec-umicore__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-16);
  align-items: center;
}

/* ── Box Umicore: badge de parceria ──────────────────────────────────────── */

.nec-umicore__box {
  background-color: var(--color-primary);
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-accent);
  padding: var(--space-12) var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-5);
  /* Leve destaque no box */
  box-shadow: var(--shadow-md);
}

/* Logo wrap: posicionamento relativo para fallback */
.nec-umicore__logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Logo image */
.nec-umicore__logo-img {
  display: block;
  max-width: 160px;
  height: auto;
}

/*
 * Fallback: exibido quando a imagem do logo não carrega.
 * Posicionado sobre a área da imagem via flex.
 * Com a imagem carregada, o fallback fica atrás e invisível
 * (a imagem cobre o texto). Para ocultar explicitamente quando
 * a imagem carrega, tratar via JS ou aceitar a sobreposição.
 */
.nec-umicore__logo-fallback {
  position: absolute;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-wide);
  color: var(--color-white);
  pointer-events: none;
  z-index: -1;
}

/* "PARCEIRO CERTIFICADO" */
.nec-umicore__certified {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: var(--lh-snug);
}

/* ── Coluna direita: conteúdo ────────────────────────────────────────────── */

.nec-umicore__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  /* Recuo direito para deixar espaço à imagem decorativa */
  padding-right: 200px;
}

/* Checklist: gap maior entre itens para o nível de detalhe dos textos */
.nec-umicore__checklist {
  gap: var(--space-5);
}

.nec-umicore__checklist .nec-checklist__item {
  line-height: var(--lh-relaxed);
  align-items: flex-start;
}

/* CTA: margem extra acima para separar do checklist */
.nec-umicore__cta {
  margin-top: var(--space-2);
}

/* ── Imagem decorativa: catalisador no canto direito ────────────────────── */

.nec-umicore__deco {
  position: absolute;
  right: -40px;
  bottom: -20px;
  pointer-events: none;
}

.nec-umicore__deco img {
  width: 240px;
  height: auto;
  opacity: 0.85;
  /* Filtro sutil para integrar com o fundo branco */
  filter: drop-shadow(0 8px 24px rgba(27, 36, 65, 0.12));
}

/* ── Responsividade ──────────────────────────────────────────────────────── */

/* Tablet landscape (960px): empilha */
@media (max-width: 960px) {
  .nec-umicore__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  /* Box vira faixa horizontal */
  .nec-umicore__box {
    flex-direction: row;
    padding: var(--space-6) var(--space-8);
    gap: var(--space-6);
    justify-content: center;
  }

  /* Remove recuo e oculta decoração em tablet */
  .nec-umicore__content {
    padding-right: 0;
  }

  .nec-umicore__deco {
    display: none;
  }
}

/* Mobile (640px): box volta a ser vertical */
@media (max-width: 640px) {
  .nec-umicore__box {
    flex-direction: column;
    padding: var(--space-8) var(--space-6);
  }
}


/* ==========================================================================
   SEÇÃO 08 — ENTREGA PARA TODO O BRASIL
   Background: var(--color-accent) via .nec-bg-accent (style.css)
   ========================================================================== */

/* ── Grid: conteúdo (esq.) + mapa (dir.) ────────────────────────────────── */

.nec-delivery__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-16);
  align-items: center;
}

/* ── Coluna esquerda: conteúdo ───────────────────────────────────────────── */

.nec-delivery__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* H2: tamanho maior para o impacto visual desta seção-declaração */
.nec-delivery__heading {
  font-size: var(--text-5xl);   /* 60px */
  line-height: var(--lh-tight);
}

/* ── Dois blocos de prazo ────────────────────────────────────────────────── */

.nec-delivery__deadlines {
  display: flex;
  align-items: stretch;
  gap: var(--space-8);
}

.nec-delivery__deadline {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.nec-delivery__region {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.nec-delivery__time {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-white);
  text-transform: uppercase;
}

/* Separador vertical entre os dois blocos */
.nec-delivery__sep {
  width: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  align-self: stretch;
  min-height: 48px;
}

/* ── Texto de transparência ──────────────────────────────────────────────── */

.nec-delivery__text {
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
  border-left: 2px solid rgba(255, 255, 255, 0.4);
  padding-left: var(--space-4);
}

/* ── CTA WhatsApp ────────────────────────────────────────────────────────── */

.nec-delivery__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

.nec-delivery__cta-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Mapa decorativo ─────────────────────────────────────────────────────── */

.nec-delivery__map {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nec-delivery__map-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  opacity: 0.7;
  /* Placeholder visual enquanto imagem não existe */
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  min-height: 300px;
  object-fit: contain;
}

/* ── Responsividade ──────────────────────────────────────────────────────── */

/* Tablet landscape (960px) */
@media (max-width: 960px) {
  .nec-delivery__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  /* Mapa sobe como elemento decorativo de cabeçalho */
  .nec-delivery__map {
    order: -1;
  }

  .nec-delivery__map-img {
    max-width: 260px;
    min-height: auto;
    opacity: 0.55;
  }

  .nec-delivery__heading {
    font-size: var(--text-4xl);
  }
}

/* Mobile (640px) */
@media (max-width: 640px) {
  .nec-delivery__map {
    display: none;   /* remove mapa em mobile — foco no conteúdo */
  }

  .nec-delivery__heading {
    font-size: var(--text-3xl);
  }

  .nec-delivery__time {
    font-size: var(--text-2xl);
  }

  .nec-delivery__deadlines {
    gap: var(--space-5);
  }

  .nec-delivery__cta .nec-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   SEÇÃO 09 — ARTIGOS RECENTES
   ========================================================================== */

/* ── Seção: fundo branco ─────────────────────────────────────────────────── */

.nec-articles {
  background-color: var(--color-white);
}

/* ── Header: eyebrow + H2 ────────────────────────────────────────────────── */

.nec-articles__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  max-width: 640px;
}

/* ── Grid de artigos: 3 colunas ──────────────────────────────────────────── */

.nec-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

/* ── Card de artigo ──────────────────────────────────────────────────────── */

.nec-article-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.nec-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Imagem */
.nec-article-card__image {
  aspect-ratio: 16 / 9;
  background-color: var(--color-gray-100);
  overflow: hidden;
  flex-shrink: 0;
}

.nec-article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.nec-article-card:hover .nec-article-card__image img {
  transform: scale(1.04);
}

/* Corpo */
.nec-article-card__body {
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

/* Meta: categoria · tempo de leitura */
.nec-article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.nec-article-card__category {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent);
}

.nec-article-card__sep {
  color: var(--color-gray-300);
  font-size: var(--text-xs);
  line-height: 1;
}

.nec-article-card__time {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Título */
.nec-article-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  line-height: var(--lh-snug);
  text-transform: uppercase;
  letter-spacing: var(--ls-tight);
  margin: 0;
}

/* Resumo */
.nec-article-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin: 0;
  flex: 1;
}

/* Link "Ler artigo →" — empurrado para a base do card */
.nec-article-card__link {
  margin-top: auto;
  padding-top: var(--space-3);
}

/* ── Rodapé: "Ver todos os artigos" centrado ─────────────────────────────── */

.nec-articles__footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}

/* ── Responsividade ──────────────────────────────────────────────────────── */

/* Tablet landscape (960px) */
@media (max-width: 960px) {
  .nec-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Terceiro artigo: largura total em 2 colunas → esconder ou mostrar */
  /* Mantemos os 3 artigos — o terceiro ocupa a metade da linha */
}

/* Tablet (768px) */
@media (max-width: 768px) {
  .nec-article-card__body {
    padding: var(--space-4) var(--space-5);
  }
}

/* Mobile (640px) */
@media (max-width: 640px) {
  .nec-articles__grid {
    grid-template-columns: 1fr;
  }

  .nec-articles__header {
    margin-bottom: var(--space-8);
  }
}
