:root {
  --color-bg: #f5f0e8;
  --color-text: #1a1a1a;
  --color-muted: rgba(26, 26, 26, 0.72);
  --color-gold: #a47b3e;
  --color-gold-soft: #c7a56a;
  --color-border: rgba(26, 26, 26, 0.12);
  --color-surface: #f8f4ef;
  --color-surface-strong: #f2eadb;
  --color-shadow: rgba(24, 18, 10, 0.08);
  --color-scheme: light dark;
  --nav-text: rgba(26, 26, 26, 0.9);
  --logo-nav-filter: brightness(0) saturate(100%) invert(18%) sepia(28%) saturate(620%) hue-rotate(24deg) brightness(88%) contrast(92%);
  --logo-hero-filter: brightness(0) saturate(100%) invert(96%) sepia(11%) saturate(80%) hue-rotate(12deg) brightness(128%) contrast(94%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #171412;
    --color-text: #f4efe8;
    --color-muted: rgba(244, 239, 232, 0.72);
    --color-gold: #d3af75;
    --color-gold-soft: #ebc98d;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-surface: #1d1916;
    --color-surface-strong: #231f1b;
    --color-shadow: rgba(0, 0, 0, 0.26);
    --nav-text: rgba(244, 239, 232, 0.9);
    --logo-nav-filter: brightness(0) saturate(100%) invert(98%) sepia(4%) saturate(130%) hue-rotate(330deg) brightness(112%) contrast(110%);
    --logo-hero-filter: brightness(0) saturate(100%) invert(96%) sepia(11%) saturate(80%) hue-rotate(12deg) brightness(128%) contrast(94%);
  }
}

/* Base global */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
}

a,
button {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(164, 123, 62, 0.72);
  outline-offset: 4px;
}

::selection {
  background: rgba(164, 123, 62, 0.28);
  color: var(--color-text);
}

/* Tipografia e hierarquia */
h1,
h2,
h3,
h4,
.font-serif-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -0.02em;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 3.2vw, 3.8rem);
  line-height: 0.96;
  max-width: 980px;
}

h2 {
  font-size: clamp(2.1rem, 3vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

/* Componentes recorrentes */
.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8a6a3d;
}

.gold-divider {
  display: block;
  width: 110px;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(90deg, rgba(164, 123, 62, 0), rgba(164, 123, 62, 1), rgba(164, 123, 62, 0));
  border-radius: 999px;
}

section[id] {
  position: relative;
}

section[id]>div {
  position: relative;
  z-index: 1;
}

section {
  scroll-margin-top: 0;
}

html {
  scroll-padding-top: 0;
}

.rounded-2xl,
.rounded-xl,
article,
footer {
  box-shadow: 0 8px 28px rgba(24, 18, 10, 0.04);
}

article,
.rounded-2xl,
.rounded-xl {
  border-color: rgba(164, 123, 62, 0.15);
}

article:hover,
.rounded-2xl:hover,
.rounded-xl:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px var(--color-shadow);
}

/* Carrossel de imagens da seção de diferenciais */
.flex.touch-pan-y {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

/* Esconde a barra de rolagem horizontal mantendo o gesto de deslizar ativo */
#distingue-carousel::-webkit-scrollbar {
  display: none;
}

#distingue-carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.flex.touch-pan-y::-webkit-scrollbar {
  display: none;
}

.flex.touch-pan-y>div {
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

/* Header minimalista e sofisticado */
header {
  position: relative;
}

header .mx-auto {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

header a img,
header img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 50px;
  filter: none;
  opacity: 1;
  transform: translateY(-0.28rem);
}

header nav {
  gap: clamp(1rem, 1.7vw, 2rem);
}

header nav a {
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.5rem;
  height: 1px;
  background: rgba(164, 123, 62, 0.8);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

header nav a:hover {
  color: rgba(255, 214, 138, 0.96);
}

header nav a:hover::after {
  transform: scaleX(1);
}

header .flex.items-center.justify-between {
  border-bottom: 0;
  background: transparent;
  max-width: 1240px;
}

section a,
section button,
footer a {
  text-decoration: none;
}

button[aria-label="Abrir menu"],
button[aria-label="Abrir menu de contatos do WhatsApp"] {
  box-shadow: 0 14px 28px rgba(13, 13, 13, 0.12);
}

#modal-privacidade {
  transition: opacity 180ms ease, visibility 180ms ease;
}

#modal-privacidade>div {
  max-width: min(42rem, calc(100vw - 2rem));
}

#modal-privacidade .gold-divider {
  display: block;
  margin: 1rem auto;
}

#modal-privacidade .space-y-4>p {
  margin: 0;
}

footer a:hover,
footer button:hover {
  border-color: rgba(164, 123, 62, 1);
  color: var(--color-gold);
}

/* Ajustes do hero para manter a logo em tom adequado ao fundo do banner */
section.relative.isolate img[alt*="Lima & Medeiros"] {
  filter: var(--logo-hero-filter) drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18));
  margin-top: -0.25rem;
  margin-bottom: 1rem;
}

section.relative.isolate>div.mx-auto {
  padding-top: 4.7rem;
  padding-bottom: 5.8rem;
}

section.relative.isolate {
  background: transparent;
}

section.relative.isolate img[alt*="Estátua da Justiça"] {
  opacity: 0.12;

  filter: saturate(0.3) brightness(0.6) blur(1px);

}

section.relative.isolate>div.absolute.inset-0 {
  background: linear-gradient(180deg, rgba(16, 18, 20, 0.08) 0%, rgba(16, 18, 20, 0.14) 36%, rgba(245, 240, 232, 0.14) 100%);
}

header button[aria-label="Abrir menu"] {
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1023px) {
  header .mx-auto {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  header nav {
    gap: 0.8rem;
  }

  header nav a {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }

  header a img,
  header img {
    height: 44px;
  }
}

@media (max-width: 767px) {
  header .mx-auto {
    border-radius: 18px;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  header .flex.items-center.justify-between {
    border-bottom: 0;
  }

  header a img,
  header img {
    height: 34px;
    transform: translateY(-0.08rem);
  }

  header nav a {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  h1 {
    font-size: clamp(2.1rem, 7vw, 2.8rem);
    line-height: 1.04;
  }

  section.relative.isolate>div.mx-auto {
    padding-top: 4.8rem;
    padding-bottom: 4.4rem;
  }

  h2 {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  section.relative.isolate>div.mx-auto {
    padding-top: 6rem;
    padding-bottom: 5rem;
  }

  .gold-divider {
    width: 82px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {

  header nav a,
  footer a,
  button,
  a {
    forced-color-adjust: auto;
  }
}

/* ==========================================================================
   Mobile Menu Modal Overlay & Navigation
   ========================================================================== */

/* Trava de rolagem de tela quando o menu mobile estiver aberto */
body.mobile-menu-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Container do modal overlay móvel */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.25rem 1.5rem;
  background-color: #080d14;
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(28, 42, 64, 0.45) 0%, rgba(8, 13, 20, 0.98) 100%),
    radial-gradient(circle at 100% 100%, rgba(211, 175, 117, 0.05) 0%, transparent 60%);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  color: #f4efe8;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 280ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 280ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

/* Estado Aberto (In) */
.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Barra superior interna do menu mobile */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 0.25rem;
  padding-bottom: 2rem;
}

.mobile-menu-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

/* Botão Fechar (X) estilizado em caixa arredondada como na captura */
.mobile-menu-close-btn {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.04);
  color: rgba(244, 239, 232, 0.92);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.mobile-menu-close-btn:hover,
.mobile-menu-close-btn:focus-visible {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(211, 175, 117, 0.6);
  color: #ffffff;
}

.mobile-menu-close-btn:focus-visible {
  outline: 2px solid rgba(211, 175, 117, 0.85);
  outline-offset: 3px;
}

.mobile-menu-close-btn:active {
  transform: scale(0.95);
}

/* Lista de links de navegação mobile */
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Tipografia e links do menu: Cormorant Garamond idêntica à captura */
.mobile-nav-link {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(1.45rem, 5.5vw, 1.7rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #f4efe8;
  text-decoration: none;
  text-transform: none;
  display: block;
  width: 100%;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 200ms ease, transform 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--color-gold);
  transform: translateX(4px);
  border-bottom-color: rgba(211, 175, 117, 0.35);
}

.mobile-nav-link:focus-visible {
  outline: 2px solid rgba(211, 175, 117, 0.85);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Animação escalonada suave ao abrir o menu */
@keyframes mobileMenuItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-overlay.is-open .mobile-nav-link {
  animation: mobileMenuItemFadeIn 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mobile-menu-overlay.is-open .mobile-nav-link:nth-child(1) {
  animation-delay: 50ms;
}

.mobile-menu-overlay.is-open .mobile-nav-link:nth-child(2) {
  animation-delay: 90ms;
}

.mobile-menu-overlay.is-open .mobile-nav-link:nth-child(3) {
  animation-delay: 130ms;
}

.mobile-menu-overlay.is-open .mobile-nav-link:nth-child(4) {
  animation-delay: 170ms;
}

.mobile-menu-overlay.is-open .mobile-nav-link:nth-child(5) {
  animation-delay: 210ms;
}

/* Respeito à preferência de redução de movimento */
@media (prefers-reduced-motion: reduce) {

  .mobile-menu-overlay,
  .mobile-menu-overlay.is-open .mobile-nav-link {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* Animação de destaque suave para o botão do WhatsApp */
@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  50% {
    transform: scale(1.12);
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.pulse-highlight {
  animation: whatsappPulse 1.2s ease-in-out infinite;
}