/* ===========================================================
   VIASS — pages.css
   Estilos específicos de cada página + componentes com imagens.
=========================================================== */

/* ============================================
   HOME — Hero ajustado para split layout
   ============================================ */
.home .hero h1 { font-family: var(--display); font-weight: 400; line-height: 1.04; }

.home .hero h1 .word {
  display: inline-block; opacity: 0; transform: translateY(20px);
  animation: word-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.home .hero h1 .word:nth-child(1) { animation-delay: 0.1s; }
.home .hero h1 .word:nth-child(2) { animation-delay: 0.18s; }
.home .hero h1 .word:nth-child(3) { animation-delay: 0.26s; }
.home .hero h1 .word:nth-child(4) { animation-delay: 0.34s; }
.home .hero h1 .word:nth-child(5) { animation-delay: 0.42s; }
.home .hero h1 .word:nth-child(6) { animation-delay: 0.50s; }
@keyframes word-rise { to { opacity: 1; transform: none; } }

/* Diferenciais (Por que a Viass) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-list { margin-top: 36px; display: flex; flex-direction: column; gap: 28px; }
.why-item { display: flex; gap: 20px; align-items: flex-start; }
.why-item .n {
  font-family: var(--display); font-size: 1.5rem; color: var(--gold-500);
  min-width: 48px; border-right: 1px solid var(--line); padding-right: 18px;
  flex-shrink: 0;
}
.why-item h4 { font-family: var(--display); font-weight: 500; font-size: 1.12rem; margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: 0.97rem; font-weight: 300; }

/* Visual com imagem real */
.why-visual {
  position: relative; aspect-ratio: 4/5; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  background: var(--surface-2);
}
.why-visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s ease-out;
}
.why-visual:hover img { transform: scale(1.03); }
.why-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 15, 31, 0.5) 100%);
}
[data-theme='light'] .why-visual::after { background: linear-gradient(180deg, transparent 50%, rgba(15, 30, 54, 0.3) 100%); }

.why-visual .badge {
  position: absolute; inset: auto 24px 24px 24px; z-index: 2;
  background: var(--backdrop); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 4px; padding: 22px;
}
.why-visual .badge .q { font-family: var(--display); font-style: italic; font-size: 1.2rem; line-height: 1.4; color: var(--ink); }
.why-visual .badge .a {
  margin-top: 14px; color: var(--gold-500); font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* Newsletter inline (na home) */
.newsletter-inline {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 4px; padding: 56px 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  position: relative; overflow: hidden;
}
.newsletter-inline::before {
  content: ""; position: absolute; top: -120px; right: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  animation: float-blob 8s ease-in-out infinite alternate;
}
@keyframes float-blob {
  to { transform: translate(20px, 30px) scale(1.1); }
}
.newsletter-inline > * { position: relative; z-index: 1; }
.newsletter-inline h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.newsletter-inline p { color: var(--muted); font-size: 1rem; font-weight: 300; }

/* ============================================
   SOBRE — narrative + values + image section
   ============================================ */
.sobre .values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden;
}
.value-card {
  background: var(--surface); padding: 44px 32px; transition: 0.4s; position: relative;
}
.value-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  transform: scaleX(0); transform-origin: left; transition: 0.4s;
}
.value-card:hover { background: var(--surface-hover); }
.value-card:hover::before { transform: scaleX(1); }
.value-card .ic {
  width: 50px; height: 50px; border: 1px solid var(--gold-500); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-500); margin-bottom: 22px;
  transition: 0.4s;
}
.value-card:hover .ic {
  background: var(--gold-500); color: var(--surface);
  transform: rotate(360deg);
}
[data-theme='light'] .value-card:hover .ic { color: #fff; }
.value-card h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-weight: 300; }

/* About narrative com imagem */
.about-narrative {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start;
}
.about-narrative .label {
  font-family: var(--display); font-style: italic; color: var(--gold-500);
  font-size: 1.4rem;
}
.about-narrative p {
  color: var(--muted); font-size: 1.08rem; margin-bottom: 22px; font-weight: 300; line-height: 1.7;
}
.about-narrative p:first-of-type::first-letter {
  font-family: var(--display); font-size: 3.6rem; float: left; line-height: 1;
  color: var(--gold-500); padding-right: 10px; padding-top: 6px;
}

/* Image strip — banda com imagem larga */
.image-strip {
  position: relative; min-height: 460px; overflow: hidden;
  display: flex; align-items: center;
}
.image-strip img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
}
.image-strip::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(6, 15, 31, 0.7) 50%, transparent 100%);
}
[data-theme='light'] .image-strip::after {
  background: linear-gradient(90deg, var(--bg) 0%, rgba(250, 250, 246, 0.85) 50%, rgba(250, 250, 246, 0.3) 100%);
}
.image-strip .wrap { position: relative; z-index: 2; }
.image-strip .quote {
  max-width: 560px;
}
.image-strip .quote .label {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--gold-500); margin-bottom: 22px; display: block;
}
.image-strip .quote h2 {
  font-style: italic; font-weight: 400; font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.25; color: var(--ink);
}
.image-strip .quote h2::before {
  content: '"'; color: var(--gold-500); font-size: 3.2rem; line-height: 0;
  margin-right: 4px; vertical-align: -0.2em;
}

/* ============================================
   TRAJETÓRIA — fundador com imagem real
   ============================================ */
.trajetoria .founder-hero {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px; align-items: center;
}
.founder-photo {
  position: relative; aspect-ratio: 4/5; border-radius: 4px;
  overflow: hidden; box-shadow: var(--shadow-card);
  background:
    radial-gradient(500px 400px at 50% 30%, var(--gold-glow), transparent),
    linear-gradient(160deg, var(--surface-2), var(--bg));
  display: grid; place-items: center;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo .placeholder-icon {
  width: 100px; height: 100px; border: 1px solid var(--gold-500); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-500);
}
.founder-photo .placeholder-text {
  position: absolute; bottom: 24px; left: 0; right: 0; text-align: center;
  color: var(--muted-2); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.founder-photo .gold-frame {
  position: absolute; inset: -8px; border: 1px solid var(--gold-500);
  border-radius: 4px; pointer-events: none;
  animation: frame-glow 3s ease-in-out infinite alternate;
}
@keyframes frame-glow {
  from { box-shadow: 0 0 0 var(--gold-glow); opacity: 0.5; }
  to   { box-shadow: 0 0 40px var(--gold-glow); opacity: 1; }
}
.founder-info .role {
  font-family: var(--display); font-style: italic; color: var(--gold-500);
  font-size: 1.2rem; margin-bottom: 6px;
}
.founder-info h1 { margin-bottom: 26px; }
.founder-info .bio { color: var(--muted); font-size: 1.05rem; margin-bottom: 30px; font-weight: 300; }
.founder-info .meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.founder-info .meta-item {
  display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 0.88rem;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--surface-2);
  transition: var(--t-fast);
}
.founder-info .meta-item:hover {
  border-color: var(--gold-500); color: var(--gold-500); transform: translateY(-2px);
}
.founder-info .meta-item svg { width: 14px; height: 14px; color: var(--gold-500); }
.founder-info .meta-item.linkedin { color: var(--gold-500); border-color: var(--gold-500); background: var(--gold-glow); }

/* Timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 1px;
  background: linear-gradient(180deg, var(--gold-500), var(--line));
}
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 8px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--gold-500);
  transition: var(--t-fast);
}
.tl-item::after {
  content: ""; position: absolute; left: -25px; top: 13px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-500);
}
.tl-item:hover::before { transform: scale(1.3); border-color: var(--gold-400); }
.tl-item .period {
  font-family: var(--display); color: var(--gold-500); font-size: 0.92rem;
  letter-spacing: 0.08em;
}
.tl-item h4 { font-size: 1.1rem; font-weight: 500; margin: 4px 0 8px; color: var(--ink); }
.tl-item p { color: var(--muted); font-size: 0.95rem; font-weight: 300; }

.specialties {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 16px;
}
.spec-tag {
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 2px;
  background: var(--surface-2); font-size: 0.94rem; color: var(--ink);
  display: flex; align-items: center; gap: 12px;
  transition: var(--t-fast);
}
.spec-tag:hover {
  border-color: var(--gold-500); background: var(--gold-glow);
  transform: translateX(4px);
}
.spec-tag::before { content: "▸"; color: var(--gold-500); font-size: 0.9rem; }

/* ============================================
   SERVIÇOS — quick nav + audience tag
   ============================================ */
.servicos .intro-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px;
}
.servicos .intro-grid a {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 2px;
  font-size: 0.88rem; color: var(--muted); transition: var(--t-fast);
}
.servicos .intro-grid a:hover {
  border-color: var(--gold-500); color: var(--gold-400);
  background: var(--gold-glow);
  transform: translateY(-2px);
}
.servicos .intro-grid a .ic-mini {
  width: 28px; height: 28px; border-radius: 2px; background: var(--gold-glow);
  display: grid; place-items: center; color: var(--gold-500); flex-shrink: 0;
}
.servicos .intro-grid a .ic-mini svg { width: 14px; height: 14px; }

.audience-tag {
  display: inline-block; padding: 4px 12px; background: var(--gold-glow);
  border: 1px solid var(--gold-500); border-radius: 100px;
  font-size: 0.74rem; color: var(--gold-500); letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 14px;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter .form-card {
  max-width: 720px; margin: 0 auto;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 4px; padding: 56px 56px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.newsletter .form-card::before {
  content: ""; position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  animation: float-blob 10s ease-in-out infinite alternate;
}
.newsletter .form-card > * { position: relative; z-index: 1; }
.newsletter .form-card h2 { margin-bottom: 14px; }
.newsletter .form-card .lede { margin-bottom: 36px; }
.newsletter .benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin: 56px auto 0; max-width: 920px;
}
.newsletter .benefit { text-align: center; padding: 24px 16px; transition: var(--t-fast); }
.newsletter .benefit:hover { transform: translateY(-4px); }
.newsletter .benefit .ic {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold-500);
  display: grid; place-items: center; color: var(--gold-500); margin: 0 auto 14px;
  transition: 0.4s;
}
.newsletter .benefit:hover .ic { background: var(--gold-500); color: var(--surface); transform: rotate(360deg); }
[data-theme='light'] .newsletter .benefit:hover .ic { color: #fff; }
.newsletter .benefit h4 { font-size: 1rem; font-weight: 500; margin-bottom: 6px; }
.newsletter .benefit p { color: var(--muted); font-size: 0.88rem; font-weight: 300; }

/* ============================================
   CONTATO
   ============================================ */
.contato .contact-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-card {
  display: flex; gap: 18px; padding: 24px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px;
  transition: var(--t-fast);
}
.contact-card:hover {
  border-color: var(--gold-500); background: var(--gold-glow);
  transform: translateX(6px);
}
.contact-card .ic {
  width: 48px; height: 48px; min-width: 48px; border-radius: 50%;
  border: 1px solid var(--gold-500); display: grid; place-items: center;
  color: var(--gold-500); transition: 0.4s;
}
.contact-card:hover .ic { background: var(--gold-500); color: var(--surface); transform: rotate(-12deg); }
[data-theme='light'] .contact-card:hover .ic { color: #fff; }
.contact-card h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.contact-card .val { font-family: var(--display); font-size: 1.15rem; color: var(--ink); }
.contact-card .val a { color: var(--ink); transition: var(--t-fast); }
.contact-card .val a:hover { color: var(--gold-500); }
.contact-card p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; font-weight: 300; }

.contact-form-block {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 4px; padding: 42px;
  box-shadow: var(--shadow-card);
}
.contact-form-block h3 { margin-bottom: 28px; }

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 980px) {
  .split, .about-narrative, .trajetoria .founder-hero, .contato .contact-grid {
    grid-template-columns: 1fr; gap: 48px;
  }
  .sobre .values-grid { grid-template-columns: 1fr; }
  .newsletter-inline { grid-template-columns: 1fr; gap: 32px; padding: 40px 32px; }
  .newsletter .benefits { grid-template-columns: 1fr; gap: 12px; }
  .servicos .intro-grid { grid-template-columns: repeat(2, 1fr); }
  .specialties { grid-template-columns: 1fr; }
  .image-strip { min-height: 360px; }
  .image-strip::after {
    background: linear-gradient(180deg, transparent 0%, rgba(6, 15, 31, 0.85) 100%);
  }
}
@media (max-width: 560px) {
  .newsletter .form-card { padding: 36px 24px; }
  .contact-form-block { padding: 28px 22px; }
  .servicos .intro-grid { grid-template-columns: 1fr; }
}
