
/* Bervion final fixes: preserva o site completo e corrige responsividade/performance. */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, video, iframe, canvas, svg {
  max-width: 100%;
}

.loader-wrapper {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.main-content,
.main-content.show,
.main-content.loaded {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.logo img,
.bervion-logo-img {
  width: auto !important;
  height: clamp(34px, 4vw, 52px) !important;
  max-width: 150px !important;
  object-fit: contain !important;
}

.navbar,
.nav-container,
.container,
.section,
.hero,
.header-content,
.features-grid,
.services-grid,
.portfolio-grid,
.projects-grid,
.calculator-grid,
.lead-form-container,
.result-card,
.calculator-card {
  min-width: 0;
  max-width: 100%;
}

.nav-links {
  min-width: 0;
}

.mobile-menu-btn {
  touch-action: manipulation;
}

.whatsapp-float {
  z-index: 1200 !important;
}

.projects-grid,
.portfolio-grid,
.features-grid,
.services-grid {
  align-items: stretch;
}

.project-card,
.portfolio-card,
.service-card,
.feature-card,
.calculator-card,
.result-card {
  min-width: 0;
  overflow: hidden;
}

.project-card iframe,
.project-frame,
iframe.project-frame {
  width: 100% !important;
  border: 0 !important;
}

.result-card,
.calculator-result {
  overflow-wrap: anywhere;
}

.lead-form-container .form-row,
.form-row {
  min-width: 0;
}

.lead-form-container input,
.lead-form-container select,
.lead-form-container textarea,
#quoteForm input,
#quoteForm select,
#quoteForm textarea {
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: min(84vw, 360px) !important;
    height: 100dvh !important;
    padding: 92px 24px 32px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    background: rgba(15, 23, 42, 0.98) !important;
    border-left: 1px solid rgba(255,255,255,.12) !important;
    box-shadow: -18px 0 50px rgba(0,0,0,.35) !important;
    overflow-y: auto !important;
    transition: right .25s ease !important;
    z-index: 1000 !important;
  }

  .nav-links.active,
  .nav-links.open {
    right: 0 !important;
  }

  .nav-link {
    width: 100% !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.08) !important;
    z-index: 1002 !important;
  }
}

@media (max-width: 768px) {
  :root {
    --container-pad: 20px;
  }

  .hero,
  .header,
  .calculator-header,
  .page-header {
    min-height: auto !important;
    padding-top: 96px !important;
    padding-bottom: 56px !important;
  }

  .hero-content,
  .header-content,
  .calculator-header-content {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: center !important;
  }

  h1,
  .hero-title,
  .header-text h1,
  .calculator-intro h1 {
    font-size: clamp(2.35rem, 12vw, 4rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.045em !important;
    max-width: 100% !important;
  }

  .hero-subtitle,
  .header-text p,
  .calculator-intro p,
  .section-description {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-buttons,
  .cta-buttons,
  .button-group,
  .result-actions,
  .project-actions,
  .quote-form-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .btn,
  .cta-button,
  .project-actions a,
  .result-actions button,
  .result-actions a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .features-grid,
  .services-grid,
  .portfolio-grid,
  .projects-grid,
  .calculator-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .calculator-result {
    position: static !important;
  }

  .calculator-card,
  .result-card,
  .lead-form-container,
  .project-card,
  .portfolio-card,
  .service-card {
    padding: clamp(18px, 5vw, 28px) !important;
    border-radius: 22px !important;
  }

  .lead-form-container .form-row,
  .form-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .project-card iframe,
  .project-frame,
  iframe.project-frame {
    height: 260px !important;
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 16px;
  }

  h1,
  .hero-title,
  .header-text h1,
  .calculator-intro h1 {
    font-size: clamp(2rem, 11vw, 3rem) !important;
  }

  .section-title {
    font-size: clamp(1.8rem, 9vw, 2.4rem) !important;
  }

  .project-card iframe,
  .project-frame,
  iframe.project-frame {
    height: 220px !important;
  }

  .whatsapp-float {
    width: 54px !important;
    height: 54px !important;
    right: 18px !important;
    bottom: 18px !important;
  }
}

/* Mobile final: evita corte em navegadores que usam viewport minimo maior que a tela real. */
@media (max-width: 600px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  body,
  .main-content,
  .header,
  .header *,
  .hero,
  .hero *,
  .calculator-hero,
  .calculator-hero * {
    opacity: 1 !important;
    filter: none !important;
  }

  .main-content,
  .header-text,
  .header-visual,
  .hero-content,
  .calculator-header-content {
    transform: none !important;
    visibility: visible !important;
  }

  .header,
  .hero,
  .calculator-hero {
    min-height: auto !important;
    height: auto !important;
    padding-top: 86px !important;
    padding-bottom: 42px !important;
  }

  .nav-container,
  .container,
  .hero-content,
  .header-content,
  .calculator-header-content,
  .calculator-grid,
  .features-grid,
  .services-grid,
  .portfolio-grid,
  .projects-grid,
  .lead-form-container,
  .calculator-card,
  .result-card,
  .project-card,
  .portfolio-card,
  .service-card,
  .feature-card {
    width: min(350px, calc(100% - 32px)) !important;
    max-width: min(350px, calc(100% - 32px)) !important;
    margin-left: 16px !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hero-content,
  .header-content,
  .calculator-header-content,
  .calculator-grid,
  .features-grid,
  .services-grid,
  .portfolio-grid,
  .projects-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .hero-title,
  .header-text h1,
  .calculator-intro h1,
  h1 {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(2rem, 7vw, 2.45rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.035em !important;
    text-align: center !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .header-buttons,
  .hero-buttons,
  .cta-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 20px 0 8px !important;
    width: 100% !important;
  }

  .header-buttons .btn,
  .hero-buttons .btn,
  .cta-buttons .btn,
  .header-buttons a,
  .hero-buttons a,
  .cta-buttons a {
    min-height: 48px !important;
    width: 100% !important;
    max-width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.15 !important;
  }

  .header-visual,
  .hero-visual {
    width: min(350px, calc(100% - 32px)) !important;
    max-width: min(350px, calc(100% - 32px)) !important;
    margin: 18px 0 0 16px !important;
  }

  .mockup-container,
  .browser-mockup,
  .website-mockup {
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
  }

  .hero-title .highlight,
  .header-text h1 .highlight,
  .calculator-intro h1 .highlight {
    display: block !important;
  }

  .hero-subtitle,
  .header-text p,
  .calculator-intro p {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  .nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
    flex: 0 0 44px !important;
  }

  .calculator-card,
  .result-card,
  .project-card,
  .portfolio-card,
  .service-card,
  .feature-card,
  .lead-form-container {
    padding: 18px !important;
  }

  .calculator-card *,
  .result-card *,
  .project-card *,
  .portfolio-card *,
  .service-card *,
  .feature-card *,
  .lead-form-container * {
    max-width: 100% !important;
  }
}

/* Ajuste final de publicacao: logo real e formulario sem espaco morto. */
.logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.logo .logo-icon,
.logo img.logo-icon,
.logo img[src$="logo2-nova.png"] {
  display: block !important;
  width: clamp(30px, 3vw, 42px) !important;
  height: clamp(30px, 3vw, 42px) !important;
  max-width: clamp(30px, 3vw, 42px) !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  flex: 0 0 auto !important;
}

.logo span {
  display: inline-block !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.section.lead-section,
.lead-section {
  padding-top: clamp(48px, 5vw, 76px) !important;
  margin-top: 0 !important;
}

.lead-section .container {
  margin-top: 0 !important;
}

.lead-form-container {
  margin-top: 0 !important;
}

@media (min-width: 993px) {
  .lead-section {
    padding-top: 64px !important;
  }
}

@media (max-width: 600px) {
  .logo {
    gap: 8px !important;
  }

  .logo .logo-icon,
  .logo img.logo-icon,
  .logo img[src$="logo2-nova.png"] {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
  }

  .section.lead-section,
  .lead-section {
    padding-top: 34px !important;
  }
}

/* Desktop final: evita que secoes fiquem largas demais em monitores grandes. */
@media (min-width: 1200px) {
  .container,
  .nav-container,
  .header-content,
  .hero-content,
  .calculator-header-content,
  .calculator-grid,
  .lead-section .container,
  .portfolio .container,
  .projects .container,
  .services .container,
  .features .container,
  .testimonials .container,
  .section > .container {
    width: min(100% - 64px, 1240px) !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .lead-form-container,
  .solicitation-form,
  .quote-form,
  #contactForm,
  #quoteForm {
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .lead-form-container {
    padding-left: clamp(42px, 5vw, 72px) !important;
    padding-right: clamp(42px, 5vw, 72px) !important;
  }

  .features-grid,
  .services-grid,
  .portfolio-grid,
  .projects-grid {
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 1500px) {
  .container,
  .nav-container,
  .header-content,
  .hero-content,
  .calculator-header-content,
  .calculator-grid,
  .section > .container {
    max-width: 1180px !important;
  }

  .lead-form-container {
    max-width: 1080px !important;
  }
}

/* Header desktop: separa logo e navegacao sem esticar o layout inteiro. */
@media (min-width: 993px) {
  .navbar .nav-container,
  .nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 36px !important;
  }

  .logo {
    flex: 0 0 auto !important;
    margin-right: 28px !important;
  }

  .nav-links {
    flex: 1 1 auto !important;
    justify-content: flex-end !important;
    gap: clamp(18px, 1.8vw, 30px) !important;
  }
}

/* Header pode ser mais largo que o conteudo para caber todos os links. */
@media (min-width: 993px) {
  .navbar .nav-container,
  .nav-container {
    width: min(100% - 64px, 1380px) !important;
    max-width: 1380px !important;
  }

  .nav-links {
    margin-left: 56px !important;
  }
}

/* Seletor correto do tema antigo: navbar-container. */
@media (min-width: 993px) {
  .navbar-container {
    width: min(100% - 64px, 1380px) !important;
    max-width: 1380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 48px !important;
  }

  .navbar-container .logo {
    flex: 0 0 auto !important;
    margin-right: 32px !important;
  }

  .navbar-container .nav-links {
    flex: 1 1 auto !important;
    justify-content: flex-end !important;
    gap: clamp(18px, 1.55vw, 28px) !important;
    margin-left: 0 !important;
  }
}

/* Responsividade completa: tablet, desktop pequeno e mobile sem cortes. */
@media (max-width: 1180px) {
  .navbar-container .nav-links,
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: min(86vw, 380px) !important;
    height: 100dvh !important;
    padding: 92px 24px 32px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    background: rgba(15, 23, 42, 0.98) !important;
    border-left: 1px solid rgba(255,255,255,.12) !important;
    box-shadow: -18px 0 50px rgba(0,0,0,.35) !important;
    overflow-y: auto !important;
    transition: right .25s ease !important;
    z-index: 1000 !important;
  }

  .navbar-container .nav-links.active,
  .navbar-container .nav-links.open,
  .nav-links.active,
  .nav-links.open {
    right: 0 !important;
  }

  .navbar-container .nav-link,
  .nav-link {
    width: 100% !important;
    max-width: none !important;
    padding: 13px 16px !important;
    border-radius: 14px !important;
    font-size: 1.05rem !important;
    text-align: left !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.08) !important;
    z-index: 1002 !important;
  }

  .navbar-container {
    width: min(100% - 40px, 1040px) !important;
    max-width: min(100% - 40px, 1040px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 601px) and (max-width: 992px) {
  .header,
  .hero,
  .calculator-hero {
    min-height: auto !important;
    padding-top: 104px !important;
    padding-bottom: 64px !important;
  }

  .header-content,
  .hero-content,
  .calculator-header-content {
    width: min(100% - 48px, 720px) !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .header-text h1,
  .hero-title,
  .calculator-intro h1 {
    font-size: clamp(3.1rem, 8vw, 4.7rem) !important;
    line-height: .98 !important;
  }

  .header-buttons,
  .hero-buttons,
  .cta-buttons {
    width: min(100%, 620px) !important;
    max-width: 620px !important;
    margin: 26px auto 22px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .header-buttons a,
  .hero-buttons a,
  .cta-buttons a,
  .header-buttons .btn,
  .hero-buttons .btn,
  .cta-buttons .btn {
    width: 100% !important;
    min-height: 56px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .header-visual,
  .hero-visual,
  .mockup-container,
  .browser-mockup,
  .website-mockup {
    width: min(100%, 540px) !important;
    max-width: 540px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .value-props-grid,
  .features-grid,
  .services-grid,
  .portfolio-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }

  .pricing-grid,
  .calculator-grid {
    grid-template-columns: 1fr !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 601px) and (max-width: 1180px) {
  .navbar--solid + .lead-section,
  .main-content > .navbar--solid + .lead-section,
  .main-content .navbar--solid + .lead-section {
    padding-top: 112px !important;
  }
}

@media (min-width: 1181px) {
  .navbar--solid + .lead-section,
  .main-content > .navbar--solid + .lead-section,
  .main-content .navbar--solid + .lead-section {
    padding-top: 156px !important;
  }
}

@media (max-width: 600px) {
  .navbar--solid + .lead-section,
  .main-content > .navbar--solid + .lead-section,
  .main-content .navbar--solid + .lead-section {
    padding-top: 92px !important;
  }

  .value-props-grid,
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Logo maior e menu mobile funcional em todos os tamanhos ate desktop pequeno. */
.logo .logo-icon,
.logo img.logo-icon,
.logo img[src$="logo2-nova.png"] {
  width: 90px !important;
  height: 90px !important;
  max-width: 90px !important;
  max-height: 90px !important;
}

.logo span {
  font-size: clamp(1.35rem, 2vw, 1.8rem) !important;
}

.navbar,
.navbar.navbar--solid {
  min-height: 112px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.navbar-container {
  min-height: 92px !important;
}

@media (max-width: 1180px) {
  .navbar-container .nav-links,
  .nav-links {
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    right: -100% !important;
  }

  .navbar-container .nav-links.active,
  .navbar-container .nav-links.open,
  .nav-links.active,
  .nav-links.open {
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    right: 0 !important;
  }

  .mobile-menu-btn {
    cursor: pointer !important;
    pointer-events: auto !important;
  }

  body.menu-open {
    overflow: hidden !important;
  }

  .header,
  .hero,
  .calculator-hero,
  .page-header {
    padding-top: 138px !important;
  }

  .navbar--solid + .lead-section,
  .main-content > .navbar--solid + .lead-section,
  .main-content .navbar--solid + .lead-section {
    padding-top: 138px !important;
  }
}

@media (max-width: 600px) {
  .logo .logo-icon,
  .logo img.logo-icon,
  .logo img[src$="logo2-nova.png"] {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
  }

  .logo span {
    font-size: 1.35rem !important;
  }

  .navbar,
  .navbar.navbar--solid {
    min-height: 112px !important;
  }

  .header,
  .hero,
  .calculator-hero,
  .page-header {
    padding-top: 138px !important;
  }
}

/* Logo 90px sem quebrar no mobile/tablet. */
@media (max-width: 1180px) {
  .navbar-container .logo span {
    display: none !important;
  }

  .navbar-container .logo {
    gap: 0 !important;
    margin-right: 0 !important;
  }

  .navbar-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
}

@media (max-width: 600px) {
  .navbar-container {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
  }

  .mobile-menu-btn {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
  }

  .header-text h1,
  .hero-title,
  .calculator-intro h1,
  h1 {
    font-size: clamp(1.85rem, 8.6vw, 2.35rem) !important;
  }
}

/* Botao hamburguer sempre visivel acima de tudo no mobile/tablet. */
@media (max-width: 1180px) {
  .mobile-menu-btn,
  button.mobile-menu-btn {
    position: fixed !important;
    top: 30px !important;
    right: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 54px !important;
    height: 54px !important;
    flex: 0 0 54px !important;
    color: #ffffff !important;
    background: rgba(15, 23, 42, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 999px !important;
    box-shadow: 0 14px 36px rgba(0,0,0,.28) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 5000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .mobile-menu-btn i,
  button.mobile-menu-btn i {
    color: #ffffff !important;
    font-size: 1.45rem !important;
    line-height: 1 !important;
  }

  .navbar-container .nav-links,
  .nav-links {
    z-index: 4200 !important;
    padding-top: 112px !important;
  }
}

/* Corrige calculo antigo que jogava o hamburguer para fora da tela. */
@media (max-width: 1180px) {
  .mobile-menu-btn,
  button.mobile-menu-btn {
    left: calc(100vw - 76px) !important;
    right: auto !important;
    transform: none !important;
  }
}

@media (max-width: 420px) {
  .mobile-menu-btn,
  button.mobile-menu-btn {
    left: calc(100vw - 70px) !important;
    width: 50px !important;
    height: 50px !important;
    flex-basis: 50px !important;
  }
}

/* Botao proprio da Bervion, acima de qualquer estilo antigo. */
@media (max-width: 1180px) {
  .bervion-menu-toggle,
  button.bervion-menu-toggle.mobile-menu-btn {
    display: flex !important;
    position: fixed !important;
    top: 30px !important;
    left: auto !important;
    right: 18px !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    background: rgba(15, 23, 42, .86) !important;
    border: 1px solid rgba(255,255,255,.34) !important;
    border-radius: 50% !important;
    box-shadow: 0 16px 38px rgba(0,0,0,.32) !important;
    z-index: 2147483000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    clip-path: none !important;
    overflow: visible !important;
  }

  .bervion-menu-toggle i,
  button.bervion-menu-toggle.mobile-menu-btn i {
    display: block !important;
    color: #fff !important;
    font-size: 24px !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Fallback para navegadores que calculam viewport CSS maior que a tela fisica. */
@media (max-width: 600px) {
  .bervion-menu-toggle,
  button.bervion-menu-toggle.mobile-menu-btn,
  .mobile-menu-btn,
  button.mobile-menu-btn {
    left: min(calc(100vw - 76px), 314px) !important;
    right: auto !important;
  }
}

/* Performance: evita renderizar secoes distantes antes do usuario chegar nelas. */
section,
.section,
.portfolio-section,
.products-section,
.services-section,
.testimonials-section,
.projects-section,
.calculator-section,
.faq-section,
.blog-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.hero,
.navbar,
.loader-wrapper,
.nav-links {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

/* Performance: iframes de projetos carregam so quando o visitante pedir. */
.project-card {
  position: relative !important;
}

.project-frame-loader {
  position: absolute !important;
  inset: 18px 18px auto 18px !important;
  min-height: 140px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 18px !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: .98rem !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(26,54,93,.96), rgba(13,148,136,.92)) !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.18) !important;
  cursor: pointer !important;
  z-index: 3 !important;
}

.project-frame-loader i {
  color: #ffffff !important;
}

/* Performance: mobile/tablet nao precisa de dezenas de animacoes infinitas. */
html.bervion-lite-motion *,
html.bervion-lite-motion *::before,
html.bervion-lite-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce), (max-width: 768px) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .hero-visual,
  .browser-mockup,
  .floating-card,
  .loader-logo,
  .loader-logo::before,
  .loader-logo::after,
  .loader-icon,
  .loader-progress::before {
    animation: none !important;
    transform: none !important;
  }
}

/* Desktop polish: reduz a escala visual para nao parecer zoomado em monitores. */
@media (min-width: 1181px) {
  .main-content,
  .hero-title,
  .hero-subtitle,
  .hero-buttons,
  .hero-visual,
  .header-text,
  .header-text h1,
  .header-text p,
  .header-buttons,
  .header-visual,
  .browser-mockup,
  .mockup,
  .mockup-container,
  .service-card,
  .feature-card,
  .portfolio-card,
  .product-card,
  .project-card,
  .testimonial-card,
  .reveal-up,
  .reveal-right {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
  }

  .hero-title,
  .hero-subtitle,
  .hero-buttons,
  .hero-visual,
  .header-text,
  .header-text h1,
  .header-text p,
  .header-buttons,
  .header-visual,
  .browser-mockup,
  .mockup,
  .mockup-container,
  .reveal-up,
  .reveal-right {
    transform: none !important;
  }

  .container,
  .section > .container,
  .hero-content,
  .header-content,
  .calculator-header-content {
    width: min(100% - 80px, 1120px) !important;
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .navbar-container,
  .navbar .nav-container,
  .nav-container {
    width: min(100% - 72px, 1240px) !important;
    max-width: 1240px !important;
    min-height: 84px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .navbar-container .logo,
  .navbar .logo,
  .logo {
    margin-right: 18px !important;
  }

  .navbar-container .nav-links,
  .nav-links {
    gap: clamp(14px, 1.15vw, 22px) !important;
  }

  .navbar-container .nav-link,
  .nav-link {
    font-size: .94rem !important;
    line-height: 1.2 !important;
  }

  .hero,
  .header {
    min-height: auto !important;
    padding-top: clamp(112px, 9vw, 142px) !important;
    padding-bottom: clamp(64px, 7vw, 92px) !important;
  }

  .hero-content,
  .header-content {
    gap: clamp(36px, 4vw, 58px) !important;
  }

  .hero-title,
  .header-text h1 {
    font-size: clamp(2.85rem, 3.55vw, 3.95rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.045em !important;
    max-width: 650px !important;
  }

  .hero-subtitle,
  .header-text p,
  .section-description {
    font-size: clamp(.96rem, 1vw, 1.06rem) !important;
    line-height: 1.62 !important;
    max-width: 580px !important;
  }

  .hero-buttons,
  .header-buttons,
  .cta-buttons {
    gap: 18px !important;
    margin-top: 30px !important;
  }

  .btn,
  .hero-buttons .btn,
  .header-buttons .btn,
  .cta-buttons .btn {
    min-height: 44px !important;
    padding: 12px 24px !important;
    font-size: .94rem !important;
    border-radius: 999px !important;
  }

  .hero-visual,
  .header-visual,
  .browser-mockup,
  .mockup,
  .mockup-container {
    max-width: 410px !important;
    width: 100% !important;
  }

  .section,
  .services-section,
  .portfolio-section,
  .products-section,
  .testimonials-section,
  .projects-section,
  .calculator-section,
  .faq-section,
  .blog-section {
    padding-top: clamp(64px, 6vw, 88px) !important;
    padding-bottom: clamp(64px, 6vw, 88px) !important;
  }

  .section-title,
  .calculator-intro h1,
  .lead-form-container h1,
  .lead-form-container h2 {
    font-size: clamp(2.05rem, 2.7vw, 2.75rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
  }

  .services-grid,
  .features-grid,
  .portfolio-grid,
  .products-grid,
  .projects-grid,
  .testimonials-grid {
    max-width: 1080px !important;
    gap: 24px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .service-card,
  .feature-card,
  .portfolio-card,
  .product-card,
  .project-card,
  .testimonial-card,
  .calculator-card,
  .result-card {
    padding: clamp(24px, 2.2vw, 34px) !important;
    border-radius: 22px !important;
  }

  .service-card h3,
  .feature-card h3,
  .portfolio-card h3,
  .product-card h3,
  .project-title {
    font-size: clamp(1.28rem, 1.55vw, 1.65rem) !important;
    line-height: 1.18 !important;
  }

  .service-card p,
  .feature-card p,
  .portfolio-card p,
  .product-card p,
  .project-desc,
  .testimonial-card p {
    font-size: .98rem !important;
    line-height: 1.58 !important;
  }

  .lead-form-container,
  .solicitation-form,
  .quote-form,
  #contactForm,
  #quoteForm {
    max-width: 980px !important;
  }

  .lead-form-container {
    padding: clamp(36px, 4vw, 54px) !important;
    border-radius: 28px !important;
  }
}

@media (min-width: 1500px) {
  .container,
  .section > .container,
  .hero-content,
  .header-content,
  .calculator-header-content {
    max-width: 1080px !important;
  }

  .navbar-container,
  .navbar .nav-container,
  .nav-container {
    max-width: 1180px !important;
  }

  .hero-title,
  .header-text h1 {
    font-size: clamp(2.95rem, 3.25vw, 4.1rem) !important;
  }
}

/* Ajuste final de paginas internas: logo visivel, footer centralizado e respiro no conteudo. */
@media (max-width: 1180px) {
  .navbar-container {
    padding-left: 0 !important;
    padding-right: 74px !important;
  }

  .navbar-container .logo,
  .logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    max-width: calc(100vw - 126px) !important;
    overflow: hidden !important;
  }

  .navbar-container .logo span,
  .logo span {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    font-size: clamp(1.08rem, 3.8vw, 1.38rem) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
  }

  .navbar-container .logo .logo-icon,
  .navbar-container .logo img.logo-icon,
  .navbar-container .logo img[src$="logo2-nova.png"],
  .logo .logo-icon,
  .logo img.logo-icon,
  .logo img[src$="logo2-nova.png"] {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
    flex: 0 0 72px !important;
  }

  .header,
  .hero,
  .calculator-header,
  .calculator-hero,
  .page-header,
  .section[style*="padding-top:140px"] {
    padding-top: 132px !important;
  }
}

@media (max-width: 600px) {
  .navbar-container {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    padding-right: 68px !important;
  }

  .navbar-container .logo,
  .logo {
    gap: 8px !important;
    max-width: calc(100vw - 116px) !important;
  }

  .navbar-container .logo .logo-icon,
  .navbar-container .logo img.logo-icon,
  .navbar-container .logo img[src$="logo2-nova.png"],
  .logo .logo-icon,
  .logo img.logo-icon,
  .logo img[src$="logo2-nova.png"] {
    width: 62px !important;
    height: 62px !important;
    max-width: 62px !important;
    max-height: 62px !important;
    flex-basis: 62px !important;
  }

  .navbar-container .logo span,
  .logo span {
    font-size: 1.12rem !important;
  }
}

@media (max-width: 992px) {
  .section,
  section.section,
  .calculator-section,
  .lead-section,
  .pricing-section,
  .process-section,
  .payment-section,
  .projects-section,
  .services-section,
  .portfolio-section,
  .products-section,
  .testimonials-section,
  .faq-section,
  .blog-section {
    padding-top: clamp(42px, 8vw, 70px) !important;
    padding-bottom: clamp(42px, 8vw, 70px) !important;
  }

  .section .section,
  .container > .section,
  .pricing-section,
  .process-section,
  .payment-section {
    margin-top: clamp(28px, 6vw, 46px) !important;
  }

  .section-header {
    margin-bottom: clamp(26px, 6vw, 42px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .section-title,
  .lead-form-container h1,
  .lead-form-container h2,
  .lead-form-container h3,
  .calculator-intro h1 {
    margin-bottom: 14px !important;
    line-height: 1.12 !important;
  }

  .section-description,
  .text-justify,
  .card p,
  .service-card p,
  .feature-card p,
  .portfolio-card p,
  .product-card p,
  .project-desc,
  .faq-answer,
  .timeline-content p {
    line-height: 1.62 !important;
    margin-bottom: 16px !important;
    overflow-wrap: anywhere !important;
  }

  .text-justify,
  .section-description.text-justify,
  .timeline-content p,
  .about-card p,
  .mission-card p,
  .vision-card p,
  .values-card p {
    text-align: center !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
    hyphens: none !important;
  }

  .features-grid,
  .services-grid,
  .portfolio-grid,
  .products-grid,
  .projects-grid,
  .testimonials-grid,
  .pricing-grid,
  .process-grid,
  .payment-grid,
  .value-props-grid,
  .stats-grid,
  .skills-grid,
  .timeline,
  .calculator-grid {
    gap: clamp(18px, 5vw, 30px) !important;
  }

  .service-card,
  .feature-card,
  .portfolio-card,
  .product-card,
  .project-card,
  .testimonial-card,
  .pricing-card,
  .process-card,
  .payment-card,
  .faq-item,
  .calculator-card,
  .result-card,
  .lead-form-container,
  .form-container {
    margin-bottom: clamp(18px, 5vw, 28px) !important;
  }

  .about-card,
  .mission-card,
  .vision-card,
  .values-card,
  .timeline-item,
  .skill-card,
  .stat-card {
    padding: clamp(24px, 6vw, 34px) !important;
    border-radius: 18px !important;
  }

  .footer,
  footer.footer {
    text-align: center !important;
    padding-top: 56px !important;
  }

  .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 34px !important;
    text-align: center !important;
    justify-items: center !important;
  }

  .footer-about,
  .footer-links,
  .footer-contact {
    width: min(100%, 360px) !important;
    max-width: 360px !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .footer-logo,
  .footer-links h3,
  .footer-contact h3 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .footer-links h3::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .footer-links ul {
    display: grid !important;
    gap: 12px !important;
    padding-left: 0 !important;
    text-align: center !important;
  }

  .footer-links li {
    text-align: center !important;
  }

  .footer-links a,
  .footer-contact p {
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.55 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .footer-contact p {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  .footer-contact i {
    margin-right: 0 !important;
    flex: 0 0 auto !important;
  }
}

@media (max-width: 480px) {
  .container,
  .section > .container,
  .calculator-section .container,
  .lead-section .container {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
  }

  .section-title {
    font-size: clamp(1.7rem, 8vw, 2.15rem) !important;
  }

  .section-description,
  .text-justify {
    font-size: .98rem !important;
  }
}



/* Ajuste final: rodape com logo real, contato centralizado e select de pagamento alinhado. */
.footer-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: auto !important;
  max-width: 100% !important;
  text-decoration: none !important;
}

.footer-logo-icon {
  display: inline-block !important;
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  object-fit: contain !important;
  flex: 0 0 42px !important;
}

.footer-logo span {
  display: inline-block !important;
  color: inherit !important;
}

.social-links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.social-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  line-height: 1 !important;
}

.social-link i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.05rem !important;
  line-height: 1 !important;
}

select[name="payment_preference"],
#q_payment {
  appearance: none !important;
  -webkit-appearance: none !important;
  text-align: center !important;
  text-align-last: center !important;
  padding-left: 22px !important;
  padding-right: 48px !important;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%) !important;
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50% !important;
  background-size: 6px 6px, 6px 6px !important;
  background-repeat: no-repeat !important;
}

select[name="payment_preference"] option,
#q_payment option {
  text-align: left !important;
}

@media (max-width: 992px) {
  .footer-about,
  .footer-contact,
  .footer-links {
    text-align: center !important;
    justify-items: center !important;
  }

  .footer-about p,
  .footer-contact p,
  .footer-links a {
    text-align: center !important;
    justify-content: center !important;
  }

  .footer-logo-icon {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    flex-basis: 48px !important;
  }
}

@media (max-width: 480px) {
  .footer-logo {
    gap: 8px !important;
  }

  .footer-logo-icon {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    flex-basis: 44px !important;
  }

  select[name="payment_preference"],
  #q_payment {
    min-height: 52px !important;
    font-size: .95rem !important;
    border-radius: 14px !important;
  }
}

/* Primeira dobra: evita que "Meus servicos" apareca antes da rolagem e refina os CTAs do hero. */
@media (min-width: 993px) {
  .hero,
  header.hero {
    min-height: 100vh !important;
    padding-top: clamp(104px, 11vh, 132px) !important;
    padding-bottom: clamp(110px, 12vh, 156px) !important;
    display: flex !important;
    align-items: center !important;
  }

  .hero .container {
    width: min(100% - 48px, 1160px) !important;
  }

  .hero-content {
    align-items: center !important;
  }

  #features {
    padding-top: clamp(78px, 8vw, 118px) !important;
  }
}

.hero-buttons,
.cta-buttons {
  align-items: center !important;
  gap: clamp(14px, 2vw, 22px) !important;
}

.hero-buttons .btn,
.cta-buttons .btn,
.hero-buttons a.btn,
.cta-buttons a.btn {
  min-height: 58px !important;
  min-width: min(100%, 210px) !important;
  max-width: 260px !important;
  padding: 14px 24px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  line-height: 1.18 !important;
  text-align: center !important;
  box-shadow: 0 16px 34px rgba(2, 16, 35, .26) !important;
}

.hero-buttons .btn i,
.cta-buttons .btn i {
  width: 22px !important;
  height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 22px !important;
  font-size: .95rem !important;
}

.hero-buttons .btn-primary {
  background: linear-gradient(135deg, #24517f 0%, #1e4b7c 48%, #163b65 100%) !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
}

.hero-buttons .btn-gold {
  background: linear-gradient(135deg, #f7cb3f 0%, #e8b62d 100%) !important;
  color: #101927 !important;
  border: 1px solid rgba(16, 25, 39, .08) !important;
}

.hero-buttons .btn:hover,
.cta-buttons .btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 20px 42px rgba(2, 16, 35, .34) !important;
}

@media (max-width: 992px) {
  .hero-buttons .btn,
  .cta-buttons .btn,
  .hero-buttons a.btn,
  .cta-buttons a.btn {
    width: min(100%, 320px) !important;
    min-width: 0 !important;
    max-width: 320px !important;
    min-height: 56px !important;
  }
}

@media (max-width: 520px) {
  .hero-buttons,
  .cta-buttons {
    width: 100% !important;
  }

  .hero-buttons .btn,
  .cta-buttons .btn,
  .hero-buttons a.btn,
  .cta-buttons a.btn {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Ajuste fino desktop: a proxima secao so aparece apos uma rolagem real. */
@media (min-width: 993px) {
  .hero,
  header.hero {
    min-height: calc(100vh + 150px) !important;
    padding-bottom: clamp(150px, 16vh, 210px) !important;
  }
}

/* Home real: a primeira dobra usa .header, nao .hero. */
@media (min-width: 993px) {
  .header#home,
  header.header {
    min-height: calc(100vh + 150px) !important;
    padding-top: clamp(118px, 12vh, 148px) !important;
    padding-bottom: clamp(155px, 17vh, 220px) !important;
    display: flex !important;
    align-items: center !important;
  }

  .header-content {
    width: min(100%, 1040px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-items: center !important;
  }
}

.header-buttons {
  display: flex !important;
  align-items: center !important;
  gap: clamp(14px, 2vw, 22px) !important;
  flex-wrap: wrap !important;
}

.header-buttons .btn,
.header-buttons a.btn {
  min-height: 58px !important;
  min-width: min(100%, 210px) !important;
  max-width: 260px !important;
  padding: 14px 24px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  line-height: 1.18 !important;
  text-align: center !important;
  box-shadow: 0 16px 34px rgba(2, 16, 35, .26) !important;
}

.header-buttons .btn i {
  width: 22px !important;
  height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 22px !important;
  font-size: .95rem !important;
}

.header-buttons .btn-primary {
  background: linear-gradient(135deg, #24517f 0%, #1e4b7c 48%, #163b65 100%) !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
}

.header-buttons .btn-gold {
  background: linear-gradient(135deg, #f7cb3f 0%, #e8b62d 100%) !important;
  color: #101927 !important;
  border: 1px solid rgba(16, 25, 39, .08) !important;
}

.header-buttons .btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 20px 42px rgba(2, 16, 35, .34) !important;
}

@media (max-width: 992px) {
  .header-buttons {
    justify-content: center !important;
  }

  .header-buttons .btn,
  .header-buttons a.btn {
    width: min(100%, 320px) !important;
    min-width: 0 !important;
    max-width: 320px !important;
    min-height: 56px !important;
  }
}

@media (max-width: 520px) {
  .header-buttons,
  .header-buttons .btn,
  .header-buttons a.btn {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (min-width: 993px) {
  .header-buttons {
    flex-direction: row !important;
    justify-content: flex-start !important;
  }

  .header-buttons .btn,
  .header-buttons a.btn {
    width: auto !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 993px) {
  .header .header-text .header-buttons,
  .main-content .header .header-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
  }

  .header .header-text .header-buttons .btn,
  .main-content .header .header-buttons .btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 218px !important;
    max-width: none !important;
    margin: 0 !important;
  }
}

/* Correcao especifica da calculadora no desktop: evita cards apertados e resumo quebrado. */
@media (min-width: 1181px) {
  body:has(.calculator-section) .calculator-header-content,
  body:has(.calculator-section) .calculator-section > .container {
    width: min(100% - 80px, 1240px) !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body:has(.calculator-section) .calculator-section {
    padding-top: clamp(56px, 5vw, 72px) !important;
  }

  body:has(.calculator-section) .calculator-grid {
    width: 100% !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: grid !important;
    grid-template-columns: minmax(620px, 1fr) minmax(390px, 430px) !important;
    gap: clamp(32px, 4vw, 56px) !important;
    align-items: start !important;
  }

  body:has(.calculator-section) .calculator-form,
  body:has(.calculator-section) .calculator-result,
  body:has(.calculator-section) .calculator-card,
  body:has(.calculator-section) .result-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  body:has(.calculator-section) .calculator-card,
  body:has(.calculator-section) .result-card {
    padding: clamp(28px, 2.8vw, 38px) !important;
    overflow: visible !important;
  }

  body:has(.calculator-section) .result-card {
    position: sticky !important;
    top: 112px !important;
  }

  body:has(.calculator-section) .result-card h3,
  body:has(.calculator-section) .calculator-card h2 {
    flex-wrap: nowrap !important;
    line-height: 1.15 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  body:has(.calculator-section) .result-card h3 {
    font-size: clamp(1.35rem, 1.65vw, 1.65rem) !important;
  }

  body:has(.calculator-section) .breakdown-item,
  body:has(.calculator-section) .timeline-item,
  body:has(.calculator-section) .total-price {
    gap: 18px !important;
    align-items: center !important;
  }

  body:has(.calculator-section) .breakdown-item span:last-child,
  body:has(.calculator-section) .timeline-item span:last-child,
  body:has(.calculator-section) .total-price span:last-child {
    text-align: right !important;
    white-space: nowrap !important;
  }

  body:has(.calculator-section) .radio-option,
  body:has(.calculator-section) .checkbox-option {
    min-height: 116px !important;
    gap: 20px !important;
  }
}

@media (min-width: 993px) and (max-width: 1180px) {
  body:has(.calculator-section) .calculator-section > .container,
  body:has(.calculator-section) .calculator-grid {
    width: min(100% - 56px, 980px) !important;
    max-width: 980px !important;
  }

  body:has(.calculator-section) .calculator-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  body:has(.calculator-section) .result-card {
    position: static !important;
  }
}

/* Ajustes finais: menu mobile com marca, compartilhar sem quebra e extras com mais respiro. */
@media (max-width: 1180px) {
  .nav-links .mobile-menu-brand {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 52px 1fr !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 18px 16px 20px !important;
    margin: 0 0 12px !important;
    border-radius: 22px !important;
    background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(8,145,178,.10)) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    box-shadow: 0 18px 40px rgba(0,0,0,.22) !important;
  }

  .nav-links .mobile-menu-brand img {
    width: 52px !important;
    height: 52px !important;
    object-fit: contain !important;
  }

  .nav-links .mobile-menu-brand strong,
  .nav-links .mobile-menu-brand span {
    display: block !important;
    text-align: left !important;
  }

  .nav-links .mobile-menu-brand strong {
    color: #fff !important;
    font-size: 1.15rem !important;
    line-height: 1.1 !important;
    margin-bottom: 4px !important;
  }

  .nav-links .mobile-menu-brand span {
    color: rgba(255,255,255,.72) !important;
    font-size: .82rem !important;
    line-height: 1.35 !important;
  }

  .nav-links .mobile-menu-brand a {
    grid-column: 1 / -1 !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 40px !important;
    margin-top: 8px !important;
    padding: 9px 14px !important;
    border-radius: 999px !important;
    background: #16c784 !important;
    color: #061923 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
  }
}

body:has(.calculator-section) .result-actions {
  align-items: stretch !important;
}

body:has(.calculator-section) .result-actions .btn,
body:has(.calculator-section) .result-actions button.btn {
  min-width: 0 !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  line-height: 1.15 !important;
  gap: 10px !important;
}

@media (min-width: 1181px) {
  body:has(.calculator-section) .result-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1.25fr) minmax(150px, .75fr) !important;
    gap: 14px !important;
  }

  body:has(.calculator-section) .result-actions .btn,
  body:has(.calculator-section) .result-actions button.btn {
    padding-left: 18px !important;
    padding-right: 18px !important;
    font-size: .92rem !important;
  }
}

body:has(.calculator-section) .checkbox-group {
  gap: clamp(20px, 2.2vw, 32px) !important;
}

@media (min-width: 769px) {
  body:has(.calculator-section) .checkbox-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 26px !important;
    row-gap: 30px !important;
  }

  body:has(.calculator-section) .feature-option.checkbox-option {
    padding: 26px 28px !important;
    gap: 22px !important;
    min-height: 166px !important;
  }

  body:has(.calculator-section) .feature-option .feature-info {
    display: grid !important;
    gap: 10px !important;
  }

  body:has(.calculator-section) .feature-option .feature-price {
    margin-top: 8px !important;
  }
}

@media (max-width: 768px) {
  body:has(.calculator-section) .result-actions .btn,
  body:has(.calculator-section) .result-actions button.btn {
    white-space: normal !important;
  }

  body:has(.calculator-section) .checkbox-group {
    row-gap: 18px !important;
  }
}

/* Regra final de estabilidade do menu mobile: vence display:none herdado das paginas antigas. */
@media (max-width: 1180px) {
  .navbar-container .nav-links,
  nav .nav-links,
  .nav-links {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    right: -430px !important;
    left: auto !important;
    width: min(88vw, 390px) !important;
    max-width: min(88vw, 390px) !important;
    height: 100dvh !important;
    padding: 96px 22px 30px !important;
    gap: 10px !important;
    background: linear-gradient(180deg, rgba(11, 19, 35, .99), rgba(12, 26, 47, .99)) !important;
    border-left: 1px solid rgba(255,255,255,.13) !important;
    box-shadow: -24px 0 60px rgba(0,0,0,.42) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow-y: auto !important;
    transform: translateX(0) !important;
    transition: left .24s ease, opacity .2s ease !important;
    z-index: 4200 !important;
  }

  .navbar-container .nav-links.active,
  .navbar-container .nav-links.open,
  nav .nav-links.active,
  nav .nav-links.open,
  .nav-links.active,
  .nav-links.open {
    display: flex !important;
    right: 0 !important;
    left: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .navbar-container .nav-links .nav-link,
  nav .nav-links .nav-link,
  .nav-links .nav-link {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 42px !important;
    padding: 11px 14px !important;
    border-radius: 14px !important;
    color: #f8fafc !important;
    background: rgba(255,255,255,.035) !important;
    text-align: left !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .navbar-container .nav-links .nav-link:hover,
  nav .nav-links .nav-link:hover,
  .nav-links .nav-link:hover {
    background: rgba(8,145,178,.18) !important;
    color: #ffffff !important;
  }
}



/* Remove o fio claro abaixo do topo fixo em mobile/tablet. */
@media (max-width: 1180px) {
  .navbar,
  .navbar.navbar--solid,
  .navbar.scrolled,
  header .navbar {
    border-bottom: 0 !important;
    outline: 0 !important;
    box-shadow: 0 12px 28px rgba(7, 16, 31, .24) !important;
    background: linear-gradient(135deg, rgba(17, 31, 53, .98), rgba(22, 36, 60, .98)) !important;
  }

  .navbar::before,
  .navbar::after,
  .navbar.navbar--solid::before,
  .navbar.navbar--solid::after {
    display: none !important;
    content: none !important;
  }

  .navbar-container,
  .navbar .container,
  .navbar > .container {
    border-bottom: 0 !important;
    box-shadow: none !important;
  }
}

/* Valores da calculadora com contraste mais alto e leitura imediata. */
body:has(.calculator-section) .price-tag,
body:has(.calculator-section) .feature-price,
body:has(.calculator-section) .design-badge,
body:has(.calculator-section) .deadline-time {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  min-width: 88px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  box-shadow: 0 10px 22px rgba(5, 150, 105, .24) !important;
  font-weight: 900 !important;
  letter-spacing: .01em !important;
  text-shadow: none !important;
}

body:has(.calculator-section) .site-type-option:has(input:checked) .price-tag,
body:has(.calculator-section) .feature-option:has(input:checked) .feature-price {
  background: linear-gradient(135deg, #f3f7fa 0%, #dce8f0 100%) !important;
  color: #111827 !important;
  box-shadow: 0 12px 26px rgba(245, 158, 11, .26) !important;
}

body:has(.calculator-section) #resultBasePrice,
body:has(.calculator-section) #resultExtras,
body:has(.calculator-section) #resultDesign,
body:has(.calculator-section) #resultDeadline {
  color: #047857 !important;
  font-weight: 900 !important;
}

body:has(.calculator-section) .total-price span:last-child,
body:has(.calculator-section) #totalPrice {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.18) !important;
}

@media (max-width: 480px) {
  body:has(.calculator-section) .price-tag,
  body:has(.calculator-section) .feature-price,
  body:has(.calculator-section) .design-badge,
  body:has(.calculator-section) .deadline-time {
    min-width: 78px !important;
    padding: 7px 12px !important;
    font-size: .78rem !important;
  }
}

/* O card extra do menu deve existir apenas dentro do hamburger mobile/tablet. */
.nav-links .mobile-menu-brand {
  display: none !important;
}

@media (max-width: 1180px) {
  .nav-links .mobile-menu-brand {
    display: grid !important;
  }
}

/* Notebook pequeno / MacBook 1280x800: desktop compacto, sem vazamento do card mobile. */
@media (min-width: 1181px) and (max-width: 1320px) and (max-height: 860px) {
  .nav-links .mobile-menu-brand {
    display: none !important;
  }

  .navbar,
  .navbar.navbar--solid {
    min-height: 72px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .navbar-container {
    width: min(100% - 72px, 1040px) !important;
    max-width: 1040px !important;
    min-height: 56px !important;
    gap: 22px !important;
  }

  .navbar-container .logo,
  .logo {
    gap: 12px !important;
    margin-right: 18px !important;
  }

  .navbar-container .logo .logo-icon,
  .navbar-container .logo img.logo-icon,
  .navbar-container .logo img[src$="logo2-nova.png"],
  .logo .logo-icon,
  .logo img.logo-icon,
  .logo img[src$="logo2-nova.png"] {
    width: 54px !important;
    height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
  }

  .navbar-container .logo span,
  .logo span {
    font-size: 1.45rem !important;
    line-height: 1 !important;
  }

  .navbar-container .nav-links {
    gap: 15px !important;
  }

  .navbar-container .nav-link,
  .nav-link {
    font-size: .82rem !important;
    padding: 8px 0 !important;
    white-space: nowrap !important;
  }

  .header,
  .hero {
    min-height: calc(100vh - 72px) !important;
    padding-top: 86px !important;
    padding-bottom: 56px !important;
  }

  .header-content,
  .hero-content {
    width: min(100% - 112px, 940px) !important;
    max-width: 940px !important;
    grid-template-columns: minmax(0, .96fr) minmax(330px, .86fr) !important;
    gap: clamp(36px, 5vw, 70px) !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .header-text h1,
  .hero-title {
    font-size: clamp(2.45rem, 4vw, 3.55rem) !important;
    line-height: .98 !important;
    max-width: 520px !important;
    margin-bottom: 22px !important;
  }

  .header-text p,
  .hero-subtitle {
    font-size: .98rem !important;
    line-height: 1.5 !important;
    max-width: 500px !important;
    margin-bottom: 30px !important;
  }

  .header-buttons {
    gap: 16px !important;
  }

  .header-buttons .btn,
  .hero-buttons .btn {
    min-height: 50px !important;
    padding: 13px 22px !important;
    font-size: .92rem !important;
  }

  .header-visual,
  .hero-visual {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .mockup,
  .browser-mockup,
  .mockup-container,
  .website-mockup {
    max-width: 365px !important;
    transform: none !important;
  }

  .whatsapp-float,
  .whatsapp-button,
  .floating-whatsapp {
    right: 28px !important;
    bottom: 24px !important;
  }
}

/* Cobertura total do topo/fundo: evita faixas pretas ou areas descobertas em qualquer responsividade. */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  min-width: 100% !important;
  min-height: 100% !important;
  background: linear-gradient(135deg, #111827 0%, #0f2236 100%) !important;
  background-color: #111827 !important;
  overflow-x: hidden !important;
}

body::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 auto auto 0 !important;
  width: 100vw !important;
  height: max(18px, env(safe-area-inset-top, 0px)) !important;
  background: linear-gradient(135deg, #111827 0%, #0f2236 100%) !important;
  z-index: 3990 !important;
  pointer-events: none !important;
}

.navbar,
.navbar.navbar--solid,
.navbar.scrolled {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(135deg, rgba(17, 31, 53, .99), rgba(22, 36, 60, .99)) !important;
  background-color: #111f35 !important;
  z-index: 4100 !important;
}

.navbar::before,
.navbar.navbar--solid::before,
.navbar.scrolled::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: -24px !important;
  height: 24px !important;
  display: block !important;
  background: inherit !important;
  pointer-events: none !important;
}

.main-content,
.header,
.hero,
.calculator-header,
section:first-of-type {
  background-clip: border-box !important;
}

/* Camada de fundo atras da navbar para cobrir tambem cantos/gutters de simuladores responsivos. */
body::before {
  height: 96px !important;
  background: linear-gradient(135deg, rgba(17, 31, 53, .99), rgba(22, 36, 60, .99)) !important;
  z-index: 4090 !important;
}

/* Honest portfolio/projects split: real products vs demonstrative models */
.bervion-real-projects .project-card {
  min-height: 100%;
  border: 1px solid rgba(15, 110, 163, 0.18);
  background: linear-gradient(145deg, #ffffff 0%, #f6fbff 100%);
}

.bervion-real-projects .project-content {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 16px;
}

.project-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(7, 128, 159, 0.1);
  color: #075f82;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.project-actions .cta-enhanced,
.project-actions .btn {
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  white-space: normal;
}

.portfolio .section-description {
  max-width: 860px;
}

.portfolio .portfolio-overlay a[href*="solicitacao"] {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .project-actions {
    flex-direction: column;
  }

  .project-actions .cta-enhanced,
  .project-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .portfolio .section-description,
  .section-description {
    max-width: 100%;
  }
}

/* Models gallery */
.models-page {
  padding-top: 140px;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2vw, 28px);
  align-items: stretch;
}

.model-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(15, 110, 163, 0.16);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(7, 43, 74, 0.08);
}

.model-preview {
  position: relative;
  min-height: 190px;
  padding: 54px 24px 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(39, 186, 196, 0.22), transparent 32%),
    linear-gradient(135deg, #0d2845 0%, #0f6ea3 100%);
  color: #fff;
}

.model-browser {
  position: absolute;
  top: 18px;
  left: 22px;
  display: inline-flex;
  gap: 7px;
}

.model-browser span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  opacity: 0.85;
}

.model-browser span:nth-child(1) { background: #ff5f57; }
.model-browser span:nth-child(2) { background: #ffbd2e; }
.model-browser span:nth-child(3) { background: #28c840; }

.model-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.model-preview h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.model-preview p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.model-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.model-content h3 {
  margin: 0;
  color: #0c1f35;
  font-size: 1.25rem;
}

.model-content p {
  margin: 0;
  color: #516174;
  line-height: 1.65;
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-tags span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15, 110, 163, 0.1);
  color: #075f82;
  font-size: 0.78rem;
  font-weight: 800;
}

.model-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.model-actions .btn {
  min-height: 44px;
  border-radius: 999px;
  padding: 11px 16px;
}

@media (max-width: 640px) {
  .models-page {
    padding-top: 112px;
  }

  .models-grid {
    grid-template-columns: 1fr;
  }

  .model-actions {
    flex-direction: column;
  }

  .model-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Models page readability */
.models-page .section-header {
  margin-bottom: clamp(28px, 5vw, 52px);
}

.models-page .section-title,
.models-page .section-title * {
  color: #0d2238 !important;
  text-shadow: none !important;
}

.models-page .section-subtitle {
  color: #0f6ea3 !important;
}

.models-page .section-description {
  color: #24364a !important;
}

@media (max-width: 640px) {
  .models-page .section-title {
    font-size: clamp(2rem, 9vw, 2.65rem) !important;
    line-height: 1.1 !important;
  }
}

@media (max-width: 640px) {
  .models-page {
    padding-top: 154px !important;
  }
}

/* Modelos: navbar alinhada com visual do site principal */
@media (min-width: 1181px) {
  .modelos-navbar .navbar-container {
    width: min(100% - 120px, 1280px) !important;
    max-width: 1280px !important;
    justify-content: flex-start !important;
    gap: clamp(44px, 6vw, 96px) !important;
  }

  .modelos-navbar .logo {
    margin-right: 0 !important;
    flex: 0 0 auto !important;
  }

  .modelos-navbar .nav-links {
    flex: 0 1 auto !important;
    margin-left: 0 !important;
    justify-content: flex-start !important;
    gap: clamp(20px, 1.5vw, 28px) !important;
  }

  .modelos-navbar .nav-link {
    font-size: 1rem !important;
    font-weight: 800 !important;
  }
}

@media (min-width: 1181px) and (max-width: 1360px) {
  .modelos-navbar .navbar-container {
    width: min(100% - 72px, 1160px) !important;
    gap: 34px !important;
  }

  .modelos-navbar .nav-links {
    gap: 18px !important;
  }

  .modelos-navbar .nav-link {
    font-size: .94rem !important;
  }
}

/* Valores e totais da calculadora com contraste melhor em todo o site. */
body:has(.calculator-section) .price-tag,
body:has(.calculator-section) .feature-price,
body:has(.calculator-section) .design-badge,
body:has(.calculator-section) .deadline-time {
  color: #082033 !important;
  background: linear-gradient(135deg, #f3f7fa 0%, #dce8f0 100%) !important;
  border: 1px solid rgba(250, 204, 21, 0.65) !important;
  box-shadow: 0 10px 24px rgba(250, 204, 21, 0.24) !important;
  text-shadow: none !important;
  font-weight: 900 !important;
}

body:has(.calculator-section) .site-type-option:has(input:checked) .price-tag,
body:has(.calculator-section) .feature-option:has(input:checked) .feature-price {
  color: #061827 !important;
  background: linear-gradient(135deg, #f5f8fb 0%, #d7e5ef 100%) !important;
  box-shadow: 0 12px 28px rgba(103, 232, 249, 0.24) !important;
}

body:has(.calculator-section) #resultBasePrice,
body:has(.calculator-section) #resultExtras,
body:has(.calculator-section) #resultDesign,
body:has(.calculator-section) #resultDeadline,
body:has(.calculator-section) .breakdown-item span:last-child,
body:has(.calculator-section) .timeline-item span:last-child {
  color: #5f7187 !important;
  text-shadow: 0 2px 12px rgba(250, 204, 21, 0.20) !important;
  font-weight: 950 !important;
}

body:has(.calculator-section) .total-price span:last-child,
body:has(.calculator-section) #totalPrice {
  color: #edf4fa !important;
  text-shadow: 0 2px 16px rgba(250, 204, 21, 0.32) !important;
  font-weight: 950 !important;
}

/* Unified Bervion models page */
.modelos-shell {
  --models-ink: #0d1b2d;
  --models-muted: #4c6078;
  --models-panel: #ffffff;
  background: #101c2d !important;
  color: #ffffff;
}

.modelos-shell .navbar,
.modelos-shell .navbar.navbar--solid,
.modelos-shell .navbar.scrolled {
  background: #12223a !important;
  box-shadow: 0 14px 34px rgba(2, 8, 23, .24) !important;
}

.modelos-shell .nav-link.active {
  color: #38c7df !important;
}

.models-page--unified {
  padding-top: 0 !important;
  background: #f6fbff !important;
  color: var(--models-ink) !important;
  overflow: hidden;
}

.models-hero {
  min-height: auto;
  padding: clamp(128px, 11vw, 164px) 0 clamp(68px, 8vw, 108px);
  background:
    radial-gradient(circle at 78% 42%, rgba(11, 173, 214, .2), transparent 32%),
    radial-gradient(circle at 30% 45%, rgba(38, 89, 150, .22), transparent 36%),
    linear-gradient(135deg, #101824 0%, #13243a 58%, #0f3347 100%);
  color: #ffffff;
}

.models-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}

.models-hero__copy {
  max-width: 760px;
}

.models-hero__copy h1 {
  color: #ffffff !important;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: .98;
  letter-spacing: -.06em;
  margin: 18px 0 24px;
  text-shadow: 0 22px 46px rgba(0, 0, 0, .28);
}

.models-hero__copy p {
  max-width: 660px;
  color: rgba(255, 255, 255, .86) !important;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.7;
}

.models-hero__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 34px;
  padding: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)),
    radial-gradient(circle at 90% 10%, rgba(56, 199, 223, .18), transparent 36%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
}

.models-hero__panel::after {
  content: "";
  position: absolute;
  inset: auto -28px -42px auto;
  width: 150px;
  height: 150px;
  border-radius: 42px;
  background: rgba(56, 199, 223, .16);
  transform: rotate(18deg);
}

.models-hero__logo {
  width: clamp(86px, 9vw, 132px);
  height: auto;
  display: block;
  margin-bottom: 22px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .26));
}

.models-hero__panel p {
  color: #ffffff !important;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 950;
  margin: 0 0 12px;
}

.models-hero__panel strong {
  display: block;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
}

.models-catalog {
  padding: clamp(58px, 7vw, 96px) 0 clamp(72px, 8vw, 120px);
  background:
    radial-gradient(circle at 6% 12%, rgba(56, 199, 223, .1), transparent 26%),
    radial-gradient(circle at 92% 18%, rgba(236, 186, 49, .08), transparent 24%),
    linear-gradient(180deg, #f6fbff 0%, #ffffff 100%);
}

.models-catalog__header {
  max-width: 860px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.models-catalog,
#models-title {
  scroll-margin-top: 118px;
}

.models-catalog__header .section-title,
.models-catalog__header .section-title * {
  color: #0d2238 !important;
  text-shadow: none !important;
}

.models-catalog__header .section-description {
  color: #30445d !important;
}

.models-page--unified .models-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  align-items: stretch;
}

.models-page--unified .model-card {
  --segment-bg: #12385a;
  --segment-bg-2: #0c8bab;
  --segment-accent: #38c7df;
  --segment-accent-2: #f3c73b;
  --segment-ink: #071a2f;
  --segment-soft: #e8f4fb;
  --segment-radius: 26px;
  --segment-shadow: rgba(14, 35, 58, .12);
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid color-mix(in srgb, var(--segment-accent) 22%, #d8e4ef);
  border-radius: var(--segment-radius);
  background: #ffffff;
  box-shadow: 0 24px 70px var(--segment-shadow);
  isolation: isolate;
  transform: translateY(0);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.models-page--unified .model-card.wide {
  grid-column: span 3;
}

.models-page--unified .model-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--segment-accent) 58%, #ffffff);
  box-shadow: 0 32px 88px color-mix(in srgb, var(--segment-shadow) 88%, var(--segment-accent));
}

.models-page--unified .model-preview {
  position: relative;
  min-height: 238px;
  padding: 76px 28px 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--segment-accent) 38%, transparent), transparent 34%),
    linear-gradient(135deg, var(--segment-bg) 0%, var(--segment-bg-2) 100%);
  color: #ffffff;
}

.models-page--unified .model-preview::before,
.models-page--unified .model-preview::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.models-page--unified .model-preview::before {
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 56px),
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, .28), transparent 3px);
  background-size: 72px 72px, 38px 38px;
}

.models-page--unified .model-preview::after {
  right: -48px;
  bottom: -64px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 44px;
  transform: rotate(18deg);
  background: rgba(255, 255, 255, .08);
}

.models-page--unified .model-orbit {
  position: absolute;
  top: 18px;
  left: 22px;
  width: 70px;
  height: 70px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.models-page--unified .model-orbit::before,
.models-page--unified .model-orbit::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--segment-accent-2);
  box-shadow: 18px 0 0 var(--segment-accent), 36px 0 0 rgba(255, 255, 255, .6);
  width: 10px;
  height: 10px;
  left: 13px;
  top: 13px;
}

.models-page--unified .model-orbit::after {
  width: 36px;
  height: 7px;
  top: auto;
  bottom: 15px;
  box-shadow: none;
  background: rgba(255, 255, 255, .72);
}

.models-page--unified .model-icon {
  position: absolute;
  top: 34px;
  left: 39px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 17px;
  background: rgba(255, 255, 255, .92);
  color: var(--segment-bg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
}

.models-page--unified .model-icon i {
  font-size: 1.15rem;
}

.models-page--unified .model-badge {
  position: absolute;
  top: 20px;
  right: 18px;
  max-width: calc(100% - 122px);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, .16);
  color: #ffffff;
  font-size: .72rem;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.models-page--unified .model-preview h3 {
  position: relative;
  margin: 0 0 10px;
  color: #ffffff !important;
  font-size: clamp(1.55rem, 2.25vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.models-page--unified .model-preview p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, .84) !important;
  font-weight: 850;
}

.models-page--unified .model-visual-lines {
  position: absolute;
  right: 24px;
  bottom: 28px;
  display: grid;
  gap: 8px;
  width: min(130px, 34%);
  opacity: .86;
}

.models-page--unified .model-visual-lines span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
}

.models-page--unified .model-visual-lines span:nth-child(2) {
  width: 72%;
  margin-left: auto;
  background: color-mix(in srgb, var(--segment-accent-2) 70%, #ffffff);
}

.models-page--unified .model-visual-lines span:nth-child(3) {
  width: 48%;
  margin-left: auto;
}

.models-page--unified .model-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 30px);
}

.models-page--unified .model-category {
  margin: 0 0 8px;
  color: color-mix(in srgb, var(--segment-bg-2) 78%, #111827) !important;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.models-page--unified .model-content h2 {
  margin: 0 0 12px;
  color: var(--segment-ink) !important;
  font-size: 1.35rem;
  line-height: 1.18;
}

.models-page--unified .model-content p:not(.model-category) {
  color: #41566e !important;
  line-height: 1.65;
}

.models-page--unified .model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.models-page--unified .model-tags span {
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--segment-soft);
  color: color-mix(in srgb, var(--segment-bg) 82%, #0f172a);
  font-size: .74rem;
  font-weight: 950;
}

.models-page--unified .model-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.models-page--unified .model-actions .btn {
  min-height: 48px;
  border-radius: 999px;
  padding: 13px 19px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--segment-bg), var(--segment-bg-2)) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--segment-bg-2) 28%, transparent) !important;
}

.models-page--unified .model-actions .btn:hover {
  filter: saturate(1.08) brightness(1.04);
}

/* Segment identities: each card should feel like its market before reading it. */
.models-page--unified .model-card--barber {
  --segment-bg: #111111;
  --segment-bg-2: #5b4630;
  --segment-accent: #d7a84d;
  --segment-accent-2: #f3d28a;
  --segment-soft: #f6eddc;
  --segment-radius: 18px;
  --segment-shadow: rgba(15, 12, 10, .18);
}
.models-page--unified .model-card--barber .model-preview::before {
  background-image: linear-gradient(135deg, rgba(215, 168, 77, .18) 0 2px, transparent 2px 18px);
  background-size: 32px 32px;
}
.models-page--unified .model-card--barber .model-actions .btn { border-radius: 14px !important; text-transform: uppercase; letter-spacing: .05em; }

.models-page--unified .model-card--law,
.models-page--unified .model-card--law-alt {
  --segment-bg: #071326;
  --segment-bg-2: #173760;
  --segment-accent: #c9a64f;
  --segment-accent-2: #f4df9a;
  --segment-soft: #f3ead0;
  --segment-radius: 24px;
  --segment-shadow: rgba(9, 20, 38, .18);
}
.models-page--unified .model-card--law-alt { --segment-bg-2: #25324f; }
.models-page--unified .model-card--law .model-preview h3,
.models-page--unified .model-card--law-alt .model-preview h3 { letter-spacing: -.025em; }
.models-page--unified .model-card--law .model-actions .btn,
.models-page--unified .model-card--law-alt .model-actions .btn { border-radius: 8px !important; }

.models-page--unified .model-card--beauty {
  --segment-bg: #7a2f53;
  --segment-bg-2: #e7a6bd;
  --segment-accent: #d8a85b;
  --segment-accent-2: #fff0d2;
  --segment-soft: #fff0f5;
  --segment-radius: 34px;
  --segment-shadow: rgba(146, 70, 101, .18);
}
.models-page--unified .model-card--beauty .model-preview::before {
  background-image: radial-gradient(circle at 18% 24%, rgba(255,255,255,.32), transparent 3px), radial-gradient(circle at 72% 40%, rgba(255,240,210,.42), transparent 4px);
  background-size: 46px 46px, 72px 72px;
}

.models-page--unified .model-card--health {
  --segment-bg: #eaf9ff;
  --segment-bg-2: #2da9d7;
  --segment-accent: #6ee7f9;
  --segment-accent-2: #ffffff;
  --segment-soft: #e8f9ff;
  --segment-ink: #0c2b46;
  --segment-radius: 30px;
  --segment-shadow: rgba(32, 147, 189, .16);
}
.models-page--unified .model-card--health .model-preview h3,
.models-page--unified .model-card--health .model-preview p { color: #07324f !important; text-shadow: none; }
.models-page--unified .model-card--health .model-badge { background: rgba(255,255,255,.68); color: #076083; }

.models-page--unified .model-card--nutrition {
  --segment-bg: #f4fbef;
  --segment-bg-2: #4d9f62;
  --segment-accent: #86c06a;
  --segment-accent-2: #f0d58a;
  --segment-soft: #edf8e7;
  --segment-ink: #15351f;
  --segment-radius: 34px;
  --segment-shadow: rgba(66, 128, 80, .15);
}
.models-page--unified .model-card--nutrition .model-preview h3,
.models-page--unified .model-card--nutrition .model-preview p { color: #15351f !important; text-shadow: none; }
.models-page--unified .model-card--nutrition .model-badge { background: rgba(255,255,255,.72); color: #27683a; }
.models-page--unified .model-card--nutrition .model-preview::after { border-radius: 999px 999px 18px 999px; transform: rotate(-26deg); }

.models-page--unified .model-card--coffee {
  --segment-bg: #2b170d;
  --segment-bg-2: #9a6130;
  --segment-accent: #c89155;
  --segment-accent-2: #f4dcc0;
  --segment-soft: #f6eadf;
  --segment-radius: 22px;
  --segment-shadow: rgba(70, 38, 20, .18);
}
.models-page--unified .model-card--coffee .model-preview::before {
  background-image: radial-gradient(circle at 20% 20%, rgba(244,220,192,.32), transparent 4px), linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 54px);
}

.models-page--unified .model-card--food {
  --segment-bg: #5b1111;
  --segment-bg-2: #ef4d22;
  --segment-accent: #ffd447;
  --segment-accent-2: #ffef99;
  --segment-soft: #fff1d0;
  --segment-radius: 24px;
  --segment-shadow: rgba(207, 68, 30, .18);
}
.models-page--unified .model-card--food .model-preview h3 { font-size: clamp(1.85rem, 2.7vw, 2.75rem); }
.models-page--unified .model-card--food .model-actions .btn { transform: rotate(-1deg); }

.models-page--unified .model-card--fashion {
  --segment-bg: #17151d;
  --segment-bg-2: #d9468f;
  --segment-accent: #f7c9db;
  --segment-accent-2: #ffffff;
  --segment-soft: #fde8f2;
  --segment-radius: 30px 8px 30px 8px;
  --segment-shadow: rgba(174, 52, 112, .18);
}
.models-page--unified .model-card--fashion .model-preview::after { width: 220px; height: 120px; border-radius: 999px; transform: rotate(-12deg); }

.models-page--unified .model-card--auto {
  --segment-bg: #121826;
  --segment-bg-2: #c2262e;
  --segment-accent: #cbd5e1;
  --segment-accent-2: #f43f46;
  --segment-soft: #eef2f7;
  --segment-radius: 18px;
  --segment-shadow: rgba(20, 24, 36, .2);
}
.models-page--unified .model-card--auto .model-preview::before {
  background-image: linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,.22) 38% 44%, transparent 44% 100%);
  background-size: 96px 96px;
}
.models-page--unified .model-card--auto .model-actions .btn { border-radius: 12px !important; }

.models-page--unified .model-card--travel {
  --segment-bg: #0b5f8b;
  --segment-bg-2: #4ac3da;
  --segment-accent: #f8cc73;
  --segment-accent-2: #fff3c7;
  --segment-soft: #e7f8fb;
  --segment-radius: 32px;
  --segment-shadow: rgba(48, 153, 187, .17);
}
.models-page--unified .model-card--travel .model-preview::after { border-radius: 999px; width: 210px; height: 96px; transform: rotate(-7deg); }

.models-page--unified .model-card--glass {
  --segment-bg: #073b45;
  --segment-bg-2: #6bd2d5;
  --segment-accent: #c5ffff;
  --segment-accent-2: #ffffff;
  --segment-soft: #e6fbfb;
  --segment-radius: 20px;
  --segment-shadow: rgba(34, 166, 174, .16);
}
.models-page--unified .model-card--glass .model-preview::after { backdrop-filter: blur(10px); background: rgba(255,255,255,.16); }

.models-page--unified .model-card--ads,
.models-page--unified .model-card--business {
  --segment-bg: #172554;
  --segment-bg-2: #2563eb;
  --segment-accent: #67e8f9;
  --segment-accent-2: #facc15;
  --segment-soft: #e8f1ff;
  --segment-radius: 24px;
  --segment-shadow: rgba(37, 99, 235, .16);
}
.models-page--unified .model-card--ads { --segment-bg: #33105f; --segment-bg-2: #7c3aed; --segment-accent: #f0abfc; --segment-soft: #f4e9ff; }

.models-page--unified .model-card--landing,
.models-page--unified .model-card--landing-alt {
  --segment-bg: #0f365e;
  --segment-bg-2: #0ea5e9;
  --segment-accent: #facc15;
  --segment-accent-2: #ffffff;
  --segment-soft: #e6f5ff;
  --segment-radius: 28px;
  --segment-shadow: rgba(14, 117, 170, .16);
}
.models-page--unified .model-card--landing-alt { --segment-bg: #17536c; --segment-bg-2: #1cb7a6; }

.models-page--unified .model-card--institutional {
  --segment-bg: #0e2d4f;
  --segment-bg-2: #2f78b7;
  --segment-accent: #dbeafe;
  --segment-accent-2: #38c7df;
  --segment-soft: #eaf4ff;
  --segment-radius: 28px;
  --segment-shadow: rgba(28, 83, 132, .15);
}

@media (max-width: 1180px) {
  .models-page--unified .models-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .models-page--unified .model-card,
  .models-page--unified .model-card.wide {
    grid-column: span 1;
  }

  .models-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
  }
}

@media (max-width: 820px) {
  .models-hero {
    padding-top: 128px;
  }

  .models-hero__grid,
  .models-page--unified .models-grid {
    grid-template-columns: 1fr;
  }

  .models-hero__panel {
    display: none;
  }

  .models-hero__copy h1 {
    font-size: clamp(2.2rem, 10.5vw, 3.25rem);
  }

  .models-page--unified .model-preview {
    min-height: 220px;
  }

  .models-page--unified .model-actions,
  .models-page--unified .model-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .models-hero {
    padding-top: 116px;
  }

  .models-page--unified .model-preview {
    padding: 72px 22px 26px;
  }

  .models-page--unified .model-content {
    padding: 22px;
  }

  .models-page--unified .model-badge {
    max-width: 52%;
    white-space: normal;
  }
}


/* Integrated models catalog: keep the Bervion page layout, only enrich the previews. */
.modelos-integrated-page {
  background: #0f172a !important;
}

.modelos-integrated-page .navbar {
  background: #12223a !important;
}

.modelos-integrated-page .nav-link.active {
  color: #38c7df !important;
}

.bervion-models-section {
  padding-top: clamp(128px, 11vw, 168px) !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 199, 223, .09), transparent 28%),
    linear-gradient(180deg, #f6fbff 0%, #ffffff 100%) !important;
}

.bervion-models-section .section-header {
  max-width: 880px !important;
  margin-inline: auto !important;
}

.bervion-models-section .section-title,
.bervion-models-section .section-title * {
  color: #0d2238 !important;
  text-shadow: none !important;
}

.bervion-models-section .section-description {
  color: #30445d !important;
}

.bervion-models-grid {
  align-items: stretch !important;
}

.bervion-model-card {
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid #dbe6f0 !important;
  border-radius: 26px !important;
  overflow: hidden !important;
  box-shadow: 0 22px 62px rgba(15, 42, 72, .09) !important;
}

.bervion-model-card .portfolio-content {
  display: flex !important;
  flex: 1 !important;
  flex-direction: column !important;
  min-height: 315px !important;
}

.model-thumb {
  --thumb-a: #12385f;
  --thumb-b: #0d8ab2;
  --thumb-c: #f3c73b;
  position: relative !important;
  display: flex !important;
  min-height: 230px !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  gap: 9px !important;
  padding: 26px !important;
  background:
    radial-gradient(circle at 80% 18%, color-mix(in srgb, var(--thumb-c) 32%, transparent), transparent 30%),
    linear-gradient(135deg, var(--thumb-a), var(--thumb-b)) !important;
  color: #ffffff !important;
  overflow: hidden !important;
}

.model-thumb::before,
.model-thumb::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.model-thumb::before {
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
}

.model-thumb::after {
  right: -48px;
  bottom: -62px;
  width: 178px;
  height: 178px;
  border-radius: 46px;
  background: rgba(255, 255, 255, .12);
  transform: rotate(18deg);
}

.model-thumb-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  color: var(--thumb-a);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}

.model-thumb-icon i {
  display: inline-grid !important;
  place-items: center !important;
  color: #0f365e !important;
  font-size: 1.45rem;
  line-height: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.model-thumb span,
.model-thumb strong,
.model-thumb small {
  position: relative;
  z-index: 1;
}

.model-thumb span {
  display: inline-flex;
  max-width: 100%;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .17);
  color: #ffffff;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.model-thumb strong {
  max-width: 92%;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.08;
}

.model-thumb small {
  color: rgba(255, 255, 255, .82);
  font-weight: 850;
}

.bervion-model-card .portfolio-content p {
  color: #455a73 !important;
  line-height: 1.62 !important;
}

.bervion-model-card .portfolio-tags {
  min-height: 74px !important;
  align-content: flex-start !important;
}

.bervion-model-card .model-card-link {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  border-radius: 999px;
  background: #294f7d;
  color: #ffffff !important;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(18, 54, 94, .16);
}

.bervion-model-card--barbearia .model-thumb { --thumb-a: #101010; --thumb-b: #5a4027; --thumb-c: #d8aa52; }
.bervion-model-card--advocacia .model-thumb,
.bervion-model-card--lexpro-advocacia .model-thumb { --thumb-a: #071326; --thumb-b: #173760; --thumb-c: #c7a24b; }
.bervion-model-card--beleza-estetica .model-thumb { --thumb-a: #7a2f53; --thumb-b: #e7a6bd; --thumb-c: #fff0d2; }
.bervion-model-card--clinica-medicina .model-thumb { --thumb-a: #eaf9ff; --thumb-b: #2da9d7; --thumb-c: #ffffff; color: #07324f !important; }
.bervion-model-card--clinica-medicina .model-thumb strong,
.bervion-model-card--clinica-medicina .model-thumb small { color: #07324f !important; }
.bervion-model-card--clinica-medicina .model-thumb span { background: rgba(255,255,255,.72); color: #076083; }
.bervion-model-card--nutricionista .model-thumb { --thumb-a: #f4fbef; --thumb-b: #4d9f62; --thumb-c: #f0d58a; color: #15351f !important; }
.bervion-model-card--nutricionista .model-thumb strong,
.bervion-model-card--nutricionista .model-thumb small { color: #15351f !important; }
.bervion-model-card--nutricionista .model-thumb span { background: rgba(255,255,255,.72); color: #27683a; }
.bervion-model-card--cafeteria .model-thumb { --thumb-a: #2b170d; --thumb-b: #9a6130; --thumb-c: #f4dcc0; }
.bervion-model-card--comida-delivery .model-thumb { --thumb-a: #5b1111; --thumb-b: #ef4d22; --thumb-c: #ffd447; }
.bervion-model-card--loja-roupas .model-thumb { --thumb-a: #17151d; --thumb-b: #d9468f; --thumb-c: #f7c9db; }
.bervion-model-card--oficina-mecanica .model-thumb { --thumb-a: #121826; --thumb-b: #c2262e; --thumb-c: #cbd5e1; }
.bervion-model-card--viagens .model-thumb { --thumb-a: #0b5f8b; --thumb-b: #4ac3da; --thumb-c: #f8cc73; }
.bervion-model-card--vidracaria .model-thumb { --thumb-a: #073b45; --thumb-b: #6bd2d5; --thumb-c: #ffffff; }
.bervion-model-card--anuncios .model-thumb { --thumb-a: #33105f; --thumb-b: #7c3aed; --thumb-c: #f0abfc; }
.bervion-model-card--landing-page-avancada .model-thumb,
.bervion-model-card--landing-page-original .model-thumb { --thumb-a: #0f365e; --thumb-b: #0ea5e9; --thumb-c: #facc15; }

.models-integrated-cta {
  max-width: 860px;
  margin: clamp(38px, 6vw, 70px) auto 0;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid #dbe6f0;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffffff, #eff8ff);
  text-align: center;
  box-shadow: 0 22px 62px rgba(15, 42, 72, .08);
}

.models-integrated-cta h2 {
  margin: 0 0 10px;
  color: #0d2238 !important;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.models-integrated-cta p {
  max-width: 660px;
  margin: 0 auto 24px;
  color: #455a73 !important;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .bervion-models-section {
    padding-top: 210px !important;
  }

  .model-thumb {
    min-height: 205px !important;
    padding: 22px !important;
  }

  .bervion-model-card .portfolio-content {
    min-height: auto !important;
  }
}


/* Missing portfolio styles for standalone modelos.html page. */
.modelos-integrated-page .portfolio-filter {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 12px !important;
  margin: 0 auto clamp(34px, 5vw, 56px) !important;
}

.modelos-integrated-page .filter-btn {
  appearance: none !important;
  border: 1px solid #d7e5ef !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #29466c !important;
  padding: 11px 18px !important;
  font: 900 .92rem/1 'Inter', sans-serif !important;
  cursor: pointer !important;
  box-shadow: 0 10px 24px rgba(15, 42, 72, .06) !important;
  transition: transform .22s ease, background .22s ease, color .22s ease !important;
}

.modelos-integrated-page .filter-btn:hover,
.modelos-integrated-page .filter-btn.active {
  transform: translateY(-2px) !important;
  background: #0ea5c9 !important;
  border-color: #0ea5c9 !important;
  color: #ffffff !important;
}

.modelos-integrated-page .portfolio-grid,
.bervion-models-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(22px, 2.8vw, 34px) !important;
}

.modelos-integrated-page .portfolio-item {
  min-width: 0 !important;
}

.modelos-integrated-page .portfolio-item.is-filtered-out,
.modelos-integrated-page .portfolio-item[hidden] {
  display: none !important;
}

.modelos-integrated-page .portfolio-content {
  padding: 26px !important;
  background: #ffffff !important;
}

.modelos-integrated-page .portfolio-content h3 {
  margin: 0 0 12px !important;
  color: #071a2f !important;
  font-size: 1.32rem !important;
  line-height: 1.18 !important;
}

.modelos-integrated-page .portfolio-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 18px 0 22px !important;
}

.modelos-integrated-page .portfolio-tag {
  display: inline-flex !important;
  border-radius: 999px !important;
  padding: 7px 11px !important;
  background: #e8f4fb !important;
  color: #075985 !important;
  font-size: .74rem !important;
  font-weight: 950 !important;
}

.modelos-integrated-page .portfolio-overlay {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  background: rgba(7, 26, 47, .34) !important;
  opacity: 0 !important;
  padding: 18px !important;
  transition: opacity .24s ease !important;
}

.modelos-integrated-page .model-thumb:hover .portfolio-overlay {
  opacity: 1 !important;
}

.modelos-integrated-page .view-demo {
  display: grid !important;
  width: 54px !important;
  height: 54px !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #0f365e !important;
  box-shadow: 0 18px 36px rgba(0,0,0,.2) !important;
}

/* Bervion modelos link fix: keep demo actions clickable above card overlays. */
.modelos-integrated-page .model-thumb,
.modelos-integrated-page .portfolio-item,
.modelos-integrated-page .bervion-model-card {
  position: relative !important;
}

.modelos-integrated-page .portfolio-overlay {
  pointer-events: none !important;
  z-index: 6 !important;
}

.modelos-integrated-page .view-demo,
.modelos-integrated-page .model-card-link {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 12 !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}

@media (max-width: 1050px) {
  .modelos-integrated-page .portfolio-grid,
  .bervion-models-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .modelos-integrated-page .portfolio-grid,
  .bervion-models-grid {
    grid-template-columns: 1fr !important;
  }

  .modelos-integrated-page .portfolio-filter {
    justify-content: center !important;
    overflow-x: visible !important;
    flex-wrap: wrap !important;
    padding-bottom: 8px !important;
  }

  .modelos-integrated-page .filter-btn {
    flex: 0 1 auto !important;
    max-width: 100% !important;
  }
}

/* Project cards: keep real-product actions aligned and easy to read */
.bervion-real-projects {
  align-items: stretch !important;
}

.bervion-real-projects .project-card {
  display: flex !important;
}

.bervion-real-projects .project-content {
  width: 100% !important;
  min-height: 100% !important;
  padding: clamp(24px, 2.4vw, 34px) !important;
}

.bervion-real-projects .project-desc {
  line-height: 1.55 !important;
}

.bervion-real-projects .tag-list {
  min-height: 78px !important;
  align-content: flex-start !important;
}

.bervion-real-projects .project-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 100% !important;
  gap: 12px !important;
  margin-top: auto !important;
  padding-top: 8px !important;
}

.bervion-real-projects .project-actions .cta-enhanced,
.bervion-real-projects .project-actions .btn {
  display: inline-flex !important;
  width: 100% !important;
  min-height: 52px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 13px 18px !important;
  border-radius: 999px !important;
  text-align: center !important;
  white-space: normal !important;
  line-height: 1.25 !important;
  font-size: clamp(0.9rem, 1.05vw, 1rem) !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
}

.bervion-real-projects .project-actions .btn-outline {
  background: #fff !important;
  color: #29466c !important;
  border-color: #163a63 !important;
  box-shadow: 0 10px 24px rgba(15, 42, 72, 0.08) !important;
}

.bervion-real-projects .project-actions .btn-outline:hover {
  background: #163a63 !important;
  color: #fff !important;
}

@media (min-width: 1100px) {
  .bervion-real-projects .project-card {
    min-height: 670px !important;
  }
}

@media (max-width: 520px) {
  .bervion-real-projects .tag-list {
    min-height: auto !important;
  }

  .bervion-real-projects .project-actions .cta-enhanced,
  .bervion-real-projects .project-actions .btn {
    min-height: 50px !important;
    font-size: 0.95rem !important;
  }
}

/* Calculator values: final Bervion gray palette override */
html body:has(.calculator-section) .calculator-section .price-tag,
html body:has(.calculator-section) .calculator-section .feature-price,
html body:has(.calculator-section) .calculator-section .design-badge,
html body:has(.calculator-section) .calculator-section .deadline-time,
html body:has(.calculator-section) .calculator-section .site-type-option:has(input:checked) .price-tag,
html body:has(.calculator-section) .calculator-section .feature-option:has(input:checked) .feature-price {
  color: #40536a !important;
  background: linear-gradient(135deg, #f3f7fa 0%, #dce8f0 100%) !important;
  border: 1px solid rgba(82, 104, 130, 0.24) !important;
  box-shadow: 0 8px 20px rgba(15, 42, 72, 0.08) !important;
  text-shadow: none !important;
  font-weight: 850 !important;
}

html body:has(.calculator-section) .calculator-section #resultBasePrice,
html body:has(.calculator-section) .calculator-section #resultExtras,
html body:has(.calculator-section) .calculator-section #resultDesign,
html body:has(.calculator-section) .calculator-section #resultDeadline,
html body:has(.calculator-section) .calculator-section .breakdown-item span:last-child,
html body:has(.calculator-section) .calculator-section .timeline-item span:last-child {
  color: #5f7187 !important;
  text-shadow: none !important;
  font-weight: 900 !important;
}

html body:has(.calculator-section) .calculator-section .total-price span:last-child,
html body:has(.calculator-section) .calculator-section #totalPrice {
  color: #edf4fa !important;
  text-shadow: 0 2px 14px rgba(15, 42, 72, 0.18) !important;
  font-weight: 950 !important;
}


/* Solicitation/pricing values: calm Bervion gray, readable on dark cards */
html body:has(.pricing-section) .pricing-section .plan-price .price,
html body:has(.pricing-section) .pricing-section .service-price {
  color: #9fb0c2 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #9fb0c2 !important;
  background: none !important;
  font-weight: 850 !important;
}

html body .additional-services .service-price {
  color: #7dd3fc !important;
  -webkit-text-fill-color: #7dd3fc !important;
  text-shadow: 0 1px 12px rgba(14, 165, 201, 0.2) !important;
}

#features .section-title,
#features h2.section-title {
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
  background: none !important;
  opacity: 1 !important;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.32) !important;
}

#features .section-description {
  color: rgba(235, 245, 255, 0.92) !important;
  -webkit-text-fill-color: rgba(235, 245, 255, 0.92) !important;
  opacity: 1 !important;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.24) !important;
}

html body:has(.pricing-section) .pricing-section .plan-price .installments {
  color: #6fc7dc !important;
  text-shadow: none !important;
}

html body:has(.pricing-section) .pricing-section .plan-price .period {
  color: rgba(238, 244, 250, 0.78) !important;
}

html body:has(.pricing-section) .pricing-section .pricing-card {
  overflow: visible !important;
}

/* Testimonials carousel: allow horizontal drag without blocking vertical mobile scroll */
.testimonials-carousel {
  cursor: grab !important;
  touch-action: pan-y !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.testimonials-carousel.is-dragging {
  cursor: grabbing !important;
}

.testimonials-carousel .testimonial-card,
.testimonials-carousel .carousel-dot,
.testimonials-carousel .carousel-nav {
  -webkit-user-drag: none !important;
}


@media (max-width: 760px) {
  .modelos-integrated-page .bervion-models-section .section-header {
    margin-top: 64px !important;
  }
}
