/* ============================================================
   NAVALBRANDS — PAGES.CSS v2.0
   Hero Cinematográfico | Seções de Serviço | Pricing
   ============================================================ */

/* ═══════════════════════════════════════════════
   HERO — STICKY VIDEO + SCROLL OVERLAY
   ═══════════════════════════════════════════════ */

/* The sticky container creates the scrollable "film strip" effect.
   The video stays fixed, text panels transform as user scrolls. */
.hero-wrapper {
  position: relative;
  height: 220vh; /* 2.2× viewport for the scroll-over effect */
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}

/* Fullscreen video backdrop */
.hero__video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Multi-layer overlay for depth and readability */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.75) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

/* Content layer above video */
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
}

/* Scroll-driven panels */
.hero__intro {
  will-change: opacity, transform;
  transition: opacity 0.1s linear, transform 0.1s linear;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 980px;
}

.hero__authority {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s 0.2s var(--ease-expo) forwards;
}

.hero__headline {
  opacity: 0;
  transform: translateY(32px);
  animation: heroFadeUp 1.1s 0.45s var(--ease-expo) forwards;
}

.hero__sub {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 1s 0.7s var(--ease-expo) forwards;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.72);
  max-width: 580px;
  line-height: 1.7;
}

.hero__cta-group {
  opacity: 0;
  animation: heroFadeUp 0.9s 0.95s var(--ease-expo) forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* The second text panel — appears as user scrolls into it */
.hero__scroll-text {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.06s linear;
}
.hero__scroll-text.visible { opacity: 1; pointer-events: auto; }

.hero__scroll-text-inner {
  max-width: 900px;
  text-align: center;
}
.hero__scroll-text-inner .hero-title {
  color: var(--text);
  text-shadow: 0 0 80px rgba(21,186,56,0.3);
}
.hero__scroll-text-inner .hero-title span { color: var(--accent); }

/* Scroll indicator */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scrollBounce 2.2s ease-in-out infinite;
  opacity: 0;
  animation: heroFadeUp 0.8s 1.5s var(--ease-expo) forwards, scrollBounce 2.2s 2.5s ease-in-out infinite;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Below hero — solid sections that "cover" the sticky video */
.page-content {
  position: relative;
  z-index: 2; /* sits above hero-wrapper in stacking context */
  background: var(--bg);
}

/* ═══════════════════════════════════════════════
   MANIFESTO SECTION
   ═══════════════════════════════════════════════ */
.manifesto {
  padding: 7rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.manifesto__border {
  border-left: 2px solid var(--accent);
  padding-left: 2rem;
}
.manifesto__text {
  font-size: clamp(1.25rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
  color: var(--text);
}
.manifesto__text em {
  color: var(--muted);
  font-style: normal;
}
.manifesto__text strong {
  color: var(--accent);
  font-weight: inherit;
}

/* ═══════════════════════════════════════════════
   SERVICES GRID (Home - Os 4 Pilares)
   ═══════════════════════════════════════════════ */
.services {
  padding: 7rem 0;
  background: var(--bg);
}
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 0;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.75rem 2rem;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: background var(--t);
}
.service-card:hover { background: var(--surface); }
.service-card:hover .service-card__arrow { transform: translateX(6px); color: var(--accent); }

.service-card__num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.service-card__icon {
  width: 46px; height: 46px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  transition: background var(--t), border-color var(--t);
}
.service-card:hover .service-card__icon {
  background: var(--accent-dim);
  border-color: var(--accent);
}
.service-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.service-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}
.service-card__arrow {
  margin-top: auto;
  align-self: flex-end;
  color: var(--border-2);
  transition: transform var(--t), color var(--t);
}

/* ═══════════════════════════════════════════════
   PORTFOLIO GRID (Home) — BENTO ASSIMÉTRICO
   ═══════════════════════════════════════════════ */
.portfolio { padding: 7rem 0; background: var(--bg); }

/* ── Container ────────────────────────────────── */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 320px;
  grid-auto-flow: dense;
  gap: 16px;
  margin-top: 3.5rem;
}

/* ── Bento assimetria via nth-child ───────────── */
.portfolio__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.portfolio__item:nth-child(4) { grid-column: span 2; }
.portfolio__item:nth-child(6) { grid-row:    span 2; }
.portfolio__item:nth-child(8) { grid-column: span 2; }

/* ── Item: âncora para imagem absoluta ───────── */
.portfolio__item {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}

/* ── Imagem: preenche 100% da célula ─────────── */
.portfolio__item img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.75s var(--ease-expo), filter 0.5s ease;
  filter: grayscale(20%);
}
.portfolio__item:hover img { transform: scale(1.06); filter: grayscale(0%); }

/* ── Label ───────────────────────────────────── */
.portfolio__item__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 1;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.portfolio__item:hover .portfolio__item__label { opacity: 1; }
@media (hover: none) { .portfolio__item__label { opacity: 1; } }

/* ── CORREÇÃO MOBILE — 1 coluna limpa, zero buracos ── */
@media (max-width: 768px) {
  .portfolio__grid {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-auto-rows: auto;
    gap: 12px;
  }
  /* Reset de TODOS os spans nth-child no mobile */
  .portfolio__item:nth-child(1),
  .portfolio__item:nth-child(4),
  .portfolio__item:nth-child(6),
  .portfolio__item:nth-child(8) {
    grid-column: 1 / -1 !important;
    grid-row:    auto !important;
  }
  .portfolio__item {
    min-height: 260px;
  }
}

/* ═══════════════════════════════════════════════
   BOARD / TEAM
   ═══════════════════════════════════════════════ */
.board {
  padding: 7rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.board__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 4rem;
}
.board-card { display: flex; flex-direction: column; }
.board-card__img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface-2);
}
.board-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%);
  transition: filter 0.6s ease, transform 0.7s var(--ease-expo);
}
.board-card:hover .board-card__img-wrap img { filter: grayscale(0%); transform: scale(1.03); }
.board-card__info {
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
}
.board-card__name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}
.board-card__role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.board-card__bio {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   CONTACT FORM SECTION
   ═══════════════════════════════════════════════ */
.contact-cta {
  padding: 7rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.contact-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}
.contact-cta__headline {
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.contact-cta__headline span { color: var(--accent); }
.contact-cta__body {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 460px;
}
.contact-cta__checklist {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 0.5rem;
}
.contact-cta__check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.contact-cta__check svg { flex-shrink: 0; color: var(--accent); }

/* ═══════════════════════════════════════════════
   INTERNAL PAGE — SERVICE HERO (com vídeo de fundo)
   ═══════════════════════════════════════════════ */
.service-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 6rem);
  padding-bottom: 6rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Vídeo de fundo — cobre 100 % da hero */
.service-hero__video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Camada de escurecimento sobre o vídeo */
.service-hero__video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: 1;
}

/* Container de conteúdo acima do vídeo */
.service-hero .container {
  position: relative;
  z-index: 2;
}
.service-hero .label { margin-bottom: 1.25rem; }
.service-hero__title {
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.service-hero__title span { color: var(--accent); }
.service-hero__desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}
.service-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ═══════════════════════════════════════════════
   FEATURES SECTION (Internal Pages)
   ═══════════════════════════════════════════════ */
.features { padding: 7rem 0; background: var(--bg); }
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.feature-item {
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.feature-item:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.feature-item__icon {
  width: 42px; height: 42px;
  background: var(--accent-dim);
  border: 1px solid rgba(21,186,56,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.feature-item__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.feature-item__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   PROCESS TIMELINE (Internal Pages)
   ═══════════════════════════════════════════════ */
.process { padding: 7rem 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.process__steps {
  margin-top: 3.5rem;
  border-left: 1px solid var(--border-2);
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-step { padding-bottom: 2.5rem; position: relative; }
.process-step::before {
  content: '';
  position: absolute;
  left: -2.375rem;
  top: 0.25rem;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--surface), 0 0 10px var(--accent-glow);
}
.process-step__num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.375rem;
}
.process-step__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.process-step__desc { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* ═══════════════════════════════════════════════
   PROJECTS GRID (Internal Pages)
   ═══════════════════════════════════════════════ */
.projects { padding: 7rem 0; background: var(--bg); }
.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.project-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4/3;
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-expo), filter 0.5s ease;
  filter: grayscale(15%);
}
.project-card:hover img { transform: scale(1.06); filter: grayscale(0%); }
.project-card__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  transform: translateY(4px);
  transition: transform 0.4s ease;
}
.project-card:hover .project-card__info { transform: translateY(0); }
.project-card__name { font-size: 0.95rem; font-weight: 700; }
.project-card__type { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-top: 0.2rem; }

/* ═══════════════════════════════════════════════
   CTA BOTTOM SECTION (Internal Pages)
   ═══════════════════════════════════════════════ */
.cta-section {
  padding: 7rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-section__title {
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.cta-section__title span { color: var(--accent); }
.cta-section__desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — ≥768px
   ═══════════════════════════════════════════════ */
@media (min-width: 768px) {
  .hero__cta-group { flex-direction: row; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  /* portfolio usa auto-fit — sem override necessário neste breakpoint */
  .board__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cta__inner { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — ≥1024px
   ═══════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .board__grid { grid-template-columns: repeat(3, 1fr); }
  /* portfolio usa auto-fit — sem override necessário neste breakpoint */
  .features__grid { grid-template-columns: repeat(3, 1fr); }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — ≤767px (Mobile) — PAGES BUG FIXES
   ═══════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* ── Service Hero CTA row — empilha verticalmente ── */
  .service-hero__cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
  }
  .service-hero__cta-row .btn {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.3 !important;
    padding: 1rem 1.25rem !important;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
  }

  /* ── Service Hero title (subpáginas) ── */
  .service-hero__title {
    font-size: 2.2rem !important;
    line-height: 1.1 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* ── Service Hero padding reduzido ── */
  .service-hero {
    padding-top: calc(var(--nav-h) + 3rem) !important;
    padding-bottom: 3.5rem !important;
  }

  /* ── Authority strip não quebra o layout ── */
  .authority-strip {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

