/* ============================================================
   Catálogo editorial + Página da Embarcação — Real Powerboats
   Reaproveita os tokens de cor de css/style.css (--ink, --accent,
   --text, --line, etc.) para se integrar ao restante do site e à
   Splash Screen — nenhuma cor nova é declarada aqui.
   ============================================================ */

/* ---------- intro do catálogo ---------- */
.cat-intro{ margin-bottom:0; }

/* ---------- capítulo (um barco por tela) ---------- */
.cat-chapter{
  position:relative;
  min-height:100svh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  border-top:1px solid var(--line-dark);
}
.cat-chapter-link{ position:absolute; inset:0; z-index:5; }
.cat-chapter .frame{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.cat-chapter .frame img{
  width:100%; height:100%; object-fit:cover;
  transform:scale(1.04) translateY(0);
  will-change:transform;
  transition:transform .6s ease;
}
.cat-chapter .veil{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(100deg, rgba(6,15,20,.86) 6%, rgba(6,15,20,.42) 48%, rgba(6,15,20,.12) 78%);
}
.cat-chapter .content{
  position:relative; z-index:2; width:100%;
  padding-bottom:clamp(3rem,7vw,5rem);
  color:#fff;
}
.cat-chapter .eyebrow{ color:#ffb199; }
.cat-chapter h3{
  font-size:clamp(2.2rem,6vw,4.4rem);
  font-weight:800; letter-spacing:-.02em; line-height:1.02;
  margin:.5rem 0 0;
  color:#fff;
  text-wrap:balance;
}
.cat-chapter .tagline{
  margin-top:1rem; max-width:34ch; font-size:1.05rem;
  color:#d8e2e1; font-style:italic; font-weight:300;
}
.cat-chapter .foot{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1.2rem;
  margin-top:2.2rem;
}
.cat-chapter .discover{
  font-size:.76rem; letter-spacing:.14em; text-transform:uppercase; font-weight:600;
  color:#fff; display:inline-flex; align-items:center; gap:.5em;
  padding-bottom:.3rem; border-bottom:1px solid rgba(255,255,255,.4);
  transition:border-color .3s ease, gap .3s ease, opacity .3s ease;
}
.cat-chapter:hover .discover{ border-color:#fff; gap:.8em; }
.cat-chapter .discover .arrow{ transition:transform .3s ease; }
.cat-chapter:hover .discover .arrow{ transform:translateX(4px); }

/* ---------- fechamento: outros modelos da linha ---------- */
.cat-others{
  padding:clamp(3.5rem,8vw,5.5rem) 0;
  background:var(--ink); color:var(--text-inv);
  text-align:center;
}
.cat-others .eyebrow{ color:var(--text-inv-soft); }
.cat-others h4{
  font-weight:300; font-size:clamp(1.3rem,2.4vw,1.7rem);
  margin:.6rem 0 1.6rem; color:#fff;
}
.cat-others .taglist{ display:flex; justify-content:center; flex-wrap:wrap; gap:.7rem; }
.cat-others .taglist span, .cat-others .taglist a{
  font-size:.78rem; letter-spacing:.06em; color:var(--text-inv-soft);
  border:1px solid var(--line-dark); padding:.55em 1.1em; border-radius:20px;
  transition:color .25s ease, border-color .25s ease;
}
.cat-others .taglist span:hover, .cat-others .taglist a:hover{ color:#fff; border-color:rgba(255,255,255,.5); }
.cat-others .note{ margin-top:1.4rem; font-size:.78rem; color:var(--text-inv-soft); font-style:italic; }

/* ---------- cabeçalho de subgrupo dentro da Coleção (home) ---------- */
.cat-group-head{ padding-top:clamp(2rem,5vw,3rem); }
.cat-group-head .eyebrow{ margin-bottom:1.6rem; }
.cat-group-head--fly{ padding-top:clamp(2rem,5vw,3.5rem); }

/* ============================================================
   Página da Embarcação (detalhe)
   ============================================================ */
#modeloDetalhe{ display:none; padding:0; }
[data-view="modelo"] .home-section, [data-view="noticia"] .home-section, [data-view="catalogo"] .home-section, [data-view="broker"] .home-section, [data-view="lancamentos"] .home-section, [data-view="realstore"] .home-section, [data-view="produto"] .home-section{ display:none; }
[data-view="modelo"] #modeloDetalhe{ display:block; }
#noticiaDetalhe{ display:none; padding:0; }
[data-view="noticia"] #noticiaDetalhe{ display:block; }
#brokerDetalhe{ display:none; padding:0; }
[data-view="broker"] #brokerDetalhe{ display:block; }
#produtoDetalhe{ display:none; padding:0; }
[data-view="produto"] #produtoDetalhe{ display:block; }
#catalogo{ display:none; padding:0; }
[data-view="catalogo"] #catalogo{ display:block; }
#catalogo .cat-intro{ padding-top:clamp(2rem,4vw,3rem); }
#catalogo .cat-intro .news-back{ margin-top:0; margin-bottom:2rem; display:inline-flex; }
#lancamentos{ display:none; padding:0; }
[data-view="lancamentos"] #lancamentos{ display:block; }
#lancamentos .cat-intro{ padding-top:clamp(2rem,4vw,3rem); }
#lancamentos .cat-intro .news-back{ margin-top:0; margin-bottom:2rem; display:inline-flex; }
#realstore{ display:none; padding:0; }
[data-view="realstore"] #realstore{ display:block; }
#realstore .cat-intro{ padding-top:clamp(2rem,4vw,3rem); }
#realstore .cat-intro .news-back{ margin-top:0; margin-bottom:2rem; display:inline-flex; }
#realstore .news-grid{ padding-bottom:clamp(3.5rem,8vw,5.5rem); }
.lancamentos-empty{ display:none; padding:clamp(3.5rem,8vw,5.5rem) 0; text-align:center; }
.lancamentos-empty .note{ font-size:.95rem; color:var(--text-soft); font-style:italic; }
.lancamentos-empty .note a{ color:var(--accent); text-decoration:underline; font-style:normal; }

/* ---------- Real Store — produto ---------- */
.esgotado-tag{
  position:absolute; top:.8rem; left:.8rem; z-index:1;
  padding:.35em .9em; border-radius:20px; font-size:.68rem; letter-spacing:.06em; font-weight:700; text-transform:uppercase;
  color:#fff; background:rgba(11,27,38,.75); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
}
.news-card .photo{ position:relative; }
.news-card.is-esgotado .photo img{ opacity:.55; }
.produto-detalhe-media{ position:relative; }
.produto-esgotado-aviso{ margin-top:1.6rem; font-size:.92rem; font-weight:600; color:var(--text-soft); font-style:italic; }
.loja-preco{ margin-top:.6rem; font-size:.92rem; font-weight:700; color:var(--accent); }
.loja-preco-lg{ font-size:1.3rem; margin-top:1rem; }
.produto-detalhe{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(2rem,5vw,3.5rem); align-items:start; }
.produto-imagem-unica{ aspect-ratio:4/3; overflow:hidden; border-radius:4px; }
.produto-imagem-unica img{ width:100%; height:100%; object-fit:cover; }
.produto-detalhe-info h1{ font-size:clamp(1.7rem,3vw,2.3rem); font-weight:800; letter-spacing:-.01em; margin-top:.5rem; }
.produto-descricao{ margin-top:1.2rem; font-size:1rem; line-height:1.75; white-space:pre-line; max-width:52ch; }
@media (max-width:900px){
  .produto-detalhe{ grid-template-columns:1fr; }
}

.det-hero{
  position:relative; min-height:100svh; display:flex; align-items:flex-end; overflow:hidden; color:#fff;
}
.det-hero .frame{ position:absolute; inset:0; z-index:0; }
.det-hero .frame img{ width:100%; height:100%; object-fit:cover; transform:scale(1.04); }
.det-hero .veil{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(100deg, rgba(6,15,20,.86) 6%, rgba(6,15,20,.42) 48%, rgba(6,15,20,.12) 78%);
}
.det-hero > .site:not(.content){ position:absolute; inset:0; z-index:3; pointer-events:none; }
.det-back{
  position:absolute; top:clamp(5.5rem,9vw,7rem); left:0; z-index:3;
  font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; font-weight:600;
  color:#fff; display:inline-flex; align-items:center; gap:.5em; opacity:.85;
  pointer-events:auto;
}
.det-back:hover{ opacity:1; }
.det-hero .content{ position:relative; z-index:2; width:100%; padding-bottom:clamp(3rem,7vw,5rem); }
.det-hero .eyebrow{ color:#ffb199; }
.det-hero h1{
  font-size:clamp(2.2rem,6vw,4.4rem); font-weight:800; letter-spacing:-.02em; line-height:1.02; margin:.5rem 0 0; color:#fff; text-wrap:balance;
}
.det-hero .tagline{
  margin-top:1rem; max-width:34ch; font-size:1.05rem; color:#d8e2e1;
  font-style:italic; font-weight:300;
}

.det-specrow{
  display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(1.4rem,3vw,2.2rem) clamp(1.2rem,2.5vw,2rem);
  padding:clamp(3.2rem,7vw,5rem) 0; border-bottom:1px solid var(--line);
}
.det-spec{ display:flex; flex-direction:column; }
.det-spec span{
  order:-1; display:block; margin-bottom:.5rem; font-size:.66rem; letter-spacing:.12em; text-transform:uppercase; color:var(--text-soft);
}
.det-spec b{
  display:block; font-family:inherit; font-weight:700; line-height:1.25;
  font-size:clamp(1rem,1.5vw,1.15rem); color:var(--text); font-variant-numeric:tabular-nums;
}

.det-chapter{ padding:clamp(3.5rem,8vw,6rem) 0; }
.memorial-text{
  white-space:pre-line; max-width:74ch; font-size:.98rem; line-height:1.85;
}
.det-tour{ padding:clamp(3.2rem,7vw,5rem) 0; background:var(--tint); border-bottom:1px solid var(--line); }
.det-tour h2{ font-size:clamp(1.6rem,3vw,2.2rem); font-weight:800; letter-spacing:-.01em; }
.det-tour-frame{
  margin-top:1.6rem; position:relative; width:100%; aspect-ratio:16/9;
  border-radius:4px; overflow:hidden; background:#000;
}
.det-tour-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; display:block; }
@media (max-width:640px){
  .det-tour-frame{ aspect-ratio:4/3; }
}

/* lista de vídeos extras ao lado do player principal */
.det-videos-grid{ display:grid; grid-template-columns:1.7fr 1fr; gap:clamp(1.5rem,3vw,2.5rem); align-items:start; }
.det-videos-grid .det-tour-frame{ margin-top:0; }
.det-videos-list{
  display:flex; flex-direction:column; gap:.5rem;
  max-height:min(420px, 60vw); overflow-y:auto;
}
.det-video-item{
  display:flex; align-items:center; gap:.8rem; text-align:left;
  background:none; border:1px solid transparent; border-radius:6px; padding:.5rem;
  font-family:inherit; cursor:pointer; transition:background .2s ease, border-color .2s ease;
}
.det-video-item:hover{ background:#fff; border-color:var(--line); }
.det-video-item.is-active{ background:#fff; border-color:var(--accent); }
.det-video-thumb{
  position:relative; flex:0 0 108px; aspect-ratio:16/9; border-radius:4px; overflow:hidden; background:#000;
}
.det-video-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.det-video-play{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:.85rem; background:rgba(6,15,20,.28);
}
.det-video-title{ font-size:.86rem; font-weight:600; line-height:1.3; color:var(--text); }
@media (max-width:900px){
  .det-videos-grid{ grid-template-columns:1fr; }
  .det-videos-list{ max-height:none; flex-direction:row; flex-wrap:wrap; }
  .det-video-item{ flex:0 0 calc(50% - .25rem); }
}
.det-split{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem,5vw,4.5rem); align-items:center; }
.det-split .frame{ aspect-ratio:4/3; overflow:hidden; border-radius:2px; }
.det-split .frame img{ width:100%; height:100%; object-fit:cover; }
.det-split h2{ font-size:clamp(1.6rem,3vw,2.2rem); font-weight:800; letter-spacing:-.01em; }
.det-split p{ margin-top:1.1rem; font-size:1.02rem; max-width:42ch; }

.det-gallery{ padding:clamp(3rem,7vw,5rem) 0; padding-bottom:.5rem; background:var(--tint); }
.det-gallery + .det-tour{ padding-top:.5rem; }

.det-cta{
  padding:clamp(3.5rem,8vw,5.5rem) 0; text-align:center; background:var(--ink); color:var(--text-inv);
}
.det-cta h3{ font-family:inherit; font-weight:800; letter-spacing:-.01em; font-size:clamp(1.5rem,3vw,2.2rem); color:#fff; max-width:26ch; margin:0 auto; }
.det-cta .actions{ margin-top:1.8rem; display:flex; justify-content:center; gap:1rem; flex-wrap:wrap; }

/* ---------- parallax leve (JS aplica translateY via --py) ---------- */
.cat-chapter .frame img, .det-hero .frame img{
  transform:translateY(var(--py, 0px)) scale(1.06);
}
@media (prefers-reduced-motion:reduce){
  .cat-chapter .frame img, .det-hero .frame img{ transform:scale(1) !important; }
}

/* ---------- responsivo ---------- */
@media (max-width:900px){
  .det-specrow{ grid-template-columns:1fr 1fr; row-gap:1.6rem; }
  .det-split{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .cat-chapter h3, .det-hero h1{ font-size:2.1rem; }
  .det-specrow{ grid-template-columns:1fr; }

  /* Em telas de celular (bem mais altas que largas), uma caixa de 100svh corta a lancha
     ao meio ao aplicar object-fit:cover. Em vez disso, a foto vira uma faixa no formato do
     vídeo do hero (16:9, quase sem corte) e o texto passa a ficar abaixo dela, num bloco
     sólido, em vez de sobreposto com o véu gradiente (que só fazia sentido numa foto cheia). */
  .cat-chapter, .det-hero{ min-height:auto; display:block; }
  .cat-chapter .frame, .det-hero .frame{ position:relative; inset:auto; aspect-ratio:16/9; }
  .cat-chapter .veil, .det-hero .veil{ display:none; }
  .cat-chapter .content, .det-hero .content{ padding-top:1.8rem; padding-bottom:2.4rem; background:var(--ink); }
}
