/* Tangit Design — estilos do site */
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1b202c;
  --navy-2: #232938;
  --accent: #e23917;
  --accent-dark: #c42f10;
  --slate: #3e4d6f;
  --steel: #7a8bb3;
  --card-title: #475371;
  --ink: #1b202c;
  --text: #2b2f3a;
  --muted: #5f6470;
  --line: #e3e3e0;
  --light: #f3f3f1;
  --footer: #e6e6e6;
  --white: #fff;
  --radius: 16px;
  --container: 1040px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Botões e etiquetas ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 8px;
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
  cursor: pointer; border: 0;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light svg { color: var(--accent); }
.btn-link { background: transparent; color: inherit; padding: 0 6px; font-weight: 600; }
.btn-link::after { content: "›"; font-size: 20px; line-height: 1; margin-left: 2px; transition: transform .2s var(--ease); }
.btn-link:hover::after { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }

.tag {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(122, 139, 179, .2); color: var(--slate);
}
.on-dark .tag { background: rgba(62, 77, 111, .5); color: var(--steel); }
.on-accent .tag { background: rgba(255, 255, 255, .7); color: var(--accent-dark); }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid rgba(122, 139, 179, .18); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: rgba(255, 255, 255, .86); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.nav a:hover { color: var(--white); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.btn-outline { border: 1px solid rgba(255, 255, 255, .28); color: var(--white); background: transparent; font-size: 14px; font-weight: 500; min-height: 40px; padding: 0 14px; }
.btn-outline:hover { background: rgba(255, 255, 255, .08); }
.btn-outline svg { color: var(--accent); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--white); cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Seções ---------- */
.section { padding: 80px 0 96px; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { margin-top: 18px; font-size: clamp(34px, 5vw, 48px); font-weight: 700; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.on-dark { background: var(--navy); color: rgba(255, 255, 255, .86); }
.on-dark h2 { color: var(--white); }
.on-dark .section-head p { color: rgba(255, 255, 255, .72); }
.on-light { background: var(--light); }
.on-accent { background: var(--accent); color: var(--white); }
.on-accent h2 { color: var(--white); }

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: 96px 0 120px; }
.hero h1 { margin-top: 20px; max-width: 760px; font-size: clamp(40px, 6.6vw, 68px); font-weight: 900; line-height: 1; color: var(--white); letter-spacing: -0.025em; }
.hero .lead { margin-top: 24px; max-width: 640px; font-size: clamp(18px, 2vw, 21px); font-weight: 300; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.hero .btn-link { color: var(--white); }

/* O que fazemos */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pillar { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 26px; background: var(--white); display: flex; flex-direction: column; }
.pillar .num { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .08em; }
.pillar h3 { margin-top: 12px; font-size: 28px; font-weight: 700; }
.pillar p { margin-top: 12px; color: var(--muted); }
.pillar ul { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); }
.pillar li::before { content: "✓"; color: var(--accent); margin-right: 8px; }

/* Projetos */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, 230px); gap: 20px; }
.project { position: relative; overflow: hidden; border-radius: var(--radius); background: #ddd; margin: 0; }
.project.tall { grid-row: span 2; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project:hover img { transform: scale(1.04); }
.project figcaption { position: absolute; inset: auto 0 0 0; padding: 48px 18px 16px; background: linear-gradient(to top, rgba(10, 12, 18, .82), rgba(10, 12, 18, 0)); color: var(--white); }
.project h3 { color: var(--white); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.project .tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: rgba(255, 255, 255, .78); }

/* Metodologia */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { background: var(--white); color: var(--text); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.step svg { width: 30px; height: 30px; }
.step h3 { margin-top: 14px; padding-bottom: 16px; border-bottom: 1px solid #d5d8e0; font-size: clamp(32px, 3.4vw, 40px); font-weight: 600; color: var(--card-title); }
.step p { margin-top: 16px; font-size: 16px; line-height: 1.45; }
.step ul { margin-top: auto; padding-top: 20px; display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.step li::before { content: "✓"; color: var(--accent); margin-right: 8px; }
.steps-cta { margin-top: 36px; }
.btn-ghost-light { border: 1px solid rgba(255, 255, 255, .3); color: var(--white); background: transparent; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .08); }

/* Implementação */
.split .section-head { margin-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.on-accent .section-head p { color: rgba(255, 255, 255, .92); }
.checks { display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; border-radius: 12px; background: rgba(255, 255, 255, .12); font-size: 17px; font-weight: 600; line-height: 1.35; }
.checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--white); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.on-accent .btn-link { color: var(--white); }

/* Sobre */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.about .section-head { margin-bottom: 0; }
.about .section-head p + p { margin-top: 14px; }
.about .motto { margin-top: 22px; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.about .sign { margin-top: 10px; font-size: 14px; color: var(--muted); }
.about .sign b { color: var(--ink); }
.about-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #ddd; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Depoimentos (reativar quando houver depoimentos reais) */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quote { background: var(--white); color: var(--text); border-radius: var(--radius); padding: 24px; margin: 0; }
.quote blockquote { margin: 0; }
.quote figcaption { margin-top: 18px; font-size: 14px; }
.quote figcaption b { display: block; color: var(--ink); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid #d9d9d5; }
.faq details:first-child { border-top: 1px solid #d9d9d5; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #cfcfca; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 400; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); font-size: 17px; }

/* Rodapé */
.site-footer { background: var(--footer); color: var(--text); padding: 64px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-brand img { width: 150px; }
.footer-brand p { margin-top: 16px; max-width: 300px; color: var(--muted); }
.footer-brand .motto { color: var(--ink); font-weight: 600; margin-top: 6px; }
.footer-col h2 { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-col a { display: block; text-decoration: none; color: var(--muted); padding: 4px 0; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid #cfcfcf; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--white); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(27, 32, 44, .28); transition: transform .2s var(--ease), opacity .3s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* Página simples (privacidade / 404) */
.page { padding: 72px 0 96px; }
.page h1 { margin-top: 18px; font-size: clamp(34px, 5vw, 48px); font-weight: 800; }
.page .prose { max-width: 760px; margin-top: 28px; }
.page .prose h2 { font-size: 22px; margin: 36px 0 10px; }
.page .prose p, .page .prose li { color: var(--muted); font-size: 17px; }
.page .prose p + p { margin-top: 12px; }
.page .prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }

/* Revelação suave (só com JS ativo) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 8px var(--gutter) 24px; border-bottom: 1px solid rgba(122, 139, 179, .18); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav a { padding: 16px 0; font-size: 15px; border-bottom: 1px solid rgba(122, 139, 179, .14); }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .menu-toggle { display: inline-block; }
  .pillars, .steps, .quotes { grid-template-columns: 1fr; }
  .split, .about { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .projects { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 180px; gap: 12px; }
  .project.tall { grid-row: span 2; }
  .project.wide-sm { grid-column: 1 / -1; }
  .project h3 { font-size: 16px; }
  .project .tags { font-size: 12px; }
  .project figcaption { padding: 36px 12px 12px; }
}
@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .site-header .container { height: 64px; }
  .nav { inset: 64px 0 auto 0; }
  .brand img { width: 120px; }
  .btn-outline .label { display: none; }
  .btn-outline { padding: 0 11px; }
  .hero { padding: 64px 0 80px; }
  .section { padding: 64px 0 72px; }
  .section-head { margin-bottom: 28px; }
  .actions .btn { flex: 1 1 auto; }
  .actions .btn-link { flex: 0 0 auto; }
  .faq summary { font-size: 17px; }
  .faq details p { padding-right: 0; font-size: 16px; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
