/* ============================================================
   styles.css — Non-critical styles (loaded async)
============================================================ */


/* ── LAYOUT ── */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(1rem,4vw,2.5rem); }
.section { padding-block: clamp(4rem,8vw,7rem); position: relative; z-index: 10; }

/* ── SECTION HEADERS ── */
.section-header { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: clamp(2.5rem,5vw,4rem); }
.section-header--left { text-align: left; margin-inline: 0; }

.section-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 4px 14px; border-radius: 100px; width: fit-content; margin-bottom: .875rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clr-accent); backdrop-filter: blur(8px);
}

.section-title {
  font-size: clamp(1.875rem,4vw,2.875rem); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.08; margin-bottom: 1rem;
}
.section-subtitle { font-size: 1.0625rem; color: rgba(250,250,250,.55); line-height: 1.75; }

/* ── ISLAND NAV RESPONSIVE ── */
@media (max-width: 860px) {
  /* Oculta island-nav no mobile — substituída pelo bottom nav */
  .island-nav { display: none; }
  .island-mobile-menu { display: none; }
  /* Exibe mobile bottom nav */
  .mobile-btm-nav { display: flex; }
  /* Espaço no rodapé para o bottom nav não cobrir conteúdo */
  body { padding-bottom: 92px; }
}

@media (max-width: 480px) {
  .mobile-btm-nav { bottom: 12px; left: 12px; right: 12px; }
}

/* ── SOLUTIONS ── */
.section--solutions {
  background: linear-gradient(
    calc(var(--grad-dir) + 20deg),
    color-mix(in srgb, var(--grad-a) 88%, #0d0d18) 0%,
    color-mix(in srgb, var(--grad-b) 92%, #0a0a12) 100%
  );
}

.solutions-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid rgba(255,255,255,.09); border-radius: 12px; overflow: hidden; gap: 0;
}

.solution-card {
  padding: clamp(1.75rem,3vw,2.5rem);
  border-radius: 0; border: none;
  border-left: 1px solid rgba(255,255,255,.08);
  transition: background .25s;
  position: relative;
}
.solution-card:first-child { border-left: none; }
.solution-card::after { /* override glass::after highlight to use for accent line */
  height: 2px; top: auto; bottom: 0; left: 0; right: 0; border-radius: 0;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-2), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.solution-card:hover::after { transform: scaleX(1); }

.solution-card__icon { color: var(--clr-accent); margin-bottom: 1.375rem; position: relative; z-index: 1; }
.solution-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: .75rem; position: relative; z-index: 1; }
.solution-card p { font-size: .9375rem; color: rgba(250,250,250,.52); line-height: 1.75; margin-bottom: 1.375rem; position: relative; z-index: 1; }

.solution-card__list { list-style: none; display: flex; flex-direction: column; gap: .4rem; position: relative; z-index: 1; }
.solution-card__list li {
  font-size: .8125rem; font-weight: 500; color: rgba(250,250,250,.4);
  display: flex; align-items: center; gap: .5rem;
}
.solution-card__list li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--clr-accent); flex-shrink: 0;
}

/* ── PORTFOLIO ── */
.section--portfolio {
  background: linear-gradient(var(--grad-dir), var(--grad-a) 0%, var(--grad-b) 100%);
}

.portfolio-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem;
}
/* 1 item → largura total | 2 itens → lado a lado | 3+ → grade 3 colunas */
.portfolio-grid[data-count="1"] { grid-template-columns: 1fr; }
.portfolio-grid[data-count="2"] { grid-template-columns: repeat(2,1fr); }
/* Centraliza último item órfão em grade de 3 colunas */
.portfolio-grid .portfolio-item:last-child:nth-child(3n+2) { grid-column: span 1; }
.portfolio-grid .portfolio-item:last-child:nth-child(3n+1):not(:first-child) { grid-column: 2 / 3; }

.portfolio-item { border-radius: 10px; overflow: hidden; }

.portfolio-item__trigger {
  width: 100%; background: none; border: none; cursor: pointer;
  display: block; text-align: left; padding: 0;
}

.portfolio-item__thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: rgba(255,255,255,.04);
}
.portfolio-item__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .55s ease; position: relative; z-index: 1;
}
.portfolio-item__trigger:hover .portfolio-item__thumb img { transform: scale(1.06); }

.portfolio-item__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(6,6,8,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.portfolio-item__trigger:hover  .portfolio-item__overlay,
.portfolio-item__trigger:focus-visible .portfolio-item__overlay { opacity: 1; }

.play-btn {
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-2) 100%); color: #0A0A0A;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s;
  box-shadow: 0 8px 32px rgba(var(--clr-accent-rgb),.4);
}
.portfolio-item__trigger:hover .play-btn { transform: scale(1.12); }

/* Glass tint on thumb */
.portfolio-item__thumb::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.01) 100%);
}

.portfolio-item__info {
  background: linear-gradient(var(--grad-dir), color-mix(in srgb, var(--grad-a) 75%, #0e0e16) 0%, color-mix(in srgb, var(--grad-b) 80%, #0e0e16) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-top: none; padding: 1rem 1.25rem 1.125rem;
}
.portfolio-item__category {
  display: block; font-size: .625rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--clr-accent); margin-bottom: .25rem;
}
.portfolio-item__info h3 { font-size: .9375rem; font-weight: 600; color: var(--clr-text); }

/* Portfolio placeholder (sem imagem) */
.portfolio-item__placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%);
  color: rgba(255,255,255,.2); font-size: .75rem; font-weight: 500;
  position: relative; z-index: 1;
}

/* ── TESTIMONIALS ── */
.section--testimonials {
  background: linear-gradient(
    calc(var(--grad-dir) + 15deg),
    color-mix(in srgb, var(--grad-a) 96%, #000) 0%,
    color-mix(in srgb, var(--grad-b) 97%, #030308) 100%
  );
}

.testimonials-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem;
}
.testimonials-grid .testimonial-card:last-child:nth-child(3n+1):not(:first-child) { grid-column: 2 / 3; }

.testimonial-card {
  border-radius: 20px; padding: 28px; position: relative;
  transition: transform .3s;
}
.testimonial-card:hover { transform: translateY(-4px); }

.testimonial-card__quote-icon {
  position: absolute; top: 20px; right: 20px;
  color: rgba(255,255,255,.06); pointer-events: none;
}

.testimonial-stars { display: flex; gap: 3px; margin-bottom: 14px; position: relative; z-index: 1; }
.testimonial-stars svg { color: var(--clr-accent); }

.testimonial-text {
  font-size: .9375rem; color: rgba(250,250,250,.58);
  line-height: 1.78; margin-bottom: 20px; position: relative; z-index: 1;
}

.testimonial-author { position: relative; z-index: 1; }
.testimonial-author strong { display: block; font-weight: 700; font-size: .9375rem; color: #fff; }
.testimonial-author span { font-size: .75rem; color: rgba(250,250,250,.35); text-transform: uppercase; letter-spacing: .06em; }

/* ── PADRÃO BNR ── */
.section--standard {
  background: linear-gradient(
    calc(var(--grad-dir) + 20deg),
    color-mix(in srgb, var(--grad-a) 88%, #0d0d18) 0%,
    color-mix(in srgb, var(--grad-b) 92%, #0a0a12) 100%
  );
}

.standard-layout {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem,6vw,6rem); align-items: start;
}

.standard-specs { display: flex; flex-direction: column; gap: 1rem; }

.spec-item {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.375rem 1.5rem; border-radius: 12px;
  transition: border-color .25s, transform .2s;
}
.spec-item:hover { border-color: rgba(var(--clr-accent-rgb),.45); transform: translateX(5px); }

.spec-item__icon { color: var(--clr-accent); flex-shrink: 0; margin-top: 1px; position: relative; z-index: 1; }
.spec-item h3 { font-size: .9375rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .3rem; position: relative; z-index: 1; }
.spec-item p  { font-size: .875rem; color: rgba(250,250,250,.5); line-height: 1.75; position: relative; z-index: 1; }

/* ── CAPTURE / FORM ── */
.section--capture {
  background: linear-gradient(
    calc(var(--grad-dir) + 180deg),
    var(--grad-a) 0%, var(--grad-b) 100%
  );
}

.capture-layout {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem,6vw,5rem); align-items: start;
}

.capture-info .section-pill { margin-bottom: .75rem; }
.capture-info .section-title { margin-bottom: 1rem; }
.capture-info > p { font-size: 1rem; color: rgba(250,250,250,.55); line-height: 1.8; margin-bottom: 2rem; }

.contact-options { display: flex; flex-direction: column; gap: .875rem; }
.contact-option {
  display: inline-flex; align-items: center; gap: .625rem;
  color: rgba(250,250,250,.58); text-decoration: none; font-size: .9375rem; font-weight: 500;
  transition: color .2s;
}
.contact-option:hover { color: var(--clr-accent); }

/* Form */
.lead-form {
  border-radius: 16px; padding: clamp(1.5rem,4vw,2.5rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem;
}

.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-group--full { grid-column: 1/-1; }

.form-group label { font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: rgba(250,250,250,.78); position: relative; z-index: 1; }
.form-group label span { color: var(--clr-accent); }

.form-group input, .form-group select, .form-group textarea {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; color: var(--clr-text); font-family: var(--font-sans);
  font-size: .9375rem; padding: .6875rem .875rem;
  transition: border-color .2s, box-shadow .2s; width: 100%;
  appearance: none; -webkit-appearance: none; position: relative; z-index: 1;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .875rem center; padding-right: 2.5rem; cursor: pointer;
}
.form-group option { background: #111; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(var(--clr-accent-rgb),.1);
}
.form-group input.is-invalid, .form-group select.is-invalid, .form-group textarea.is-invalid { border-color: #ff4d4d; box-shadow: 0 0 0 3px rgba(255,77,77,.08); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(250,250,250,.25); }
.form-group textarea { resize: vertical; min-height: 110px; line-height: 1.65; }
.form-error { font-size: .75rem; color: #ff4d4d; min-height: 1.1em; font-weight: 500; position: relative; z-index: 1; }

.btn-cta--full { grid-column: 1/-1; width: 100%; justify-content: center; padding: .875rem 1.5rem; font-size: .9375rem; }

.form-legal {
  grid-column: 1/-1; font-size: .75rem; color: rgba(250,250,250,.3);
  text-align: center; line-height: 1.65; position: relative; z-index: 1;
}
.form-legal a { color: rgba(250,250,250,.5); text-decoration: underline; text-underline-offset: 2px; }
.form-legal a:hover { color: var(--clr-accent); }

.form-success {
  grid-column: 1/-1; display: flex; align-items: center; gap: .75rem;
  background: rgba(74,222,128,.07); border: 1px solid rgba(74,222,128,.25);
  border-radius: 8px; padding: 1rem 1.25rem;
  font-size: .9375rem; font-weight: 500; color: #4ade80;
  position: relative; z-index: 1;
}
.form-success[hidden] { display: none; }

/* ── Padrão BNR — marca d'água do logo por trás da coluna esquerda ── */
#padrao-bnr .section-header--left {
  position: relative;
  isolation: isolate;
}
#padrao-bnr .section-header--left::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(260px, 80%);
  aspect-ratio: 1;
  background: url('../logos/logo-icon.png') center / contain no-repeat;
  opacity: .03;
  pointer-events: none;
  z-index: -1;
}

/* ── Contato — assinatura do logo abaixo dos links ── */
.capture-info-logo {
  display: block;
  width: 36px;
  height: auto;
  opacity: 1;
  margin-top: 2rem;
}

/* ── FOOTER ── */
.site-footer {
  background: linear-gradient(
    calc(var(--grad-dir) + 10deg),
    color-mix(in srgb, var(--grad-a) 85%, #000) 0%,
    color-mix(in srgb, var(--grad-b) 88%, #000) 100%
  );
  border-top: 1px solid rgba(255,255,255,.06);
  padding-block: 4.5rem 2rem;
  position: relative; z-index: 10;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem; margin-bottom: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.footer-brand a { display: inline-block; margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; color: rgba(250,250,250,.4); line-height: 1.75; max-width: 280px; }

.footer-nav h4, .footer-contact h4 {
  font-size: .625rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(250,250,250,.3); margin-bottom: 1.25rem;
}
.footer-nav ul, .footer-contact ul { list-style: none; }
.footer-nav ul li, .footer-contact ul li { margin-bottom: .625rem; }
.footer-nav a, .footer-contact a { color: rgba(250,250,250,.55); text-decoration: none; font-size: .9375rem; transition: color .2s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--clr-accent); }

.social-links { display: flex; gap: .875rem; margin-top: 1.5rem; }
.social-links a { color: rgba(250,250,250,.4); transition: color .2s; display: flex; }
.social-links a:hover { color: var(--clr-accent); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .75rem; font-size: .8125rem; color: rgba(250,250,250,.32);
}
.footer-legal-link { color: rgba(250,250,250,.32); text-decoration: none; transition: color .2s; }
.footer-legal-link:hover { color: var(--clr-text); }

/* ── VIDEO MODAL ── */
.video-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.video-modal[hidden] { display: none; }
.video-modal.is-entering { animation: bnr-fadeIn .28s ease; }
.video-modal.is-leaving  { animation: modal-out .22s ease forwards; }
@keyframes modal-out { from{opacity:1} to{opacity:0} }

.video-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.93); backdrop-filter: blur(6px); }
.video-modal__container { position: relative; z-index: 1; width: 100%; max-width: 960px; }
.video-modal__close {
  position: absolute; top: -3rem; right: 0;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: var(--clr-text); cursor: pointer; padding: .5rem; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.video-modal__close:hover { background: rgba(255,255,255,.16); }
.video-modal__player { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,.7); }
.video-modal__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ── FOCUS A11Y ── */
:focus-visible { outline: 2px solid var(--clr-accent); outline-offset: 3px; border-radius: 3px; }

/* ── HOVER TRANSITIONS (feature cards) ── */
.solution-card { transition: background .25s; }
.testimonial-card { transition: transform .3s, border-color .3s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-card { border-left: none; border-top: 1px solid rgba(255,255,255,.08); }
  .solution-card:first-child { border-top: none; }
  .portfolio-grid:not([data-count="1"]):not([data-count="2"]) { grid-template-columns: repeat(2,1fr); }
  .testimonials-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  #padrao-bnr .section-header--left::after {
    bottom: auto; right: auto;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(200px, 60%);
    opacity: .04;
  }
  .capture-info-logo { margin-top: 1.75rem; }
  .standard-layout { grid-template-columns: 1fr; }
  .capture-layout  { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .footer-brand    { grid-column: 1/-1; }
}

@media (max-width: 768px) {
  .lead-form  { grid-template-columns: 1fr; }
  .btn-cta--full, .form-legal, .form-success { grid-column: 1; }
}

@media (max-width: 600px) {
  .btn-cta           { padding: .5rem 1rem; font-size: .75rem; }
  .portfolio-grid,
  .portfolio-grid[data-count="2"] { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr; }
  .footer-bottom     { flex-direction: column; align-items: flex-start; }

  /* ── Hero mobile ── */
  .hero__h1 {
    /* 10.5vw: a 375px = 39px → "VOCÊ PRECISA," cabe em 327px disponíveis */
    font-size: clamp(1.8rem, 10.5vw, 3.2rem);
    line-height: 1.02;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }
  .hero__actions .btn-cta {
    justify-content: center;
    width: 100%;
  }
}

@media print {
  .island-nav, .island-mobile-menu, .video-modal, .bg-noise, .bg-grid, .bg-scan { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ══════════════════════════════════════════════
   ANIMAÇÕES
══════════════════════════════════════════════ */

/* ── Hero: animação de carga ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.hero__h1      { animation: fadeUp .75s cubic-bezier(.22,1,.36,1) .15s both; }
.hero__tagline { animation: fadeUp .75s cubic-bezier(.22,1,.36,1) .35s both; }
.hero__sub     { animation: fadeUp .75s cubic-bezier(.22,1,.36,1) .5s  both; }
.hero__actions { animation: fadeUp .75s cubic-bezier(.22,1,.36,1) .65s both; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1),
              transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger em grades */
.reveal-group .reveal:nth-child(2) { transition-delay: .1s; }
.reveal-group .reveal:nth-child(3) { transition-delay: .2s; }
.reveal-group .reveal:nth-child(4) { transition-delay: .3s; }
.reveal-group .reveal:nth-child(n+5) { transition-delay: .38s; }

/* Respeita preferência por movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .hero__h1, .hero__tagline, .hero__sub, .hero__actions { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
