/* ==========================================================================
   TotalQuality Engineering — estilos do site
   Para mudar as cores da marca, edite só o bloco :root logo abaixo.
   ========================================================================== */
:root {
  --ground: #ffffff;
  --ground-2: #eef4f9;
  --ink: #0b1b3a;
  --muted: #3e4c63;
  --accent: #35aee6;       /* ciano do logotipo */
  --deep: #0b1b3a;         /* azul-marinho */
  --deep-ink: #eaf5fc;
  --step-1: #0b1b3a;
  --step-3: #1a5a93;
  --step-4: #1d6fa8;
  --step-5: #35aee6;
  --margin: clamp(16px, 4vw, 56px);
  --section-gap: clamp(96px, 14vw, 200px);
  --q-radius: 50% 50% 0 50%;          /* o "Q": redondo, com um canto reto */
  --q-button: 999px 999px 0 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { padding-inline: var(--margin); }
.section { margin-top: var(--section-gap); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.strong { font-weight: 600; }
.self-start { align-self: flex-start; }
.ico { width: 24px; height: 24px; flex: none; }

.h-section { font-size: clamp(32px, 4vw, 58px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }

.q-shape { border-radius: var(--q-radius); overflow: hidden; }
.q-dot { display: inline-block; width: 0.7em; height: 0.7em; border-radius: var(--q-radius); flex: none; background: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.6em;
  border-radius: var(--q-button);
  background: var(--accent); color: var(--ink);
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease;
}
.btn:hover { background: #5cc0ee; transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn.dark { background: var(--deep); color: var(--deep-ink); font-size: 16px; }
.btn.dark:hover { background: #17305f; }

.link-u { text-decoration: underline 2px transparent; text-underline-offset: 6px; transition: text-decoration-color 200ms ease; }
.link-u:hover { text-decoration-color: currentColor; }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--ground); }
.site-header nav { display: flex; height: 76px; align-items: center; justify-content: space-between; gap: 24px; }
.logo { height: 38px; width: auto; }
.menu { display: none; align-items: center; gap: 32px; font-weight: 500; font-size: 16px; }

/* ---------- Início ---------- */
.hero { position: relative; overflow: hidden; min-height: calc(100svh - 76px); }
.hero-q {
  position: absolute; background: var(--accent);
  left: 50%; top: 54svh; width: 130vw; height: 130vw; transform: translateX(-50%);
}
.hero-q img { width: 100%; height: 100%; object-fit: cover; }
.hero-body { position: relative; padding-top: 9svh; padding-bottom: 64svh; }
.hero h1 { font-size: 7vw; line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.hero-text > p { margin-top: 32px; max-width: 40ch; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* ---------- Quem somos ---------- */
.about-wrap { margin: var(--section-gap) 10px 0; }
.about { position: relative; overflow: hidden; display: grid; background: var(--deep); color: var(--deep-ink); }
.about-a { padding: 48px 24px 24px; }
.about-a p { margin-top: 32px; max-width: 52ch; }
.about-b { display: flex; flex-direction: column; gap: 40px; padding: 24px 24px 48px; }
.pillar { max-width: 420px; }
.pillar h3 { font-size: 22px; font-weight: 700; }
.pillar p { margin-top: 12px; font-size: 16px; }
.about-q { width: 86vw; margin: 0 auto -22%; }
.about-q .q-shape { aspect-ratio: 1; }
.about-q img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cabeçalho de seção ---------- */
.head { display: grid; gap: 24px; }
.head p { max-width: 56ch; font-size: 18px; }

/* ---------- Missão, visão e valores ---------- */
.cols3 { margin-top: 56px; display: grid; gap: 12px; }
.col { padding: 28px; font-size: 16px; }
.col h3 { display: flex; align-items: center; gap: 12px; font-size: 26px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.col > p, .col > ul { margin-top: 24px; }
.col ul { display: grid; gap: 16px; }
.tone-1 { background: var(--ground-2); color: var(--ink); }
.tone-1 .q-dot { background: var(--step-5); }
.tone-2 { background: var(--step-3); color: var(--deep-ink); }
.tone-2 .q-dot { background: var(--deep-ink); }
.tone-3 { background: var(--step-1); color: var(--deep-ink); }
.tone-3 .q-dot { background: var(--step-5); }

/* ---------- Serviços ---------- */
.services { margin-top: 56px; }
.svc-btn {
  display: flex; width: 100%; align-items: flex-start; gap: 12px;
  padding: 14px 0; text-align: left; font-weight: 700; font-size: 19px; line-height: 1.35;
  color: var(--muted); transition: color 160ms;
}
.svc-btn .q-dot { margin-top: 0.35em; background: rgba(11, 27, 58, 0.2); transition: background-color 160ms; }
.svc-btn:hover, .svc-btn[aria-expanded="true"] { color: var(--ink); }
.svc-btn[aria-expanded="true"] .q-dot { background: var(--accent); }
.panel { padding-bottom: 40px; }
.visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 300px; background: var(--deep); color: var(--deep-ink); }
.visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visual-icon { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); }
.ico.big { width: 38%; height: 38%; }
.panel h3 { margin-top: 32px; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.lead { margin-top: 16px; max-width: 68ch; }
.items { margin-top: 32px; display: grid; gap: 28px 40px; }
.items dt { font-size: 16px; font-weight: 700; }
.items dd { margin-top: 6px; font-size: 15.5px; color: var(--muted); }
.bullets { margin-top: 32px; display: grid; gap: 12px; max-width: 68ch; font-size: 16px; }
.bullets li { position: relative; padding-left: 24px; }
.bullets .q-dot { position: absolute; left: 0; top: 0.5em; }
.note { margin-top: 32px; max-width: 68ch; font-size: 16px; font-weight: 600; }
.panel .btn { margin-top: 32px; }

/* ---------- Como trabalhamos ---------- */
.stages { margin-top: 64px; display: flex; flex-direction: column; }
.stage { position: relative; overflow: hidden; color: #eaf5fc; }
.st-1 { background: var(--step-1); }
.st-2 { background: var(--step-3); }
.st-3 { background: var(--step-4); }
.st-4 { background: var(--step-5); color: var(--ink); }
.stage > button { display: flex; width: 100%; height: 64px; align-items: center; padding: 0 20px; font-size: 18px; font-weight: 700; text-align: left; }
.stage-body { padding: 0 20px 28px; }
.stage-text h3 { display: none; }
.stage-text p { max-width: 32ch; font-size: 18px; }
.stage-img { display: none; }

/* ---------- Clientes ---------- */
.clients { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.clients li { display: grid; height: 104px; place-items: center; padding: 20px; background: var(--ground-2); }
.clients img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- Contato ---------- */
.contact-title { margin-bottom: 48px; }
.coupon { position: relative; background: var(--accent); color: var(--ink); }
.coupon-a { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 28px; }
.coupon-a > p:first-child { max-width: 34ch; margin-top: 20px; }
.coupon-links { display: flex; flex-direction: column; gap: 12px; font-weight: 600; }
.coupon-links a { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.coupon-links .mail { overflow-wrap: anywhere; font-size: 15px; }
.small { font-size: 15px; }
.coupon-b { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-top: 5px dotted var(--ground); }
.coupon-b input, .coupon-b select, .coupon-b textarea {
  width: 100%; height: 54px; padding: 0 16px; border: 0; border-radius: 0;
  background: rgba(255, 255, 255, 0.35); font-size: 16px;
}
.coupon-b textarea { height: auto; padding: 12px 16px; resize: vertical; }
.coupon-b ::placeholder { color: rgba(11, 27, 58, 0.75); }
.coupon-b input:focus, .coupon-b select:focus, .coupon-b textarea:focus { background: rgba(255, 255, 255, 0.6); outline: 3px solid var(--ink); }
.send {
  margin-top: 8px; display: inline-flex; height: 56px; align-items: center; justify-content: center; gap: 12px;
  background: var(--deep); color: var(--deep-ink); font-size: 17px; font-weight: 700;
  transition: transform 160ms;
}
.send:hover { transform: translateY(-2px); }
.mail-alt { align-self: center; padding-top: 8px; font-weight: 600; }
.notch { position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--ground); }
.notch.n1 { top: 38%; left: -14px; }
.notch.n2 { top: 38%; right: -14px; }

/* ---------- Rodapé ---------- */
.site-footer { margin-top: var(--section-gap); background: var(--ground-2); padding-top: 64px; padding-bottom: 112px; }
.mark { display: flex; align-items: flex-end; gap: 2vw; }
.mark svg { width: 19vw; height: auto; flex: none; }
.mark p { font-size: 12.2vw; line-height: 0.8; font-weight: 800; letter-spacing: -0.05em; white-space: nowrap; }
.mark span { font-weight: 400; }
.foot-grid { margin-top: 56px; display: grid; gap: 40px; font-size: 16px; }
.foot-grid ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.foot-info .strong { font-weight: 700; }
.foot-info .gap { margin-top: 8px; }
.legal { margin-top: 16px; font-size: 14px; color: var(--muted); }
.copy { margin-top: 32px; font-size: 14px; }

/* ---------- Botão flutuante de WhatsApp ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 50; height: 56px; padding: 0 20px; box-shadow: 0 8px 24px rgba(11, 27, 58, 0.25); transition: opacity 200ms, transform 180ms; }
.wa-float span { display: none; }
.wa-float.hide { opacity: 0; pointer-events: none; }

/* ---------- Animações (só com JavaScript ligado) ---------- */
.js .reveal > * { opacity: 0; transform: translateY(24px); transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-in > * { opacity: 1; transform: none; }
.js .reveal.is-in > *:nth-child(2) { transition-delay: 80ms; }
.js .reveal.is-in > *:nth-child(3) { transition-delay: 160ms; }
.js .reveal.is-in > *:nth-child(4) { transition-delay: 240ms; }
@keyframes shutter { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.1) translateX(-2%); } }
.shutter { animation: shutter 1.1s cubic-bezier(0.7, 0, 0.2, 1) both; }
.drift { animation: drift 14s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal > * { opacity: 1; transform: none; }
}

/* ==========================================================================
   Telas médias
   ========================================================================== */
@media (min-width: 640px) {
  .clients { grid-template-columns: repeat(3, 1fr); }
  .foot-grid ul { grid-template-columns: repeat(3, 1fr); }
  .wa-float span { display: inline; }
  .coupon-links .mail { font-size: 17px; }
  .items { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .hero h1 { font-size: 5.2vw; }
}

/* ==========================================================================
   Telas grandes (computador)
   ========================================================================== */
@media (min-width: 1024px) {
  body { font-size: 17px; }
  .logo { height: 46px; }
  .menu { display: flex; }

  .hero-q { left: 84%; top: 50%; width: 110vh; height: 110vh; transform: translateY(-50%); }
  .hero-body { display: flex; min-height: calc(100svh - 76px); align-items: center; padding-top: 0; padding-bottom: 0; }
  .hero-text { max-width: 48vw; padding-left: 4vw; }
  .hero h1 { font-size: 3.5vw; }
  .hero-text > p { font-size: 20px; }

  .about-wrap { margin-inline: 20px; }
  .about { min-height: 120svh; grid-template-columns: repeat(12, 1fr); }
  .about-a { grid-column: 1 / 7; padding: 56px; }
  .about-b { grid-column: 8 / 13; padding: 56px 56px 56px 0; }
  .about-q { position: absolute; bottom: -8vw; left: 56px; width: 36vw; margin: 0; }

  .head { grid-template-columns: repeat(12, 1fr); }
  .head h2 { grid-column: 1 / 7; }
  .head p { grid-column: 8 / 13; align-self: end; max-width: 48ch; }
  #processo .head h2 { grid-column: 1 / 6; }
  #processo .head p { grid-column: 7 / 13; max-width: 56ch; font-size: 17px; }

  .cols3 { grid-template-columns: repeat(3, 1fr); }
  .col { padding: 36px; }

  /* Serviços: lista à esquerda, painel do serviço escolhido à direita */
  .services { display: grid; grid-template-columns: 5fr 7fr; column-gap: 40px; align-content: start; }
  .services > li { display: contents; }
  .svc-btn { grid-column: 1; font-size: 21px; }
  .panel { grid-column: 2; grid-row: 1 / span 12; padding-bottom: 0; }
  .visual { max-width: 340px; }
  .panel h3 { font-size: 30px; }

  /* Como trabalhamos: faixas que se abrem */
  .stages { flex-direction: row; height: 480px; }
  .stage { flex: 0 0 14%; transition: flex-basis 450ms ease-out; }
  .stage.open { flex-basis: 58%; }
  .stage > button { position: absolute; inset: 0; height: 100%; align-items: flex-end; padding: 24px; }
  .stage > button span { transform-origin: bottom left; transform: translateX(1.1em) rotate(-90deg); font-size: 20px; white-space: nowrap; transition: opacity 300ms; }
  .stage.open > button { pointer-events: none; }
  .stage.open > button span { opacity: 0; }
  .stage-body { height: 100%; min-width: 640px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .stage-text { display: flex; flex-direction: column; justify-content: space-between; }
  .stage-text h3 { display: block; font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
  .stage-img { display: block; position: relative; align-self: center; aspect-ratio: 1; }
  .stage-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

  .clients { grid-template-columns: repeat(5, 1fr); }
  .clients li { height: 120px; }

  .contact-title { margin-inline: 8.33%; }
  .coupon { margin-inline: 8.33%; display: grid; grid-template-columns: 46% 1fr; }
  .coupon-a, .coupon-b { padding: 48px; }
  .coupon-b { border-top: 0; border-left: 5px dotted var(--ground); }
  .notch.n1 { top: -14px; left: calc(46% - 14px); }
  .notch.n2 { top: auto; right: auto; bottom: -14px; left: calc(46% - 14px); }

  .foot-grid { grid-template-columns: repeat(12, 1fr); }
  .foot-grid ul { grid-column: 1 / 7; }
  .foot-info { grid-column: 9 / 13; }

  .wa-float { right: 32px; bottom: 32px; }
}
