/*
Theme Name: Center Seals
Theme URI: https://centerseals.com.br
Author: Alcetus
Author URI: https://alcetus.com
Description: Tema institucional da Center Seals - vedacoes industriais sob medida. Landing page unica, replica estatica 1:1 do design aprovado.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: centerseals
*/

/* =============================================================
   Center Seals — v2 passada a limpo (réplica 1:1 da Home v2 / ID 431)
   Valores medidos da página ao vivo. Estrutura sobre o Static Sites DS.
   Dois itens de projeto: matiz principal (navy) + fonte (Bricolage).
   ============================================================= */

:root {
  /* --- Fonte real do site --- */
  --ff: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* --- Paleta em HSL — espectro único navy (matiz 230), padrão do guia --- */
  --hue: 230;
  --navy:        hsl(230 69% 17%);  /* ~#0d1748 — fundo base            */
  --navy-deep:   hsl(230 69% 10%);  /* ~#080e2b — fundo gradiente base  */
  --navy-btn-1:  hsl(230 70% 22%);  /* ~#111f60 — botão radial centro   */
  --navy-btn-2:  hsl(230 69% 18%);  /* ~#0e194d — botão radial borda    */
  --ink-light:   hsl(230 46% 95%);  /* "branco" tingido da paleta (guia) */
  --muted-light: hsl(230 25% 92%);  /* texto secundário claro tingido   */
  --surface-lt:  hsl(225 100% 97%); /* seção clara tingida              */
  --ink-dark:    hsl(230 60% 10%);  /* título escuro tingido (cards claros) */
  --muted-dark:  hsl(230 12% 29%);  /* texto secundário escuro tingido  */
  --wa-green:    #25d366;           /* WhatsApp (cor de marca — exceção) */

  /* aliases DS sobrescritos para o contexto escuro */
  --c-ink: var(--ink-light);
  --c-bg:  var(--navy);
}

/* ---------- Página (fundo navy em gradiente) ---------- */
body {
  font-family: var(--ff);
  color: var(--ink-light);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%) no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

/* =============================================================
   HERO — full-bleed, imagem 4.webp + scrim navy, conteúdo à esquerda,
   verticalmente centralizado, altura de viewport.
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  z-index: 0;
}
/* scrim = overlay navy 0.88 @ opacity .5 (exato do Elementor) */
.hero__scrim {
  position: absolute; inset: 0;
  background: rgba(13, 23, 72, 0.88);
  opacity: 0.5;
  z-index: 1;
}
.hero .workspace { position: relative; z-index: 2; width: 100%; padding-inline: var(--sp-32); }

.hero__copy {
  grid-column: 1 / span 8;
  max-width: 720px;            /* força o mesmo quebra de 3 linhas do H1 ao vivo */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-16);
}
.hero__copy h1 {
  font-size: var(--fs-h2);           /* 64px medido */
  line-height: var(--lh-title);      /* 1.2 */
  color: var(--ink-light);
  letter-spacing: normal;
}
.hero__lead {
  max-width: 564px;                  /* largura do subtítulo ao vivo */
  font-size: var(--fs-p-m);          /* 20px medido */
  line-height: var(--lh-body);       /* 1.5 */
  color: var(--muted-light);
  font-weight: var(--fw-body);
}

/* =============================================================
   BOTÃO CTA (navy radial) — medido: Bricolage 16/600, pad 24/32, r6
   ============================================================= */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);                         /* respiro ícone → texto */
  font-family: var(--ff);
  font-size: var(--btn-md-fs);              /* 20px — botão Médio do guia */
  font-weight: var(--btn-fw);               /* 400 (regra do guia) */
  line-height: 1;
  color: var(--ink-light);
  text-decoration: none;
  text-align: center;
  padding: var(--btn-md-py) var(--btn-md-px); /* 24 × 48 */
  border-radius: var(--r-md);               /* 8px (só 4/8/24 no guia) */
  background: radial-gradient(var(--navy-btn-1) 41%, var(--navy-btn-2) 100%);
  transition: filter .2s ease, transform .2s ease;
}
/* ícone WhatsApp (FA original) via mask — cor acompanha o texto do botão */
.btn-cta::before {
  content: "";
  width: 1.15em; height: 1.15em; flex: none;
  background-color: currentColor;
  -webkit-mask: url("assets/whatsapp-icon.svg") center / contain no-repeat;
          mask: url("assets/whatsapp-icon.svg") center / contain no-repeat;
}
.btn-cta:hover { filter: brightness(1.12); transform: translateY(-1px); }
/* texto do CTA do hero: completo no desktop, curto no mobile (evita quebra em 3 linhas) */
.btn-cta__sm { display: none; }

/* =============================================================
   WHATSAPP FLOAT
   ============================================================= */
.wa-float {
  position: fixed;
  right: 40px; bottom: 40px;                /* igual ao original */
  width: 56px; height: 56px;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 20px hsl(230 45% 4% / 0.35);
  z-index: 50;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =============================================================
   RESPONSIVO — conteúdo do hero ocupa toda a workspace em telas menores
   ============================================================= */
@media (max-width: 1024px) {
  .hero__copy { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .hero { min-height: 88vh; }
}

/* =============================================================
   HELPERS DE SEÇÃO
   ============================================================= */
.section { padding-block: var(--sp-128); position: relative; }
/* respiro entre seções: 128px no desktop, 96px de <=1024 p/ baixo (inclui mobile) */
@media (max-width: 1024px) { .section { padding-block: var(--sp-96); } }
/* blocos de conteúdo da seção ocupam toda a largura da workspace (o grid
   interno de cada bloco cuida das colunas dos cards) */
.section > .workspace > * { grid-column: 1 / -1; }
.section-title {
  font-size: var(--fs-h5);          /* 40px medido */
  line-height: var(--lh-title);
  color: var(--ink-light);
  text-align: center;
}
.section-title--left { text-align: left; }
.section-sub {
  margin-top: var(--sp-16);
  font-size: var(--fs-p-m);
  line-height: var(--lh-body);
  color: var(--muted-light);
  text-align: center;
}

/* =============================================================
   1 · POR QUE ESCOLHER — 4 cards claros sobre navy
   ============================================================= */
.why { background: url("assets/Bloco-2.webp") center / cover no-repeat, var(--navy); }
.why__grid {
  margin-top: var(--sp-64);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);                /* 32px — gutter do grid (cada card = 3 colunas) */
}
.why-card {
  background: var(--surface-lt);
  border-radius: var(--r-md);            /* 8px (guia: só 4/8/24; era 10) */
  padding: var(--sp-24) var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  transition: transform .3s ease, box-shadow .3s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why-card__img { width: 100%; height: 164px; object-fit: cover; border-radius: var(--r-md); }
.why-card__title { font-size: var(--fs-p-l); font-weight: 700; line-height: var(--lh-title); color: var(--ink-dark); }
.why-card__text  { font-size: var(--fs-p-s); line-height: var(--lh-body); color: var(--muted-dark); }

/* =============================================================
   2 · DOR + CTA — imagem + scrim navy escuro, centralizado
   ============================================================= */
.pain { overflow: hidden; display: grid; place-items: center; text-align: center; }
.pain__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.pain__scrim { position: absolute; inset: 0; background: hsl(230 70% 8% / 0.88); opacity: 0.5; z-index: 1; }
.pain .workspace { position: relative; z-index: 2; }
.pain__copy { grid-column: 1 / -1; max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: var(--sp-24); }
.pain__text { font-size: var(--fs-p-m); line-height: var(--lh-body); color: var(--muted-light); max-width: 760px; }

/* =============================================================
   Dots reutilizados pelo explorador de produtos ([data-dots])
   ============================================================= */
.carousel__dots { display: flex; gap: var(--sp-8); }
.carousel__dot {
  width: 10px; height: 10px; padding: 0; flex: none;
  border: none; border-radius: 50%; background: hsl(230 25% 42%); cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.carousel__dot.is-active { background: var(--ink-light); transform: scale(1.2); }

/* =============================================================
   3B · PRODUTOS — EXPLORADOR POR ABAS (visão compacta: 1 painel por vez)
   ============================================================= */
.explorer__hint { margin-top: var(--sp-24); text-align: center; font-size: var(--fs-p-m); color: var(--muted-light); }
.explorer { margin-top: var(--sp-32); }
.explorer__track {
  display: flex; gap: var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.explorer__track::-webkit-scrollbar { display: none; }
.explorer__slide {
  flex: 0 0 90%;                    /* ~1 produto + espia do próximo à direita */
  scroll-snap-align: start;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: center;
}
.explorer__media { grid-column: 1 / span 7; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.explorer__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.explorer__text { grid-column: 8 / -1; }
.explorer__text h3 { font-size: var(--fs-h6); line-height: var(--lh-title); color: var(--ink-light); }
.explorer__text p  { margin-top: var(--sp-16); font-size: var(--fs-p-m); line-height: var(--lh-body); color: var(--muted-light); }
.explorer__list { margin-top: var(--sp-24); list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-8); }
.explorer__list li { position: relative; padding-left: var(--sp-32); font-size: var(--fs-p-s); color: var(--muted-light); }
.explorer__list li::before { content: "✓"; position: absolute; left: 0; color: var(--ink-light); font-weight: 700; }

/* controles didáticos: botões grandes Anterior/Próximo + contador + dots */
.explorer__controls { margin-top: var(--sp-32); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-16); flex-wrap: wrap; }
.explorer__nav {
  display: inline-flex; align-items: center; gap: var(--sp-8);
  font-family: var(--ff); font-size: var(--fs-p-m); font-weight: var(--btn-fw);
  color: var(--ink-light); cursor: pointer;
  padding: var(--sp-16) var(--sp-24); border-radius: var(--r-md);
  background: radial-gradient(var(--navy-btn-1) 41%, var(--navy-btn-2) 100%);
  border: 1px solid hsl(230 40% 40%);
  transition: filter .2s ease, transform .2s ease;
}
.explorer__nav:hover { filter: brightness(1.12); transform: translateY(-1px); }
.explorer__nav svg { width: 24px; height: 24px; }
.explorer__status { display: flex; flex-direction: column; align-items: center; gap: var(--sp-8); }
.explorer__counter { font-size: var(--fs-p-m); color: var(--ink-light); }
.explorer__counter b { font-weight: 700; }

@media (max-width: 1024px) {
  .explorer__slide { flex-basis: 92%; grid-template-columns: 1fr; row-gap: var(--sp-24); }
  .explorer__media, .explorer__text { grid-column: 1 / -1; }
}

/* =============================================================
   4 · SEGMENTOS — grid de cards com imagem + título sobreposto (seção clara)
   ============================================================= */
.sectors { background: var(--muted-light); }
.sectors__title, .sectors__sub { color: #060b22; }
/* arranjo 3-4-3 do original: grid de 12 col, gap 16; linhas 1 e 3 = 3 cards
   (span 4), linha 2 = 4 cards (span 3) */
.sectors__grid {
  margin-top: var(--sp-64);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-16);
}
.sector-card {
  grid-column: span 4;
  position: relative;
  min-height: 280px;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  place-items: center;              /* conteúdo centralizado */
  text-align: center;
  background: var(--navy);
  transition: transform .3s ease, box-shadow .3s ease;
}
.sector-card:nth-child(n+4):nth-child(-n+7) { grid-column: span 3; }   /* cards 4–7 (2ª linha) */
.sector-card::before {             /* imagem (sem escurecimento; dá zoom no hover) */
  content: ""; position: absolute; inset: 0;
  background: var(--img) center / cover no-repeat;
  transition: transform .5s ease;
}
.sector-card h3 {
  position: relative; z-index: 1;
  padding: var(--sp-24);
  font-size: var(--fs-p-xl); font-weight: 600; line-height: var(--lh-title); color: #fff;
  text-shadow: 0 2px 14px rgba(6, 11, 34, 0.75);   /* legibilidade sem overlay */
}
.sector-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.sector-card:hover::before { transform: scale(1.07); }
.sectors__cta { margin-top: var(--sp-40); text-align: center; }

/* =============================================================
   5 · PERFIS USINADAS — grid de imagens técnicas (seção escura via bloco_6)
   ============================================================= */
.profiles { background: url("assets/bloco_6.webp") center / cover no-repeat, var(--navy); }
.profiles__hint { margin-top: var(--sp-24); text-align: center; font-size: var(--fs-p-m); color: var(--muted-light); }
.profiles-tabs { margin-top: var(--sp-40); max-width: 1000px; margin-inline: auto; }
/* abas coladas na área branca (folder-tab): a ativa fica branca e funde no painel */
.profiles-tabs__nav { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.profiles-tab {
  flex: 1 1 auto; min-width: 130px; text-align: center;
  font-family: var(--ff); font-size: var(--fs-p-m); font-weight: var(--btn-fw);
  color: var(--ink-light); cursor: pointer;
  padding: var(--sp-16) var(--sp-16);
  border: 1px solid hsl(230 40% 42%); border-bottom: none;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: hsl(230 45% 16% / 0.55);
  transition: background .2s ease, color .2s ease;
}
.profiles-tab:hover { background: hsl(230 45% 26% / 0.9); }
.profiles-tab.is-active { background: #fff; color: var(--navy); border-color: #fff; }
/* área branca IDÊNTICA em todas as abas: caixa de proporção fixa (a do maior perfil).
   Toda imagem ocupa a MESMA largura e a mesma caixa; as mais baixas centralizam. */
.profiles-tabs__panels {
  background: #fff;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: var(--sp-32);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.profiles-panel { display: none; }
.profiles-panel.is-active { display: block; width: 100%; aspect-ratio: 1165 / 679; }
.profiles-panel img { width: 100%; height: 100%; object-fit: contain; }

/* =============================================================
   6 · DEPOIMENTOS — 2 col de cards claros sobre navy
   ============================================================= */
.reviews__grid {
  margin-top: var(--sp-64);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-24);
}
.review-card {
  background: var(--surface-lt);
  border-radius: var(--r-lg);
  padding: var(--sp-32);
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  transition: transform .3s ease, box-shadow .3s ease;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.review-card__stars { color: hsl(45 95% 52%); font-size: 24px; line-height: 1; letter-spacing: 2px; }
.review-card__quote { font-size: var(--fs-p-s); line-height: var(--lh-body); color: #33384d; flex: 1; }
.review-card__author { display: flex; align-items: center; gap: var(--sp-16); }
.review-card__author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review-card__author span { font-size: var(--fs-p-s); font-weight: 600; color: var(--navy); }
.reviews__foot { margin-top: var(--sp-40); text-align: center; font-size: var(--fs-p-m); color: var(--muted-light); }

/* =============================================================
   7 · GRUPO CENTER SEALS — texto à esquerda, seção clara
   ============================================================= */
.group { background: url("assets/bloco_9.webp") 50% 100% / auto no-repeat, #f2f2f2; }
.group__copy { max-width: 980px; }
.group .section-title { color: #060b22; margin-bottom: var(--sp-24); }
.group__text { font-size: var(--fs-p-s); line-height: 1.65; color: #48494d; margin-bottom: var(--sp-16); }

/* =============================================================
   8 · CTA FINAL — imagem + scrim, centralizado
   ============================================================= */
.finalcta { overflow: hidden; display: grid; place-items: center; text-align: center; background: url("assets/Bloco-9.webp") 50% 50% / auto no-repeat, var(--navy); }
.finalcta__copy { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: var(--sp-24); }

/* =============================================================
   9 · RODAPÉ
   ============================================================= */
.site-footer { padding-block: var(--sp-64); }
/* 3 colunas (igual original): logo+Contato+sociais | Links rápidos | Contato */
.site-footer .workspace { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--sp-64); align-items: start; }
.footer__col--brand { display: flex; flex-direction: column; gap: var(--sp-32); }
.footer__logo { width: 140px; height: auto; }
.footer__title { font-size: var(--fs-p-m); font-weight: 600; color: var(--ink-light); margin-bottom: var(--sp-16); }
.footer__social { display: flex; gap: var(--sp-16); }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink-light); transition: transform .2s ease, opacity .2s ease; }
.footer__social a:hover { transform: translateY(-2px); opacity: .82; }
.footer__social svg { height: 30px; width: auto; fill: currentColor; }
.footer__links { list-style: none; padding: 0; }
.footer__links li, .footer__line { font-size: var(--fs-p-s); line-height: 1.8; color: var(--muted-light); }
.footer__links a, .footer__line a { color: inherit; text-decoration: none; transition: color .2s ease; }
.footer__links a:hover, .footer__line a:hover { color: var(--ink-light); }
.footer__line { margin-block: var(--sp-8); }
.footer__line a { display: inline-flex; align-items: flex-start; gap: var(--sp-8); }
.footer__ico { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; fill: currentColor; opacity: .85; }
.footer__line a:hover .footer__ico { opacity: 1; }
@media (max-width: 880px) { .site-footer .workspace { grid-template-columns: 1fr 1fr; gap: var(--sp-40); } }
@media (max-width: 600px) { .site-footer .workspace { grid-template-columns: 1fr; } }

/* =============================================================
   RESPONSIVO das seções
   ============================================================= */
@media (max-width: 1024px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .sectors__grid { grid-template-columns: repeat(2, 1fr); }
  .sectors__grid .sector-card,
  .sectors__grid .sector-card:nth-child(n+4):nth-child(-n+7) { grid-column: auto; }
}
@media (max-width: 880px) {
  .why__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  /* setores mantêm 2 por linha (não caem p/ 1 coluna) */
}
@media (max-width: 767px) {
  /* CTA do hero: usa o texto curto no mobile */
  .btn-cta__lg { display: none; }
  .btn-cta__sm { display: inline; }
  /* botões no mobile = tamanho Small do DS (fonte 16px + padding menor):
     Médio (20px/24px) é grande demais em tela estreita e força quebra */
  .btn-cta { font-size: var(--btn-sm-fs); padding: var(--sp-16) var(--sp-24); }
  /* respiro no fim do rodapé p/ a última linha não ficar sob o botão flutuante do WhatsApp */
  .site-footer { padding-bottom: var(--sp-96); }
  /* Perfis: desenhos no MÁXIMO — rompe o cap do workspace até a borda da tela
     (full-bleed por viewport), sem preenchimento. Mantém a caixa de proporção
     fixa (base 1165/679) p/ TODAS as abas terem a MESMA altura; como as 5 imagens
     têm a mesma largura, todas ficam em largura cheia (contain) */
  .profiles { overflow-x: hidden; }                 /* apara qualquer spill sub-pixel do 100vw */
  .profiles-tabs { width: 100vw; margin-inline: calc(50% - 50vw); max-width: 100vw; }
  .profiles-tabs__panels { padding: 0; border-radius: 0; }

  /* Produtos no mobile: 1 por vez (sem espia) + só as 2 setas à esquerda e
     "Produto X de 5" à direita (esconde rótulos e dots) */
  .explorer__slide { flex-basis: 100%; }
  .explorer__controls { flex-wrap: nowrap; gap: var(--sp-8); }
  .explorer__nav { order: 0; padding: var(--sp-8); }
  .explorer__nav[data-next] { order: 1; }
  .explorer__nav span { display: none; }             /* só o ícone da seta */
  .explorer__nav svg { width: 28px; height: 28px; }
  .explorer__status { order: 2; margin-left: auto; }  /* contador empurrado p/ a direita */
  .explorer__status .carousel__dots { display: none; }

  /* Setores no mobile: 2 por linha, quadrados menores, fonte proporcional */
  .sectors__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
  .sector-card { min-height: 0; aspect-ratio: 1 / 1; }
  .sector-card h3 { font-size: var(--fs-p-m); padding: var(--sp-16); }
}
