/* ============================================================
   PERSON HÉLICES — PÁGINAS
   ============================================================ */

/* ------------------------------------------------------------
   HOME — Hero (superfície)
   ------------------------------------------------------------ */
/* Hero institucional — fotografia da marca (mar ao entardecer),
   texto sobre a água escura. A superfície da descida. */
.hero {
  position: relative;
  overflow: clip;
  display: grid;
  align-items: end;
  min-height: min(88vh, 820px);
  padding-block: var(--s-9) var(--s-7);
  background: var(--navy-deep);
  color: var(--ink-inverse);
}
.hero__media {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Zoom lento de abertura no hero (Ken Burns discreto) —
   só com JS/motion ativo; convive com o parallax do wrapper. */
.js-motion .hero__media img {
  animation: hero-zoom 14s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 48, 87, 0) 22%, rgba(0, 48, 87, 0.78) 100%),
    linear-gradient(100deg, rgba(0, 48, 87, 0.7) 0%, rgba(0, 48, 87, 0.25) 45%, rgba(0, 48, 87, 0) 65%);
}
.hero__grid {
  position: relative;
  z-index: 2;
}
.hero h1 {
  color: var(--ink-inverse);
  max-width: 18ch;
  text-shadow: 0 1px 24px rgba(10, 22, 35, 0.35);
}
.hero .eyebrow {
  color: var(--gold-light);
  text-shadow: 0 1px 10px rgba(0, 48, 87, 0.85), 0 0 2px rgba(0, 48, 87, 0.9);
}
.hero__lead {
  font-size: var(--text-lead);
  color: var(--ink-inverse-soft);
  max-width: 46ch;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.hero .btn--ghost {
  border-color: var(--line-inverse);
  color: var(--ink-inverse);
  background: rgba(0, 48, 87, 0.35);
}
.hero .btn--ghost:hover { border-color: var(--gold-light); }

/* ------------------------------------------------------------
   HOME — Por que a Person (faixa clara, texto + foto)
   ------------------------------------------------------------ */
.why__grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 1024px) {
  .why__grid { grid-template-columns: 7fr 5fr; }
}
.why__items .value-item {
  border-top: 0;
  border-bottom: 1px solid var(--line);
  padding-block: var(--s-4);
}
.why__items .value-item:last-child { border-bottom: 0; }

/* ------------------------------------------------------------
   HOME — Banda submersa (foto full-bleed + frase central):
   quebra o navy contínuo entre números e catálogo.
   ------------------------------------------------------------ */
.depth-band {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: clamp(320px, 46vh, 520px);
}
.depth-band__lead {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  line-height: 1.5;
  max-width: 38ch;
  margin-inline: auto;
  text-shadow: 0 1px 16px rgba(0, 34, 62, 0.6);
}

/* ------------------------------------------------------------
   HOME — Por que custa o que custa (faixa navy com a fundição ao fundo)
   ------------------------------------------------------------ */
.value-band {
  position: relative;
  overflow: clip;
}
.value-band__media {
  position: absolute;
  inset: -12% 0; /* folga para o deslocamento do parallax */
  z-index: 0;
}
.value-band__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.value-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 34, 62, 0.55) 0%, rgba(0, 34, 62, 0.2) 50%, rgba(0, 34, 62, 0.65) 100%);
}
.value-band .container { position: relative; z-index: 2; }

.value-grid {
  display: grid;
  gap: var(--gutter);
}
@media (min-width: 768px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
.value-item {
  border-top: 2px solid var(--bronze);
  padding-top: var(--s-3);
}
.value-item h3 { font-size: 1.25rem; }
.value-item .card__meta { display: block; margin-bottom: var(--s-2); }
/* Numerais técnicos grandes — Montserrat Medium tabular, dourado sobre navy */
.value-item .num {
  display: block;
  font-weight: 500;
  font-size: var(--text-numeral);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--gold-light);
  margin-bottom: var(--s-2);
}

/* ------------------------------------------------------------
   HOME — CTA final
   ------------------------------------------------------------ */
.cta-final {
  text-align: center;
  padding-block: var(--s-9);
}
.cta-final h2 {
  max-width: 22ch;
  margin-inline: auto;
}
.cta-final .btn { margin-top: var(--s-4); }

/* ------------------------------------------------------------
   SOBRE — Timeline
   ------------------------------------------------------------ */
.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--s-4);
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline__trace {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--bronze);
  transform-origin: top center;
}
.js-motion .timeline__trace { transform: scaleY(0); }
@supports (animation-timeline: view()) {
  .js-motion .timeline__trace {
    animation: trace-draw linear forwards;
    animation-timeline: view();
    animation-range: entry 10% exit 60%;
  }
}
@keyframes trace-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.timeline__item { position: relative; padding-bottom: var(--s-6); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--s-4) - 5px);
  top: 0.5em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--steel);
  transition: border-color 300ms ease-out, background-color 300ms ease-out;
}
.timeline__item.is-lit::before { border-color: var(--bronze); background: var(--bronze); }
.timeline__year {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--navy-brand);
}

/* ------------------------------------------------------------
   SOBRE — Missão (contraste máximo)
   ------------------------------------------------------------ */
.mission {
  position: relative;
  overflow: clip;
  background: var(--abyss);
  color: var(--ink-inverse);
  text-align: center;
  padding-block: var(--s-9);
}
.mission__media {
  position: absolute;
  inset: -12% 0; /* folga para o deslocamento do parallax */
  z-index: 0;
}
.mission__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.mission .container { position: relative; z-index: 1; }
.mission h2 { color: var(--ink-inverse); }
.mission h2 {
  font-size: var(--text-display);
  max-width: 18ch;
  margin-inline: auto;
}
.mission .navegamos { color: var(--bronze-light); }

/* ------------------------------------------------------------
   SOBRE — Fundição (sticky, o ponto mais fundo)
   ------------------------------------------------------------ */
.foundry { position: relative; }
.foundry__grid {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 1024px) {
  .foundry__grid { grid-template-columns: 5fr 6fr; align-items: start; }
  .foundry__visual {
    position: sticky;
    top: 6rem;
  }
}
.foundry__step {
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--line);
}
.foundry__step:last-child { border-bottom: 0; }
.foundry__step .card__meta { display: block; margin-bottom: var(--s-2); color: var(--bronze-light); }

/* ------------------------------------------------------------
   EQUIPE
   ------------------------------------------------------------ */
.team-grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card__name { margin: var(--s-2) 0 0; font-size: 1.125rem; }
.team-card__role { color: var(--ink-soft); font-size: var(--text-small); }

/* ------------------------------------------------------------
   PRODUTOS
   ------------------------------------------------------------ */
.product-grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card { display: flex; flex-direction: column; gap: var(--s-2); }
.product-card .btn { align-self: flex-start; margin-top: auto; }

/* ------------------------------------------------------------
   CALCULADORA
   ------------------------------------------------------------ */
.calc {
  max-width: 640px;
}
.calc__step[hidden] { display: none; }
.calc__nav { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.calc__notice {
  margin-top: var(--s-4);
  padding: var(--s-3);
  border-left: 2px solid var(--bronze);
  background: var(--paper-warm);
  font-size: var(--text-small);
  color: var(--ink-soft);
}
.is-deep .calc__notice, .is-abyss .calc__notice { background: var(--navy-surface); }

/* ------------------------------------------------------------
   BLOG
   ------------------------------------------------------------ */
.post-grid {
  display: grid;
  gap: var(--s-5) var(--gutter);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card__title { font-size: 1.25rem; margin: var(--s-2) 0 var(--s-1); }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; text-decoration-color: var(--bronze); }
.post-card__date { color: var(--ink-soft); font-size: var(--text-small); }

.pagination { display: flex; gap: var(--s-1); margin-top: var(--s-6); flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}
.pagination .current { background: var(--navy); border-color: var(--navy); color: var(--ink-inverse); }

/* ------------------------------------------------------------
   CONTATO
   ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 7fr 5fr; } }
.contact-info dt {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--navy-brand);
  margin-top: var(--s-3);
}
.contact-info dd { margin: var(--s-1) 0 0; }
/* Espaço reservado antes do iframe montar: dispara o observer e evita CLS */
.map-shell {
  margin-top: var(--s-4);
  min-height: 320px;
  background: var(--gelo);
  border-radius: var(--radius);
  cursor: pointer;
}
.map-shell iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); display: block; }

/* ------------------------------------------------------------
   Hero interno
   ------------------------------------------------------------ */
.page-hero { padding-block: var(--s-7) var(--s-5); }
.page-hero__lead { font-size: var(--text-lead); color: var(--ink-soft); max-width: 52ch; }

/* 404 */
.error-404 { text-align: center; padding-block: var(--s-9); }
