/* =========================================================================
   BLIPEI HOME — vitrine da região (BP-HOME-002, 24/11/2026)
   Carregado só por pages/home/vitrine.php. Não altera o blipei.css nem o
   blipei-fx.css; reaproveita .bp-card, .bp-grid e .bp-section para herdar
   o tema escuro e a animação de entrada que já existem.

   Regras de cor (BP-A11Y-AAA-001):
   - texto sobre foto ou faixa escura usa cor LITERAL clara (no tema escuro
     os tokens de texto mudam; o fundo destas áreas não muda);
   - texto sobre âmbar é sempre #0f172a.
   Mudou este arquivo? Subir ASSETS_VERSION no .env (local e produção): o
   CDN guarda assets por 1 ano.
   ========================================================================= */

/* ----------------------------- HERO -------------------------------------- */
.bph-hero{
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: clamp(480px, 66vh, 660px);
  background: #0f172a; color: #fff;
}
.bph-hero-foto{ position: absolute; inset: 0; z-index: 0; }
.bph-hero-foto img{ width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }
/* Véu: garante contraste AAA do texto branco em qualquer ponto da foto. */
.bph-hero-veu{
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(15,23,42,.72) 0%, rgba(15,23,42,.38) 55%, rgba(15,23,42,.12) 100%),
    linear-gradient(180deg, rgba(15,23,42,.50) 0%, rgba(15,23,42,.42) 35%, rgba(15,23,42,.86) 82%, rgba(15,23,42,.95) 100%);
}
/* min-width:0 — é item de flex: sem isto a linha de atalhos (nowrap no celular) alarga o hero
   além da tela. */
.bph-hero-in{ position: relative; z-index: 2; width: 100%; min-width: 0; box-sizing: border-box; padding-top: 4.5rem; padding-bottom: 3.2rem; }
.bph-kicker{
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 .9rem; padding: .35rem .85rem; border-radius: 99px;
  background: rgba(15,23,42,.66); border: 1px solid rgba(255,255,255,.28);
  font-size: var(--bp-text-sm); font-weight: 700; letter-spacing: .02em; color: #fff;
}
.bph-hero h1{
  font-family: var(--bp-font-display); font-weight: 900;
  font-size: clamp(2.1rem, 5.4vw, 3.7rem); line-height: 1.04;
  margin: 0 0 .85rem; max-width: 17ch; color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.bph-sub{
  font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.5;
  max-width: 58ch; margin: 0 0 1.4rem; color: #f1f5f9;
  text-shadow: 0 1px 12px rgba(0,0,0,.55);
}
.bph-acoes{ display: flex; flex-wrap: wrap; gap: .8rem; }
.bph-btn-claro{
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.25rem; min-height: 48px; box-sizing: border-box;
  border: 2px solid rgba(255,255,255,.9); border-radius: var(--bp-radius);
  background: rgba(15,23,42,.5); color: #fff; font-weight: 700; text-decoration: none;
  transition: background .15s, color .15s;
}
.bph-btn-claro:hover, .bph-btn-claro:focus-visible{ background: #fff; color: #0f172a; }
.bph-chips{ list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.5rem 0 0; padding: 0; }
.bph-chips a{
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .95rem; min-height: 44px; box-sizing: border-box;
  border-radius: 99px; background: rgba(255,255,255,.97); color: #0f172a;
  font-weight: 700; font-size: var(--bp-text-sm); text-decoration: none; white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,.28);
  transition: transform .15s, background .15s;
}
.bph-chips a:hover, .bph-chips a:focus-visible{ transform: translateY(-2px); background: #fbbf24; color: #0f172a; }
.bph-chips i{ color: #1e40af; }
.bph-chips a:hover i, .bph-chips a:focus-visible i{ color: #0f172a; }
.bph-credito{
  position: absolute; right: 12px; bottom: 8px; z-index: 2; margin: 0;
  padding: 2px 8px; border-radius: 6px; background: rgba(15,23,42,.72);
  font-size: 11px; line-height: 1.5; color: #e2e8f0;
}

/* Entrada do hero: a foto assenta devagar e o texto sobe em escada. */
@media (prefers-reduced-motion: no-preference){
  .bph-hero-foto img{ animation: bphAssenta 18s ease-out both; }
  .bph-hero-in > *{ animation: bphSobe .7s cubic-bezier(.2,.7,.2,1) both; }
  .bph-hero-in > :nth-child(2){ animation-delay: .07s; }
  .bph-hero-in > :nth-child(3){ animation-delay: .14s; }
  .bph-hero-in > :nth-child(4){ animation-delay: .21s; }
  .bph-hero-in > :nth-child(5){ animation-delay: .28s; }
}
@keyframes bphAssenta{ from{ transform: scale(1.1); } to{ transform: scale(1); } }
@keyframes bphSobe{ from{ opacity: 0; transform: translate3d(0, 18px, 0); } to{ opacity: 1; transform: none; } }
html.bp-no-motion .bph-hero-foto img,
html.bp-no-motion .bph-hero-in > *{ animation: none; }

/* ----------------------------- GERAL ------------------------------------- */
.bph-faixa{ background: var(--bp-blue-50); }
.bph-mais{ text-align: center; margin: 1.7rem 0 0; }

/* ----------------------------- GUIAS ------------------------------------- */
.bph-guias{ grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.bph-guia{ padding: 0; gap: 0; overflow: hidden; }
.bph-guia-midia{ display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bp-gray-100); }
.bph-guia-midia img{ width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.bph-guia:hover .bph-guia-midia img{ transform: scale(1.06); }
.bph-guia-cor{ display: flex; align-items: center; justify-content: center; position: relative; color: #fff; font-size: 2.7rem; }
.bph-guia-cor::after{
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 82% 8%, rgba(255,255,255,.30), transparent 52%),
    linear-gradient(165deg, transparent 38%, rgba(0,0,0,.30));
}
.bph-guia-cor i{ position: relative; z-index: 1; transition: transform .3s ease; }
.bph-guia:hover .bph-guia-cor i{ transform: scale(1.14) rotate(-5deg); }
.bph-guia-texto{ display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.15rem; }

/* ----------------------------- LUGARES ----------------------------------- */
.bph-lugares{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.bph-lugar{ padding: 0; gap: 0; overflow: hidden; }
.bph-lugar-foto{ display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bp-gray-100); }
.bph-lugar-foto img{ width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.bph-lugar:hover .bph-lugar-foto img{ transform: scale(1.07); }
.bph-lugar-texto{ display: flex; flex-direction: column; gap: .4rem; flex: 1; padding: 1rem 1.1rem 1.2rem; }
.bph-lugar-ir{ margin-top: auto; padding-top: .3rem; font-weight: 700; font-size: var(--bp-text-sm); color: var(--bp-blue-700); }
.bph-lugar-ir i{ transition: transform .2s ease; }
.bph-lugar:hover .bph-lugar-ir i{ transform: translateX(4px); }
html.bp-dark .bph-lugar-ir{ color: #bfdbfe; }

/* ----------------------------- SOBRE ------------------------------------- */
.bph-sobre{ display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 2.6rem; align-items: center; }
.bph-sobre-texto p{ font-size: var(--bp-text-lg); line-height: 1.7; color: var(--bp-gray-900); margin: 0 0 1rem; }
.bph-sobre-foto{ margin: 0; }
.bph-sobre-foto img{ width: 100%; height: auto; display: block; border-radius: var(--bp-radius-lg); box-shadow: var(--bp-shadow-lg); }
.bph-sobre-foto figcaption{ margin-top: .55rem; font-size: var(--bp-text-sm); line-height: 1.5; color: var(--bp-gray-600); }

/* ----------------------------- NÚMEROS ----------------------------------- */
.bph-numeros{ background: linear-gradient(135deg, #1e3a8a, #0f172a); color: #fff; }
.bph-numeros .bp-section-title{ color: #fff; }
.bph-numeros-grade{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.bph-numero{
  display: flex; flex-direction: column; gap: .15rem; text-align: center;
  padding: 1.35rem 1rem; border-radius: var(--bp-radius-lg);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
}
.bph-numero strong{
  font-family: var(--bp-font-display); font-weight: 900; line-height: 1.05;
  font-size: clamp(1.9rem, 4vw, 2.9rem); color: #fbbf24; font-variant-numeric: tabular-nums;
}
.bph-numero span{ font-weight: 700; color: #fff; }
.bph-numero small{ color: #cbd5e1; }
.bph-numeros-fonte{ margin: 1.2rem 0 0; text-align: center; font-size: var(--bp-text-sm); color: #cbd5e1; }
.bph-numeros-fonte a{ color: #fde68a; }

/* ----------------------------- CHAMADAS ---------------------------------- */
.bph-duo{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.bph-chamada{ padding: 1.8rem; gap: .8rem; align-items: flex-start; }
.bph-chamada h2{ font-family: var(--bp-font-display); font-size: var(--bp-text-2xl); line-height: 1.2; margin: 0; }
.bph-chamada p{ display: block; -webkit-line-clamp: unset; overflow: visible; font-size: var(--bp-text-base); line-height: 1.55; }
.bph-chamada .bp-btn{ margin-top: .4rem; }
.bph-chamada-icone{
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; font-size: 26px;
  background: rgba(255,255,255,.16); color: #fff;
}
.bph-chamada-clara h2{ color: var(--bp-blue-900); }
.bph-chamada-clara .bph-chamada-icone{ background: #dbeafe; color: #1e40af; }

/* ----------------------------- COMÉRCIOS / PARCEIROS --------------------- */
.bph-comercio-tile{ height: 140px; display: flex; align-items: center; justify-content: center; font-size: 3rem; border-radius: var(--bp-radius); }
.bph-parceiros{ display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.bph-parceiro-t{ font-size: 1.05rem; }
.bph-parceiro-x{ line-height: 1.6; color: var(--bp-gray-700); }

/* ----------------------------- NEWSLETTER -------------------------------- */
.bph-news{ background: linear-gradient(135deg, #1e40af, #0f172a); color: #fff; }
.bph-news h2{ font-family: var(--bp-font-display); color: #fff; margin: 0 0 .5rem; }
.bph-news-sub{ margin: 0; color: #e2e8f0; }
.bph-news-form{ display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 440px; margin: 1rem auto .5rem; }
.bph-news-form input[type="email"]{ flex: 1; min-width: 200px; width: auto; padding: 12px 14px; border: 0; border-radius: 8px; font-size: 1rem; color: #111827; background: #fff; }
.bph-news-form .bp-btn{ padding: 12px 22px; }
.bph-news small{ color: #cbd5e1; }

/* ----------------------------- FAQ / CRÉDITOS ---------------------------- */
.bph-resposta{ margin: .6rem 0 0; line-height: 1.6; color: var(--bp-gray-700); }
.bph-creditos{ padding: 1.5rem 0 2rem; border-top: 1px solid var(--bp-gray-200); }
.bph-creditos h2{ margin: 0 0 .5rem; font-size: var(--bp-text-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--bp-gray-600); }
.bph-creditos ul{ margin: 0; padding-left: 1.1rem; font-size: var(--bp-text-xs); line-height: 1.7; color: var(--bp-gray-600); }

/* ----------------------------- RESPONSIVO -------------------------------- */
@media (max-width: 1100px){
  .bph-lugares{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .bph-sobre{ grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 760px){
  .bph-numeros-grade{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bph-duo{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .bph-hero{ min-height: 540px; }
  .bph-hero-veu{
    background: linear-gradient(180deg, rgba(15,23,42,.62) 0%, rgba(15,23,42,.66) 40%, rgba(15,23,42,.90) 78%, rgba(15,23,42,.96) 100%);
  }
  .bph-hero-in{ padding-top: 3.2rem; padding-bottom: 2.6rem; }
  .bph-acoes{ flex-direction: column; align-items: stretch; }
  .bph-acoes > *{ justify-content: center; text-align: center; }
  /* Atalhos em uma linha que rola de lado: o hero não cresce no celular. */
  .bph-chips{
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: calc(100% + 16px);
    margin-right: -16px; padding: 4px 16px 8px 2px; scrollbar-width: none;
  }
  .bph-chips::-webkit-scrollbar{ display: none; }
  .bph-credito{ right: 8px; bottom: 4px; font-size: 10px; }

  /* Guias em duas colunas compactas. */
  .bph-guias{ grid-template-columns: 1fr 1fr; gap: .7rem; }
  .bph-guia-midia{ aspect-ratio: 16 / 10; }
  .bph-guia-cor{ font-size: 2rem; }
  .bph-guia-texto{ padding: .7rem .75rem .85rem; gap: .25rem; }
  .bph-guia h3{ font-size: var(--bp-text-base); line-height: 1.25; }
  .bph-guia p{ font-size: var(--bp-text-xs); line-height: 1.45; }

  /* Lugares viram um carrossel de arrastar. */
  .bph-lugares{
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    gap: .8rem; margin-right: -16px; padding: 2px 16px .7rem 2px; scrollbar-width: none;
  }
  .bph-lugares::-webkit-scrollbar{ display: none; }
  .bph-lugar{ flex: 0 0 78%; scroll-snap-align: start; }

  .bph-chamada{ padding: 1.4rem; }
  .bph-chamada h2{ font-size: var(--bp-text-xl); }
}
