/* ==========================================================
   PALETA — troque aqui e o site inteiro muda
   ========================================================== */
:root {
  color-scheme: light;
  --bg: #F8FAFC;          /* fundo principal */
  --bg-alt: #EEF2F6;      /* fundo das seções alternadas */
  --card: #FFFFFF;        /* cards */
  --line: #E2E8F0;        /* bordas */
  --text: #0F172A;        /* texto principal */
  --text-soft: #334155;   /* texto de parágrafos longos */
  --muted: #475569;       /* texto secundário */
  --accent: #0F766E;      /* turquesa escuro: textos, links e bordas de destaque (legível no fundo claro) */
  --accent-soft: #115E59; /* turquesa do hover dos links */
  --accent-fill: #14B8A6; /* turquesa da marca: barras, ícones e preenchimentos (mesmo dos relatórios) */
  --cta: #F59E0B;         /* botões de ação (âmbar) */
  --on-color: #0F172A;    /* texto escuro sobre turquesa e âmbar */
  --blue: #3B82F6;        /* segunda cor dos gráficos */
  --positive: #16A34A;    /* verde (positivo / WhatsApp) */
  --dashed: #CBD5E1;      /* bordas tracejadas dos espaços para foto e print */
  --font-body: 'Inter', system-ui, sans-serif;
  --font-title: 'Poppins', sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.55; }
a { color: var(--accent); }
a:hover { color: var(--accent-soft); }
h1, h2, h3 { font-family: var(--font-title); margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 40px; }
.section-head h2, .section h2 { font-size: clamp(28px, 3.5vw, 38px); font-weight: 700; letter-spacing: -.01em; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Botões ---------- */
.btn { display: inline-block; font-family: inherit; font-size: 16px; font-weight: 600; text-decoration: none; border-radius: 10px; padding: 14px 26px; border: 1px solid transparent; cursor: pointer; transition: filter .15s; }
.btn:hover { filter: brightness(1.1); }
.btn--primary { background: var(--cta); color: var(--on-color); }
.btn--primary:hover { color: var(--on-color); }
.btn--ghost { background: var(--card); border-color: var(--line); color: var(--text); font-weight: 500; }
.btn--ghost:hover { color: var(--text); }
.btn--small { padding: 11px 20px; }

/* ---------- Cabeçalho ---------- */
.header { border-bottom: 1px solid var(--line); background: var(--card); }
.header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__logo { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-fill); color: var(--on-color); font-family: var(--font-title); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--font-title); font-weight: 600; font-size: 17px; }
.brand__sub { font-size: 13px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 80px; }
.hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }
.hero__lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Painel de destaque do topo (troque pela imagem real — veja README) */
.hero__visual { flex: 1 1 440px; min-width: 0; }
.showcase { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.showcase__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.showcase__top strong { font-family: var(--font-title); font-size: 16px; }
.showcase:hover { border-color: var(--accent); transform: translateY(-2px); }
.showcase__open { font-size: 14px; font-weight: 600; color: var(--accent); }
.showcase__hint { font-size: 12px; color: var(--muted); border: 1px dashed var(--dashed); border-radius: 999px; padding: 3px 10px; }
.showcase img, .showcase video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; border-radius: 10px; display: block; }
.kpis { display: flex; flex-wrap: wrap; gap: 12px; }
.kpi { flex: 1 1 120px; background: var(--bg); border-radius: 10px; padding: 12px; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi i { display: block; height: 12px; border-radius: 6px; margin-top: 10px; }

/* Mini-gráfico de barras (usado no topo e nos cards) */
.bars { display: flex; align-items: flex-end; gap: 6px; }
.bars--lg { background: var(--bg); border-radius: 10px; padding: 16px; height: 170px; gap: 10px; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--accent-fill); }
.bars i:nth-child(even) { background: var(--blue); }

/* ---------- O que eu entrego (benefícios: ícone + texto curto) ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.benefit { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.benefit svg { width: 52px; height: 52px; stroke: var(--accent-fill); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 250px; }
.benefit strong { color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .benefits { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Cards (não usados no momento; mantidos para seções futuras) ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 250px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card svg { width: 28px; height: 28px; stroke: var(--accent-fill); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Portfólio ----------
   Responsivo em 3 faixas:
   - computador (1024px ou mais): grade de 3 colunas
   - tablet (721 a 1023px): grade de 2 colunas
   - celular (até 720px): carrossel deslizável com encaixe (scroll-snap), setas e bolinhas
   ---------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter { background: var(--card); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.filter:hover { color: var(--text); border-color: var(--muted); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; font-weight: 600; }
.filter__count { opacity: .7; margin-left: 4px; }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; transition: border-color .15s, transform .15s; }
.project:hover { border-color: var(--accent); transform: translateY(-2px); }
.projects:focus-visible { outline-offset: 6px; border-radius: 16px; }

.carousel-nav { display: none; }

@media (max-width: 1023px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  /* Filtros viram uma faixa que também desliza, sem quebrar linha */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px 24px; padding: 2px 24px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }

  /* Carrossel: ocupa a largura toda da tela e mostra um pedaço do próximo card */
  .projects { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 24px; margin: 0 -24px; padding: 4px 24px 8px; overscroll-behavior-x: contain; scrollbar-width: none; scroll-behavior: smooth; }
  .projects::-webkit-scrollbar { display: none; }
  .project { flex: 0 0 85%; scroll-snap-align: start; }
  .project:hover { transform: none; }
  .project:only-child { flex-basis: 100%; }

  .carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
  .carousel-nav[hidden] { display: none; }
  .carousel-nav__btn { width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; }
  .carousel-nav__btn:disabled { opacity: .35; cursor: default; }
  .carousel-nav__dots { display: flex; gap: 4px; }
  .carousel-nav__dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .carousel-nav__dot::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .2s, background .2s; }
  .carousel-nav__dot[aria-current="true"]::before { width: 20px; background: var(--accent-fill); }
}

@media (prefers-reduced-motion: reduce) {
  .projects { scroll-behavior: auto; }
  .project, .card, .filter, .carousel-nav__dot::before, .wa-float { transition: none; }
}

.project__thumb { background: var(--bg); border-radius: 10px; padding: 14px; height: 170px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.project__thumb--img { padding: 0; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.project__thumb--img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.project__skeleton { display: flex; gap: 8px; }
.project__skeleton i { flex: 1; height: 10px; border-radius: 5px; background: var(--line); }
.project__thumb .bars { flex: 1; }
.project__tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.project h3 { font-size: 20px; line-height: 1.25; margin-top: 8px; }
.project p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.project__btn { margin-top: auto; align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; }
.project__btn:hover { color: var(--accent-soft); }
.project__btn[disabled] { color: var(--muted); cursor: not-allowed; }

/* Hover dos cards (só em telas com mouse) */
@media (hover: hover) {
  .project__thumb--img img { transition: transform 300ms ease-out; }
  .project:hover .project__thumb--img img,
  .project:focus-within .project__thumb--img img { transform: scale(1.04); }
  .project:hover .project__btn,
  .project:focus-within .project__btn { text-decoration: underline; text-underline-offset: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .project__thumb--img img { transition: none; }
  .project:hover .project__thumb--img img,
  .project:focus-within .project__thumb--img img { transform: none; }
}

/* ---------- Como trabalho ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 24px; }
.step { flex: 1 1 230px; display: flex; flex-direction: column; gap: 12px; }
.step__n { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font-family: var(--font-title); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 18px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Sobre ---------- */
.about { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.about__photo { flex: 0 1 340px; min-width: 240px; margin: 0 auto; }
.about__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 20px; display: block; border: 1px solid var(--line); }
.about__placeholder { aspect-ratio: 4 / 5; border-radius: 20px; background: var(--card); border: 1px dashed var(--dashed); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); text-align: center; padding: 24px; font-size: 14px; }
.about__placeholder strong { font-family: var(--font-title); font-size: 56px; color: var(--accent); }
.about__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about__text p { font-size: 17px; color: var(--text-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.certs { display: flex; flex-direction: column; gap: 12px; }
.certs h3 { font-size: 18px; }
.certs__list { display: flex; flex-wrap: wrap; gap: 12px; }
.cert { flex: 1 1 240px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.cert strong { font-size: 15px; font-weight: 500; }
.cert span { font-size: 13px; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 600; }
.links a { text-decoration: none; }

/* ---------- Contato ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact__info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact__info > p { font-size: 17px; color: var(--muted); }
.contact__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-btn { display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); text-decoration: none; transition: border-color .15s; }
.contact-btn:hover { border-color: var(--accent); color: var(--text); }
.contact-btn svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--accent-fill); stroke: var(--on-color); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contact-btn--whatsapp svg { background: var(--positive); stroke: #FFFFFF; }
.contact-btn--whatsapp:hover { border-color: var(--positive); }
.contact-btn__text { display: flex; flex-direction: column; line-height: 1.3; }
.contact-btn__text strong { font-weight: 600; }
.contact-btn__text span { font-size: 14px; color: var(--muted); }

/* Botão fixo de WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: var(--positive); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(15, 23, 42, .22); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) { .wa-float { right: 14px; width: 52px; height: 52px; } }

/* ---------- Perguntas frequentes ---------- */
.faq__list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.faq details[open] { border-color: var(--accent); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 20px; color: var(--text-soft); font-size: 16px; max-width: 70ch; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.form-box { flex: 1 1 420px; min-width: 0; display: flex; }
.form-box .form { flex: 1; }
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__error { color: #B91C1C; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 8px; padding: 10px 14px; font-size: 15px; }
.field--invalid input, .field--invalid textarea { border-color: #DC2626; }
.form button[disabled] { opacity: .7; cursor: wait; }
.form__success { align-items: center; justify-content: center; text-align: center; gap: 14px; min-height: 100%; }
.form__success:focus { outline: none; }
.form__success h3 { font-size: 24px; }
.form__success p { color: var(--text-soft); font-size: 16px; max-width: 40ch; }
.form__success .form__success-alt { color: var(--muted); font-size: 14px; }
.form__success-icon { width: 60px; height: 60px; border-radius: 50%; background: #DCFCE7; display: flex; align-items: center; justify-content: center; }
.form__success-icon svg { width: 30px; height: 30px; stroke: var(--positive); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.form__success[hidden], .form[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; color: var(--text); font-size: 16px; font-family: inherit; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #94A3B8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 184, 166, .2); }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding-bottom: 72px; } /* espaço para o botão fixo do WhatsApp */
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 24px; font-size: 14px; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { text-decoration: none; }

/* ---------- Janela do relatório (embed do Power BI) ---------- */
.modal { width: min(1200px, 96vw); max-height: 96vh; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text); }
.modal::backdrop { background: rgba(15, 23, 42, .6); }
.modal__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.modal__bar h3 { font-size: 18px; }
.modal__actions { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.modal__close { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 16px; font: inherit; cursor: pointer; }
.modal__frame { aspect-ratio: 16 / 9; background: var(--bg); }
.modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__tip { padding: 10px 20px; font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .modal__frame { aspect-ratio: 4 / 3; } }
