:root {
  --coi-primary: #1e306e;
  --coi-accent: #298cd3;
  --coi-soft: #eaf6ff;
  --coi-shadow: 0 14px 30px rgba(30, 48, 110, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
}

a:focus-visible,
button:focus-visible,
[data-cloudia-open]:focus-visible {
  outline: 3px solid rgba(41, 140, 211, 0.35);
  outline-offset: 3px;
}

.btn,
.blurb-boxed-2,
.social-icon,
.link {
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background-color 180ms ease;
}

.btn:hover,
[data-cloudia-open]:hover {
  transform: translateY(-2px);
  box-shadow: var(--coi-shadow);
}

[data-cloudia-open] {
  cursor: pointer;
}

.rd-navbar .btn,
.blurb .btn {
  white-space: nowrap;
}

.blurb-boxed-2-shadow:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(30, 48, 110, 0.14);
}

.horarios {
  width: 100%;
  border-collapse: collapse;
}

.horarios td {
  padding: 3px 10px 3px 0;
  vertical-align: top;
}

@media (max-width: 767px) {
  .navbar-info {
    gap: 12px;
  }

  .rd-navbar .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .swiper-title {
    font-size: 2rem;
  }
}

/* Ajustes Cloudia + agendamento direto */
.header-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 12px;
}

.header-social-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eaf6ff;
  color: var(--coi-primary);
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(30, 48, 110, 0.08);
}

.header-social-icon:hover {
  transform: translateY(-2px);
  color: #ffffff;
  background: var(--coi-accent);
  box-shadow: var(--coi-shadow);
}

.agendamento-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.btn-whatsapp {
  color: #ffffff;
  background: #25d366;
  border-color: #25d366;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  color: #ffffff;
  background: #1fb257;
  border-color: #1fb257;
}

@keyframes coi-cloudia-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(41, 140, 211, 0.38);
  }
  55% {
    transform: scale(1.055);
    box-shadow: 0 0 0 16px rgba(41, 140, 211, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(41, 140, 211, 0);
  }
}

.coi-cloudia-pulse {
  animation: coi-cloudia-pulse 1.8s ease-in-out infinite !important;
  transform-origin: center center !important;
  will-change: transform, box-shadow;
}

.footer-centered .row {
  justify-content: center;
  text-align: center;
}

.footer-centered .logo,
.footer-centered .footer-social,
.footer-centered .list-icons .list-item,
.footer-centered .horarios {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.footer-centered .list-icons .list-item {
  align-items: center;
}

.footer-centered .horarios {
  max-width: 280px;
}

.footer-centered .horarios td:first-child {
  text-align: left;
}

.footer-centered .horarios td:last-child {
  text-align: right;
}

@media (max-width: 991px) {
  .navbar-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    text-align: center;
  }

  .header-social {
    order: 3;
    width: 100%;
    margin: 4px 0 0;
  }

  .navbar-info > .btn-primary {
    order: 4;
    width: auto;
    min-width: 220px;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  .navbar-container,
  .navbar-cell,
  .navbar-info {
    width: 100%;
  }

  .navbar-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .navbar-logo,
  .navbar-panel {
    width: 100%;
    text-align: center;
  }

  .navbar-logo img {
    max-width: 150px;
    height: auto;
  }

  .navbar-info .list-item,
  .navbar-info .text-block-2 {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .navbar-info .small,
  .navbar-info .link {
    line-height: 1.35;
  }

  .header-social-icon {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }

  .rd-navbar .btn-primary {
    min-height: 48px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .swiper-container {
    min-height: 290px;
  }

  .swiper-slide {
    background-position: center top !important;
    background-size: cover !important;
  }

  .section-swiper-dark-content .row-content > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .blurb-boxed-2 {
    width: 100%;
    padding: 28px 24px;
  }

  .agendamento-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .agendamento-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .footer-centered {
    padding-top: 46px;
    padding-bottom: 34px;
  }

  .footer-centered .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .footer-centered .list-icons .list-item {
    justify-content: center;
    text-align: center;
  }

  .footer-centered .footer-title {
    margin-top: 16px;
  }

  .footer-minimal {
    padding-bottom: 92px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .blurb-title,
  .footer-title {
    line-height: 1.25;
  }

  .footer-centered .horarios {
    width: 100%;
    max-width: 300px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coi-cloudia-pulse {
    animation: none !important;
  }
}

/* Ajustes finais solicitados - Cloudia, WhatsApp, topo, rodapé e mobile */
.navbar-info {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: 100%;
}

.navbar-info > .list {
  flex: 1 1 auto;
  min-width: 260px;
}

.navbar-info .text-block-2 {
  flex: 0 0 auto;
  gap: 7px;
  white-space: nowrap;
  margin: 0;
}

.navbar-info .text-block-2 .list,
.navbar-info .text-block-2 .list-item,
.navbar-info .text-block-2 span:not(.list-icon) {
  flex: 0 0 auto;
  white-space: nowrap;
}

.navbar-info .text-block-2 .list-item {
  display: inline-flex;
  align-items: center;
}

.header-social {
  flex: 0 0 auto;
  margin: 0 6px;
}

.header-social-icon.fa-whatsapp {
  color: #25d366;
  background: #e9fbf1;
}

.header-social-icon.fa-whatsapp:hover {
  color: #ffffff;
  background: #25d366;
}

.btn.btn-whatsapp,
.btn.btn-header-whatsapp {
  color: #ffffff;
  background: #25d366;
  border-color: #25d366;
}

.btn.btn-whatsapp:hover,
.btn.btn-whatsapp:focus,
.btn.btn-header-whatsapp:hover,
.btn.btn-header-whatsapp:focus {
  color: #ffffff;
  background: #1fb257;
  border-color: #1fb257;
}

.btn-header-whatsapp {
  flex: 0 0 auto;
  min-width: 174px;
}

.agendamento-actions {
  align-items: stretch;
}

.agendamento-actions .btn {
  width: 232px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 20px;
  padding-right: 20px;
}

.agendamento-actions .btn .btn-icon {
  min-width: 18px;
}

.footer-centered .row {
  align-items: flex-start;
}

.footer-centered .list-icons {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 360px;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.footer-centered .list-icons .list-item {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
}

.footer-centered .list-icons .list-icon {
  flex: 0 0 22px;
  width: 22px;
  min-width: 22px;
  margin-top: 2px;
  text-align: center;
}

.footer-centered .list-icons .link,
.footer-centered .list-icons span:not(.list-icon) {
  flex: 1 1 auto;
  min-width: 0;
}

/* O efeito deve ficar apenas no botão flutuante fechado, e não no painel do chat. */
.coi-cloudia-pulse {
  animation: coi-cloudia-pulse 1.8s ease-in-out infinite !important;
  transform-origin: center center !important;
  will-change: transform, box-shadow;
}

.coi-cloudia-pulse-stop,
.coi-cloudia-no-pulse .coi-cloudia-pulse {
  animation: none !important;
  transform: none !important;
  box-shadow: inherit !important;
}

@media (min-width: 992px) and (max-width: 1230px) {
  .navbar-info {
    gap: 9px;
  }

  .navbar-info > .list {
    min-width: 220px;
  }

  .header-social {
    gap: 7px;
  }

  .header-social-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .btn-header-whatsapp {
    min-width: 154px;
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 991px) {
  .navbar-info {
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar-info > .list,
  .navbar-info .text-block-2,
  .header-social,
  .btn-header-whatsapp {
    flex: 0 1 100%;
  }

  .navbar-info .text-block-2 {
    justify-content: center;
  }

  .btn-header-whatsapp {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  .navbar-info > .list {
    min-width: 0;
  }

  .navbar-info .text-block-2 {
    width: auto;
  }

  .navbar-info .text-block-2 .list-item,
  .navbar-info .text-block-2 span:not(.list-icon) {
    white-space: nowrap;
  }

  .agendamento-actions .btn {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-centered .list-icons {
    max-width: 320px;
  }

  .footer-centered .list-icons .list-item {
    justify-content: flex-start;
    text-align: left;
  }
}
