/* ============================================================
   WEEZY AGENCY — pages.css
   Estilos específicos de páginas internas
   ============================================================ */

/* ── Sobre ──────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--weezy-dark-card);
  border: 3px solid var(--weezy-border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--weezy-lime);
  object-fit: cover;
  transition: border-color 0.3s ease;
}

.team-card:hover .team-avatar {
  border-color: var(--weezy-lime);
}

/* ── Solucoes ───────────────────────────────────────────────── */
.solutions-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.solution-overview-card {
  background: var(--weezy-dark-card);
  border: 1px solid var(--weezy-border-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.solution-overview-card:hover {
  border-color: rgba(149, 242, 28, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

/* ── Portfolio ──────────────────────────────────────────────── */
.portfolio-masonry {
  columns: 3;
  column-gap: 20px;
}

.portfolio-masonry .portfolio-card {
  break-inside: avoid;
  margin-bottom: 20px;
  aspect-ratio: auto;
  min-height: 240px;
}

.portfolio-masonry .portfolio-card:nth-child(3n+1) { min-height: 320px; }
.portfolio-masonry .portfolio-card:nth-child(3n+2) { min-height: 240px; }
.portfolio-masonry .portfolio-card:nth-child(3n+3) { min-height: 280px; }

/* ── Contato ────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--gap-lg);
  align-items: start;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--weezy-border-dark);
}

.contact-info-item:first-child { border-top: 1px solid var(--weezy-border-dark); }

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(149, 242, 28, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--weezy-lime);
  font-size: 20px;
  flex-shrink: 0;
}

.contact-form-card {
  background: var(--weezy-dark-card);
  border: 1px solid var(--weezy-border-dark);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
}

/* ── Subpage hero ───────────────────────────────────────────── */
.subpage-hero {
  padding: clamp(120px, 15vw, 180px) 0 clamp(64px, 8vw, 100px);
  background: var(--weezy-black);
  position: relative;
  overflow: hidden;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(149, 242, 28, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--weezy-gray-500);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--weezy-gray-500);
  transition: color 0.2s ease;
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--weezy-lime); }

.breadcrumb-sep {
  color: var(--weezy-gray-700);
  font-size: 12px;
}

/* ── Blog ───────────────────────────────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--gap-lg);
  align-items: start;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-md);
}

.blog-grid .blog-card:first-child {
  grid-column: span 2;
  flex-direction: row;
}

.blog-grid .blog-card:first-child .blog-card-image {
  width: 45%;
  aspect-ratio: auto;
  flex-shrink: 0;
}

.blog-grid .blog-card:first-child .blog-card-body {
  padding: 32px;
}

.blog-grid .blog-card:first-child .blog-card-title {
  font-size: 22px;
}

/* Sidebar sticky — acompanha o scroll do conteúdo principal */
.blog-sidebar {
  position: sticky;
  top: 100px;        /* altura do header fixo (~78px) + folga */
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: none;   /* Firefox */
}

.blog-sidebar::-webkit-scrollbar {
  display: none;           /* Chrome / Safari */
}

.sidebar-widget {
  background: var(--weezy-dark-card);
  border: 1px solid var(--weezy-border-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.sidebar-widget-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--weezy-gray-300);
  margin-bottom: 20px;
}

.sidebar-cta {
  background: rgba(149, 242, 28, 0.08);
  border: 1px solid rgba(149, 242, 28, 0.2);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin-bottom: 24px;
}

/* ── Post ───────────────────────────────────────────────────── */

/* Barra de progresso de leitura */
.post-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--weezy-lime);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(149,242,28,0.6);
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--gap-lg);
  align-items: start;
  padding-top: 48px;
}

/* Sidebar sticky */
.post-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: none;
}
.post-sidebar::-webkit-scrollbar { display: none; }

/* Conteúdo */
.post-content {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  color: var(--weezy-gray-300);
}

/* Lead (primeiro parágrafo destacado) */
.post-lead {
  font-size: 19px;
  line-height: 1.75;
  color: var(--weezy-gray-200);
  border-left: 3px solid var(--weezy-lime);
  padding-left: 20px;
  margin-bottom: 40px;
  font-weight: 400;
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  margin: 56px 0 16px;
  color: var(--weezy-white);
  letter-spacing: -0.02em;
  padding-top: 8px;
  scroll-margin-top: 100px; /* offset do header fixo */
}

/* Numeração do h2 — visual premium */
.post-content h2::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--weezy-lime);
  border-radius: 2px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--weezy-white);
  letter-spacing: -0.01em;
  scroll-margin-top: 100px;
}

.post-content p { margin-bottom: 24px; }

/* Listas estilizadas */
.post-content ul {
  margin: 0 0 28px 0;
  padding-left: 0;
  list-style: none;
}
.post-content ul li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  color: var(--weezy-gray-300);
}
.post-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--weezy-lime);
  opacity: 0.7;
}

.post-content ol {
  margin: 0 0 28px 0;
  padding-left: 0;
  list-style: none;
  counter-reset: ol-counter;
}
.post-content ol li {
  margin-bottom: 10px;
  padding-left: 28px;
  position: relative;
  counter-increment: ol-counter;
}
.post-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(149,242,28,0.12);
  border: 1px solid rgba(149,242,28,0.25);
  color: var(--weezy-lime);
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.post-content blockquote {
  border-left: 4px solid var(--weezy-lime);
  padding: 20px 28px;
  background: rgba(149,242,28,0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  margin: 40px 0;
  color: var(--weezy-gray-200);
  font-size: 18px;
  line-height: 1.7;
}

.post-content strong {
  color: var(--weezy-white);
  font-weight: 700;
}

/* Links internos de serviço — destaque sutil */
.post-content a {
  color: var(--weezy-lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(149,242,28,0.3);
  transition: border-color 0.2s, color 0.2s;
}
.post-content a:hover {
  border-color: var(--weezy-lime);
  color: #b8ff4d;
}

/* Link de serviço interno — destaque visual */
.post-service-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--weezy-lime) !important;
  background: rgba(149,242,28,0.08);
  border: 1px solid rgba(149,242,28,0.2) !important;
  border-radius: 99px;
  padding: 2px 10px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s;
}
.post-service-link:hover {
  background: rgba(149,242,28,0.15) !important;
  transform: translateY(-1px);
}

/* ── TOC Sidebar ─────────────────────────────────────────────── */
.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-link {
  font-size: 12.5px;
  color: var(--weezy-gray-500);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.toc-link::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin-top: 6px;
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.toc-link:hover {
  color: var(--weezy-gray-200);
  background: rgba(255,255,255,0.04);
}
.toc-link.active {
  color: var(--weezy-lime);
  background: rgba(149,242,28,0.06);
  border-left-color: var(--weezy-lime);
  font-weight: 600;
}
.toc-link.active::before { opacity: 1; }

/* Leitura estimada no widget */
.toc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--weezy-border-dark);
}
.toc-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--weezy-gray-500);
  font-weight: 600;
}

/* Serviços relacionados no sidebar */
.sidebar-service-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--weezy-border-dark);
  transition: padding-left 0.2s;
}
.sidebar-service-link:last-child { border-bottom: none; }
.sidebar-service-link:hover { padding-left: 4px; }
.sidebar-service-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(149,242,28,0.08);
  border: 1px solid rgba(149,242,28,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--weezy-lime);
  font-size: 14px;
  flex-shrink: 0;
}
.sidebar-service-link span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--weezy-gray-300);
  transition: color 0.2s;
}
.sidebar-service-link:hover span { color: var(--weezy-lime); }

/* ── FAQ page ───────────────────────────────────────────────── */
.faq-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ════════════════════════════════════════════════════════════
   RICH HERO — base compartilhado em todas as páginas internas
   ════════════════════════════════════════════════════════════ */
.rich-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  background: #060606;
  position: relative;
  overflow: hidden;
}

.rh-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.rh-blob-1 {
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(149,242,28,0.07) 0%, transparent 55%);
  top: -280px; right: -200px;
  animation: rhBlobFloat 12s ease-in-out infinite;
}
.rh-blob-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(18,173,97,0.06) 0%, transparent 55%);
  bottom: -120px; left: -80px;
  animation: rhBlobFloat 16s ease-in-out infinite reverse;
}
@keyframes rhBlobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(30px,-40px) scale(1.04); }
}

.rh-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.rh-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* H1 reduzido dentro dos rich heroes — divide espaço com o visual */
.rich-hero .text-h1 {
  font-size: clamp(28px, 3vw, 44px);
}

/* Stats pill */
.rh-stats {
  display: flex;
  align-items: stretch;
  margin: 32px 0 36px;
  width: fit-content;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
}
.rh-stat { padding: 15px 24px; position: relative; }
.rh-stat + .rh-stat::before {
  content: '';
  position: absolute; left: 0; top: 13px; bottom: 13px;
  width: 1px; background: rgba(255,255,255,0.08);
}
.rh-stat-num {
  display: block;
  font-family: var(--font-display); font-size: 22px;
  font-weight: 800; color: var(--weezy-lime);
  letter-spacing: -0.03em; line-height: 1.1;
}
.rh-stat-lbl {
  display: block; margin-top: 3px;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: rgba(255,255,255,0.3);
}

/* Cards do visual */
.rh-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px;
}
.rh-card-sm {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.rh-card-sm:hover {
  border-color: rgba(149,242,28,0.25);
  transform: translateY(-3px);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .rh-inner { grid-template-columns: 1fr; }
  .rh-visual { display: none; }
  .rich-hero { min-height: auto; padding: 130px 0 70px; }
}

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-hero-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-grid .blog-card:first-child { flex-direction: column; grid-column: span 1; }
  .blog-grid .blog-card:first-child .blog-card-image { width: 100%; aspect-ratio: 16/9; }
  .post-layout { grid-template-columns: 1fr; }
  .portfolio-masonry { columns: 2; }
}

@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .portfolio-masonry { columns: 1; }
  .contact-form-card { padding: 28px 24px; }
}
