:root {
  text-rendering: optimizeLegibility;

  /* --- Design Tokens: Colors --- */
  --primary-color: #4D79B3;
  /* Azul original da marca */
  --primary-hover: #3a6296;
  --accent-color: #cde6f7;
  /* Azul claro do rodapé */
  --text-main: #2c3e50;
  /* Cinza azulado escuro para texto - mais suave que preto */
  --text-light: #5a6b7c;
  --bg-light: #f8fafc;

  /* --- Design Tokens: Shadows (Soft & Premium) --- */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 15px rgba(77, 121, 179, 0.4);
  /* Glow azulado */

  /* --- Design Tokens: Radius --- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  line-height: 1.7;
  /* Aumentado para melhor leitura */
  color: var(--text-main);
  /* Cor suavizada */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fff;
  /* Garante fundo base limpo */
}

/* Subtle motion (micro-interactions) */
a,
.btn,
button,
input,
select,
textarea {
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    filter 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.btn:hover,
button:hover {
  transform: translateY(-1px);
}

.btn:active,
button:active {
  transform: translateY(0);
}

@keyframes dfdFadeInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gentle page-load animation (safe: only affects wrapper) */
#app {
  animation: dfdFadeInUp 260ms ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .btn,
  button,
  input,
  select,
  textarea {
    transition: none;
  }

  #app {
    animation: none;
  }
}

img,
video {
  max-width: 100%;
  height: auto;
  transition: filter 160ms ease, opacity 160ms ease;
}

/* Make linked images feel interactive without changing layout */
a:hover img,
a:focus-visible img {
  filter: brightness(1.04);
}

/* Cleaner links without changing colors */
a {
  text-underline-offset: 0.18em;
  text-decoration-thickness: from-font;
}

/* Modern, consistent controls (Bootstrap + Builderall forms) */
.btn,
button,
input,
select,
textarea {
  border-radius: var(--radius-md) !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
  /* Borda sutil */
}

.btn {
  padding: 12px 24px;
  /* Mais espaçamento interno */
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Premium Button Hover Effect */
.btn:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  filter: brightness(1.05);
}

.btn:active,
button:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

/* Fix for specific builderall button components to respect new styles */
[id^="ButtonComponent"] {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

[id^="ButtonComponent"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
  padding: 12px 14px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Visible keyboard focus without introducing new colors */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Reduce "cramped" feel on small screens */
@media (max-width: 768px) {
  .btn {
    padding: 12px 16px;
  }
}

/* Footer/contact section refresh (Builderall panel id) */
/* Builderall sometimes applies background on different wrappers.
   Keep selectors broad but scoped to the unique id. */

/* GENERIC: Apply light blue to ALL contact panels across all pages */
[data-anchor-name="contato"],
.panel[data-anchor-name="contato"],
div[data-anchor-name="contato"] {
  background: #cde6f7 !important;
  background-color: #cde6f7 !important;
  background-image: none !important;
}

/* Apply to panels containing contact forms (generic catch-all) */
.panel:has(> * [id*="Entre"]),
.panel:has([class*="SimpleForm"]) {
  background: #cde6f7 !important;
  background-color: #cde6f7 !important;
  background-image: none !important;
}

/* Contact panel on Cases page (ID 1716379794343) */
#1716379794343,
div#1716379794343,
[id="1716379794343"],
.panel#1716379794343 {
  background: #cde6f7 !important;
  background-color: #cde6f7 !important;
  background-image: none !important;
}

/* Contact/rodapé outer panel (anchor "contato") uses an inline background image.
   Override it to the requested light-blue with MAXIMUM specificity. */
div#1716216529000.panel.panel-primary.draggable.container-fluid,
div#1716216529000.panel.panel-primary,
div#1716216529000.panel,
div#1716216529000,
#1716216529000.panel,
#1716216529000,
#panel-1716216529000,
[id="1716216529000"],
[id="panel-1716216529000"],
[data-anchor-name="contato"] {
  background: #cde6f7 !important;
  background-color: #cde6f7 !important;
  background-image: none !important;
}

/* Keep inner body transparent so outer background shows consistently. */
div#1716216529000 .panel-body,
#1716216529000 .panel-body.container,
#1716216529000 .panel-body,
[id="1716216529000"] .panel-body {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* If the down-arrow separator is ever shown, match the new background. */
#1716216529000 .arrow-panel-down,
[id="1716216529000"] .arrow-panel-down {
  border-top-color: #cde6f7 !important;
}

#1677246676019,
#panel-1677246676019,
[id="1677246676019"],
[id="panel-1677246676019"],
.sitebuilder-element-panel#1677246676019,
.sitebuilder-element-panel[id="1677246676019"],
.sitebuilder-element-panel .panel#1677246676019,
.sitebuilder-element-panel .panel[id="1677246676019"] {
  background: #cde6f7 !important;
  background-color: #cde6f7 !important;
  background-image: none !important;
}

/* If the background is applied to a nested "bg" div, override that too. */
#1677246676019 [class*="bg"],
#panel-1677246676019 [class*="bg"],
[id="1677246676019"] [class*="bg"],
[id="panel-1677246676019"] [class*="bg"] {
  background: #cde6f7 !important;
  background-color: #cde6f7 !important;
  background-image: none !important;
}

/* Force footer text colors (overrides inline span colors like #f7e7cb). */
#1677246676019 .clean-text-css,
#1677246676019 p,
#1677246676019 span,
#1677246676019 font,
#1677246676019 a,
#panel-1677246676019 .clean-text-css,
#panel-1677246676019 p,
#panel-1677246676019 span,
#panel-1677246676019 font,
#panel-1677246676019 a,
[id="1677246676019"] .clean-text-css,
[id="1677246676019"] p,
[id="1677246676019"] span,
[id="1677246676019"] font,
[id="1677246676019"] a,
[id="panel-1677246676019"] .clean-text-css,
[id="panel-1677246676019"] p,
[id="panel-1677246676019"] span,
[id="panel-1677246676019"] font,
[id="panel-1677246676019"] a {
  color: #0b2a4a !important;
}

#1677246676019 a,
#panel-1677246676019 a,
[id="1677246676019"] a,
[id="panel-1677246676019"] a {
  text-decoration: underline;
}

#1677246676019 input,
#1677246676019 textarea,
#1677246676019 select,
#panel-1677246676019 input,
#panel-1677246676019 textarea,
#panel-1677246676019 select,
[id="1677246676019"] input,
[id="1677246676019"] textarea,
[id="1677246676019"] select,
[id="panel-1677246676019"] input,
[id="panel-1677246676019"] textarea,
[id="panel-1677246676019"] select {
  background-color: #ffffff !important;
}

/* Remove the white separator line in the footer (LineComponent id 1716205847448). */
div#1716205847448.sitebuilder-element-container,
div#1716205847448,
#1716205847448.sitebuilder-element-container,
#1716205847448,
#line-1716205847448,
[id="1716205847448"],
[id="line-1716205847448"],
[data-id="1716205847448"],
[data-element-id="1716205847448"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  border: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove the other white separator line inside the contact panel (LineComponent id 1716212933973). */
/* Also remove any separator lines on the cases page */
[id="1716379789623"],
div#1716379789623,
#line-1716379789623 {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  border: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

div#1716212933973.sitebuilder-element-container,
div#1716212933973,
#1716212933973.sitebuilder-element-container,
#1716212933973,
#line-1716212933973,
[id="1716212933973"],
[id="line-1716212933973"],
[data-id="1716212933973"],
[data-element-id="1716212933973"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  border: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* --- Visual Refinements (Images & Footer) --- */

/* Smooth Image Corners (Generic) */
img {
  border-radius: var(--radius-sm);
}

/* Don't round logos if identifiable by class (Generic safeguard) */
.logo img,
.navbar-brand img,
[class*="logo"] img {
  border-radius: 0 !important;
}

/* --- Footer Definition --- */
/* Add subtle top border to the blue footer contact section */
[data-anchor-name="contato"] {
  border-top: 1px solid rgba(255, 255, 255, 0.4) !important;
  padding-top: 20px !important;
  /* Espaço para respirar */
}

/* Modern Input Fields (Form modernization) */
input,
textarea,
select {
  background-color: #f9fafb !important;
  /* Very light cool gray */
  border: 1px solid #e5e7eb !important;
  transition: all 0.2s ease !important;
  border-radius: var(--radius-sm) !important;
}

input:focus,
textarea:focus,
select:focus {
  background-color: #fff !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(77, 121, 179, 0.15) !important;
  outline: none !important;
}

/* --- Performance Optimization (SCROLL FIX) --- */

/* 1. Disable expensive parallax effect on ALL devices to ensure smoothness.
   The "fixed" background forces a repaint on every pixel scrolled. */
.panel,
div[style*="background-attachment: fixed"],
[data-parallax="true"] {
  background-attachment: scroll !important;
  background-position: center center !important;
}

/* 2. Hardware Acceleration for smooth animations */
.btn,
.panel,
img,
a {
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
  transform: translateZ(0);
  /* Promotes to composite layer */
}

/* 3. Optimize scrolling repaint areas */
body,
html {
  overflow-x: hidden;
  overscroll-behavior-y: none;
  /* Prevents bounce effects that lag */
}

/* 4. Optimize Hover Effects (Use GPU) */
.btn:hover {
  will-change: transform, box-shadow;
}

/* 5. Image rendering speed */
img {
  text-rendering: optimizeSpeed;
  image-rendering: -webkit-optimize-contrast;
  /* Better contrast, generally faster than quality */
}

/* 6. Lazy Render for off-screen content (Huge performance boost) */
.panel {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
  /* Estimativa de altura para evitar layout shifts bruscos */
  contain: layout paint;
}