/* =========================================================
   Chaveiro Gilmar 24h — folha de estilos
   Desenvolvido por Vireon Marketing
   ========================================================= */

:root {
  --yellow: #FDD521;        /* amarelo medido na logo aprovada */
  --yellow-hover: #FFE04D;
  --yellow-ink: #6B5500;    /* amarelo escurecido para textos sobre fundo claro */
  --black: #0A0A0B;
  --ink: #111113;
  --graphite: #18181B;
  --graphite-line: rgba(255, 255, 255, .1);
  --paper: #F6F4EC;
  --white: #FFFFFF;
  --text: #17171A;
  --muted: #55555D;
  --on-dark: #F4F4F5;
  --muted-dark: #B7B7BF;
  --line: #E3DFD1;
  --online: #2BD46B;

  --font-head: "Montserrat", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --r: 16px;
  --r-lg: 22px;
  --shadow: 0 12px 32px rgba(10, 10, 11, .12);
  --shadow-lg: 0 28px 70px rgba(10, 10, 11, .3);

  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  --logo-tile: 92px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

@media (min-width: 1024px) {
  :root { --header-h: 76px; --logo-tile: 128px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 40px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--yellow); color: var(--black);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.site-header :focus-visible,
.hero :focus-visible,
.feature--dark :focus-visible,
.steps-section :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible,
.mobile-cta :focus-visible,
.assistant-launcher:focus-visible,
.assistant-head :focus-visible { outline-color: var(--yellow); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-head); font-weight: 800; font-size: .95rem; line-height: 1.1; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: var(--yellow-hover); box-shadow: 0 10px 24px rgba(253, 213, 33, .28); transform: translateY(-1px); }
.btn-outline { border-color: rgba(255, 255, 255, .45); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #2A2A2F; transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--black); color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }

/* A logo fica inteira dentro de um bloco amarelo do mesmo tom, sem cortes nem deformação */
.brand {
  position: relative; z-index: 2;
  align-self: flex-start; flex: none;
  display: block;
  width: var(--logo-tile); height: var(--logo-tile);
  padding: 6px;
  background: var(--yellow);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}
.brand img { width: 100%; height: 100%; object-fit: contain; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.main-nav ul a {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: #E6E6EA; text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: color .15s ease;
}
.main-nav ul a:hover,
.main-nav ul a[aria-current="true"] { color: var(--yellow); }
.nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.menu-toggle {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px;
  background: transparent; color: var(--white); cursor: pointer;
}
.menu-toggle .ic { width: 24px; height: 24px; }

@media (max-width: 1179.98px) {
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    padding: 20px var(--gutter) 32px;
    background: var(--black);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-top: calc(var(--logo-tile) - var(--header-h)); }
  .main-nav ul a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.15rem; }
  .nav-cta { display: grid; gap: 12px; margin-top: 24px; }
  body.menu-open { overflow: hidden; }
}

@media (min-width: 1180px) {
  .main-nav { margin-left: auto; }
  .header-actions { margin-left: 12px; }
  .menu-toggle { display: none; }
}

@media (max-width: 767.98px) {
  .header-call { display: none; }
}

@media (max-width: 419.98px) {
  .header-wa span { display: none; }
  .header-wa { width: 46px; padding: 0; }
}

/* ---------- Banner principal ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--black); color: var(--white); }
.hero-media { position: relative; aspect-ratio: 4 / 3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 11, .1) 0%, rgba(10, 10, 11, 0) 45%, rgba(10, 10, 11, .85) 88%, var(--black) 100%);
}
.hero-content { position: relative; z-index: 1; margin-top: -40px; padding-bottom: 56px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px; padding: 7px 14px 7px 12px;
  border: 1px solid rgba(253, 213, 33, .4); border-radius: 999px;
  background: rgba(253, 213, 33, .12); color: var(--yellow);
  font-family: var(--font-head); font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(253, 213, 33, .6); }
  70% { box-shadow: 0 0 0 10px rgba(253, 213, 33, 0); }
  100% { box-shadow: 0 0 0 0 rgba(253, 213, 33, 0); }
}

.hero h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.1rem); font-weight: 900; letter-spacing: -.025em; margin-bottom: 18px; text-wrap: balance; }
.hl { color: var(--yellow); white-space: nowrap; }
.lead { max-width: 56ch; color: #D7D7DC; font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 30px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 24px; color: #E7E7EA; font-weight: 600; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .ic { color: var(--yellow); }

@media (max-width: 519.98px) {
  .hero-actions .btn { width: 100%; }
}

@media (min-width: 900px) {
  .hero { display: flex; align-items: center; min-height: max(580px, min(88vh, 56.25vw)); }
  .hero-media { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; }
  .hero-media img { object-position: 62% 45%; }
  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(10, 10, 11, .94) 0%, rgba(10, 10, 11, .8) 32%, rgba(10, 10, 11, .2) 56%, rgba(10, 10, 11, 0) 70%),
      linear-gradient(0deg, rgba(10, 10, 11, .55) 0%, rgba(10, 10, 11, 0) 28%);
  }
  .hero-content { width: 100%; margin-top: 0; padding-top: 112px; padding-bottom: 96px; }
  .hero-copy { max-width: 700px; }
}

/* ---------- Faixa de emergência ---------- */
.strip { background: var(--yellow); color: var(--black); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-block: 22px; }
.strip p { margin: 0; font-size: 1.05rem; }
.strip strong { font-family: var(--font-head); font-weight: 800; }

@media (max-width: 519.98px) {
  .strip .btn { width: 100%; }
}

/* ---------- Seções ---------- */
.section { padding-block: 72px; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section h2 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.9rem); font-weight: 900; text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-head); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--yellow-ink);
}
.kicker::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--yellow); }

@media (min-width: 1024px) {
  .section { padding-block: 112px; }
}

/* ---------- Cards de serviços ---------- */
.service-grid { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }

.service-card {
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--white);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D8D1B6; }

.service-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1C1C1F; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .service-media img { transform: scale(1.03); }

.service-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.service-num {
  align-self: flex-start; margin-bottom: 12px; padding: 4px 10px;
  border-radius: 999px; background: var(--black); color: var(--yellow);
  font-family: var(--font-head); font-weight: 800; font-size: .75rem; letter-spacing: .06em;
}
.service-body h3 { font-size: 1.22rem; font-weight: 800; margin-bottom: 8px; }
.service-body p { color: var(--muted); font-size: .97rem; margin-bottom: 18px; }
.service-link {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 2px solid var(--yellow);
  color: var(--black); font-weight: 700; text-decoration: none;
  transition: gap .15s ease;
}
.service-link:hover { gap: 12px; }
.service-link .ic { width: 18px; height: 18px; }

.img-note { margin: 18px 0 0; font-size: .82rem; color: var(--muted); }

@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .service-card--wide { grid-column: 1 / -1; flex-direction: row; }
  .service-card--wide .service-media { width: 50%; flex: none; }
  .service-card--wide .service-body { justify-content: center; padding: 40px 56px; }
  .service-card--wide .service-body h3 { font-size: clamp(1.4rem, 1rem + .8vw, 1.9rem); }
  .service-card--wide .service-body p { max-width: 44ch; font-size: 1.05rem; }
  .service-card--wide .service-link { margin-top: 0; }
}

/* ---------- Seções com imagem e texto ---------- */
.feature-grid { display: grid; gap: 36px; align-items: center; }
.feature-media {
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--r-lg);
  background: #1C1C1F; box-shadow: var(--shadow-lg);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media figcaption {
  position: absolute; left: 12px; bottom: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(10, 10, 11, .72); color: #E4E4E7;
  font-size: .72rem; letter-spacing: .02em;
}
.feature-text > p { color: var(--muted); font-size: 1.05rem; }

.check-list { list-style: none; display: grid; gap: 14px; margin: 26px 0; }
.check-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--black); }
.check svg { width: 15px; height: 15px; }
.hint { margin-bottom: 24px; color: var(--muted); font-size: .95rem; }

.feature--dark { background: var(--ink); color: var(--on-dark); }
.feature--dark .feature-text > p,
.feature--dark .hint { color: var(--muted-dark); }
.feature--dark .kicker { color: var(--yellow); }

.feature--yellow { background: var(--yellow); color: var(--black); }
.feature--yellow .feature-text > p { color: #2B2B2F; }
.feature--yellow .kicker { color: var(--black); }
.feature--yellow .kicker::before { background: var(--black); }
.feature--yellow .check { background: var(--black); color: var(--yellow); }
.feature--yellow .feature-media { box-shadow: 0 28px 60px rgba(10, 10, 11, .25); }

.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badges li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); font-weight: 600; font-size: .92rem;
}
.badges .ic { width: 18px; height: 18px; }

@media (min-width: 960px) {
  .feature-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; }
  .feature--reverse .feature-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .feature--reverse .feature-media { order: 2; }
}

/* ---------- Como funciona ---------- */
.steps-section { background: var(--black); color: var(--on-dark); }
.steps-section .kicker { color: var(--yellow); }
.steps { list-style: none; display: grid; gap: 18px; }
.step { padding: 30px 28px; border: 1px solid var(--graphite-line); border-radius: var(--r-lg); background: var(--graphite); }
.step-num { display: block; margin-bottom: 18px; font-family: var(--font-head); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--yellow); }
.step h3 { font-size: 1.25rem; font-weight: 800; }
.step p { margin: 0; color: var(--muted-dark); }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- Dúvidas ---------- */
.faq-grid { display: grid; gap: 32px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: #D8D1B6; box-shadow: var(--shadow); }
.faq-item summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 64px 20px 22px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.04rem; line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%230A0A0B' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; color: var(--muted); }
.faq-answer p { margin: 0; }

@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
  .faq .section-head { position: sticky; top: calc(var(--header-h) + 72px); margin-bottom: 0; }
}

/* ---------- Contato ---------- */
.contact { background: var(--black); color: var(--on-dark); }
.contact .kicker { color: var(--yellow); }
.contact-grid { display: grid; gap: 40px; }
.contact-lead { color: var(--muted-dark); font-size: 1.08rem; }
.contact-cards { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.contact-card {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 16px; border: 1px solid var(--graphite-line); border-radius: var(--r);
  background: var(--graphite); color: inherit; text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
a.contact-card:hover { border-color: rgba(253, 213, 33, .6); transform: translateY(-2px); }
.ic-box { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--yellow); color: var(--black); }
.ic-box .ic { width: 22px; height: 22px; }
.contact-card small { display: block; color: var(--muted-dark); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-card strong { display: block; color: var(--white); font-size: 1.02rem; font-weight: 700; overflow-wrap: anywhere; }

.quote-form { color-scheme: dark; padding: 28px; border: 1px solid var(--graphite-line); border-radius: var(--r-lg); background: var(--graphite); }
.quote-form h3 { margin-bottom: 6px; color: var(--white); font-size: 1.4rem; font-weight: 800; }
.quote-form > p { color: var(--muted-dark); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { color: #E4E4E7; font-weight: 600; font-size: .9rem; }
.req { color: var(--yellow); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid #3A3A41; border-radius: 12px;
  background: #0E0E10; color: var(--white); font-size: 16px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23FDD521' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder { color: #85858E; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(253, 213, 33, .25); }
.check-field { display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; color: #E4E4E7; font-weight: 600; cursor: pointer; }
.check-field input { width: 20px; height: 20px; accent-color: var(--yellow); }
.form-error { margin: 0 0 14px; padding: 10px 14px; border: 1px solid rgba(255, 99, 71, .45); border-radius: 10px; background: rgba(255, 99, 71, .12); color: #FFB9AC; font-weight: 600; font-size: .92rem; }
.form-note { margin: 14px 0 0; color: var(--muted-dark); font-size: .8rem; }

@media (min-width: 560px) {
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; }
}

/* ---------- Rodapé ---------- */
.site-footer { padding: 72px 0 28px; background: #050506; color: #C4C4CC; }
.footer-grid { display: grid; gap: 36px; }
.footer-logo { display: block; width: 156px; height: 156px; margin-bottom: 18px; padding: 8px; border-radius: 20px; background: var(--yellow); }
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand p { max-width: 34ch; }
.footer-title { margin-bottom: 14px; color: var(--white); font-family: var(--font-head); font-weight: 800; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: #C4C4CC; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08);
  color: #8F8F98; font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.credit strong { color: var(--yellow); font-weight: 700; }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
}

/* ---------- Barra de contato no celular ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 11, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.mobile-cta .btn { min-height: 48px; padding-inline: 12px; }

@media (max-width: 767.98px) {
  .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

@media (min-width: 768px) {
  .mobile-cta { display: none; }
}

/* ---------- Assistente de atendimento ---------- */
.assistant-launcher {
  position: fixed; z-index: 45;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  padding: 8px 22px 8px 8px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 26px;
  background: var(--black); color: var(--white);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .38);
  text-align: left; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.assistant-launcher:hover { transform: translateY(-2px); box-shadow: 0 24px 54px rgba(0, 0, 0, .45); }

/* Área ampliada para a logo completa caber legível */
.assistant-logo { display: block; flex: none; width: 84px; height: 84px; padding: 6px; border-radius: 18px; background: var(--yellow); }
.assistant-logo img { width: 100%; height: 100%; object-fit: contain; }
.assistant-launcher-text strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; }
.assistant-launcher-text small { display: flex; align-items: center; gap: 6px; color: var(--muted-dark); font-size: .8rem; }
.assistant-launcher-text small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--online); }

.assistant-panel {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(126px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  width: min(400px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 222px));
  height: min(640px, calc(100dvh - 222px));
  overflow: hidden;
  border-radius: 24px;
  background: var(--white); color: var(--text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .4);
  transform-origin: bottom right;
  animation: panel-in .22s ease-out;
}
.assistant-panel[hidden] { display: none; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.assistant-head { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--black); color: var(--white); }
.assistant-head-logo { display: block; flex: none; width: 72px; height: 72px; padding: 5px; border-radius: 16px; background: var(--yellow); }
.assistant-head-logo img { width: 100%; height: 100%; object-fit: contain; }
.assistant-head-text { min-width: 0; }
.assistant-title { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; }
.assistant-status { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; color: var(--muted-dark); font-size: .78rem; line-height: 1.3; }
.assistant-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--online); }
.assistant-close { display: grid; place-items: center; flex: none; margin-left: auto; width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer; }
.assistant-close:hover { background: rgba(255, 255, 255, .16); }

.assistant-log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 14px; overflow-y: auto; overscroll-behavior: contain; background: #F3F1E8; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: .95rem; line-height: 1.45; animation: msg-in .18s ease-out; }
.msg p { margin: 0; }
.msg-bot { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 6px; background: var(--white); }
.msg-user { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--black); color: var(--white); }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9A9AA2; animation: blink 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink {
  0%, 80%, 100% { opacity: .3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.msg-summary { margin: 0; padding: 12px; border: 1px dashed #CFAF00; border-radius: 12px; background: #FFF8D6; font-family: var(--font-body); font-size: .88rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.assistant-quick { display: flex; flex-wrap: wrap; gap: 8px; max-height: 40%; padding: 10px 14px 12px; overflow-y: auto; border-top: 1px solid var(--line); background: #F3F1E8; }
.assistant-quick:empty { display: none; }
.chip { padding: 8px 14px; border: 1.5px solid var(--black); border-radius: 999px; background: var(--white); color: var(--black); font-size: .86rem; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer; transition: background-color .15s ease; }
.chip:hover { background: var(--yellow); }
.chip-primary { background: var(--yellow); }

.assistant-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.assistant-form input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 16px; border: 1px solid #D5D0C0; border-radius: 999px; background: #FAFAF7; font-size: 16px; }
.assistant-form input:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(253, 213, 33, .55); }
.assistant-form button { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--yellow); color: var(--black); cursor: pointer; }

@media (max-width: 767.98px) {
  .assistant-launcher { bottom: calc(80px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 22px; }
  .assistant-logo { width: 76px; height: 76px; border-radius: 16px; }
  .assistant-launcher-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .assistant-panel {
    left: 0; right: 0; bottom: 0;
    width: 100%;
    height: min(86vh, 720px);
    height: min(86dvh, 720px);
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 24px 24px 0 0;
  }
  body.assistant-open .assistant-launcher,
  body.assistant-open .mobile-cta { visibility: hidden; }
  .assistant-launcher { transition: transform .25s ease, opacity .25s ease, visibility 0s linear 0s; }
  body.hero-cta-visible:not(.assistant-open) .assistant-launcher {
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s;
  }
}

/* ---------- Animações de entrada ---------- */
/* Usa a propriedade "translate" para não interferir no efeito de hover dos cards (transform) */
.js .reveal {
  opacity: 0; translate: 0 18px;
  transition: opacity .6s ease, translate .6s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.js .reveal.is-visible { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; translate: none; }
}
