/* ConverOne Base: estrutura e visual padrão.
   Tudo usa as variáveis --co-* geradas de tokens.json (inc/tokens.php).
   O visual exclusivo de cada cliente vai em assets/css/client.css. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--co-bg);
  color: var(--co-text);
  font-family: var(--co-font-body);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--co-primary); text-underline-offset: 3px; }
a:hover { color: var(--co-accent); }
h1, h2, h3 {
  font-family: var(--co-font-heading);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--co-text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.015em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--co-accent); outline-offset: 3px; }

.co-skip { position: absolute; left: -9999px; }
.co-skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--co-bg); padding: 8px 12px; }

/* Layout */
.co-container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.co-narrow { width: min(760px, 100% - 32px); }
.co-section { padding-block: var(--co-section-y); }
.co-section--tight { padding-top: 0; }
.co-section--surface { background: var(--co-surface); }
.co-section__head { max-width: 680px; margin-bottom: 40px; }
.co-lead { font-size: 1.15rem; color: var(--co-muted); }
.co-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--co-accent); }
.co-prose > :last-child { margin-bottom: 0; }

/* Botões (variantes vindas de tokens.buttons, via classe no body) */
.co-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.co-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--co-radius-btn);
  border: 1.5px solid var(--co-primary);
  font-weight: 600; text-decoration: none; line-height: 1;
  transition: background .2s, color .2s, border-color .2s;
}
.co-btn--primary { background: var(--co-primary); color: #fff; }
.co-btn--primary:hover { background: var(--co-accent); border-color: var(--co-accent); color: #fff; }
.co-btn--secondary { background: transparent; color: var(--co-primary); }
.co-btn--secondary:hover { background: var(--co-primary); color: #fff; }
.co-btn--inverse { background: #fff; color: var(--co-primary); border-color: #fff; }
.co-btn--inverse:hover { background: transparent; color: #fff; }
.co-buttons-outline .co-btn--primary { background: transparent; color: var(--co-primary); }
.co-buttons-outline .co-btn--primary:hover { background: var(--co-primary); color: #fff; }
.co-buttons-soft .co-btn--primary {
  background: color-mix(in srgb, var(--co-primary) 14%, var(--co-bg));
  color: var(--co-text); border-color: transparent;
}

/* Cabeçalho */
.co-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--co-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--co-text) 8%, transparent);
}
.co-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.co-brand { text-decoration: none; color: var(--co-text); margin-right: auto; }
.co-brand__name { font-family: var(--co-font-heading); font-weight: 700; font-size: 1.25rem; }
.co-brand__logo { max-height: 48px; width: auto; }
.co-nav__list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.co-nav__list a { color: var(--co-text); text-decoration: none; font-weight: 500; }
.co-nav__list a:hover { color: var(--co-primary); }
.co-header__cta { min-height: 42px; padding: 0 18px; }
.co-btn--ghost { background: transparent; color: inherit; border-color: currentColor; }

/* Menu do celular (sem JavaScript: <details>) */
.co-mnav { display: none; margin-left: auto; position: static; }
.co-mnav summary {
  list-style: none; cursor: pointer; font-weight: 600; padding: 10px 14px;
  border: 1.5px solid currentColor; border-radius: var(--co-radius-btn);
}
.co-mnav summary::-webkit-details-marker { display: none; }
.co-mnav__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--co-bg); color: var(--co-text);
  padding: 16px; display: grid; gap: 16px;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--co-text) 12%, transparent);
}
.co-mnav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.co-mnav__list a { display: block; padding: 10px 4px; color: var(--co-text); text-decoration: none; font-weight: 600; }


/* Duas colunas (sobre, contato) */
.co-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.co-split--single { grid-template-columns: 1fr; max-width: 760px; }
.co-split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--co-radius); }
.co-contact .co-split { align-items: start; }

/* Cards (serviços, equipe) */
.co-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.co-card {
  background: var(--co-bg);
  border-radius: var(--co-radius);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--co-text) 8%, transparent);
  display: flex; flex-direction: column;
}
.co-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.co-card__media--portrait img { aspect-ratio: 4 / 5; }
.co-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.co-card__body p { color: var(--co-muted); }
.co-card__price { margin-top: auto; margin-bottom: 0; font-weight: 600; color: var(--co-primary) !important; }
.co-member__role { color: var(--co-accent) !important; font-weight: 600; margin-top: -.3em; }

/* Diferenciais */
.co-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.co-reason { padding-top: 20px; border-top: 3px solid var(--co-accent); }
.co-reason p { color: var(--co-muted); margin: 0; }

/* Depoimentos */
.co-quotes { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.co-quote { margin: 0; padding: 28px; background: var(--co-bg); border-radius: var(--co-radius); }
.co-quote blockquote { margin: 0 0 16px; font-size: 1.05rem; }
.co-quote figcaption { font-weight: 600; }
.co-quote figcaption span { font-weight: 400; color: var(--co-muted); }

/* Galeria */
.co-gallery__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.co-gallery__grid--1 { grid-template-columns: 1fr; }
.co-gallery__grid--2 { grid-template-columns: repeat(2, 1fr); }
.co-gallery__grid--3 { grid-template-columns: repeat(3, 1fr); }
.co-gallery__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--co-radius); }

/* Perguntas frequentes */
.co-faq__list { display: grid; gap: 12px; }
.co-faq__item { background: var(--co-surface); border-radius: var(--co-radius); padding: 0 24px; }
.co-faq__item summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative;
  font-family: var(--co-font-heading); font-weight: 600; font-size: 1.1rem;
}
.co-faq__item summary::-webkit-details-marker { display: none; }
.co-faq__item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--co-accent); }
.co-faq__item[open] summary::after { content: "\2212"; }
.co-faq__answer { padding-bottom: 20px; color: var(--co-muted); }
.co-faq__answer > :last-child { margin-bottom: 0; }

/* Chamada final */
.co-cta { background: var(--co-primary); color: #fff; }
.co-cta h2, .co-cta .co-lead { color: #fff; }
.co-cta .co-lead { opacity: .9; }
.co-cta__inner { text-align: center; max-width: 760px; }
.co-cta .co-actions { justify-content: center; }

/* Contato */
.co-details { margin: 24px 0; display: grid; gap: 14px; }
.co-details div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.co-details dt { font-weight: 600; }
.co-details dd { margin: 0; }
.co-hours { border-collapse: collapse; width: 100%; max-width: 420px; }
.co-hours caption { text-align: left; font-weight: 600; margin-bottom: 8px; }
.co-hours th, .co-hours td { text-align: left; padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--co-text) 10%, transparent); font-weight: 400; }
.co-split__form { background: var(--co-bg); padding: 32px; border-radius: var(--co-radius); }

/* Página de serviço */
.co-service__price { font-size: 1.25rem; font-weight: 700; color: var(--co-primary); }
.co-services__all { margin: 32px 0 0; }
.co-card h3 a, .co-svc-list h3 a, .co-svc-compact h3 a { color: inherit; text-decoration: none; }
.co-card h3 a:hover, .co-svc-list h3 a:hover, .co-svc-compact h3 a:hover { color: var(--co-primary); }

/* Páginas internas */
.co-page-header { padding-bottom: 32px; }

/* Rodapé */
.co-footer { background: var(--co-text); color: color-mix(in srgb, var(--co-bg) 80%, transparent); padding-top: 64px; overflow: hidden; }
.co-footer a { color: var(--co-bg); }
.co-footer__name { font-family: var(--co-font-heading); font-size: 1.3rem; font-weight: 700; color: var(--co-bg); }
.co-footer__social { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
/* Nome gigante: ocupa 100% da largura, qualquer que seja o tamanho do nome.
   O CSS faz uma estimativa (pelo número de letras) e o assets/js/fit.js ajusta no pixel. */
.co-footer__wordmark {
  container-type: inline-size;
  padding-inline: 16px;
  overflow: hidden;
}
.co-footer__wordmark span {
  display: block; width: max-content; margin-inline: auto;
  font-family: var(--co-font-heading); font-weight: 700;
  font-size: calc(100vw / (var(--co-chars, 12) * .6));
  font-size: calc(100cqi / (var(--co-chars, 12) * .6));
  line-height: .8; letter-spacing: -.04em;
  white-space: nowrap; color: color-mix(in srgb, var(--co-bg) 10%, var(--co-text));
  margin-bottom: -.1em;
}

/* Celular */
@media (max-width: 860px) {
  .co-split { grid-template-columns: 1fr; gap: 32px; }
  .co-nav, .co-header__cta, .co-header__phone-link { display: none; }
  .co-mnav { display: block; }
  .co-details div { grid-template-columns: 1fr; gap: 2px; }
  .co-gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .co-gallery__grid--1 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
