html {
  scroll-behavior: smooth;
}

body.luiza-theme {
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #333333;
  -webkit-font-smoothing: antialiased;
}

body.luiza-theme ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.luiza-theme address {
  font-style: normal;
}

/* Safe area — iPhone notch / barra inferior */
.luiza-fab {
  bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
}

@media (min-width: 768px) {
  .luiza-fab {
    bottom: max(2rem, env(safe-area-inset-bottom, 0px));
    right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}

.luiza-header {
  padding-top: env(safe-area-inset-top, 0px);
}

/* Menu mobile */
.luiza-nav-panel {
  border-top: 1px solid rgba(231, 229, 228, 0.8);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  max-height: calc(100dvh - 4.5rem - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.luiza-nav-open .luiza-nav-panel {
  display: block;
}

.luiza-nav-toggle:focus-visible {
  outline: 2px solid #cba193;
  outline-offset: 2px;
}

/* Tipografia de posts e páginas */
body.luiza-theme .luiza-prose {
  color: #5c5c5c;
  font-size: 1.0625rem;
  line-height: 1.75;
}

body.luiza-theme .luiza-prose h2,
body.luiza-theme .luiza-prose h3,
body.luiza-theme .luiza-prose h4 {
  color: #333333;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

body.luiza-theme .luiza-prose h2 {
  font-size: 1.5rem;
}

body.luiza-theme .luiza-prose h3 {
  font-size: 1.25rem;
}

body.luiza-theme .luiza-prose p,
body.luiza-theme .luiza-prose ul,
body.luiza-theme .luiza-prose ol {
  margin-bottom: 1.25rem;
}

body.luiza-theme .luiza-prose ul,
body.luiza-theme .luiza-prose ol {
  padding-left: 1.25rem;
  list-style: disc;
}

body.luiza-theme .luiza-prose ol {
  list-style: decimal;
}

body.luiza-theme .luiza-prose li {
  margin-bottom: 0.5rem;
}

body.luiza-theme .luiza-prose a {
  color: #b08a7a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.luiza-theme .luiza-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}

body.luiza-theme .luiza-prose blockquote {
  border-left: 4px solid #cba193;
  padding-left: 1rem;
  color: #333333;
  font-style: italic;
}

/* Paginação do blog */
body.luiza-theme .luiza-pagination .page-numbers {
  display: inline-flex;
  min-width: 2.5rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid #e7e5e4;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333333;
  text-decoration: none;
}

body.luiza-theme .luiza-pagination .page-numbers.current {
  background: #cba193;
  border-color: #cba193;
  color: #fff;
}

body.luiza-theme .luiza-pagination .page-numbers:hover {
  border-color: rgba(203, 161, 147, 0.4);
}

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

.sr-only:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 1rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  font-size: 0.875rem;
  font-weight: 600;
  color: #333333;
}

body.admin-bar header.sticky {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar header.sticky {
    top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* CTAs WhatsApp / agendamento (estratégia marketing — verde) */
body.luiza-theme .btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: #25d366;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

body.luiza-theme .btn-wa:hover {
  background-color: #1fa855;
  color: #fff;
}

body.luiza-theme .btn-wa:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 2px;
}

/* FAQ accordion */
body.luiza-theme.luiza-landing .luiza-faq details summary {
  outline: none;
}

body.luiza-theme.luiza-landing .luiza-faq details[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

body.luiza-theme.luiza-landing .luiza-faq details summary:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(203, 161, 147, 0.6);
  border-radius: 1rem;
}

body.luiza-inner footer {
  padding-bottom: max(7rem, calc(5rem + env(safe-area-inset-bottom, 0px)));
}

body.luiza-landing footer {
  padding-bottom: max(7rem, calc(5rem + env(safe-area-inset-bottom, 0px))) !important;
}

@media (min-width: 768px) {
  body.luiza-inner footer {
    padding-bottom: 3rem;
  }
}
