/* ==========================================================================
   MAVSLEO — Design sem Fricção
   Design tokens herdados da identidade visual existente da agência.
   ========================================================================== */

:root {
  --bg: #f5f4ef;
  --ink: #0a0a0a;
  --ink-light: #fffff0;
  --accent: #e8ff47;
  --muted: #3b3b3b;
  --muted-light: #b1b1b1;
  --border: #e0ded7;
  --bg-raised: #ffffff;

  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1120px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}
h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9em;
  font-weight: 700;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  background-color: transparent;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.logo .leo {
  background: var(--accent);
  color: var(--ink);
  padding: 0 6px;
}

nav.main-nav {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
}

nav.main-nav a {
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  border-bottom-color: var(--ink);
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--ink);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: #262626;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
}
.btn-secondary:hover {
  background: rgba(10, 10, 10, 0.05);
}
.btn-accent {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-accent:hover {
  filter: brightness(0.95);
}

.nav-cta {
  display: none;
}
@media (min-width: 720px) {
  .nav-cta {
    display: inline-block;
  }
}

.mobile-nav-toggle {
  background: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.9rem;
}
@media (min-width: 720px) {
  .mobile-nav-toggle {
    display: none;
  }
}
nav.main-nav {
  display: none;
}
@media (min-width: 720px) {
  nav.main-nav {
    display: flex;
  }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px 18px;
}
.mobile-nav a {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav.hidden {
  display: none;
}
@media (min-width: 720px) {
  .mobile-nav {
    display: none !important;
  }
}

/* ---------- Hero ---------- */
/* Modificações na estrutura do Hero */
.hero {
  position: relative;
  width: 100%;
  min-height: 85vh; /* Mudamos para min-height para garantir que em telas menores o conteúdo não transborde */
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Faz os elementos empilharem verticalmente (Header no topo, conteúdo embaixo) */
  justify-content: space-between;
  color: white;
}

/* Container para agrupar o breadcrumb e os textos do grid, empurrando-os para baixo */
.hero-content-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 64px 24px; /* Espaçamento inferior confortável */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centraliza o bloco de texto no espaço restante */
}

/* Customização do Header quando estiver dentro do Hero */
.site-header.hero-header {
  position: relative; /* Remove o sticky fixo enquanto está no hero, ou mantenha se preferir fixo */
  background: transparent; /* Torna o fundo invisível para revelar o vídeo */
  width: 100%;
  color: white;
}

/* Ajustes nos links do menu para garantir contraste sobre o vídeo */
.site-header.hero-header nav.main-nav a,
.site-header.hero-header .mobile-nav a {
  color: rgba(255, 255, 255, 0.85);
}
.site-header.hero-header nav.main-nav a:hover,
.site-header.hero-header nav.main-nav a[aria-current="page"] {
  border-bottom-color: white;
  color: white;
}

/* Modificações específicas para os Breadcrumbs no Hero */
/* Ajuste no Hero Grid para remover margens redundantes */
.hero-grid {
  margin-top: 0;
}
#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  object-fit: cover; /* Garante que o vídeo preencha a tela */
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.83); /* 50% de transparência */
  z-index: 0;
}
.hero-grid {
  display: grid;
  gap: 40px;
  position: relative;
  z-index: 1; /* Mantém o texto acima do vídeo e da camada escura */
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
}
.hero .eyebrow {
  color: var(--muted-light);
}
.hero h1 {
  max-width: 14ch;
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-light);
  max-width: 46ch;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 1.6em;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
}
.stat-label {
  color: var(--muted-light);
  font-size: 0.9rem;
}

/* Marquee of service tags */
.tag-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 16px 0;
  white-space: nowrap;
}
.tag-strip ul {
  display: inline-flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tag-strip li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}
.section-head {
  max-width: 60ch;
  margin-bottom: 40px;
}
.section-head p {
  color: var(--muted);
}

.section-alt {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Comparison table */
.compare {
  display: grid;
  gap: 24px;
}
@media (min-width: 800px) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}
.compare-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-raised);
}
.compare-col.is-us {
  border-color: var(--ink);
}
.compare-col h3 {
  margin-bottom: 1em;
}
.compare-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.compare-col li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.compare-col li:last-child {
  border-bottom: none;
}
.mark {
  font-weight: 700;
}
.mark.no {
  color: var(--muted);
}
.mark.yes {
  color: var(--ink);
}

/* Card grid */
.card-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 760px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-raised);
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--ink);
}
.card .index {
  font-family: var(--font-display);
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.pill {
  font-size: 0.78rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
}
.card-link {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* Process steps */
.steps {
  display: grid;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.step:last-child {
  border-bottom: 1px solid var(--border);
}
.step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--muted);
}

/* FAQ */
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  cursor: pointer;
  padding: 22px 0;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-item .faq-answer {
  padding: 0 0 24px;
  color: var(--muted);
  max-width: 68ch;
}

/* CTA banner */
.cta-banner {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
}
.cta-banner h2 {
  color: var(--bg);
}
.cta-banner .lede {
  color: #c9c9c9;
  max-width: 50ch;
  margin: 0 auto 1.6em;
}
.cta-banner .btn-secondary {
  border-color: var(--bg);
  color: var(--bg);
}
.cta-banner .btn-secondary:hover {
  background: rgba(245, 244, 239, 0.1);
}
.trust-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(245, 244, 239, 0.2);
  font-size: 0.85rem;
  color: #c9c9c9;
}
.trust-row strong {
  display: block;
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted-light);
  padding: 0.5rem 0 0.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px; /* Espaçamento entre os itens */
}
.breadcrumbs-home {
  font-size: 0.85rem;
  font-weight: 500;
  color: transparent;
  padding: 0.5rem 0 0.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px; /* Espaçamento entre os itens */
}
.breadcrumbs-artigos {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.5rem 0 0.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px; /* Espaçamento entre os itens */
}

/* Links do Breadcrumb */
.breadcrumbs a {
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
  opacity: 0.8;
}
.breadcrumbs-artigos a {
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
  opacity: 0.8;
}

/* Efeito Hover moderno (muda a cor sem sublinhado pesado) */
.breadcrumbs a:hover {
  color: var(--bg-raised); /* Ou var(--text-main) para algo mais minimalista */
  opacity: 1;
}
.breadcrumbs-artigos a:hover {
  color: var(--bg-raised); /* Ou var(--text-main) para algo mais minimalista */
  opacity: 1;
}

/* Separador automático via CSS (não precisa digitar "/" no HTML) */
.breadcrumbs a:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #d4d4d8; /* Cor cinza bem clara para o separador */
  pointer-events: none; /* Garante que o "/" não seja clicável */
}
.breadcrumbs-artigos a:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--muted); /* Cor cinza bem clara para o separador */
  pointer-events: none; /* Garante que o "/" não seja clicável */
}

/* Estilo para a página atual (último item, geralmente apenas texto) */
.breadcrumbs span:last-child,
.breadcrumbs a:last-child {
  color: var(--ink-light);
  font-weight: 600;
  opacity: 1;
  pointer-events: none; /* Desativa o clique na página atual */
}
.breadcrumbs-artigos span:last-child,
.breadcrumbs-artigos a:last-child {
  color: var(--ink);
  font-weight: 600;
  opacity: 1;
  pointer-events: none; /* Desativa o clique na página atual */
}

/* Blog */
.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--bg-raised);
}
.post-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.post-card h3 {
  margin-bottom: 0.4em;
}
article.post-body {
  max-width: 68ch;
  margin: 0 auto;
}
article.post-body h2 {
  margin-top: 1.4em;
}
article.post-body ul,
article.post-body ol {
  color: var(--ink);
}

/* Contact page */
.contact-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.contact-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-raised);
}
.contact-block + .contact-block {
  margin-top: 20px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1em;
  font-family: var(--font-body);
  font-weight: 700;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li {
  margin-bottom: 10px;
  font-size: 0.92rem;
}
.footer-grid li a:hover {
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  color: var(--text-offlight);
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 40px;
  height: 40px;
  color: var(--ink);
  border-radius: 50%;
  font-size: 1.5rem;

  transition: background 0.3s ease;
}
.social-icons a:hover {
  color: var(--bg);
}
.facebook:hover {
  background: #1877f2;
}
.twitter:hover {
  background: #1da1f2;
}
.instagram:hover {
  background: #e1306c;
}
.linkedin:hover {
  background: #0077b5;
}
.tiktok:hover {
  background: #010101;
}
.social-icons a:hover {
  filter: brightness(0.85);
}

/* --- Seção de Portfólio --- */
.portfolio-section {
  padding: 100px 0;
  background-color: #0d0e12; /* Um tom de cinza escuro para dar contraste com as outras seções */
}

/* Alinhamento do cabeçalho da seção */
.portfolio-section .section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px auto;
}

.portfolio-section .section-header .eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent, #ffd700); /* Sua cor de destaque */
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.portfolio-section .section-header h2 {
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
}

.portfolio-section .section-header .section-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.6;
}

/* Grid de cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Estilo do Card individual */
.portfolio-card {
  background-color: #16171d;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Wrapper da Imagem para garantir proporção 16:9 */
.portfolio-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Ratio de 16:9 */
  overflow: hidden;
  background-color: #20222a;
}

.portfolio-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* Mostra o topo do site se a imagem for maior */
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img-wrapper img {
  transform: scale(1.04);
}

/* Conteúdo textual do Card */
.portfolio-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent, #ffd700);
  background-color: rgba(
    255,
    215,
    0,
    0.08
  ); /* Fundo sutil com a cor de destaque */
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-content h3 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 600;
}

.portfolio-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1; /* Mantém os links sempre alinhados no rodapé do card */
}

/* Link Externo */
.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.portfolio-link:hover {
  color: var(--accent, #ffd700);
}

.link-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.portfolio-link:hover .link-icon {
  transform: translate(
    2px,
    -2px
  ); /* Efeito clássico de link externo apontando para cima */
}

/* Media Queries adicionais para ajuste fino */
@media (max-width: 768px) {
  .portfolio-section {
    padding: 60px 0;
  }
  .portfolio-section .section-header h2 {
    font-size: 28px;
  }
  .portfolio-grid {
    gap: 20px;
  }
}
