/* ==========================================================================
   Santa Casa de Sabará: componentes
   ========================================================================== */

/* ---------- Botões ---------- */

.btn {
  --btn-bg: var(--wine-700);
  --btn-fg: #fff;
  --btn-bd: var(--wine-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .82em 1.6em;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-decoration: none;
  text-align: center;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
  box-shadow: var(--shadow-xs);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--primary:hover { --btn-bg: var(--wine-600); --btn-bd: var(--wine-600); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--wine-700); --btn-bd: var(--wine-300); box-shadow: none; }
.btn--ghost:hover { --btn-bg: var(--wine-50); --btn-bd: var(--wine-700); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--wine-800); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--rose-50); --btn-fg: var(--wine-900); --btn-bd: var(--rose-50); }

.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.4); box-shadow: none; }
.btn--outline-light:hover { --btn-bg: rgba(255,255,255,.12); --btn-bd: rgba(255,255,255,.75); }

.btn--wa { --btn-bg: var(--wa); --btn-fg: #fff; --btn-bd: var(--wa); }
.btn--wa:hover { --btn-bg: var(--wa-dark); --btn-bd: var(--wa-dark); }

.btn--sm { padding: .58em 1.15em; font-size: var(--step--1); }
.btn--lg { padding: 1em 2em; font-size: var(--step-1); }
.btn--block { display: flex; width: 100%; }

/* Link com seta */
.arrow-link {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; text-decoration: none;
  color: var(--wine-700);
}
.arrow-link svg { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Etiquetas ---------- */

.tag {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .3em .8em;
  border-radius: var(--r-full);
  background: var(--wine-50);
  color: var(--wine-700);
  font-size: var(--step--2);
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.tag--rose { background: var(--rose-100); color: var(--wine-800); }
.tag--gold { background: var(--gold-50); color: var(--gold-700); }
.tag--ok { background: var(--ok-100); color: var(--ok-700); }
.tag--warn { background: var(--warn-100); color: var(--warn-700); }
.tag--info { background: var(--info-100); color: var(--info-700); }
a.tag:hover { background: var(--wine-100); color: var(--wine-800); }

/* ==========================================================================
   Cabeçalho
   ========================================================================== */

.topbar {
  background: var(--wine-950);
  color: var(--rose-200);
  font-size: var(--step--1);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5);
  min-height: 42px;
  padding-block: .35rem;
}
.topbar__links { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.topbar__links a {
  color: var(--rose-200);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .45em;
  transition: color .2s var(--ease);
}
.topbar__links a:hover { color: #fff; }
.topbar__links svg { width: 1.05em; height: 1.05em; opacity: .75; }
.topbar__social { display: flex; align-items: center; gap: .35rem; }
.topbar__social a {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: var(--r-full);
  color: var(--rose-200);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.topbar__social a:hover { background: rgba(255,255,255,.14); color: #fff; }
.topbar__social svg { width: 16px; height: 16px; }

@media (max-width: 960px) { .topbar { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-md); border-color: transparent; }

.site-header__inner {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: var(--header-h);
  padding-block: .7rem;
}

.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand img { width: auto; height: clamp(40px, 5.2vw, 54px); }
.brand__fallback {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--wine-700);
  line-height: 1.05;
}
.brand__fallback small { display: block; font-family: var(--font-body); font-size: .44em; font-weight: 500; letter-spacing: .04em; color: var(--ink-500); text-transform: uppercase; }

/* ---------- Navegação ---------- */

.primary-nav { margin-left: auto; }
.primary-nav > ul {
  display: flex; align-items: center;
  /* Folga curta de propósito: com `1vw` o menu ficava 23px maior que a coluna
     de conteúdo e empurrava o botão do cabeçalho para fora do alinhamento
     direito da página. O respiro já vem do padding de cada item. */
  gap: clamp(.1rem, .35vw, .5rem);
  margin: 0; padding: 0; list-style: none;
}
.primary-nav > ul > li { position: relative; margin: 0; }

.primary-nav ul a {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .6rem .68rem;
  border-radius: var(--r-sm);
  color: var(--ink-700);
  font-size: clamp(.86rem, .82vw + .2rem, .97rem);
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.primary-nav > ul > li > a { position: relative; }
.primary-nav > ul > li > a::after {
  content: ""; position: absolute;
  left: .68rem; right: .68rem; bottom: .28rem;
  height: 2px; border-radius: 2px;
  background: var(--wine-600);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.primary-nav > ul > li:hover > a,
.primary-nav > ul > li:focus-within > a { color: var(--wine-700); }
.primary-nav > ul > li:hover > a::after,
.primary-nav > ul > li:focus-within > a::after,
.primary-nav > ul > li.current-menu-item > a::after,
.primary-nav > ul > li.current-menu-ancestor > a::after,
.primary-nav > ul > li.current-menu-parent > a::after { transform: scaleX(1); }
.primary-nav > ul > li.current-menu-item > a,
.primary-nav > ul > li.current-menu-ancestor > a { color: var(--wine-800); }

.primary-nav .menu-item-has-children > a::before {
  content: "";
  order: 2;
  width: .5em; height: .5em;
  margin-left: .1em;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .55;
  transition: transform .25s var(--ease);
}
.primary-nav .menu-item-has-children:hover > a::before,
.primary-nav .menu-item-has-children:focus-within > a::before { transform: translateY(1px) rotate(225deg); }

/* Submenu */
.primary-nav ul ul {
  position: absolute; top: calc(100% + .55rem); left: 50%;
  transform: translate(-50%, 8px);
  min-width: 17rem;
  margin: 0; padding: .55rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .28s var(--ease), visibility .22s;
  z-index: 40;
}
.primary-nav ul ul::before {
  content: ""; position: absolute; top: -.55rem; left: 0; right: 0; height: .55rem;
}
.primary-nav > ul > li:hover > ul,
.primary-nav > ul > li:focus-within > ul {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}

/* Os dois últimos itens ficam colados na borda direita: um submenu de 17rem
   centralizado embaixo deles vazava a tela em telas de 1280px. */
.primary-nav > ul > li:nth-last-child(-n+2) > ul { left: auto; right: 0; transform: translate(0, 8px); }
.primary-nav > ul > li:nth-last-child(-n+2):hover > ul,
.primary-nav > ul > li:nth-last-child(-n+2):focus-within > ul { transform: translate(0, 0); }
.primary-nav ul ul li { margin: 0; }
.primary-nav ul ul a {
  display: flex; width: 100%;
  padding: .62rem .85rem;
  border-radius: var(--r-sm);
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink-700);
  white-space: normal;
}
.primary-nav ul ul a:hover,
.primary-nav ul ul a:focus-visible { background: var(--wine-50); color: var(--wine-800); }
.primary-nav ul ul .current-menu-item > a { background: var(--wine-50); color: var(--wine-800); font-weight: 600; }

.header-cta { flex: none; }

/* Entre o ponto em que o menu vira horizontal (1121px) e ~1320px não cabem, na
   mesma linha, logotipo + seis itens + botão: o botão vazava a tela em notebooks
   de 1280px. Nessa faixa ele sai (o WhatsApp flutuante e o telefone da barra
   superior continuam à mão) e o menu respira um pouco menos. */
@media (min-width: 1121px) and (max-width: 1320px) {
  .header-cta { display: none; }
  .primary-nav > ul { gap: .1rem; }
  .primary-nav > ul > li > a { padding-inline: .5rem; font-size: .88rem; }
}


.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 46px; height: 46px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--wine-800);
}
.nav-toggle__bars { position: relative; width: 20px; height: 14px; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Navegação mobile ---------- */

@media (max-width: 1120px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  /* ⚠️ `backdrop-filter` no cabeçalho cria bloco de contenção para descendentes
     `position: fixed`: o painel do menu herdava a ALTURA do cabeçalho (104px)
     em vez da tela inteira, e só o primeiro item aparecia. Onde o painel existe,
     o cabeçalho fica opaco e sem filtro. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    margin: 0;
    padding: var(--sp-5) var(--gutter) var(--sp-10);
    background: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .28s var(--ease), transform .3s var(--ease), visibility .28s;
    z-index: 880;
  }
  body.nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
  body.nav-open { overflow: hidden; }

  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav > ul > li { border-bottom: 1px solid var(--line-soft); }
  .primary-nav ul a {
    padding: .95rem .25rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 0;
  }
  .primary-nav > ul > li > a::after { display: none; }
  .primary-nav .menu-item-has-children > a { justify-content: space-between; }
  .primary-nav .menu-item-has-children > a::before { margin-left: auto; width: .58em; height: .58em; }

  .primary-nav ul ul {
    position: static;
    transform: none;
    min-width: 0;
    margin: 0 0 .6rem;
    padding: 0 0 0 .9rem;
    border: 0; border-left: 2px solid var(--wine-100);
    border-radius: 0;
    box-shadow: none;
    opacity: 1; visibility: visible; pointer-events: auto;
    display: none;
  }
  .primary-nav li.is-open > ul { display: block; }
  .primary-nav ul ul a { padding: .68rem .25rem; font-size: .98rem; font-weight: 500; }

  /* As regras de hover/focus do desktop têm especificidade maior e mantinham o
     `translate(-50%)` do submenu suspenso: no celular ele nascia meia largura
     fora da tela, à esquerda. Aqui o deslocamento é zerado com a mesma força. */
  .primary-nav > ul > li > ul,
  .primary-nav > ul > li:hover > ul,
  .primary-nav > ul > li:focus-within > ul { transform: none; }

  .mobile-extra { margin-top: var(--sp-6); display: grid; gap: var(--sp-3); }
  .mobile-extra__social { display: flex; gap: .5rem; justify-content: center; margin-top: var(--sp-4); }
  .mobile-extra__social a {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border: 1px solid var(--line); border-radius: var(--r-full);
    color: var(--wine-700);
  }
  .mobile-extra__social a:hover { background: var(--wine-50); }
  .mobile-extra__social svg { width: 18px; height: 18px; }
}
@media (min-width: 1121px) { .mobile-extra { display: none; } }

/* ==========================================================================
   Cartões
   ========================================================================== */

.card {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__body { display: flex; flex-direction: column; flex: 1; gap: .55rem; padding: var(--sp-5); }
.card__title { margin: 0; font-size: var(--step-1); font-family: var(--font-display); font-weight: 600; line-height: 1.25; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__text { margin: 0; font-size: var(--step--1); color: var(--ink-500); line-height: 1.6; }
.card__foot { margin-top: auto; padding-top: var(--sp-4); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.card__meta { font-size: var(--step--2); color: var(--ink-400); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }

/* Cartão de especialidade / serviço */
.card--service { padding: var(--sp-5); border-radius: var(--r-lg); }
.card--service .card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-md);
  background: linear-gradient(140deg, var(--rose-100), var(--wine-50));
  color: var(--wine-700);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.card--service .card__icon svg { width: 26px; height: 26px; }
.card--service:hover .card__icon { background: var(--wine-700); color: #fff; }

/* Faixa de status na especialidade */
.card__status {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: var(--step--2); font-weight: 600;
}
.card__status--on { color: var(--ok-700); }
.card__status--off { color: var(--warn-700); }
.card__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- Atalhos rápidos ---------- */

.quicklink {
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  padding: var(--sp-5) var(--sp-3);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  text-align: center;
  text-decoration: none;
  color: var(--ink-800);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.quicklink:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--wine-100); color: var(--wine-800); }
.quicklink__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: var(--r-full);
  background: linear-gradient(140deg, var(--rose-100), var(--wine-50));
  color: var(--wine-700);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.quicklink:hover .quicklink__icon { background: var(--wine-700); color: #fff; }
.quicklink__icon svg { width: 26px; height: 26px; }
.quicklink__label { font-size: var(--step--1); font-weight: 600; line-height: 1.3; }

/* ---------- Formulários ---------- */

/* `align-content: start` é obrigatório aqui: a célula do grid da linha tem a
   mesma altura nas duas colunas, mas `p:last-child { margin-bottom: 0 }` zera a
   margem só do último campo: os 16px sobravam DENTRO dele e esticavam rótulo e
   controle em 8px cada, desalinhando as colunas. */
.field { display: grid; gap: .4rem; align-content: start; margin-bottom: var(--sp-4); }
.form-row > .field { margin-bottom: var(--sp-4); }
.field > label, .field__label { font-size: var(--step--1); font-weight: 600; color: var(--ink-700); }
.field__hint { font-size: var(--step--2); color: var(--ink-400); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="search"], input[type="date"], input[type="number"], input[type="password"],
select, textarea {
  width: 100%;
  padding: .78rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink-800);
  font-size: var(--step-0);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none;
}
textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E5C62' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  padding-right: 2.75rem;
  cursor: pointer;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--wine-600);
  box-shadow: 0 0 0 4px var(--wine-50);
}
/* O placeholder carrega exemplo de formato, então precisa ser legível. */
input::placeholder, textarea::placeholder { color: var(--ink-400); opacity: 1; }

.form-note { font-size: var(--step--2); color: var(--ink-400); }

.alert {
  display: flex; gap: .8rem;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: var(--step--1);
  margin-bottom: var(--sp-5);
}
.alert svg { width: 20px; height: 20px; flex: none; margin-top: .1em; }
.alert--ok { background: var(--ok-100); border-color: color-mix(in srgb, var(--ok-700) 22%, transparent); color: var(--ok-700); }
.alert--err { background: #FCE9E9; border-color: #E9B7B7; color: #96261F; }
.alert--info { background: var(--info-100); border-color: color-mix(in srgb, var(--info-700) 20%, transparent); color: var(--info-700); }

/* ---------- Acordeão ---------- */

.accordion { border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.accordion + .accordion { margin-top: var(--sp-3); }
.accordion__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5);
  border: 0; background: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink-900);
  text-align: left;
  transition: background-color .2s var(--ease);
}
.accordion__head:hover { background: var(--cream); }
.accordion__chev { flex: none; width: 22px; height: 22px; color: var(--wine-600); transition: transform .3s var(--ease); }
.accordion__head[aria-expanded="true"] .accordion__chev { transform: rotate(180deg); }
.accordion__panel { display: none; padding: 0 var(--sp-5) var(--sp-5); }
.accordion__panel.is-open { display: block; }
.accordion__count { font-family: var(--font-body); font-size: var(--step--2); font-weight: 600; color: var(--ink-400); letter-spacing: .04em; }

/* ---------- Migalhas ---------- */

.breadcrumbs { font-size: var(--step--1); color: var(--ink-400); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: .45rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--ink-300); }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--wine-700); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink-600); font-weight: 550; }

/* ---------- Paginação ---------- */

.pagination { display: flex; justify-content: center; margin-top: var(--sp-8); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.pagination .page-numbers {
  display: grid; place-items: center;
  min-width: 44px; height: 44px;
  padding: 0 .7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink-700);
  font-weight: 600;
  text-decoration: none;
  transition: all .2s var(--ease);
}
.pagination .page-numbers:hover { border-color: var(--wine-600); color: var(--wine-700); background: var(--wine-50); }
.pagination .page-numbers.current { background: var(--wine-700); border-color: var(--wine-700); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; }

/* ---------- Botão flutuante do WhatsApp ---------- */

.wa-float {
  position: fixed; right: clamp(1rem, 2.5vw, 1.75rem); bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 800;
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .85rem 1.15rem;
  border-radius: var(--r-full);
  background: var(--wa);
  color: #fff;
  font-weight: 600; font-size: var(--step--1);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(21,128,67,.38);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float:hover { color: #fff; background: var(--wa-dark); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(21,128,67,.46); }
.wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-float__label { white-space: nowrap; }
@media (max-width: 560px) {
  .wa-float { padding: .9rem; }
  .wa-float__label { display: none; }
}

/* ==========================================================================
   Rodapé
   ========================================================================== */

.site-footer { background: var(--wine-950); color: var(--rose-200); }
.site-footer a { color: var(--rose-200); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* `.site-footer a` tem especificidade maior que `.btn` e apagava o texto dos
   botões da chamada final (texto rosa-claro sobre pílula branca). */
.site-footer a.btn { color: var(--btn-fg); text-decoration: none; }
.site-footer a.btn:hover { color: var(--btn-fg); text-decoration: none; }

.footer-cta {
  background-color: var(--wine-900);
  background-image: linear-gradient(135deg, var(--wine-800), var(--wine-950) 62%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.footer-cta::after {
  content: ""; position: absolute; right: -8%; top: -60%;
  width: 46rem; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(245,179,194,.18), transparent 62%);
  pointer-events: none;
}
.footer-cta__inner {
  position: relative;
  display: grid;
  gap: var(--sp-6);
  padding-block: clamp(2.75rem, 5vw, 4.25rem);
}
/* Duas colunas fixas em vez de flex com wrap: com título longo os botões caíam
   para baixo do texto e a metade direita da faixa ficava vazia. */
@media (min-width: 880px) {
  .footer-cta__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-8); }
  .footer-cta__actions { justify-content: flex-end; }
}
.footer-cta__inner > div:first-child { max-width: 44rem; }
.footer-cta h2 { color: #fff; margin-bottom: .5rem; font-size: var(--step-3); }
.footer-cta p { color: var(--rose-200); margin: 0; max-width: 42ch; }
.footer-cta__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.footer-main { padding-block: clamp(3rem, 6vw, 4.75rem); }
/* Cinco colunas explícitas no desktop. Com `auto-fit` só cabiam quatro, e a
   coluna "Onde estamos" caía sozinha para uma segunda fila, deixando três
   quartos da linha em branco. */
.footer-grid {
  display: grid;
  gap: var(--sp-7) var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
@media (min-width: 1080px) {
  .footer-grid { grid-template-columns: 1.35fr .9fr .9fr .9fr 1.15fr; gap: var(--sp-6) var(--sp-5); }
}
.footer-brand img { height: 52px; width: auto; margin-bottom: var(--sp-4); }
.footer-brand p { font-size: var(--step--1); line-height: 1.6; color: var(--rose-200); opacity: .85; }

.footer-col h3 {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col li { margin: 0; }
.footer-col a { font-size: var(--step--1); opacity: .88; }
.footer-col a:hover { opacity: 1; }

.footer-contact { display: grid; gap: var(--sp-4); font-size: var(--step--1); }
.footer-contact__item { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact__item svg { width: 18px; height: 18px; flex: none; margin-top: .2em; color: var(--rose-400); }
.footer-contact strong { display: block; color: #fff; font-weight: 600; margin-bottom: .1rem; }

.footer-social { display: flex; gap: .5rem; margin-top: var(--sp-5); }
.footer-social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-full);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.footer-social a:hover { background: var(--wine-700); border-color: var(--wine-700); transform: translateY(-2px); text-decoration: none; }
.footer-social svg { width: 18px; height: 18px; }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: var(--sp-5);
  font-size: var(--step--2);
  color: rgba(253,232,237,.65);
}
.footer-legal__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.footer-legal__links { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.footer-legal a { color: inherit; }

/* Selos institucionais no rodapé */
.footer-seals { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; margin-top: var(--sp-5); }
.footer-seals span {
  font-size: var(--step--2); letter-spacing: .08em; text-transform: uppercase;
  font-weight: 650; color: rgba(255,255,255,.55);
  padding: .4rem .8rem; border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-sm);
}

/* ---------- Formulários do site ---------- */

.scms-form { max-width: 46rem; }
.scms-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; gap: 0 var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.field--check { display: block; }
.field--check label { display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; font-size: var(--step--1); color: var(--ink-700); }
.field--check input { width: auto; flex: none; margin-top: .25em; accent-color: var(--wine-700); }
.field--check .field__hint { display: block; margin-top: .35rem; padding-left: 1.7rem; }
.form-foot { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.form-foot .btn { justify-self: start; }
.form-note { margin: 0; font-size: var(--step--2); color: var(--ink-400); max-width: 52ch; }

/* ---------- Menus do rodapé renderizados pelo WordPress ---------- */

.footer-col .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col .menu li { margin: 0; }
.footer-legal__links .menu { display: flex; gap: var(--sp-4); flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-legal__links li { margin: 0; }


/* ---------- Rede de segurança dos botões ---------- */

/* `.site-footer a`, `.primary-nav a` e afins têm especificidade maior que `.btn`
   e já apagaram o texto de botões duas vezes (pílula branca com texto rosa no
   rodapé; verde do WhatsApp com texto cinza no menu do celular). Esta regra vem
   por último de propósito: em empate de especificidade, a última vence. */
a.btn { color: var(--btn-fg); text-decoration: none; border-radius: var(--r-full); }
a.btn:hover { color: var(--btn-fg); text-decoration: none; }
