:root {
  --color-primary: #0070c8;
  --color-primary-50: #e8f4ff;
  --color-primary-700: #005fa8;
  --color-primary-800: #004d8a;
  --color-brand-dark: #0e2238;
  --color-brand-premium: #8d2d41;
  --shadow-premium-sm: 0 2px 12px -1px rgba(15, 23, 42, 0.03), 0 1px 4px -1px rgba(15, 23, 42, 0.02);
  --shadow-premium-md: 0 12px 30px -4px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.02);
  --shadow-premium-lg: 0 20px 40px -4px rgba(15, 23, 42, 0.06), 0 8px 20px -4px rgba(15, 23, 42, 0.03);
}

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #334155;
  -webkit-font-smoothing: antialiased;
}

.container-px {
  padding-left: 1rem;
  padding-right: 1rem;
}

.shadow-premium-sm { box-shadow: var(--shadow-premium-sm); }
.shadow-premium-md { box-shadow: var(--shadow-premium-md); }
.shadow-premium-lg { box-shadow: var(--shadow-premium-lg); }

html.aviso-advocacia-fechado #aviso-advocacia { display: none; }
html.a11y-contrast { filter: contrast(1.2); }

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Select2 — parity with Laravel resources/css/app.css */
.select2-container--open,
.select2-dropdown { z-index: 40 !important; }
.site-header-sticky .select2-container--open { z-index: 45 !important; }

#cidade-selector-container .select2-container--default .select2-selection--single,
#cidade-selector-container-mobile .select2-container--default .select2-selection--single {
  background-color: transparent !important;
  border: none !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 !important;
  color: #ffffff !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

#cidade-selector-container .select2-container--default .select2-selection--single .select2-selection__rendered,
#cidade-selector-container-mobile .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #ffffff !important;
  font-weight: 500 !important;
  padding-left: 0.25rem !important;
  padding-right: 0 !important;
  font-size: 12px !important;
  line-height: inherit !important;
}

#cidade-selector-container-mobile .select2-container--default .select2-selection--single .select2-selection__rendered {
  font-size: 11px !important;
}

#cidade-selector-container .select2-container--default .select2-selection--single .select2-selection__arrow,
#cidade-selector-container-mobile .select2-container--default .select2-selection--single .select2-selection__arrow {
  position: relative !important;
  top: 0 !important;
  right: 0 !important;
  height: auto !important;
  margin-left: 0.25rem !important;
  display: inline-flex !important;
  align-items: center !important;
}

#cidade-selector-container .select2-container--default .select2-selection--single .select2-selection__arrow b,
#cidade-selector-container-mobile .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #ffffff transparent transparent transparent !important;
  border-width: 4px 4px 0 4px !important;
}

#cidade-selector-container .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b,
#cidade-selector-container-mobile .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #ffffff transparent !important;
  border-width: 0 4px 4px 4px !important;
}

#cidade-selector-container .select2-container--default .select2-selection--single .select2-selection__clear,
#cidade-selector-container-mobile .select2-container--default .select2-selection--single .select2-selection__clear {
  display: none !important;
}

.topbar-select2 .select2-container--default .select2-selection--single {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 0.5rem !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
}
.topbar-select2 .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 26px !important;
  padding-left: 8px !important;
}
.topbar-select2 .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #ffffff transparent transparent transparent !important;
}
.select2-dropdown {
  border-radius: 0.75rem !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
}
.select2-search--dropdown .select2-search__field {
  border-radius: 0.5rem !important;
  border: 1px solid #cbd5e1 !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  outline: none !important;
}
.select2-results__option {
  font-size: 12px !important;
  padding: 8px 12px !important;
}

.select2-form {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}
.select2-form .select2-container {
  width: 100% !important;
  max-width: 100%;
  display: block;
}
.select2-form .select2-container--default .select2-selection--single {
  position: relative !important;
  height: 42px !important;
  min-height: 42px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.75rem !important;
  background-color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
.select2-form .select2-container--default.select2-container--focus .select2-selection--single,
.select2-form .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #0070c8 !important;
  box-shadow: 0 0 0 2px rgba(0, 112, 200, 0.2) !important;
}
.select2-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #0f172a !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  padding-left: 0.875rem !important;
  padding-right: 2.75rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.select2-form .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #94a3b8 !important;
}
.select2-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  top: 0 !important;
  right: 0.5rem !important;
  width: 1.25rem !important;
}
.select2-form .select2-container--default .select2-selection--single .select2-selection__clear {
  float: none !important;
  position: absolute !important;
  right: 1.75rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  color: #94a3b8 !important;
  z-index: 2;
}
@media (max-width: 767px) {
  .select2-form .select2-container--default .select2-selection--single {
    height: 44px !important;
    min-height: 44px !important;
  }
  .select2-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 2.5rem !important;
  }
}

.afagu-map-pin {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.afagu-map-pin img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
.leaflet-popup-content { font-size: 13px; line-height: 1.45; }
#map {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.afagu-html-livre img { max-width: 100%; height: auto; }

#cidade-selector-container .select2-container,
#cidade-selector-container-mobile .select2-container { width: 100% !important; }

.planosSwiper .swiper-slide { height: auto; }

/* Dock Afaguinho (blip-chat) */
#blip-chat-open-iframe,
#blip-chat-icon,
.blip-chat-icon,
iframe#blip-chat-open-iframe {
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
.afagu-support-dock {
  width: 3.5rem;
  height: 3.5rem;
}
.afagu-support-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.625rem);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.afagu-support-menu::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.75rem;
}
@media (hover: hover) and (pointer: fine) {
  .afagu-support-dock:hover .afagu-support-menu,
  .afagu-support-dock:focus-within .afagu-support-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
}
.afagu-support-dock.is-open .afagu-support-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Blog post content — parity with Laravel resources/css/app.css */
.afagu-post-content .post-content-figure,
.afagu-post-content figure {
  margin: 1.75rem 0;
  max-width: 100%;
}
.afagu-post-content .post-content-figure--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.afagu-post-content .post-content-figure--left {
  margin-right: auto;
  text-align: left;
}
.afagu-post-content .post-content-figure--right {
  margin-left: auto;
  text-align: right;
}
.afagu-post-content .post-figure--small { max-width: 360px; }
.afagu-post-content .post-figure--medium { max-width: 560px; }
.afagu-post-content .post-figure--large { max-width: 780px; }
.afagu-post-content .post-figure--full { max-width: 100%; }
.afagu-post-content .post-content-figure img,
.afagu-post-content figure img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}
.afagu-post-content img[style*="width"] {
  max-width: 100%;
  height: auto;
}
.afagu-post-content .post-content-figcaption,
.afagu-post-content figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #64748b;
  font-style: italic;
}
.afagu-post-content .post-gallery { margin: 2rem 0; }
.afagu-post-content .post-gallery-grid {
  display: grid;
  gap: 0.5rem;
}
.afagu-post-content .post-gallery-grid--2 { grid-template-columns: repeat(2, 1fr); }
.afagu-post-content .post-gallery-grid--3 { grid-template-columns: repeat(3, 1fr); }
.afagu-post-content .post-gallery-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) {
  .afagu-post-content .post-gallery-grid--3,
  .afagu-post-content .post-gallery-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.afagu-post-content .post-gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 0.75rem;
  aspect-ratio: 1;
  background: #f1f5f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.afagu-post-content .post-gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.18);
  z-index: 1;
  position: relative;
}
.afagu-post-content .post-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.afagu-post-content .post-cta-wrap {
  margin: 1.75rem 0;
  text-align: center;
}
.afagu-post-content .btn-post {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.afagu-post-content .btn-post:hover { transform: translateY(-1px); }
.afagu-post-content .btn-post--primario {
  background: #0070c8;
  color: #fff !important;
  box-shadow: 0 8px 20px -6px rgba(0, 112, 200, 0.45);
}
.afagu-post-content .btn-post--primario:hover { background: #005bb5; }
.afagu-post-content .btn-post--outline {
  background: #fff;
  color: #0070c8 !important;
  border: 2px solid #0070c8;
}
.afagu-post-content .btn-post--outline:hover {
  background: #0070c8;
  color: #fff !important;
}
.afagu-post-content .btn-post--whatsapp {
  background: #25d366;
  color: #fff !important;
  box-shadow: 0 8px 20px -6px rgba(37, 211, 102, 0.45);
}
.afagu-post-content .btn-post--whatsapp:hover { background: #1ebe57; }
.afagu-post-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 1rem 0;
}
.afagu-post-content ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 1rem 0;
}
.afagu-post-content li { margin: 0.35rem 0; }
.afagu-post-content p { margin: 0.85rem 0; }
