/* ==========================================================================
   Afribahx — componentes e micro-interações (layout via Tailwind)
   Paleta oficial: Branco Gelo #F8F9FA · Cinza Ardósia #4A4A4A
   Cinza Metálico #A0A0A0 · Vermelho Foco #C72238 · Amarelo Ouro #FFD600
   ========================================================================== */

:root {
  --ice: #f8f9fa;
  --slateink: #4a4a4a;
  --metal: #a0a0a0;
  --foco: #c72238;
  --foco-dark: #a3192b;
  --ouro: #ffd600;
  --charcoal: #2b2f33;
}

html { scroll-behavior: smooth; }

.wa-icon { fill: currentColor; stroke: none; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  background: var(--charcoal);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 10px 16px; font-size: 13.5px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn .wa-icon { width: 18px; height: 18px; }
.btn--lg .wa-icon { width: 20px; height: 20px; }

.btn--foco {
  background: var(--foco);
  color: #fff;
  box-shadow: 0 16px 30px -16px rgba(199, 34, 56, .8);
}
.btn--foco:hover { background: var(--foco-dark); }

.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--metal);
}
.btn--outline:hover { border-color: var(--foco); color: var(--foco); }

.btn--light {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.btn--light:hover { background: rgba(255, 255, 255, .18); }

/* ---------- Badge de seção ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--foco);
  background: rgba(199, 34, 56, .07);
  border: 1px solid rgba(199, 34, 56, .18);
  padding: 8px 15px;
  border-radius: 999px;
}
.badge--dark {
  color: var(--ouro);
  background: rgba(255, 214, 0, .1);
  border-color: rgba(255, 214, 0, .28);
}

/* ---------- Hero imagens ---------- */
.hero-badge { }

/* ---------- Setores ---------- */
.setor {
  background: #fff;
  border: 1px solid rgba(160, 160, 160, .28);
  border-radius: 18px;
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.setor:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 45px -28px rgba(43, 47, 51, .5);
  border-color: rgba(199, 34, 56, .35);
}
.setor__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(199, 34, 56, .08);
  color: var(--foco);
  margin-bottom: 18px;
}
.setor__icon svg { width: 26px; height: 26px; }
.setor h3 { font-family: "Archivo", system-ui, sans-serif; font-size: 18px; font-weight: 700; color: var(--charcoal); margin-bottom: 8px; }
.setor p { font-size: 15px; color: var(--slateink); margin: 0; }

/* ---------- Materiais ---------- */
.mat {
  background: #fff;
  border: 1px solid rgba(160, 160, 160, .28);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mat:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 45px -28px rgba(43, 47, 51, .5);
  border-color: transparent;
}
.mat__img { width: 100%; height: 190px; object-fit: cover; }
.mat__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.mat__body h3 { font-family: "Archivo", system-ui, sans-serif; font-size: 19px; font-weight: 700; color: var(--charcoal); margin-bottom: 8px; }
.mat__body p { font-size: 15px; color: var(--slateink); flex: 1; }
.mat__link {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--foco);
  margin-top: 6px;
  transition: color .18s ease, gap .18s ease;
}
.mat__link:hover { color: var(--foco-dark); }

/* ---------- Diferenciais ---------- */
.diff {
  position: relative;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 28px 26px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.diff:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 214, 0, .4);
}
.diff__num {
  display: block;
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 900;
  font-size: 30px;
  color: var(--ouro);
  margin-bottom: 12px;
}
.diff h3 { font-family: "Archivo", system-ui, sans-serif; font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.diff p { font-size: 15px; color: #c9cdd2; margin: 0; }

/* ---------- Depoimentos ---------- */
.review {
  background: #fff;
  border: 1px solid rgba(160, 160, 160, .28);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 18px 40px -30px rgba(43, 47, 51, .5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.review:hover { transform: translateY(-4px); box-shadow: 0 22px 45px -28px rgba(43, 47, 51, .5); }

/* ---------- Galeria + Lightbox ---------- */
.gallery__item {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: #fff;
}
.gallery__item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 14px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(43, 47, 51, .85));
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 23, 26, .93);
  padding: 40px 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 22px;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .22); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__caption {
  position: absolute;
  bottom: 22px; left: 0; right: 0;
  text-align: center;
  color: #d7deeb;
  font-size: 14px;
  padding: 0 20px;
}

/* ---------- FAQ ---------- */
.faq__item {
  background: #fff;
  border: 1px solid rgba(160, 160, 160, .28);
  border-radius: 14px;
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 54px 19px 22px;
  position: relative;
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--charcoal);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--foco);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { content: "–"; }
.faq__item p { padding: 0 22px 20px; margin: 0; color: var(--slateink); font-size: 15px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--foco);
  color: #fff;
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 18px 34px -14px rgba(199, 34, 56, .85);
  transition: transform .18s ease, background .18s ease;
  animation: waPulse 2.6s ease-in-out infinite;
}
.wa-float:hover { transform: translateY(-3px); background: var(--foco-dark); }
.wa-float .wa-icon { width: 22px; height: 22px; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 18px 34px -14px rgba(199, 34, 56, .85); }
  50% { box-shadow: 0 18px 40px -10px rgba(199, 34, 56, 1), 0 0 0 8px rgba(199, 34, 56, .12); }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
}

/* ---------- Navegação (mobile) ---------- */
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 600; font-size: 15px; color: var(--slateink); position: relative; transition: color .18s ease; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--foco);
  transition: width .2s ease;
}
.nav a:hover { color: var(--charcoal); }
.nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid rgba(160, 160, 160, .5);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 72px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid rgba(160, 160, 160, .3);
    box-shadow: 0 24px 45px -28px rgba(43, 47, 51, .5);
    padding: 8px 20px 16px;
    transform: translateY(-140%);
    transition: transform .28s ease;
    z-index: 55;
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 13px 0; border-bottom: 1px solid rgba(160, 160, 160, .25); }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-cta-label { display: none; }
}

@media (max-width: 640px) {
  .wa-float__label { display: none; }
  .wa-float { padding: 15px; }
  .wa-float .wa-icon { width: 26px; height: 26px; }
  .gallery__item img { height: 140px; }
}
