/* 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-section__head--center { margin-inline: auto; text-align: center; }
.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;
}

/* Faixa de aviso (acima de qualquer header) */
.co-announce { background: var(--co-primary); color: #fff; font-size: .9rem; line-height: 1.4; }
.co-announce__inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px;
  margin-block: 0; padding-block: 10px; text-align: center;
}
.co-announce__link { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; white-space: nowrap; }
.co-announce__link:hover { color: #fff; text-decoration-thickness: 2px; }
/* O header transparente fica logo abaixo da faixa, por cima do hero. */
.co-announce ~ .co-header--transparent.is-over-hero { top: auto; }

/* Vídeo do hero (co_hero_visual) */
.co-video { position: relative; height: 100%; }
.co-video video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.co-hero--split .co-video video { aspect-ratio: 4 / 3; max-height: 560px; border-radius: var(--co-radius); }
.co-hero--centered .co-video video { aspect-ratio: 16 / 7; border-radius: var(--co-radius); }
.co-video__toggle {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
  background: rgba(0, 0, 0, .45); color: #fff; backdrop-filter: blur(6px);
}
.co-video__toggle .co-video__play { display: none; }
.co-video.is-paused .co-video__play { display: inline; }
.co-video.is-paused .co-video__pause { display: none; }
.co-hero--fullbleed .co-video__toggle { bottom: 20px; right: max(16px, calc((100% - 1180px) / 2)); }

/* 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; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: var(--co-radius-btn); color: inherit; transition: background .2s;
}
.co-mnav summary:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.co-mnav summary:focus-visible { outline: 2px solid var(--co-accent); outline-offset: 2px; }
.co-mnav__icon { display: grid; gap: 5px; width: 24px; }
.co-mnav__icon i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
.co-mnav__icon i:nth-child(2) { width: 70%; margin-left: auto; }
.co-mnav[open] .co-mnav__icon i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.co-mnav[open] .co-mnav__icon i:nth-child(2) { opacity: 0; }
.co-mnav[open] .co-mnav__icon i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.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 */
/* Por que nós: base comum; o layout vem de assets/css/variants/why-*.css */
.co-why__list { list-style: none; margin: 0; padding: 0; }
.co-why__item h3 { margin-bottom: .35em; }
.co-why__item p { color: var(--co-muted); margin: 0; }
.co-icon { display: block; flex: none; }

/* Depoimentos */
/* Depoimentos: peças comuns; o layout vem de assets/css/variants/testimonials-*.css */
.co-tlist { list-style: none; margin: 0; padding: 0; }
.co-tcard { margin: 0; }
.co-tcard blockquote { margin: 0; }
.co-tcard blockquote p { margin: 0 0 .6em; }
.co-tcard blockquote p:last-child { margin-bottom: 0; }
.co-tcard__person { display: flex; align-items: center; gap: 14px; }
.co-tcard__name { display: block; font-weight: 700; color: var(--co-text); }
.co-tcard__source { display: block; color: var(--co-muted); font-size: .92rem; }
.co-stars { display: inline-flex; gap: 3px; --co-star: #E8A23A; }
.co-star { display: block; fill: color-mix(in srgb, var(--co-star) 28%, var(--co-bg)); }
.co-star.is-on { fill: var(--co-star); }
.co-avatar {
  display: inline-grid; place-items: center; flex: none; overflow: hidden;
  width: 56px; height: 56px; border-radius: 999px;
  background: color-mix(in srgb, var(--co-accent) 16%, var(--co-bg)); color: var(--co-accent);
  font-family: var(--co-font-heading); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
}
.co-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* 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; }
/* Chamada final com foto: a foto no fundo, tingida com a cor da marca para o texto branco ler bem. */
.co-cta--image { position: relative; isolation: isolate; overflow: clip; padding-block: calc(var(--co-section-y) * 1.25); }
.co-cta__bg { position: absolute; inset: 0; z-index: -2; }
.co-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.co-cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, color-mix(in srgb, var(--co-primary) 92%, transparent), color-mix(in srgb, var(--co-primary) 70%, transparent)); }
.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 { color: inherit; text-decoration: none; }
.co-card h3 a:hover, .co-svc-list h3 a:hover { color: var(--co-primary); }

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

/* Rodapé: fundo escuro (cor do texto), partes comuns aos dois layouts */
.co-footer {
  --co-f-fg: color-mix(in srgb, var(--co-bg) 72%, transparent);
  --co-f-strong: var(--co-bg);
  --co-f-line: color-mix(in srgb, var(--co-bg) 14%, transparent);
  background: var(--co-text); color: var(--co-f-fg); font-size: .95rem; overflow: hidden;
}
.co-footer a { color: var(--co-f-strong); text-decoration: none; }
.co-footer a:hover { color: var(--co-f-strong); text-decoration: underline; text-underline-offset: 3px; }
.co-footer p { margin: 0; }
.co-footer__name { font-family: var(--co-font-heading); font-size: 1.35rem; font-weight: 700; color: var(--co-f-strong); letter-spacing: -.01em; }
.co-footer__logo { max-height: 44px; width: auto; filter: brightness(0) invert(1); }
.co-footer__social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.co-footer__social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--co-f-line); color: var(--co-f-strong);
}
.co-footer__social a:hover { background: var(--co-f-strong); color: var(--co-text); text-decoration: none; }
.co-footer__social .co-icon { width: 18px; height: 18px; }
.co-footer__bottom { border-top: 1px solid var(--co-f-line); font-size: .86rem; }
.co-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-block: 22px; }
.co-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.co-footer__legal a, .co-footer__credit a { color: var(--co-f-fg); }
.co-footer .co-footer__credit { margin-left: auto; }
.co-footer__credit a { color: var(--co-f-strong); font-weight: 600; }
@media (max-width: 680px) {
  .co-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .co-footer .co-footer__credit { margin-left: 0; }
}
/* 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; }
  /* Respiro menor no celular: o espaço do desktop vira tela vazia aqui. */
  .co-section { padding-block: calc(var(--co-section-y) * .6); }
  .co-hero:not(.co-hero--fullbleed) { padding-top: 32px; }
  .co-cta--image { padding-block: calc(var(--co-section-y) * .8); }
}

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