/* ══════════════════════════════════════════════════════════════════
   IDENTIDADE CORPORATIVA — Carrossel de marcas (auto-play)
   Efeito de slide idêntico ao carrossel da home (translateX + easing),
   porém passando sozinho, em loop, SEM travar a rolagem da página.
   Classes com prefixo .ic- para não colidir com o carrossel Kasa da home.
══════════════════════════════════════════════════════════════════ */

/* ── Cabeçalho de seção ─────────────────────────────────────────── */
.ic-section-head { max-width: 1320px; margin: 0 auto; padding: 0 0 30px; }
.ic-section-head .ic-lbl {
  font-family: "Noto Sans", sans-serif;
  font-size: 10px; font-weight: 300; letter-spacing: .3em;
  text-transform: uppercase; color: var(--green);
  display: block; margin-bottom: 10px;
}
.ic-section-head .ic-h {
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(28px, 3.5vw, 46px); font-weight: 200;
  line-height: 1.05; color: var(--ink); letter-spacing: -.01em;
}
.ic-section-head .ic-h em { color: var(--green); font-style: italic; }

/* ── Carrossel base (compartilhado pelas 3 opções) ──────────────── */
.ic-car { position: relative; width: 100%; }
.ic-car__frame {
  position: relative; width: 100%;
  aspect-ratio: 1 / 1;          /* quadrado */
  border-radius: 18px;
  overflow: hidden;             /* janela: esconde slides fora de vista */
  background: var(--bg2, #f3f3f0);
  box-shadow: 0 4px 32px rgba(0,0,0,.07);
}
.ic-car__track {
  display: flex; height: 100%; width: 100%;
  transform: translateX(0);
  will-change: transform;
}
/* Transição só quando avança — no "reset" do loop ela é removida */
.ic-car__track.is-anim { transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.ic-car__slide { flex: 0 0 100%; width: 100%; height: 100%; }
.ic-car__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  user-select: none; -webkit-user-select: none;
}

/* ── Dots ───────────────────────────────────────────────────────── */
.ic-car__dots { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.ic-car__dot {
  width: 18px; height: 2px; border: none; border-radius: 2px;
  background: rgba(28,27,24,.2); padding: 0; cursor: pointer;
  transition: background .25s, width .25s;
}
.ic-car__dot--active { background: var(--ink); width: 26px; }
.ic-car__dot:hover:not(.ic-car__dot--active) { background: rgba(28,27,24,.45); }

/* ── Setas ◀ ▶ (mesmo estilo da home) ───────────────────────────── */
.ic-car__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(28,27,24,.15);
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink); padding: 0;
  transition: border-color .2s, background .2s, transform .2s;
}
.ic-car__arrow:hover { border-color: var(--ink); background: #fff; transform: translateY(-50%) scale(1.08); }
.ic-car__arrow:active { transform: translateY(-50%) scale(.96); }
.ic-car__arrow--prev { left: 12px; }
.ic-car__arrow--next { right: 12px; }

/* ── Meta (legenda da marca + contador) — usado na Opção B ──────── */
.ic-car__meta { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; }
.ic-car__caption {
  font-family: "Noto Sans", sans-serif; font-size: 13px; font-weight: 300;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.ic-car__counter {
  font-family: "Noto Sans", sans-serif; font-size: 11px; font-weight: 300;
  letter-spacing: .18em; color: rgba(28,27,24,.4); text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════════
   OPÇÃO A — Grade de cards (estilo catálogos), 1 card por marca
══════════════════════════════════════════════════════════════════ */
.ic-grid-section { padding: 56px 44px 88px; }
.ic-grid {
  display: flex; flex-wrap: wrap; gap: 30px;
  max-width: 1320px; margin: 0 auto; justify-content: center;
}
.ic-card {
  flex: 1 1 330px; max-width: 400px;
  background: #fff; border: 1px solid var(--rule); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.ic-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,.10); transform: translateY(-4px); }
.ic-card .ic-car__frame { border-radius: 0; box-shadow: none; }
.ic-card .ic-car__dots { margin: 14px 0 0; }
.ic-card__info { padding: 6px 22px 24px; text-align: center; }
.ic-card__cat {
  font-family: "Noto Sans", sans-serif; font-size: 10px; letter-spacing: .2em;
  color: var(--green); text-transform: uppercase; margin-bottom: 6px;
}
.ic-card__title {
  font-family: "Noto Sans", sans-serif; font-size: 20px; font-weight: 200;
  text-transform: uppercase; letter-spacing: .05em; color: var(--ink); line-height: 1.2;
}

/* ══════════════════════════════════════════════════════════════════
   OPÇÃO B — Um carrossel grande único (tamanho da home)
══════════════════════════════════════════════════════════════════ */
.ic-solo-section { padding: 56px 44px 92px; }
.ic-solo { max-width: 560px; margin: 0 auto; }
.ic-solo .ic-car__frame { width: 100%; }

/* ══════════════════════════════════════════════════════════════════
   OPÇÃO C — Blocos grandes por marca, empilhados (alternando lados)
══════════════════════════════════════════════════════════════════ */
.ic-stack-section { padding: 36px 0 56px; }
.ic-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px); align-items: center;
  max-width: 1240px; margin: 0 auto; padding: 52px 44px;
}
.ic-row--rev .ic-row__art  { order: 2; }
.ic-row--rev .ic-row__text { order: 1; }
.ic-row__art { display: flex; flex-direction: column; align-items: center; }
.ic-row .ic-car { width: min(460px, 100%); }
.ic-row__text { display: flex; flex-direction: column; gap: 14px; }
.ic-row__text .ic-lbl {
  font-family: "Noto Sans", sans-serif; font-size: 16px; font-weight: 300;
  letter-spacing: .22em; text-transform: uppercase; color: #000;
}
.ic-row__title {
  font-family: "Noto Sans", sans-serif; font-size: clamp(34px, 4vw, 64px);
  font-weight: 200; line-height: 1.05; color: var(--ink); letter-spacing: -.01em;
  text-transform: none;
}
.ic-row__body {
  font-family: "Noto Sans", sans-serif; font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 300; line-height: 1.5; color: var(--ink2); max-width: 420px;
}

/* ══ RESPONSIVO ═════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .ic-grid-section { padding: 44px 24px 64px; }
  .ic-solo-section { padding: 44px 24px 70px; }

  .ic-row {
    grid-template-columns: 1fr; padding: 34px 24px; gap: 22px;
    text-align: center;
  }
  .ic-row__art  { order: 1 !important; }
  .ic-row__text { order: 2 !important; align-items: center; }
  .ic-row .ic-car { width: min(420px, 86vw); }
  .ic-row__body { max-width: 540px; }
}

@media (max-width: 600px) {
  .ic-card { flex: 1 1 100%; max-width: 440px; }
}

/* ══════════════════════════════════════════════════════════════════
   Ajustes específicos da página Identidade Corporativa (.ic-page)
══════════════════════════════════════════════════════════════════ */
/* Remove as linhas divisórias do topo SÓ nesta página (não afeta o resto do site) */
.ic-page .page-hero-band { border-bottom: none; }
.ic-page .sec { border-top: none; }

/* Serviços agora são links clicáveis — herdam o visual do .svc */
.ic-page a.svc {
  display: block; text-decoration: none; color: inherit;
}
.ic-page a.svc h3 { transition: color .2s; }
.ic-page a.svc:hover h3 { color: var(--green); }

/* Aproxima nav → título → texto de intro (−50% no espaçamento), só nesta página.
   Vale também no responsivo: os valores reduzidos têm prioridade em todas as larguras. */
.ic-page .page-hero-band { padding-top: 60px; padding-bottom: 30px; }   /* era 120 / 60 */
.ic-page .page-hero-band .sec { padding-top: 32px; padding-bottom: 32px; } /* era 64 / 64 */
.ic-page .ic-intro .sec { padding-top: 0; padding-bottom: 24px; }/* era 64 (topo) */

/* Remove a linha vertical (border-right no desktop) e a horizontal (border-bottom no mobile)
   do bloco de intro nesta página — evita traços soltos. */
.ic-page .ac { border: none; padding: 16px 44px; }
/* MOBILE — alinha hero (Branding & Design / Identidade Corporativa) e intro
   na MESMA linha à esquerda do cabeçalho do carrossel (24px). Só nesta página. */
@media (max-width: 900px) {
  .ic-page .page-hero-band       { padding-left: 24px; padding-right: 24px; }
  .ic-page .page-hero-band .sec  { padding-left: 0;    padding-right: 0; }
  .ic-page .ic-intro .sec        { padding-left: 24px; padding-right: 24px; }
  .ic-page .ic-intro .ac         { padding-left: 0;    padding-right: 0; }
}
/* DESKTOP (≥901px) — TODAS as seções na MESMA coluna central de 1320px (igual ao carrossel).
   Cada seção mantém um respiro lateral de 44px e o conteúdo é uma coluna 1320 centralizada;
   em telas largas tudo fica alinhado e centralizado junto com "Marcas que desenhamos". */
@media (min-width: 901px) {
  /* Hero (Branding & Design / Identidade Corporativa) */
  .ic-page .page-hero-band .sec {
    max-width: 1320px; margin-left: auto; margin-right: auto;
    padding-left: 0; padding-right: 0;
  }
  /* Intro (parágrafos) */
  .ic-page .ic-intro { padding-left: 44px; padding-right: 44px; }
  .ic-page .ic-intro .sec {
    max-width: 1320px; margin-left: auto; margin-right: auto;
    padding-left: 0; padding-right: 0;
  }
  .ic-page .ic-intro .ac { padding-left: 0; padding-right: 0; }
  /* Serviços (cabeçalho + grade) */
  .ic-page #servicos { padding-left: 44px; padding-right: 44px; }
  .ic-page #servicos .sec {
    max-width: 1320px; margin-left: auto; margin-right: auto;
    padding-left: 0; padding-right: 0;
  }
  .ic-page .svcs { max-width: 1320px; margin-left: auto; margin-right: auto; }
}
/* MOBILE (≤900px) — "O que fazemos / Projetos & Serviços" também na linha de 24px */
@media (max-width: 900px) {
  .ic-page #servicos .sec { padding-left: 24px; padding-right: 24px; }
}


/* ─────────────────────────────────────────────────────────────
   Lightbox da Identidade Corporativa — mesmo padrão visual do
   lightbox das páginas internas de projeto (#proj-lb). IDs/classes
   próprios (ic-lightbox*) para não colidir com #proj-lb nem #cat-lb.
   ───────────────────────────────────────────────────────────── */
#ic-lightbox { display: none; position: fixed; inset: 0; z-index: 950; background: rgba(20,19,18,.94); align-items: center; justify-content: center; }
#ic-lightbox.open { display: flex; }
.ic-lightbox__stage { display: flex; align-items: center; justify-content: center; width: 92vw; height: 88vh; overflow: hidden; }
/* teto de exibição: arquivos de resoluções diferentes aparecem em escala comparável
   (os de alta resolução só ficam mais nítidos, não maiores) */
.ic-lightbox__img { max-width: min(92vw, 880px); max-height: min(88vh, 600px); object-fit: contain; cursor: zoom-in; user-select: none; background: #fff; }
.ic-lightbox__close { position: absolute; top: 18px; right: 22px; background: none; border: none; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.ic-lightbox__arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; padding: 0 18px; opacity: .8; transition: opacity .2s; }
.ic-lightbox__arrow:hover { opacity: 1; }
.ic-lightbox__arrow--prev { left: 8px; }
.ic-lightbox__arrow--next { right: 8px; }
.ic-lightbox__counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-family: "Noto Sans", sans-serif; font-size: 13px; letter-spacing: .12em; opacity: .85; }


/* ══ CLIENTES · "Um traço, muitas marcas" ══════════════════════════
   Traço verde desenhado à mão atravessa a seção; os logos ficam
   pendurados nele como estações, alternando acima/abaixo.        */
.icl { padding: 110px 6vw 130px; overflow: hidden; }
.icl-head { max-width: 720px; margin: 0 auto 26px; text-align: center; }
.icl-eyebrow {
  font-family: "Noto Sans", sans-serif; font-size: 11px; font-weight: 400;
  letter-spacing: .3em; text-transform: uppercase; color: var(--green);
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.icl-eyebrow::before, .icl-eyebrow::after {
  content: ""; width: 30px; height: 2px; background: var(--green); opacity: .6;
}
.icl-head h2 {
  font-size: clamp(26px, 3.6vw, 44px);
  letter-spacing: .04em; color: var(--ink); margin: 0 0 12px;
}
.icl-head h2 em { font-style: italic; color: var(--green); text-transform: none; }
.icl-head p {
  font-size: 15px; line-height: 1.75; color: var(--ink3, #6b6b66); margin: 0;
}

.icl-strip { position: relative; max-width: 1500px; margin: 46px auto 0; padding: 30px 0; }
.icl-line {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
}
.icl-line path {
  fill: none; stroke: var(--green); stroke-width: 3;
  stroke-linecap: round; opacity: .55;
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
}
.icl.icl-on .icl-line path { animation: iclDesenha 2.4s cubic-bezier(.6,0,.2,1) .15s forwards; }
@keyframes iclDesenha { to { stroke-dashoffset: 0; } }

/* Onda vertical — só no mobile (ver media query em 860px) */
.icl-line-v { display: none; }

.icl-logos {
  position: relative; z-index: 1;
  /* 4 por linha, ocupando a largura inteira — os cards mantêm o tamanho,
     o espaçamento entre eles é que se distribui */
  display: grid; grid-template-columns: repeat(4, auto);
  justify-content: space-between; align-items: center;
  row-gap: 34px; column-gap: 24px;
  list-style: none; margin: 0; padding: 0;
}
.icl-card {
  position: relative;
  background: #fff; border-radius: 16px;
  box-shadow: 0 14px 34px -18px rgba(28,27,24,.28);
  padding: 20px 26px; height: 116px; min-width: 150px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.22,.8,.24,1) var(--d, 0s),
              box-shadow .3s ease;
}
.icl.icl-on .icl-card { opacity: 1; transform: translateY(var(--sobe, 0)); }
.icl-card.cima, .icl-card.baixo { --sobe: 0; } /* logos lado a lado */

.icl-card img {
  max-height: 66px; max-width: 200px; width: auto; height: auto; display: block;
  filter: grayscale(0); opacity: .78;
  transition: filter .35s ease, opacity .35s ease, transform .35s ease;
}
.icl.icl-on .icl-card:hover {
  transform: translateY(var(--sobe, 0)) scale(2); /* caixa do logo em 200% */
  z-index: 5;
  transition-delay: 0s; /* sem o atraso de entrada (--d) no hover */
  box-shadow: 0 28px 54px -20px rgba(28,27,24,.45);
}
.icl-card:hover img {
  opacity: 1;
  transition-delay: 0s;
}

@media (max-width: 860px) {
  .icl { padding: 80px 6vw 90px; }
  .icl-line { display: none; }
  /* Onda verde vertical (mobile) — mesma serpentina do desktop, desenhando de baixo para cima */
  .icl-line-v {
    display: block;
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; overflow: visible; z-index: 0;
  }
  .icl-line-v path {
    fill: none; stroke: var(--green); stroke-width: 3;
    stroke-linecap: round; opacity: .55;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 3000; stroke-dashoffset: 3000;
  }
  .icl.icl-on .icl-line-v path {
    animation: iclDesenha 2.4s cubic-bezier(.6,0,.2,1) .15s forwards;
  }
  .icl-card, .icl-card.cima, .icl-card.baixo { --sobe: 0; }
  .icl-card::after { display: none; }
  .icl-logos { grid-template-columns: repeat(2, 1fr); justify-content: stretch; column-gap: 16px; row-gap: 16px; }
  .icl-card { height: 96px; padding: 16px 20px; min-width: 0; }
  .icl-card img { max-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .icl-card { transition: none; opacity: 1; transform: translateY(var(--sobe, 0)); }
  .icl.icl-on .icl-line path { animation: none; stroke-dashoffset: 0; }
}


/* ══ Ajustes finos — logos coloridos e títulos em frase ══ */
.ic-page .sec-h,
.ic-page .ic-h,
.ic-page .ic-card__title,
.ic-page .icl-head h2 {
  text-transform: none !important;
}

.icl-card {
  cursor: zoom-in;
}

.icl-card img {
  filter: none !important;
  opacity: 1 !important;
}

.icl-card:hover img {
  filter: none !important;
  opacity: 1 !important;
  transform: scale(1.05);
}


/* keyframe da linha vertical mobile (de baixo para cima) */
